wok-4.x annotate snort/receipt @ rev 7078
Up: snort to 2.90.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 02 17:07:38 2010 +0000 (2010-11-02) |
parents | d8da6640881f |
children | 6c12c90a5937 |
rev | line source |
---|---|
pascal@4653 | 1 # SliTaz package receipt. |
pascal@4653 | 2 |
pascal@4653 | 3 PACKAGE="snort" |
slaxemulator@7078 | 4 VERSION="2.9.0.1" |
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@7078 | 10 WGET="http://www.snort.org/downloads/308" |
slaxemulator@7078 | 11 DEPENDS="pcre libdnet libdaq" |
slaxemulator@7078 | 12 BUILD_DEPENDS="pcre-dev libpcap 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@7078 | 23 tar xjf $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 } |