wok-stable view libdaq/receipt @ rev 8453

Fixed erlang.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 06 19:13:27 2011 +0000 (2011-02-06)
parents 11fced7968a2
children e6a5f8e3a906
line source
1 # SliTaz package receipt.
3 PACKAGE="libdaq"
4 VERSION="0.5"
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/630"
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 }