wok-next rev 13040

Add libconfig
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 15 12:26:21 2012 +0200 (2012-06-15)
parents 5118e45110f5
children a0250385f2a5
files libconfig-dev/receipt libconfig/receipt sshttp/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libconfig-dev/receipt	Fri Jun 15 12:26:21 2012 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libconfig-dev"
     1.7 +VERSION="1.4.8"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="C/C++ Configuration File Library, development files"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.hyperrealm.com/libconfig/"
    1.12 +WANTED="libconfig"
    1.13 +DEPENDS="libconfig"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/lib
    1.19 +	cp -a $_pkg/usr/include $fs/usr
    1.20 +	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    1.21 +	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.22 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libconfig/receipt	Fri Jun 15 12:26:21 2012 +0200
     2.3 @@ -0,0 +1,31 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libconfig"
     2.7 +VERSION="1.4.8"
     2.8 +CATEGORY="misc"
     2.9 +SHORT_DESC="C/C++ Configuration File Library"
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12 +WEB_SITE="http://www.hyperrealm.com/libconfig/"
    2.13 +WGET_URL="$WEB_SITE$TARBALL"
    2.14 +BUILD_DEPENDS=""
    2.15 +DEPENDS=""
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	cd $src
    2.21 +	./configure --prefix=/usr --infodir=/usr/share/info \
    2.22 +	--mandir=/usr/share/man \
    2.23 +	--disable-cxx \
    2.24 +	$CONFIGURE_ARGS &&
    2.25 +	make &&
    2.26 +	make DESTDIR=$DESTDIR install
    2.27 +}
    2.28 +
    2.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.30 +genpkg_rules()
    2.31 +{
    2.32 +	mkdir -p $fs/usr/lib
    2.33 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.34 +}
     3.1 --- a/sshttp/receipt	Wed Jun 13 11:56:47 2012 +0200
     3.2 +++ b/sshttp/receipt	Fri Jun 15 12:26:21 2012 +0200
     3.3 @@ -25,3 +25,16 @@
     3.4  	cp -a $src/sshttpd $fs/usr/sbin
     3.5  }
     3.6  
     3.7 +# Pre and post install commands for Tazpkg.
     3.8 +post_install()
     3.9 +{
    3.10 +	zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
    3.11 +
    3.12 +CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
    3.13 +sshttp needs Linux IP_TRANSPARENT feature to work.
    3.14 +You should rebuild your kernel with a new configuration.
    3.15 +
    3.16 +EOT
    3.17 +}
    3.18 +
    3.19 +# http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html