wok view portmap/receipt @ rev 25580

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