wok view portmap/receipt @ rev 217

UP: tazwok (1.4)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Feb 14 19:35:59 2008 +0100 (2008-02-14)
parents 0a43c4b80c53
children f808fda230ba
line source
1 # SliTaz package receipt.
3 PACKAGE="portmap"
4 VERSION="5beta"
5 CATEGORY="network"
6 SHORT_DESC="RPC portmapper"
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 src=${PACKAGE}_${VERSION}
15 # rules to configure and make the package.
16 compile_rules()
17 {
18 # Ovewriting default $src definition
20 src=${PACKAGE}_${VERSION}
21 cd $src
23 # Applying some patches
24 # see Beyond Linux From Scratch for details.
25 patch -Np1 -i ../stuff/portmap-5beta-compilation_fixes-3.patch
26 patch -Np1 -i ../stuff/portmap-5beta-glibc_errno_fix-1.patch
27 patch -Np1 -i ../stuff/portmap-5beta-disable-tcp_wrapper.patch
29 # Build
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 src=${PACKAGE}_${VERSION}
37 _pkg=${PACKAGE}_${VERSION}/_pkg
40 mkdir -p $fs/usr/sbin
41 cp -a $src/pmap_dump $fs/usr/sbin
42 cp -a $src/pmap_set $fs/usr/sbin
43 cp -a $src/portmap $fs/usr/sbin
44 strip -s $fs/usr/sbin/*
46 mkdir -p $fs/etc
47 cp -a stuff/init.d $fs/etc
48 }
51 post_install()
52 {
53 local root
54 root=$1
55 echo "Processing some post-install commands..."
57 chown root.root $root/etc/init.d/portmap
58 chmod 0755 $root/etc/init.d/portmap
60 # Post message when installing.
61 echo -e "\nTo starts $PACKAGE server you can run :\n"
62 echo "/etc/init.d/$PACKAGE start"
63 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
65 }