wok-4.x view portmap/receipt @ rev 1432

Add: rpm4
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Oct 01 00:00:56 2008 +0200 (2008-10-01)
parents 49cc94a1c7aa
children c1ff74d9b6f4
line source
1 # SliTaz package receipt.
3 PACKAGE="portmap"
4 VERSION="6.0"
5 CATEGORY="network"
6 SHORT_DESC="RPC portmapper"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="libwrap-dev"
9 TARBALL="${PACKAGE}-${VERSION}.tgz"
10 WEB_SITE="http://neil.brown.name/portmap/"
11 WGET_URL="http://neil.brown.name/portmap/$TARBALL"
14 # rules to configure and make the package.
15 compile_rules()
16 {
17 # Ovewriting default $src definition
19 src=${PACKAGE}_${VERSION}
20 cd $src
22 # Build
23 # Disabling TCP_WRAPPER with NO_TCP_WRAPPER variable
24 NO_TCP_WRAPPER=1 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 src=${PACKAGE}_${VERSION}
31 _pkg=${PACKAGE}_${VERSION}/_pkg
34 mkdir -p $fs/usr/sbin
35 cp -a $src/pmap_dump $fs/usr/sbin
36 cp -a $src/pmap_set $fs/usr/sbin
37 cp -a $src/portmap $fs/usr/sbin
39 strip -s $fs/usr/sbin/*
41 mkdir -p $fs/etc/init.d
42 install -g root -o root -m 0755 stuff/init.d/portmap $fs/etc/init.d
45 }
48 post_install()
49 {
50 # Post message when installing.
51 echo -e "\nTo starts $PACKAGE server you can run :\n"
52 echo "/etc/init.d/$PACKAGE start"
53 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
55 }