wok-next rev 20865

gpgme: make Python bindings; mono: up (5.12.0.226); ocsinventory-agent: fix install
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 01 21:13:43 2018 +0300 (2018-07-01)
parents 8db06e7505f5
children 8a42150f2543
files gpgme/.icon.png gpgme/receipt mono/.icon.png mono/receipt ocsinventory-agent/receipt
line diff
     1.1 Binary file gpgme/.icon.png has changed
     2.1 --- a/gpgme/receipt	Thu Jun 28 14:26:22 2018 +0300
     2.2 +++ b/gpgme/receipt	Sun Jul 01 21:13:43 2018 +0300
     2.3 @@ -14,11 +14,13 @@
     2.4  #  Integrity check: https://www.gnupg.org/download/integrity_check.html
     2.5  TARBALL_SHA1="95b1fc427871ca8d30d6d3b1985c816fe0b5077b"
     2.6  
     2.7 -BUILD_DEPENDS="libgpg-error-dev libassuan-dev gnupg"
     2.8 -SPLIT="gpgme-dev"
     2.9 +BUILD_DEPENDS="libgpg-error-dev libassuan-dev gnupg swig python-dev"
    2.10 +SPLIT="python-gpgme gpgme-lisp gpgme gpgme-dev"
    2.11  
    2.12  compile_rules() {
    2.13 -	./configure $CONFIGURE_ARGS &&
    2.14 +	./configure \
    2.15 +		--enable-languages=cl,python \
    2.16 +		$CONFIGURE_ARGS &&
    2.17  	fix libtool &&
    2.18  	make &&
    2.19  	make install
    2.20 @@ -26,13 +28,24 @@
    2.21  
    2.22  genpkg_rules() {
    2.23  	case $PACKAGE in
    2.24 +		python-gpgme)
    2.25 +			copy python2.7/
    2.26 +			DEPENDS="gpgme python"
    2.27 +			CAT="security|Python bindings"
    2.28 +			;;
    2.29 +		gpgme-lisp)
    2.30 +			copy common-lisp/
    2.31 +			DEPENDS="gpgme"
    2.32 +			CAT="security|Common Lisp bindings"
    2.33 +			;;
    2.34  		gpgme)
    2.35 -			copy @std
    2.36 -			rm -r $fs/usr/share
    2.37 +			copy @std @rm
    2.38 +			rm -r $fs/usr/lib/python2.7/ # empty dirs
    2.39  			DEPENDS="libassuan libgpg-error   gnupg"
    2.40  			;;
    2.41  		*-dev)
    2.42 -			copy @dev common-lisp/
    2.43 +			copy @dev
    2.44 +			DEPENDS="gpgme   libgpg-error-dev"
    2.45  			;;
    2.46  	esac
    2.47  }
     3.1 Binary file mono/.icon.png has changed
     4.1 --- a/mono/receipt	Thu Jun 28 14:26:22 2018 +0300
     4.2 +++ b/mono/receipt	Sun Jul 01 21:13:43 2018 +0300
     4.3 @@ -1,49 +1,38 @@
     4.4  # SliTaz package receipt v2.
     4.5  
     4.6  PACKAGE="mono"
     4.7 -VERSION="2.10.8"
     4.8 +VERSION="5.12.0.226"
     4.9  CATEGORY="development"
    4.10 -SHORT_DESC="Cross-platform, open source .NET development framework"
    4.11 +SHORT_DESC="Cross platform, open source .NET framework"
    4.12  MAINTAINER="rcx@zoominternet.net"
    4.13  LICENSE="LGPL2"
    4.14 -WEB_SITE="http://www.mono-project.com/"
    4.15 +WEB_SITE="https://www.mono-project.com/"
    4.16  
    4.17 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.18 -WGET_URL="http://download.mono-project.com/sources/$PACKAGE/$TARBALL"
    4.19 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    4.20 +WGET_URL="https://download.mono-project.com/sources/mono/$TARBALL"
    4.21  
    4.22 -BUILD_DEPENDS="tar bzip2 m4 bison gawk \
    4.23 -gettext glib-dev perl libgdiplus-dev"
    4.24 +#BUILD_DEPENDS="tar bzip2 m4 bison gawk gettext glib-dev perl libgdiplus-dev"
    4.25 +BUILD_DEPENDS="zlib-dev gettext libtool xorg-libX11-dev cmake libgdiplus-dev"
    4.26  SPLIT="mono-doc mono mono-dev"
    4.27 +COOKOPTS="skip-log-errors"
    4.28  
    4.29 -# Build documentation at http://mono-project.com/Compiling_Mono
    4.30 -# and http://mono-project.com/Release_Notes_Mono_2.4#Installing_Mono_2.4
    4.31 +# Build documentation at https://www.mono-project.com/docs/compiling-mono/
    4.32  
    4.33  compile_rules() {
    4.34  	./configure \
    4.35  		--with-libgdiplus=installed \
    4.36 +		--with-spectre-mitigation=yes \
    4.37 +		--with-spectre-indirect-branch-choice=extern \
    4.38  		$CONFIGURE_ARGS &&
    4.39  	fix libtool &&
    4.40 -	make -j1 &&
    4.41 +	make &&
    4.42  	make install
    4.43  
    4.44 -	for i in \
    4.45 -		System.Web_standalone_test_net_2_0 \
    4.46 -		System.Web_standalone_test_net_4_0 \
    4.47 -		System.Web.Extensions_standalone_test_net_2_0 \
    4.48 -		System.Web.Extensions_standalone_test_net_4_0 \
    4.49 -		net_2_0_standalone-runner-support \
    4.50 -		net_4_0_standalone-runner-support ; do
    4.51 -		touch -d 197001010000 mcs/build/deps/$i.dll.makefrag
    4.52 -	done
    4.53 -
    4.54  	cd $src/mcs/jay
    4.55  	make -j1 &&
    4.56 -	make DESTDIR=$DESTDIR prefix=/usr INSTALL=../../install-sh install
    4.57 +	make DESTDIR=$DESTDIR prefix=/usr INSTALL=../../install-sh install || return 1
    4.58  
    4.59 -	#fix .pc file to be able to request mono on what it depends, fixes #go-oo build
    4.60 -	sed -i -e "s:#Requires:Requires:" $DESTDIR/usr/lib/pkgconfig/mono.pc
    4.61 -
    4.62 -	chmod +x $install/usr/bin/*
    4.63 +	chmod +x $install/usr/bin/*.py
    4.64  }
    4.65  
    4.66  genpkg_rules() {
     5.1 --- a/ocsinventory-agent/receipt	Thu Jun 28 14:26:22 2018 +0300
     5.2 +++ b/ocsinventory-agent/receipt	Sun Jul 01 21:13:43 2018 +0300
     5.3 @@ -1,45 +1,44 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="ocsinventory-agent"
     5.8  VERSION="2.0.4"
     5.9  CATEGORY="network"
    5.10 -SHORT_DESC="OCS Inventory NG agent for Linux."
    5.11 +SHORT_DESC="OCS Inventory NG agent for Linux"
    5.12  MAINTAINER="erjo@slitaz.org"
    5.13  LICENSE="GPL2"
    5.14 +WEB_SITE="http://www.ocsinventory-ng.org/"
    5.15 +
    5.16  SOURCE="Ocsinventory-Unix-Agent"
    5.17  TARBALL="$SOURCE-$VERSION.tar.gz"
    5.18 -SUGGESTED="nmap perl-net-ssleay"
    5.19 -WEB_SITE="http://www.ocsinventory-ng.org/"
    5.20  WGET_URL="https://launchpad.net/ocsinventory-unix-agent/stable-${VERSION%.*}/$VERSION/+download/$TARBALL"
    5.21  
    5.22 -DEPENDS="perl perl-libwww-perl perl-uri dmidecode"
    5.23 -BUILD_DEPENDS="perl wget"
    5.24 +BUILD_DEPENDS="perl-libwww-perl perl-xml-simple"
    5.25  
    5.26 -# Rules to configure and make the package.
    5.27 -compile_rules()
    5.28 -{
    5.29 +compile_rules() {
    5.30  	cp $stuff/Slitaz.pm $src/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB
    5.31  	cp $stuff/Tazpkg.pm $src/lib/Ocsinventory/Agent/Backend/OS/Generic/Packaging
    5.32  
    5.33  	# don't run postinstall script
    5.34  	rm -f run-postinst
    5.35 -	perl Makefile.PL
    5.36 +	PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
    5.37  	rm -f run-postinst
    5.38 -	make && make DESTDIR=$DESTDIR install
    5.39 +	make &&
    5.40 +	make DESTDIR=$DESTDIR install || return 1
    5.41 +
    5.42 +	mkdir -p \
    5.43 +		$install/etc/ocsinventory-agent \
    5.44 +		$install/var/lib/ocsinventory-agent
    5.45 +
    5.46 +	chmod -R u+w $install
    5.47  }
    5.48  
    5.49 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.50 -genpkg_rules()
    5.51 -{
    5.52 -	mkdir -p $fs/usr \
    5.53 -		$fs/etc/ocsinventory-agent \
    5.54 -		$fs/var/lib/ocsinventory-agent
    5.55 -
    5.56 -	cp -a $install/usr/bin $fs/usr
    5.57 -	cp -a $install/usr/lib $fs/usr
    5.58 +genpkg_rules() {
    5.59 +	copy @std
    5.60 +	DEPENDS="perl perl-libwww-perl perl-uri dmidecode"
    5.61 +	SUGGESTED="nmap perl-crypt-ssleay perl-net-ssleay perl-net-ip"
    5.62  }
    5.63  
    5.64 -post_install(){
    5.65 +post_install() {
    5.66  	cat > "$1/etc/ocsinventory-agent/ocsinventory-agent.cfg" <<EOT
    5.67  basevardir=/var/lib/ocsinventory-agent
    5.68  server=http://localhost/ocsinventory