wok-next view snort/receipt @ rev 7079

Fixed snort and libdaq to uncompress TARBALL as tar.gz instead of tar.bz2.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 02 17:58:41 2010 +0000 (2010-11-02)
parents babae9464b6b
children 209f2ed52094
line source
1 # SliTaz package receipt.
3 PACKAGE="snort"
4 VERSION="2.9.0.1"
5 CATEGORY="network"
6 SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.snort.org/"
10 WGET="http://www.snort.org/downloads/308"
11 DEPENDS="pcre libdnet libdaq"
12 BUILD_DEPENDS="pcre-dev libpcap libdaq-dev libdnet-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 # this is needed even if tazwok support https
18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
19 tar xzf $SOURCES_REPOSITORY/$TARBALL
20 else
21 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
22 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
23 tar xzf $SOURCES_REPOSITORY/$TARBALL
24 fi
25 cd $src
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib $fs/usr
39 rm -f $fs/usr/lib/*/*a
40 rm -rf $fs/usr/lib/pkgconfig
41 }