wok-next diff portmap/receipt @ rev 21157

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 04 11:54:13 2019 +0100 (2019-02-04)
parents 8e1b2a143eb3
children d6e32d144815
line diff
     1.1 --- a/portmap/receipt	Sat Sep 01 16:21:51 2018 +0300
     1.2 +++ b/portmap/receipt	Mon Feb 04 11:54:13 2019 +0100
     1.3 @@ -1,45 +1,42 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="portmap"
     1.8  VERSION="6.0"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="RPC portmapper"
    1.11 -MAINTAINER="erjo@slitaz.org"
    1.12 +MAINTAINER="devel@slitaz.org"
    1.13  LICENSE="BSD"
    1.14 -TARBALL="${PACKAGE}-${VERSION}.tgz"
    1.15  WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
    1.16 +
    1.17 +TARBALL="$PACKAGE-$VERSION.tgz"
    1.18  WGET_URL="http://neil.brown.name/portmap/$TARBALL"
    1.19  
    1.20 -DEPENDS="libwrap"
    1.21  BUILD_DEPENDS="libwrap-dev"
    1.22  
    1.23 -# rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	cd $src
    1.27 -	
    1.28 -	# Build 
    1.29 +compile_rules() {
    1.30  	# Disabling TCP_WRAPPER with NO_TCP_WRAPPER variable
    1.31 -	NO_TCP_WRAPPER=1  make
    1.32 +	NO_TCP_WRAPPER=1  make || return 1
    1.33 +
    1.34 +	install -Dm755 pmap_dump $install/usr/sbin/pmap_dump
    1.35 +	install -Dm755 pmap_set  $install/usr/sbin/pmap_set
    1.36 +	install -Dm755 portmap   $install/usr/sbin/portmap
    1.37 +
    1.38 +	install -Dm755 $stuff/init.d/portmap $install/etc/init.d/portmap
    1.39  }
    1.40  
    1.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 -genpkg_rules()
    1.43 -{
    1.44 -	mkdir -p $fs/usr/sbin
    1.45 -	cp -a $src/pmap_dump $fs/usr/sbin
    1.46 -	cp -a $src/pmap_set $fs/usr/sbin
    1.47 -	cp -a $src/portmap $fs/usr/sbin
    1.48 -
    1.49 -	mkdir -p $fs/etc/init.d
    1.50 -	install -g root -o root -m 0755 stuff/init.d/portmap $fs/etc/init.d
    1.51 +genpkg_rules() {
    1.52 +	copy @std
    1.53 +	DEPENDS="libwrap"
    1.54  }
    1.55  
    1.56 +# Post message when installing.
    1.57 +post_install() {
    1.58 +	[ -n "$quiet" ] || cat <<EOT
    1.59  
    1.60 -post_install()
    1.61 -{
    1.62 -	# Post message when installing.
    1.63 -	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.64 -        echo "/etc/init.d/$PACKAGE start"
    1.65 -	echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"	                        
    1.66 +	.------------------------------------------------.
    1.67 +	| To start portmap server you can run:           |
    1.68 +	|   /etc/init.d/portmap start                    |
    1.69 +	| or add portmap to RUN_DAEMONS in /etc/rcS.conf |
    1.70 +	'------------------------------------------------'
    1.71 +EOT
    1.72  }