wok-next rev 20862

lzip: up (1.20); rpm4 -> rpm: up (4.14.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 28 01:53:42 2018 +0300 (2018-06-28)
parents 523cce42deab
children d224c2b13c81
files lzip/receipt rpm/.icon.png rpm/receipt rpm4/receipt
line diff
     1.1 --- a/lzip/receipt	Thu Jun 28 00:30:02 2018 +0300
     1.2 +++ b/lzip/receipt	Thu Jun 28 01:53:42 2018 +0300
     1.3 @@ -1,31 +1,23 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="lzip"
     1.8 -VERSION="1.16"
     1.9 +VERSION="1.20"
    1.10  CATEGORY="utilities"
    1.11 -SHORT_DESC="LZMA compressor"
    1.12 +SHORT_DESC="LZMA lossless data compressor"
    1.13  MAINTAINER="mimas@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15 +WEB_SITE="http://www.nongnu.org/lzip/lzip.html"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://www.nongnu.org/lzip/lzip.html"
    1.19  WGET_URL="http://download.savannah.gnu.org/releases/lzip/$TARBALL"
    1.20  
    1.21 -DEPENDS="gcc-lib-base"
    1.22 -
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	./configure --prefix=/usr $CONFIGURE_ARGS &&
    1.27 +compile_rules() {
    1.28 +	./configure \
    1.29 +		--prefix=/usr &&
    1.30  	make &&
    1.31 -	make DESTDIR=$DESTDIR install
    1.32 +	make install
    1.33  }
    1.34  
    1.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 -genpkg_rules()
    1.37 -{
    1.38 -	mkdir -p $fs/usr
    1.39 -	cp -a $install/usr/bin $fs/usr
    1.40 -#	cp $src/lzdiff $fs/usr/bin
    1.41 -#	cp $src/lzgrep $fs/usr/bin
    1.42 +genpkg_rules() {
    1.43 +	copy @std
    1.44  }
    1.45 -
     2.1 Binary file rpm/.icon.png has changed
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/rpm/receipt	Thu Jun 28 01:53:42 2018 +0300
     3.3 @@ -0,0 +1,56 @@
     3.4 +# SliTaz package receipt v2.
     3.5 +
     3.6 +PACKAGE="rpm"
     3.7 +VERSION="4.14.1"
     3.8 +CATEGORY="system-tools"
     3.9 +SHORT_DESC="RPM Package Manager"
    3.10 +MAINTAINER="erjo@slitaz.org"
    3.11 +LICENSE="GPL2"
    3.12 +WEB_SITE="http://rpm.org/"
    3.13 +
    3.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.15 +WGET_URL="http://ftp.rpm.org/releases/rpm-${VERSION%.*}.x/$TARBALL"
    3.16 +# integrity check: http://rpm.org/download.html -> Release notes
    3.17 +TARBALL_SHA256="43f40e2ccc3ca65bd3238f8c9f8399d4957be0878c2e83cba2746d2d0d96793b"
    3.18 +
    3.19 +BUILD_DEPENDS="p7zip-full gnupg zlib-dev bzip2-dev xz-dev zstd-dev \
    3.20 +elfutils-dev nss-dev nspr-dev libmagic-dev popt-dev libarchive-dev db-dev \
    3.21 +gettext dbus-dev"
    3.22 +SPLIT="rpm-dev"
    3.23 +
    3.24 +compile_rules() {
    3.25 +	./configure \
    3.26 +		--without-lua \
    3.27 +		$CONFIGURE_ARGS &&
    3.28 +	fix libtool &&
    3.29 +	make &&
    3.30 +	make install
    3.31 +}
    3.32 +
    3.33 +genpkg_rules() {
    3.34 +	case $PACKAGE in
    3.35 +		rpm)
    3.36 +			copy @std
    3.37 +			DEPENDS="bzlib dbus elfutils libarchive libdb liblzma libmagic nss \
    3.38 +			popt python zlib zstd"
    3.39 +			SUGGESTED="p7zip-full gnupg"
    3.40 +			TAGS="package-manager"
    3.41 +			;;
    3.42 +		*-dev)
    3.43 +			copy @dev
    3.44 +			DEPENDS="rpm bzip2-dev db-dev nss-dev popt-dev xz-dev zlib-dev \
    3.45 +			zstd-dev"
    3.46 +			;;
    3.47 +	esac
    3.48 +}
    3.49 +
    3.50 +# Building rpm database.
    3.51 +post_install() {
    3.52 +	chroot "$1/" rpm --initdb --quiet
    3.53 +}
    3.54 +
    3.55 +pre_remove() {
    3.56 +	if [ -d "$1/var/lib/rpm" ]; then
    3.57 +		rm -f "$1"/var/lib/rpm/*
    3.58 +	fi
    3.59 +}
     4.1 --- a/rpm4/receipt	Thu Jun 28 00:30:02 2018 +0300
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,97 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="rpm4"
     4.7 -VERSION="4.10.0"
     4.8 -CATEGORY="system-tools"
     4.9 -SHORT_DESC="RPM Package Manager"
    4.10 -MAINTAINER="erjo@slitaz.org"
    4.11 -LICENSE="GPL2"
    4.12 -SOURCE="rpm"
    4.13 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    4.14 -WEB_SITE="http://www.rpm.org/"
    4.15 -WGET_URL="http://www.rpm.org/releases/rpm-${VERSION:0:4}.x/$TARBALL"
    4.16 -TAGS="package-manager"
    4.17 -
    4.18 -DEPENDS="popt beecrypt bzlib expat sqlite3 zlib gcc-lib-base neon libkrb5 \
    4.19 -libcomerr3 nss nspr db liblzma libmagic"
    4.20 -BUILD_DEPENDS="beecrypt beecrypt-dev popt-dev gettext zlib-dev python-dev \
    4.21 -nss-dev nspr-dev db-dev liblzma xz-dev libmagic-dev"
    4.22 -
    4.23 -# Rules to configure and make the package.
    4.24 -compile_rules()
    4.25 -{
    4.26 -	cd $src
    4.27 -	CPPFLAGS="$CPPFLAGS -I/usr/include/nspr -I/usr/include/nss" ./configure \
    4.28 -		--prefix=/usr  \
    4.29 -		--infodir=/usr/share/info \
    4.30 -		--with-selinux=no \
    4.31 -		--with-lua=no \
    4.32 -		--with-dmalloc=no \
    4.33 -		--with-efence=no \
    4.34 -		--with-external-db \
    4.35 -		--localstatedir=/var \
    4.36 -		--mandir=/usr/share/man $CONFIGURE_ARGS &&
    4.37 -	make $MAKEFLAGS &&
    4.38 -	make DESTDIR=$DESTDIR install
    4.39 -}
    4.40 -
    4.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.42 -genpkg_rules()
    4.43 -{
    4.44 -	mkdir -p \
    4.45 -		$fs/usr/bin \
    4.46 -		$fs/usr/lib \
    4.47 -		$fs/var/lib/rpm \
    4.48 -		$fs/usr/src/redhat/SOURCES \
    4.49 -		$fs/usr/src/redhat/BUILD \
    4.50 -		$fs/usr/src/redhat/RPMS \
    4.51 -		$fs/usr/src/redhat/SPECS \
    4.52 -		$fs/usr/src/redhat/SRPMS
    4.53 -
    4.54 -	cp -a $install/usr/bin $fs/usr
    4.55 -	cp -a $install/bin/* $fs/usr/bin
    4.56 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    4.57 -	cp -a $install/usr/lib/rpm $fs/usr/lib
    4.58 -}
    4.59 -
    4.60 -post_install()
    4.61 -{
    4.62 -	cmd=$(readlink $root/bin/rpm)
    4.63 -	if [ "$cmd" != '/usr/bin/rpm' ]; then
    4.64 -		echo ''
    4.65 -		echo "**** Actual RPM link : $cmd"
    4.66 -		echo ''
    4.67 -		echo -n 'Do you want rpm for /bin/rpm (Y/n) ? : '; read -t 30 anser
    4.68 -		if [ "$anser" != 'n' ]; then
    4.69 -			echo ''
    4.70 -			action 'Removing rpm link to make a new one pointing on /usr/bin/rpm...'
    4.71 -			rm $root/bin/rpm && ln -sf $root/usr/bin/rpm $root/bin/rpm
    4.72 -			status
    4.73 -		else
    4.74 -			echo ''
    4.75 -			echo "Leaving /bin/rpm to : $cmd"
    4.76 -		fi
    4.77 -	fi
    4.78 -
    4.79 -	# Building rpm database.
    4.80 -	$1/usr/bin/rpm --initdb --quiet
    4.81 -}
    4.82 -
    4.83 -pre_remove()
    4.84 -{
    4.85 -	if [ -d "$1/var/lib/rpm" ]; then
    4.86 -		rm -f "$1"/var/lib/rpm/*
    4.87 -	fi
    4.88 -}
    4.89 -
    4.90 -post_remove()
    4.91 -{
    4.92 -	cmd=$(readlink "$1/bin/rpm")
    4.93 -	if [ "$cmd" != '/bin/rpm' ]; then
    4.94 -		newline
    4.95 -		action 'Restore applets from busybox...'
    4.96 -		ln -sf /bin/busybox "$1/bin/rpm"
    4.97 -		ln -sf /bin/busybox "$1/usr/bin/rpm2cpio"
    4.98 -		status
    4.99 -	fi
   4.100 -}