wok annotate portmap/receipt @ rev 171

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