wok 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 | 9c6f2da9655d |
children | babae9464b6b |
files | libdaq-dev/receipt libdaq/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libdaq-dev/receipt Tue Nov 02 16:56:19 2010 +0000 1.3 @@ -0,0 +1,21 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="libdaq-dev" 1.7 +VERSION="0.3" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="development files for libdaq" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +DEPENDS="libdaq" 1.12 +WEB_SITE="http://www.snort.org/" 1.13 +WANTED="libdaq" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + _pkg=$WOK/$WANTED/daq-$VERSION/_pkg 1.19 + mkdir -p $fs/usr/lib 1.20 + cp -a $_pkg/usr/bin $fs/usr 1.21 + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib 1.22 + cp -a $_pkg/usr/include $fs/usr 1.23 +} 1.24 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libdaq/receipt Tue Nov 02 16:56:19 2010 +0000 2.3 @@ -0,0 +1,43 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="libdaq" 2.7 +VERSION="0.3" 2.8 +CATEGORY="network" 2.9 +SHORT_DESC="Data Acquisition library for packet I/O." 2.10 +MAINTAINER="slaxemulator@gmail.com" 2.11 +DEPENDS="libpcap" 2.12 +BUILD_DEPENDS="libpcap flex bison" 2.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.14 +WEB_SITE="http://www.snort.org/" 2.15 +WGET="http://www.snort.org/downloads/302" 2.16 + 2.17 +# Rules to configure and make the package. 2.18 +compile_rules() 2.19 +{ 2.20 + src=$WOK/$PACKAGE/daq-$VERSION 2.21 + # this is needed even if tazwok support https 2.22 + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 2.23 + tar xzf $SOURCES_REPOSITORY/$TARBALL 2.24 + else 2.25 + [ -L /usr/bin/wget ] && tazpkg get-install wget --forced 2.26 + wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" 2.27 + tar xjf $SOURCES_REPOSITORY/$TARBALL 2.28 + fi 2.29 + cd $src 2.30 + ./configure \ 2.31 + --prefix=/usr \ 2.32 + --infodir=/usr/share/info \ 2.33 + --mandir=/usr/share/man \ 2.34 + $CONFIGURE_ARGS && 2.35 + make && make DESTDIR=$PWD/_pkg install 2.36 +} 2.37 + 2.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.39 +genpkg_rules() 2.40 +{ 2.41 + _pkg=$WOK/$PACKAGE/daq-$VERSION/_pkg 2.42 + mkdir -p $fs/usr/lib 2.43 + cp -a $_pkg/usr/lib/daq $fs/usr/lib 2.44 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 2.45 +} 2.46 +