wok-next diff udns/receipt @ rev 20413
linux: add /proc/config.gz, /sbin/tazhw needs it
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 07 17:52:41 2018 +0100 (2018-01-07) |
parents | 2a21689b0af7 |
children | d5aab818505e |
line diff
1.1 --- a/udns/receipt Thu Oct 03 09:52:57 2013 +0000 1.2 +++ b/udns/receipt Sun Jan 07 17:52:41 2018 +0100 1.3 @@ -1,32 +1,45 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="udns" 1.8 -VERSION="0.1" 1.9 +VERSION="0.4" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Syncronous and asyncronous DNS resolver." 1.12 +SHORT_DESC="Syncronous and asyncronous DNS resolver" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="LGPL2.1" 1.15 -TARBALL="${PACKAGE}-$VERSION.tar.gz" 1.16 -WEB_SITE="http://www.corpit.ru/mjt/$PACKAGE.html" 1.17 -WGET_URL="http://www.corpit.ru/mjt/$PACKAGE/$TARBALL" 1.18 -TAGS="network DNS" 1.19 +WEB_SITE="http://www.corpit.ru/mjt/udns.html" 1.20 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 - cd $src 1.25 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.26 +WGET_URL="http://www.corpit.ru/mjt/udns/$TARBALL" 1.27 + 1.28 +SPLIT="udns-dev" 1.29 + 1.30 +compile_rules() { 1.31 # GCC 4.5 fix 1.32 sed -i 's/"$@" >/$@ >/' configure.lib 1.33 - bash ./configure && make staticlib sharedlib rblcheck_s dnsget_s 1.34 + 1.35 + ./configure \ 1.36 + --enable-ipv6 && 1.37 + make staticlib sharedlib rblcheck_s dnsget_s || return 1 1.38 + 1.39 + install -Dm0755 dnsget_s $install/usr/bin/dnsget 1.40 + install -Dm0755 rblcheck_s $install/usr/bin/rblcheck 1.41 + install -Dm0755 libudns.so.0 $install/usr/lib/libudns.so.0 1.42 + ln -s libudns.so.0 $install/usr/lib/libudns.so 1.43 + install -Dm0644 libudns.a $install/usr/lib/libudns.a 1.44 + install -Dm0644 udns.h $install/usr/include/udns.h 1.45 + 1.46 + cook_pick_manpages dnsget.1 rblcheck.1 udns.3 1.47 + cook_pick_docs NOTES TODO NEWS 1.48 } 1.49 1.50 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 -genpkg_rules() 1.52 -{ 1.53 - mkdir -p $fs/usr/lib $fs/usr/bin 1.54 - cp -a $src/libudns.so.0 $fs/usr/lib 1.55 - ln -s /usr/lib/libudns.so.0 $fs/usr/lib/libudns.so 1.56 - cp -a $src/dnsget_s $fs/usr/bin/dnsget 1.57 - cp -a $src/rblcheck_s $fs/usr/bin/rblcheck 1.58 +genpkg_rules() { 1.59 + case $PACKAGE in 1.60 + udns) 1.61 + copy @std 1.62 + TAGS="network DNS" 1.63 + ;; 1.64 + *-dev) 1.65 + copy @dev 1.66 + ;; 1.67 + esac 1.68 } 1.69 -