wok-current rev 23617
updated rpm4 (4.10.0 -> 4.15.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 14 10:40:48 2020 +0100 (2020-04-14) |
parents | 3f7f548986f7 |
children | 615a666d7811 |
files | rpm4/receipt |
line diff
1.1 --- a/rpm4/receipt Tue Apr 14 09:53:09 2020 +0100 1.2 +++ b/rpm4/receipt Tue Apr 14 10:40:48 2020 +0100 1.3 @@ -1,36 +1,39 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="rpm4" 1.7 -VERSION="4.10.0" 1.8 +VERSION="4.15.1" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="RPM Package Manager" 1.11 +TAGS="package-manager" 1.12 +SHORT_DESC="RPM Package Manager." 1.13 MAINTAINER="erjo@slitaz.org" 1.14 LICENSE="GPL2" 1.15 +WEB_SITE="https://www.rpm.org/" 1.16 + 1.17 SOURCE="rpm" 1.18 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.19 -WEB_SITE="http://www.rpm.org/" 1.20 -WGET_URL="http://www.rpm.org/releases/rpm-${VERSION:0:4}.x/$TARBALL" 1.21 -TAGS="package-manager" 1.22 +WGET_URL="http://ftp.rpm.org/releases/rpm-${VERSION%.*}.x/$TARBALL" 1.23 1.24 -DEPENDS="popt beecrypt bzlib expat sqlite zlib gcc-lib-base neon libkrb5 \ 1.25 -libcomerr3 nss nspr db liblzma libmagic" 1.26 -BUILD_DEPENDS="beecrypt beecrypt-dev popt-dev gettext zlib-dev python-dev \ 1.27 -nss-dev nspr-dev db-dev liblzma liblzma-dev libmagic-dev" 1.28 +DEPENDS="beecrypt bzlib db expat gcc-lib-base libcomerr3 libkrb5 1.29 + libmagic liblzma neon nspr nss popt sqlite zlib" 1.30 +BUILD_DEPENDS="beecrypt-dev db-dev gettext libarchive-dev liblzma 1.31 + liblzma-dev libmagic-dev nspr-dev nss-dev popt-dev python-dev 1.32 + zlib-dev" 1.33 1.34 # Rules to configure and make the package. 1.35 compile_rules() 1.36 { 1.37 - cd $src 1.38 - CPPFLAGS="$CPPFLAGS -I/usr/include/nspr -I/usr/include/nss" ./configure \ 1.39 - --prefix=/usr \ 1.40 - --infodir=/usr/share/info \ 1.41 - --with-selinux=no \ 1.42 - --with-lua=no \ 1.43 - --with-dmalloc=no \ 1.44 - --with-efence=no \ 1.45 - --with-external-db \ 1.46 - --localstatedir=/var \ 1.47 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.48 + CPPFLAGS="$CPPFLAGS -I/usr/include/nspr -I/usr/include/nss" \ 1.49 + ./configure \ 1.50 + --prefix=/usr \ 1.51 + --infodir=/usr/share/info \ 1.52 + --with-selinux=no \ 1.53 + --with-lua=no \ 1.54 + --with-dmalloc=no \ 1.55 + --with-efence=no \ 1.56 + --with-external-db \ 1.57 + --localstatedir=/var \ 1.58 + --mandir=/usr/share/man \ 1.59 + $CONFIGURE_ARGS && 1.60 make $MAKEFLAGS && 1.61 make DESTDIR=$DESTDIR install 1.62 } 1.63 @@ -48,24 +51,28 @@ 1.64 $fs/usr/src/redhat/SPECS \ 1.65 $fs/usr/src/redhat/SRPMS 1.66 1.67 - cp -a $install/usr/bin $fs/usr 1.68 - cp -a $install/bin/* $fs/usr/bin 1.69 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.70 - cp -a $install/usr/lib/rpm $fs/usr/lib 1.71 + cp -a $install/usr/bin $fs/usr 1.72 + cp -a $install/bin/* $fs/usr/bin 1.73 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.74 + cp -a $install/usr/lib/rpm $fs/usr/lib 1.75 } 1.76 1.77 post_install() 1.78 { 1.79 cmd=$(readlink $root/bin/rpm) 1.80 - if [ "$cmd" != '/usr/bin/rpm' ]; then 1.81 + if [ "$cmd" != '/usr/bin/rpm' ] 1.82 + then 1.83 echo '' 1.84 echo "**** Actual RPM link : $cmd" 1.85 echo '' 1.86 - echo -n 'Do you want rpm for /bin/rpm (Y/n) ? : '; read -t 30 anser 1.87 - if [ "$anser" != 'n' ]; then 1.88 + echo -n 'Do you want rpm for /bin/rpm (Y/n) ? : ' 1.89 + read -t 30 anser 1.90 + if [ "$anser" != 'n' ] 1.91 + then 1.92 echo '' 1.93 action 'Removing rpm link to make a new one pointing on /usr/bin/rpm...' 1.94 - rm $root/bin/rpm && ln -sf $root/usr/bin/rpm $root/bin/rpm 1.95 + rm $root/bin/rpm && 1.96 + ln -sf $root/usr/bin/rpm $root/bin/rpm 1.97 status 1.98 else 1.99 echo '' 1.100 @@ -79,7 +86,8 @@ 1.101 1.102 pre_remove() 1.103 { 1.104 - if [ -d "$1/var/lib/rpm" ]; then 1.105 + if [ -d "$1/var/lib/rpm" ] 1.106 + then 1.107 rm -f "$1"/var/lib/rpm/* 1.108 fi 1.109 } 1.110 @@ -87,7 +95,8 @@ 1.111 post_remove() 1.112 { 1.113 cmd=$(readlink "$1/bin/rpm") 1.114 - if [ "$cmd" != '/bin/rpm' ]; then 1.115 + if [ "$cmd" != '/bin/rpm' ] 1.116 + then 1.117 newline 1.118 action 'Restore applets from busybox...' 1.119 ln -sf /bin/busybox "$1/bin/rpm"