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