wok annotate rpm4/receipt @ rev 14613
Add php-docs-en.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 06:36:55 2013 +0000 (2013-06-01) |
parents | 8e4c74abdf74 |
children | 7896f0694ef6 |
rev | line source |
---|---|
erjo@1432 | 1 # SliTaz package receipt. |
erjo@1432 | 2 |
erjo@1432 | 3 PACKAGE="rpm4" |
slaxemulator@13006 | 4 VERSION="4.10.0" |
erjo@1432 | 5 CATEGORY="system-tools" |
erjo@1432 | 6 SHORT_DESC="RPM Package Manager" |
erjo@1432 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@5006 | 8 DEPENDS="popt beecrypt bzlib expat sqlite zlib gcc-lib-base neon libkrb5 \ |
slaxemulator@8472 | 9 libcomerr3 nss nspr db liblzma libmagic" |
pascal@7441 | 10 BUILD_DEPENDS="beecrypt beecrypt-dev popt-dev gettext zlib-dev python-dev \ |
slaxemulator@13006 | 11 nss-dev nspr-dev db-dev liblzma liblzma-dev libmagic-dev" |
erjo@1432 | 12 SOURCE="rpm" |
pascal@7441 | 13 TARBALL="$SOURCE-$VERSION.tar.bz2" |
erjo@1432 | 14 WEB_SITE="http://www.rpm.org/" |
slaxemulator@13006 | 15 WGET_URL="http://www.rpm.org/releases/rpm-${VERSION:0:4}.x/$TARBALL" |
jozee@4972 | 16 TAGS="package-manager" |
erjo@1432 | 17 |
erjo@1432 | 18 # Rules to configure and make the package. |
erjo@1432 | 19 compile_rules() |
erjo@1432 | 20 { |
erjo@1432 | 21 cd $src |
pascal@7441 | 22 CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss" ./configure \ |
pascal@7441 | 23 --prefix=/usr \ |
erjo@1432 | 24 --infodir=/usr/share/info \ |
erjo@1432 | 25 --with-selinux=no \ |
erjo@1432 | 26 --with-lua=no \ |
erjo@1432 | 27 --with-dmalloc=no \ |
erjo@1432 | 28 --with-efence=no \ |
pascal@7441 | 29 --with-external-db \ |
pascal@2433 | 30 --mandir=/usr/share/man $CONFIGURE_ARGS && |
gokhlayeh@11574 | 31 make $MAKEFLAGS && |
slaxemulator@13006 | 32 make DESTDIR=$DESTDIR install |
erjo@1432 | 33 } |
erjo@1432 | 34 |
erjo@1432 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@1432 | 36 genpkg_rules() |
erjo@1432 | 37 { |
erjo@1432 | 38 mkdir -p $fs/usr/bin \ |
erjo@1432 | 39 $fs/usr/lib \ |
erjo@1432 | 40 $fs/var/lib/rpm \ |
erjo@1432 | 41 $fs/usr/src/redhat/SOURCES \ |
erjo@1432 | 42 $fs/usr/src/redhat/BUILD \ |
erjo@1432 | 43 $fs/usr/src/redhat/RPMS \ |
erjo@1432 | 44 $fs/usr/src/redhat/SPECS \ |
erjo@1432 | 45 $fs/usr/src/redhat/SRPMS |
erjo@1432 | 46 |
slaxemulator@13006 | 47 cp -a $install/usr/bin $fs/usr |
slaxemulator@13006 | 48 cp -a $install/bin/* $fs/usr/bin |
slaxemulator@13006 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@13006 | 50 cp -a $install/usr/lib/rpm $fs/usr/lib |
erjo@1432 | 51 } |
erjo@1432 | 52 |
erjo@1432 | 53 post_install() |
erjo@1432 | 54 { |
erjo@1432 | 55 echo "Processing post install commands..." |
erjo@1432 | 56 cmd=`readlink $root/bin/rpm` |
erjo@1432 | 57 if [ ! "$cmd" = "/usr/bin/rpm" ]; then |
erjo@1432 | 58 echo "" |
erjo@1432 | 59 echo "**** Actual RPM link : $cmd" |
erjo@1432 | 60 echo "" |
pascal@9267 | 61 echo -n "Do you want rpm for /bin/rpm (Y/n) ? : "; read -t 30 anser |
pascal@9267 | 62 if [ "$anser" != "n" ]; then |
erjo@1432 | 63 echo "" |
erjo@1432 | 64 echo -n "Removing rpm link to make a new one pointing on /usr/bin/rpm..." |
erjo@1432 | 65 rm $root/bin/rpm && ln -sf $root/usr/bin/rpm $root/bin/rpm |
erjo@1432 | 66 status |
erjo@1432 | 67 else |
erjo@1432 | 68 echo "" |
pascal@9267 | 69 echo "Leaving /bin/rpm to : $cmd" |
erjo@1432 | 70 fi |
erjo@1432 | 71 fi |
erjo@1432 | 72 |
erjo@1432 | 73 # Building rpm database. |
erjo@1432 | 74 $root/usr/bin/rpm --initdb --quiet |
erjo@1432 | 75 } |
erjo@1432 | 76 |
erjo@1432 | 77 pre_remove() |
erjo@1432 | 78 { |
slaxemulator@13006 | 79 if [ -d $1/var/lib/rpm ]; then |
slaxemulator@13006 | 80 rm -f $1/var/lib/rpm/* |
erjo@1432 | 81 fi |
erjo@1432 | 82 } |
erjo@1432 | 83 |
erjo@1432 | 84 post_remove() |
erjo@1432 | 85 { |
erjo@1432 | 86 echo "Processing post remove commands..." |
erjo@1432 | 87 cmd=`readlink $root/bin/rpm` |
slaxemulator@13006 | 88 if [ ! "$cmd" = "/bin/rpm" ]; then |
slaxemulator@13006 | 89 echo -n "Restore applets from busybox..." |
slaxemulator@13006 | 90 ln -sf $root/bin/busybox $root/bin/rpm |
slaxemulator@13006 | 91 ln -sf $root/bin/busybox $root/usr/bin/rpm2cpio |
slaxemulator@13006 | 92 status |
slaxemulator@13006 | 93 fi |
erjo@1432 | 94 } |