wok annotate libdaq/receipt @ rev 8190

imported patch toolchain/gmp.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents 11fced7968a2
children e6a5f8e3a906
rev   line source
slaxemulator@7077 1 # SliTaz package receipt.
slaxemulator@7077 2
slaxemulator@7077 3 PACKAGE="libdaq"
slaxemulator@7747 4 VERSION="0.5"
slaxemulator@7077 5 CATEGORY="network"
slaxemulator@7077 6 SHORT_DESC="Data Acquisition library for packet I/O."
slaxemulator@7077 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@7077 8 DEPENDS="libpcap"
slaxemulator@7168 9 BUILD_DEPENDS="libpcap-dev flex bison"
slaxemulator@7077 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@7077 11 WEB_SITE="http://www.snort.org/"
slaxemulator@7747 12 WGET="http://www.snort.org/downloads/630"
slaxemulator@7077 13
slaxemulator@7077 14 # Rules to configure and make the package.
slaxemulator@7077 15 compile_rules()
slaxemulator@7077 16 {
slaxemulator@7077 17 src=$WOK/$PACKAGE/daq-$VERSION
slaxemulator@7077 18 # this is needed even if tazwok support https
slaxemulator@7077 19 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
slaxemulator@7077 20 tar xzf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@7077 21 else
slaxemulator@7077 22 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
slaxemulator@7077 23 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
slaxemulator@7079 24 tar xzf $SOURCES_REPOSITORY/$TARBALL
slaxemulator@7077 25 fi
slaxemulator@7077 26 cd $src
slaxemulator@7077 27 ./configure \
slaxemulator@7077 28 --prefix=/usr \
slaxemulator@7077 29 --infodir=/usr/share/info \
slaxemulator@7077 30 --mandir=/usr/share/man \
slaxemulator@7077 31 $CONFIGURE_ARGS &&
slaxemulator@7077 32 make && make DESTDIR=$PWD/_pkg install
slaxemulator@7077 33 }
slaxemulator@7077 34
slaxemulator@7077 35 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7077 36 genpkg_rules()
slaxemulator@7077 37 {
slaxemulator@7077 38 _pkg=$WOK/$PACKAGE/daq-$VERSION/_pkg
slaxemulator@7077 39 mkdir -p $fs/usr/lib
slaxemulator@7077 40 cp -a $_pkg/usr/lib/daq $fs/usr/lib
slaxemulator@7077 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
slaxemulator@7077 42 }
slaxemulator@7077 43