wok annotate portmap/receipt @ rev 4437
cvs: Enable server.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Nov 02 10:55:44 2009 +0000 (2009-11-02) |
parents | a075ff895254 |
children | be13f25e790b |
rev | line source |
---|---|
erjo@174 | 1 # SliTaz package receipt. |
erjo@174 | 2 |
erjo@174 | 3 PACKAGE="portmap" |
erjo@252 | 4 VERSION="6.0" |
pankso@211 | 5 CATEGORY="network" |
erjo@175 | 6 SHORT_DESC="RPC portmapper" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@1465 | 8 DEPENDS="libwrap" |
pascal@1465 | 9 BUILD_DEPENDS="libwrap-dev" |
erjo@252 | 10 TARBALL="${PACKAGE}-${VERSION}.tgz" |
erjo@252 | 11 WEB_SITE="http://neil.brown.name/portmap/" |
erjo@252 | 12 WGET_URL="http://neil.brown.name/portmap/$TARBALL" |
erjo@174 | 13 |
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@175 | 23 # Build |
erjo@252 | 24 # Disabling TCP_WRAPPER with NO_TCP_WRAPPER variable |
erjo@252 | 25 NO_TCP_WRAPPER=1 make |
erjo@174 | 26 } |
erjo@174 | 27 |
erjo@174 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@174 | 29 genpkg_rules() |
erjo@174 | 30 { |
erjo@174 | 31 src=${PACKAGE}_${VERSION} |
erjo@174 | 32 _pkg=${PACKAGE}_${VERSION}/_pkg |
erjo@174 | 33 |
erjo@174 | 34 |
erjo@174 | 35 mkdir -p $fs/usr/sbin |
erjo@174 | 36 cp -a $src/pmap_dump $fs/usr/sbin |
erjo@174 | 37 cp -a $src/pmap_set $fs/usr/sbin |
erjo@174 | 38 cp -a $src/portmap $fs/usr/sbin |
erjo@252 | 39 |
erjo@174 | 40 strip -s $fs/usr/sbin/* |
erjo@174 | 41 |
erjo@252 | 42 mkdir -p $fs/etc/init.d |
erjo@252 | 43 install -g root -o root -m 0755 stuff/init.d/portmap $fs/etc/init.d |
erjo@252 | 44 |
erjo@252 | 45 |
erjo@174 | 46 } |
erjo@174 | 47 |
erjo@174 | 48 |
erjo@174 | 49 post_install() |
erjo@174 | 50 { |
erjo@174 | 51 # Post message when installing. |
erjo@174 | 52 echo -e "\nTo starts $PACKAGE server you can run :\n" |
erjo@174 | 53 echo "/etc/init.d/$PACKAGE start" |
erjo@174 | 54 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" |
erjo@174 | 55 |
erjo@174 | 56 } |