wok diff libdaq/receipt @ rev 7077

Added libdaq. Need for new snort.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 02 16:56:19 2010 +0000 (2010-11-02)
parents
children 6c12c90a5937
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libdaq/receipt	Tue Nov 02 16:56:19 2010 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libdaq"
     1.7 +VERSION="0.3"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Data Acquisition library for packet I/O."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="libpcap"
    1.12 +BUILD_DEPENDS="libpcap flex bison"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.snort.org/"
    1.15 +WGET="http://www.snort.org/downloads/302"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	src=$WOK/$PACKAGE/daq-$VERSION
    1.21 +	# this is needed even if tazwok support https
    1.22 +	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.23 +		tar xzf $SOURCES_REPOSITORY/$TARBALL
    1.24 +	else
    1.25 +		[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    1.26 +		wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
    1.27 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.28 +	fi
    1.29 +	cd $src
    1.30 +	./configure \
    1.31 +		--prefix=/usr \
    1.32 +		--infodir=/usr/share/info \
    1.33 +		--mandir=/usr/share/man \
    1.34 +		$CONFIGURE_ARGS &&
    1.35 +	make && make DESTDIR=$PWD/_pkg install
    1.36 +}
    1.37 +
    1.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 +genpkg_rules()
    1.40 +{
    1.41 +	_pkg=$WOK/$PACKAGE/daq-$VERSION/_pkg
    1.42 +	mkdir -p $fs/usr/lib
    1.43 +	cp -a $_pkg/usr/lib/daq $fs/usr/lib
    1.44 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.45 +}
    1.46 +