wok view snort/receipt @ rev 7712

yasr: add post install
author Paul Issott <paul@slitaz.org>
date Sun Dec 19 15:51:06 2010 +0000 (2010-12-19)
parents 209f2ed52094
children 58a600754935
line source
1 # SliTaz package receipt.
3 PACKAGE="snort"
4 VERSION="2.9.0.2"
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/585"
11 DEPENDS="pcre libdnet libdaq"
12 BUILD_DEPENDS="pcre-dev libpcap-dev 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 }