wok annotate portmap/receipt @ rev 25656

Up fwknop (2.6.11)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 09 11:08:06 2024 +0000 (7 months ago)
parents affc6fdda56c
children
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@15379 8 LICENSE="BSD"
erjo@252 9 TARBALL="${PACKAGE}-${VERSION}.tgz"
pascal@20679 10 WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
pascal@25012 11 WGET_URL="http://repository.timesys.com/buildsources/${PACKAGE:0:1}/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"
erjo@174 12
pascal@15379 13 DEPENDS="libwrap"
pascal@15379 14 BUILD_DEPENDS="libwrap-dev"
erjo@174 15
pascal@25580 16 # What is the latest version available today?
pascal@25580 17 current_version()
pascal@25580 18 {
pascal@25580 19 wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
pascal@25580 20 sed '/portmap-/!d;s|.*portmap-||;s|/.*||'
pascal@25580 21 }
pascal@25580 22
erjo@174 23 # rules to configure and make the package.
erjo@174 24 compile_rules()
erjo@174 25 {
erjo@175 26 # Build
erjo@252 27 # Disabling TCP_WRAPPER with NO_TCP_WRAPPER variable
erjo@252 28 NO_TCP_WRAPPER=1 make
erjo@174 29 }
erjo@174 30
erjo@174 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@174 32 genpkg_rules()
erjo@174 33 {
erjo@174 34 mkdir -p $fs/usr/sbin
erjo@174 35 cp -a $src/pmap_dump $fs/usr/sbin
erjo@174 36 cp -a $src/pmap_set $fs/usr/sbin
erjo@174 37 cp -a $src/portmap $fs/usr/sbin
erjo@252 38
erjo@252 39 mkdir -p $fs/etc/init.d
erjo@252 40 install -g root -o root -m 0755 stuff/init.d/portmap $fs/etc/init.d
erjo@174 41 }
erjo@174 42
pascal@25580 43 # Pre and post install commands for Tazpkg.
erjo@174 44 post_install()
erjo@174 45 {
erjo@174 46 # Post message when installing.
erjo@174 47 echo -e "\nTo starts $PACKAGE server you can run :\n"
erjo@174 48 echo "/etc/init.d/$PACKAGE start"
gokhlayeh@9470 49 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
erjo@174 50 }