wok-next view libdaq/receipt @ rev 7362
mirror-tools/mkcfg.sh: create direct pxe links
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 23 18:57:25 2010 +0100 (2010-11-23) |
parents | 6c12c90a5937 |
children | 11fced7968a2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libdaq"
4 VERSION="0.3"
5 CATEGORY="network"
6 SHORT_DESC="Data Acquisition library for packet I/O."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libpcap"
9 BUILD_DEPENDS="libpcap-dev flex bison"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.snort.org/"
12 WGET="http://www.snort.org/downloads/302"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 src=$WOK/$PACKAGE/daq-$VERSION
18 # this is needed even if tazwok support https
19 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
20 tar xzf $SOURCES_REPOSITORY/$TARBALL
21 else
22 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
23 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
24 tar xzf $SOURCES_REPOSITORY/$TARBALL
25 fi
26 cd $src
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 _pkg=$WOK/$PACKAGE/daq-$VERSION/_pkg
39 mkdir -p $fs/usr/lib
40 cp -a $_pkg/usr/lib/daq $fs/usr/lib
41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
42 }