wok annotate snort/receipt @ rev 8399

linux,syslinux: no more awk in shell tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 16:34:18 2011 +0100 (2011-02-05)
parents 20a284d3a835
children 102de15fea8d
rev   line source
pascal@4653 1 # SliTaz package receipt.
pascal@4653 2
pascal@4653 3 PACKAGE="snort"
slaxemulator@7746 4 VERSION="2.9.0.3"
pascal@4653 5 CATEGORY="network"
pascal@4653 6 SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS)."
pascal@4653 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@4653 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4653 9 WEB_SITE="http://www.snort.org/"
slaxemulator@7746 10 WGET="http://www.snort.org/downloads/637"
slaxemulator@7078 11 DEPENDS="pcre libdnet libdaq"
slaxemulator@7168 12 BUILD_DEPENDS="pcre-dev libpcap-dev libdaq-dev libdnet-dev"
pascal@4653 13
pascal@4653 14 # Rules to configure and make the package.
pascal@4653 15 compile_rules()
pascal@4653 16 {
slaxemulator@7078 17 # this is needed even if tazwok support https
slaxemulator@7078 18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
slaxemulator@7078 19 tar xzf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@7078 20 else
slaxemulator@7078 21 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
slaxemulator@7078 22 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
slaxemulator@7079 23 tar xzf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@7078 24 fi
pascal@4653 25 cd $src
pascal@4653 26 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@4653 27 --mandir=/usr/share/man \
pascal@4653 28 $CONFIGURE_ARGS &&
pascal@4653 29 make &&
pascal@4653 30 make DESTDIR=$PWD/_pkg install
pascal@4653 31 }
pascal@4653 32
pascal@4653 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4653 34 genpkg_rules()
pascal@4653 35 {
slaxemulator@7078 36 mkdir -p $fs/usr/
pascal@4653 37 cp -a $_pkg/usr/bin $fs/usr
pascal@4653 38 cp -a $_pkg/usr/lib $fs/usr
pascal@4653 39 rm -f $fs/usr/lib/*/*a
slaxemulator@7078 40 rm -rf $fs/usr/lib/pkgconfig
pascal@4653 41 }