wok-next rev 20677

Up libsigsegv (2.12); add libseccomp
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 15 00:56:38 2018 +0300 (2018-05-15)
parents 22ac97725527
children df71b2704a30
files antinat/receipt antinat/stuff/patches/destdir.patch libseccomp/receipt libsigc++/receipt libsigsegv/receipt
line diff
     1.1 --- a/antinat/receipt	Sat May 12 17:29:32 2018 +0300
     1.2 +++ b/antinat/receipt	Tue May 15 00:56:38 2018 +0300
     1.3 @@ -9,31 +9,63 @@
     1.4  WEB_SITE="http://www.malsmith.net/antinat/"
     1.5  
     1.6  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.7 -#WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     1.8  WGET_URL="http://www.malsmith.net/download/?obj=antinat/$VERSION/antinat-source.tar.bz2"
     1.9  
    1.10 -BUILD_DEPENDS="gfortran expat-dev"
    1.11 -SPLIT="antinat-dev"
    1.12 +BUILD_DEPENDS="gfortran expat-dev pam-dev"
    1.13 +SPLIT="libantinat antinat antinat-dev antinat-pam:pam antinat-pam-dev:pam"
    1.14  
    1.15  compile_rules() {
    1.16 -	./configure $CONFIGURE_ARGS &&
    1.17 +	case $SET in
    1.18 +		'')  SET_ARGS='--disable-pam'; SET_CMD='s|#define ENABLE_PAM 1|#undef ENABLE_PAM|';;
    1.19 +		pam) SET_ARGS='--enable-pam';  SET_CMD='';;
    1.20 +	esac
    1.21 +
    1.22 +	export shrext_cmds='.so'	# shared libs lost their suffix without this
    1.23 +	./configure \
    1.24 +		$SET_ARGS \
    1.25 +		$CONFIGURE_ARGS &&
    1.26 +	sed -i "$SET_CMD" config.h &&
    1.27  	fix libtool &&
    1.28  	make &&
    1.29  	make install || return 1
    1.30  
    1.31  	# make file readable for web interface, revert file permissions in post-install
    1.32 -	chmod a+r $install/etc/antinat.xml
    1.33 +	chmod a+r $install/etc/antinat.xml $install/etc/pam.d/antinat
    1.34  }
    1.35  
    1.36  genpkg_rules() {
    1.37  	case $PACKAGE in
    1.38 +
    1.39 +		# common (pam and non-pam) libs
    1.40 +		libantinat)
    1.41 +			copy libantinat.so*
    1.42 +			CAT="libs|client library"
    1.43 +			;;
    1.44 +
    1.45 +		# non-pam
    1.46  		antinat)
    1.47 -			copy @std var/
    1.48 -			DEPENDS="expat"
    1.49 +			copy bin/antinat antinat.xml var/
    1.50 +			DEPENDS="expat libantinat"
    1.51  			CONFIG_FILES="/etc/antinat.xml"
    1.52  			;;
    1.53 -		*-dev)
    1.54 +		antinat-dev)
    1.55  			copy @dev
    1.56 +			DEPENDS="antinat"
    1.57 +			;;
    1.58 +
    1.59 +		# pam
    1.60 +		antinat-pam)
    1.61 +			copy bin/antinat antinat.xml var/ pam.d/
    1.62 +			DEPENDS="expat libantinat pam"
    1.63 +			CONFIG_FILES="/etc/antinat.xml"
    1.64 +			CAT="network|using PAM"
    1.65 +			PROVIDE="antinat:pam"
    1.66 +			;;
    1.67 +		antinat-pam-dev)
    1.68 +			copy @dev
    1.69 +			DEPENDS="antinat-pam"
    1.70 +			CAT="development|development files using PAM"
    1.71 +			PROVIDE="antinat-dev:pam"
    1.72  			;;
    1.73  	esac
    1.74  }
    1.75 @@ -41,3 +73,6 @@
    1.76  post_install_antinat() {
    1.77  	chmod 600 $1/etc/antinat.xml
    1.78  }
    1.79 +post_install_antinat_pam() {
    1.80 +	chmod 600 $1/etc/antinat.xml $1/etc/pam.d/antinat
    1.81 +}
     2.1 --- a/antinat/stuff/patches/destdir.patch	Sat May 12 17:29:32 2018 +0300
     2.2 +++ b/antinat/stuff/patches/destdir.patch	Tue May 15 00:56:38 2018 +0300
     2.3 @@ -1,6 +1,6 @@
     2.4  --- a/client/Makefile.in
     2.5  +++ b/client/Makefile.in
     2.6 -@@ -40,20 +40,20 @@
     2.7 +@@ -40,14 +40,14 @@
     2.8   	rm -f Makefile antinat-config
     2.9   
    2.10   install:
    2.11 @@ -21,15 +21,7 @@
    2.12  +	$(LIBTOOL) --mode=finish "$(DESTDIR)$(libdir)"
    2.13   
    2.14   dll: $(TARGET_OBJS) 
    2.15 --	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(TARGET_OBJS) $(LDFLAGS) -version-info 0 -rpath $(libdir) -no-undefined -o $(TARGET)
    2.16 -+	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(TARGET_OBJS) $(LDFLAGS) -version-info 0 -rpath $(DESTDIR)$(libdir) -no-undefined -o $(TARGET)
    2.17 - 
    2.18 - $(TARGET): $(TARGET_OBJS) 
    2.19 --	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(TARGET_OBJS) $(LDFLAGS) -version-info 0 -rpath $(libdir) -o $@
    2.20 -+	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(TARGET_OBJS) $(LDFLAGS) -version-info 0 -rpath $(DESTDIR)$(libdir) -o $@
    2.21 - 
    2.22 - %.lo: %.c ../config.h
    2.23 - 	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -I. -c $< -o $@ 
    2.24 + 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(TARGET_OBJS) $(LDFLAGS) -version-info 0 -rpath $(libdir) -no-undefined -o $(TARGET)
    2.25  
    2.26  --- a/etc/Makefile.in
    2.27  +++ b/etc/Makefile.in
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/libseccomp/receipt	Tue May 15 00:56:38 2018 +0300
     3.3 @@ -0,0 +1,31 @@
     3.4 +# SliTaz package receipt v2.
     3.5 +
     3.6 +PACKAGE="libseccomp"
     3.7 +VERSION="2.3.3"
     3.8 +CATEGORY="libs"
     3.9 +SHORT_DESC="Interface to the Linux kernel's syscall filtering mechanism"
    3.10 +MAINTAINER="al.bobylev@gmail.com"
    3.11 +LICENSE="LGPL2.1"
    3.12 +WEB_SITE="https://github.com/seccomp/libseccomp/"
    3.13 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libseccomp.html"
    3.14 +
    3.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.16 +WGET_URL="https://github.com/seccomp/libseccomp/releases/download/v$VERSION/$TARBALL"
    3.17 +
    3.18 +SPLIT="libseccomp-dev"
    3.19 +
    3.20 +compile_rules() {
    3.21 +	./configure \
    3.22 +		--disable-static \
    3.23 +		$CONFIGURE_ARGS &&
    3.24 +	fix libtool &&
    3.25 +	make &&
    3.26 +	make install
    3.27 +}
    3.28 +
    3.29 +genpkg_rules() {
    3.30 +	case $PACKAGE in
    3.31 +		libseccomp) copy @std;;
    3.32 +		*-dev)      copy @dev;;
    3.33 +	esac
    3.34 +}
     4.1 --- a/libsigc++/receipt	Sat May 12 17:29:32 2018 +0300
     4.2 +++ b/libsigc++/receipt	Tue May 15 00:56:38 2018 +0300
     4.3 @@ -6,7 +6,8 @@
     4.4  SHORT_DESC="Callback Framework for C++"
     4.5  MAINTAINER="pankso@slitaz.org"
     4.6  LICENSE="LGPL2.1"
     4.7 -WEB_SITE="http://libsigc.sourceforge.net/"
     4.8 +WEB_SITE="https://developer.gnome.org/libsigc++/"
     4.9 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libsigc.html"
    4.10  
    4.11  TARBALL="$PACKAGE-$VERSION.tar.xz"
    4.12  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
     5.1 --- a/libsigsegv/receipt	Sat May 12 17:29:32 2018 +0300
     5.2 +++ b/libsigsegv/receipt	Tue May 15 00:56:38 2018 +0300
     5.3 @@ -1,23 +1,32 @@
     5.4  # SliTaz package receipt v2.
     5.5  
     5.6  PACKAGE="libsigsegv"
     5.7 -VERSION="2.10"
     5.8 -CATEGORY="development"
     5.9 +VERSION="2.12"
    5.10 +CATEGORY="libs"
    5.11  SHORT_DESC="Library for handling page faults in user mode"
    5.12  MAINTAINER="paul@slitaz.org"
    5.13  LICENSE="GPL2"
    5.14  WEB_SITE="http://www.gnu.org/software/libsigsegv/"
    5.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libsigsegv.html"
    5.16  
    5.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.18  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    5.19  
    5.20 +SPLIT="libsigsegv-dev"
    5.21 +
    5.22  compile_rules() {
    5.23 -	./configure $CONFIGURE_ARGS &&
    5.24 +	./configure \
    5.25 +		--enable-shared \
    5.26 +		--disable-static \
    5.27 +		$CONFIGURE_ARGS &&
    5.28  	fix libtool &&
    5.29  	make &&
    5.30  	make DESTDIR=$DESTDIR install
    5.31  }
    5.32  
    5.33  genpkg_rules() {
    5.34 -	copy @dev
    5.35 +	case $PACKAGE in
    5.36 +		libsigsegv) copy @std;;
    5.37 +		*-dev)      copy @dev;;
    5.38 +	esac
    5.39  }