wok-next diff libdaq/receipt @ rev 20424
linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 12 17:02:57 2018 +0200 (2018-01-12) |
parents | 6c3718ca17b6 |
children | 0ec6086e21d6 |
line diff
1.1 --- a/libdaq/receipt Sat Nov 09 17:34:23 2013 +0000 1.2 +++ b/libdaq/receipt Fri Jan 12 17:02:57 2018 +0200 1.3 @@ -1,32 +1,40 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libdaq" 1.8 -VERSION="0.6.2" 1.9 +VERSION="2.2.1" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Data Acquisition library for packet I/O." 1.12 +SHORT_DESC="Data Acquisition library for packet I/O" 1.13 MAINTAINER="slaxemulator@gmail.com" 1.14 LICENSE="GPL2" 1.15 +WEB_SITE="https://github.com/Xiche/libdaq" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://www.snort.org/" 1.19 -WGET_URL="http://www.snort.org/downloads/1221" 1.20 +WGET_URL="https://github.com/Xiche/libdaq/archive/v$VERSION.tar.gz" 1.21 1.22 -DEPENDS="libpcap" 1.23 -BUILD_DEPENDS="libpcap-dev flex bison wget" 1.24 +BUILD_DEPENDS="automake libtool flex bison libpcap-dev" 1.25 +SPLIT="libdaq-dev" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 - cd $src 1.31 + ./bootstrap && 1.32 ./configure \ 1.33 $CONFIGURE_ARGS && 1.34 - make -j1 && make -j1 DESTDIR=$DESTDIR install 1.35 + make -j1 && 1.36 + make install 1.37 } 1.38 1.39 # Rules to gen a SliTaz package suitable for Tazpkg. 1.40 genpkg_rules() 1.41 { 1.42 - mkdir -p $fs/usr/lib/daq 1.43 - cp -a $install/usr/lib/daq/*.so* $fs/usr/lib/daq 1.44 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.45 + case $PACKAGE in 1.46 + libdaq) 1.47 + copy @std 1.48 + DEPENDS="libpcap" 1.49 + ;; 1.50 + *-dev) 1.51 + copy @dev 1.52 + DEPENDS="libdaq libpcap-dev" 1.53 + ;; 1.54 + esac 1.55 } 1.56 -