wok diff portmap/receipt @ rev 174
Typo in patch disable-tcp_wrapper
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Feb 01 12:12:28 2008 +0100 (2008-02-01) |
parents | |
children | 0a43c4b80c53 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/portmap/receipt Fri Feb 01 12:12:28 2008 +0100 1.3 @@ -0,0 +1,65 @@ 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 +src=${PACKAGE}_${VERSION} 1.17 + 1.18 +# rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + # Ovewriting default $src definition 1.22 + 1.23 + src=${PACKAGE}_${VERSION} 1.24 + cd $src 1.25 + 1.26 + # Applying some patches 1.27 + # see Beyond Linux From Scratch for details. 1.28 + patch -Np1 -i ../stuff/portmap-5beta-compilation_fixes-3.patch 1.29 + patch -Np1 -i ../stuff/portmap-5beta-glibc_errno_fix-1.patch 1.30 + patch -Np1 -i ../stuff/portmap-5beta-disable-tcp_wrapper.patch 1.31 + 1.32 + # Build e 1.33 + make 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + src=${PACKAGE}_${VERSION} 1.40 + _pkg=${PACKAGE}_${VERSION}/_pkg 1.41 + 1.42 + 1.43 + mkdir -p $fs/usr/sbin 1.44 + cp -a $src/pmap_dump $fs/usr/sbin 1.45 + cp -a $src/pmap_set $fs/usr/sbin 1.46 + cp -a $src/portmap $fs/usr/sbin 1.47 + strip -s $fs/usr/sbin/* 1.48 + 1.49 + mkdir -p $fs/etc 1.50 + cp -a stuff/init.d $fs/etc 1.51 +} 1.52 + 1.53 + 1.54 +post_install() 1.55 +{ 1.56 + local root 1.57 + root=$1 1.58 + echo "Processing some post-install commands..." 1.59 + 1.60 + chown root.root $root/etc/init.d/portmap 1.61 + chmod 0755 $root/etc/init.d/portmap 1.62 + 1.63 + # Post message when installing. 1.64 + echo -e "\nTo starts $PACKAGE server you can run :\n" 1.65 + echo "/etc/init.d/$PACKAGE start" 1.66 + echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" 1.67 + 1.68 +}