wok diff portmap/receipt @ rev 171

Add : portmap and unfs3
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 31 22:42:51 2008 +0100 (2008-01-31)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/portmap/receipt	Thu Jan 31 22:42:51 2008 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="portmap"
     1.7 +VERSION="5beta"
     1.8 +CATEGORY="extra"
     1.9 +SHORT_DESC=""
    1.10 +MAINTAINER="Erjo <erjo@slitaz.org>"
    1.11 +DEPENDS=""
    1.12 +TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    1.13 +WEB_SITE="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/portmap.html"
    1.14 +WGET_URL="ftp://ftp.porcupine.org/pub/security/${TARBALL}"
    1.15 +
    1.16 +# rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	# Overwriting default $src definition
    1.20 +	
    1.21 +	src=${PACKAGE}_${VERSION}	
    1.22 +	cd $src
    1.23 +	
    1.24 +	# Applying some patches 
    1.25 +	# see Beyond Linux From Scratch for details.
    1.26 +	patch -Np1 -i ../stuff/portmap-5beta-compilation_fixes-3.patch
    1.27 +	patch -Np1 -i ../stuff/portmap-5beta-glibc_errno_fix-1.patch
    1.28 +	patch -Np1 -i ../stuff/portmap-5beta-disable-tcp_wrapper.patch
    1.29 +	
    1.30 +	# Build e
    1.31 +	make
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	src=${PACKAGE}_${VERSION}	
    1.38 +	_pkg=${PACKAGE}_${VERSION}/_pkg	
    1.39 +	
    1.40 +
    1.41 +	mkdir -p $fs/usr/sbin
    1.42 +	cp -a $src/pmap_dump $fs/usr/sbin
    1.43 +	cp -a $src/pmap_set $fs/usr/sbin
    1.44 +	cp -a $src/portmap $fs/usr/sbin
    1.45 +	strip -s $fs/usr/sbin/*
    1.46 +	
    1.47 +	mkdir -p $fs/etc
    1.48 +	cp -a stuff/init.d $fs/etc
    1.49 +}
    1.50 +
    1.51 +
    1.52 +post_install()
    1.53 +{
    1.54 +	local root
    1.55 +	root=$1
    1.56 +	echo "Processing some post-install commands..."
    1.57 +	
    1.58 +	chown root.root $root/etc/init.d/portmap
    1.59 +	chmod 0755 $root/etc/init.d/portmap
    1.60 +	
    1.61 +	# Post message when installing.
    1.62 +	echo -e "\nTo starts $PACKAGE server you can run :\n"
    1.63 +        echo "/etc/init.d/$PACKAGE start"
    1.64 +	echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
    1.65 +	                        
    1.66 +}