wok annotate portmap/receipt @ rev 174
Typo in patch disable-tcp_wrapper
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Feb 01 12:12:28 2008 +0100 (2008-02-01) |
parents | |
children | 0a43c4b80c53 |
rev | line source |
---|---|
erjo@174 | 1 # SliTaz package receipt. |
erjo@174 | 2 |
erjo@174 | 3 PACKAGE="portmap" |
erjo@174 | 4 VERSION="5beta" |
erjo@174 | 5 CATEGORY="extra" |
erjo@174 | 6 SHORT_DESC="" |
erjo@174 | 7 MAINTAINER="Erjo <erjo@slitaz.org>" |
erjo@174 | 8 DEPENDS="" |
erjo@174 | 9 TARBALL="${PACKAGE}_${VERSION}.tar.gz" |
erjo@174 | 10 WEB_SITE="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/portmap.html" |
erjo@174 | 11 WGET_URL="ftp://ftp.porcupine.org/pub/security/${TARBALL}" |
erjo@174 | 12 |
erjo@174 | 13 src=${PACKAGE}_${VERSION} |
erjo@174 | 14 |
erjo@174 | 15 # rules to configure and make the package. |
erjo@174 | 16 compile_rules() |
erjo@174 | 17 { |
erjo@174 | 18 # Ovewriting default $src definition |
erjo@174 | 19 |
erjo@174 | 20 src=${PACKAGE}_${VERSION} |
erjo@174 | 21 cd $src |
erjo@174 | 22 |
erjo@174 | 23 # Applying some patches |
erjo@174 | 24 # see Beyond Linux From Scratch for details. |
erjo@174 | 25 patch -Np1 -i ../stuff/portmap-5beta-compilation_fixes-3.patch |
erjo@174 | 26 patch -Np1 -i ../stuff/portmap-5beta-glibc_errno_fix-1.patch |
erjo@174 | 27 patch -Np1 -i ../stuff/portmap-5beta-disable-tcp_wrapper.patch |
erjo@174 | 28 |
erjo@174 | 29 # Build e |
erjo@174 | 30 make |
erjo@174 | 31 } |
erjo@174 | 32 |
erjo@174 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@174 | 34 genpkg_rules() |
erjo@174 | 35 { |
erjo@174 | 36 src=${PACKAGE}_${VERSION} |
erjo@174 | 37 _pkg=${PACKAGE}_${VERSION}/_pkg |
erjo@174 | 38 |
erjo@174 | 39 |
erjo@174 | 40 mkdir -p $fs/usr/sbin |
erjo@174 | 41 cp -a $src/pmap_dump $fs/usr/sbin |
erjo@174 | 42 cp -a $src/pmap_set $fs/usr/sbin |
erjo@174 | 43 cp -a $src/portmap $fs/usr/sbin |
erjo@174 | 44 strip -s $fs/usr/sbin/* |
erjo@174 | 45 |
erjo@174 | 46 mkdir -p $fs/etc |
erjo@174 | 47 cp -a stuff/init.d $fs/etc |
erjo@174 | 48 } |
erjo@174 | 49 |
erjo@174 | 50 |
erjo@174 | 51 post_install() |
erjo@174 | 52 { |
erjo@174 | 53 local root |
erjo@174 | 54 root=$1 |
erjo@174 | 55 echo "Processing some post-install commands..." |
erjo@174 | 56 |
erjo@174 | 57 chown root.root $root/etc/init.d/portmap |
erjo@174 | 58 chmod 0755 $root/etc/init.d/portmap |
erjo@174 | 59 |
erjo@174 | 60 # Post message when installing. |
erjo@174 | 61 echo -e "\nTo starts $PACKAGE server you can run :\n" |
erjo@174 | 62 echo "/etc/init.d/$PACKAGE start" |
erjo@174 | 63 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
erjo@174 | 64 |
erjo@174 | 65 } |