diff --git a/templates/portmap/build.diff b/templates/portmap/build.diff new file mode 100644 index 00000000000..3f73d662a70 --- /dev/null +++ b/templates/portmap/build.diff @@ -0,0 +1,31 @@ +--- Makefile.orig 2009-03-14 01:28:57.237390838 +0100 ++++ Makefile 2009-03-14 01:30:27.492620161 +0100 +@@ -18,6 +18,9 @@ FACILITY=LOG_DAEMON + # target system will never user NIS for hostname lookup, you can define + # USE_DNS to add hostname tests in hosts.allow/deny. + ++USE_DNS=yes ++RPCUSER=nobody ++ + ifeq ($(NO_TCP_WRAPPER),) + CPPFLAGS += -DHOSTS_ACCESS + WRAP_LIB = -lwrap +@@ -136,12 +139,12 @@ portmap.man : portmap.8 + sed $(MAN_SED) < portmap.8 > portmap.man + + install: all +- install -o root -g root -m 0755 -s portmap ${BASEDIR}/sbin +- install -o root -g root -m 0755 -s pmap_dump ${BASEDIR}/sbin +- install -o root -g root -m 0755 -s pmap_set ${BASEDIR}/sbin +- install -o root -g root -m 0644 portmap.man ${BASEDIR}/usr/share/man/man8/portmap.8 +- install -o root -g root -m 0644 pmap_dump.8 ${BASEDIR}/usr/share/man/man8 +- install -o root -g root -m 0644 pmap_set.8 ${BASEDIR}/usr/share/man/man8 ++ install -D -m 0755 -s portmap ${BASEDIR}/sbin/portmap ++ install -D -m 0755 -s pmap_dump ${BASEDIR}/sbin/pmap_dump ++ install -D -m 0755 -s pmap_set ${BASEDIR}/sbin/pmap_set ++ install -D -m 0644 portmap.man ${BASEDIR}/usr/share/man/man8/portmap.8 ++ install -D -m 0644 pmap_dump.8 ${BASEDIR}/usr/share/man/man8/pmap_dump.8 ++ install -D -m 0644 pmap_set.8 ${BASEDIR}/usr/share/man/man8/pmap_set.8 + + clean: + rm -f *.o portmap pmap_dump pmap_set from_local \ diff --git a/templates/portmap/files/portmap b/templates/portmap/files/portmap new file mode 100755 index 00000000000..e30ff28cfde --- /dev/null +++ b/templates/portmap/files/portmap @@ -0,0 +1,13 @@ +#!/bin/sh +# +# PROVIDE: portmap +# REQUIRE: LOGIN DAEMON NETWORKING + +$_rc_subr_loaded . /etc/rc.subr + +name="portmap" +rcvar=$name +command="/sbin/$name" + +load_rc_config $name +run_rc_command "$1" diff --git a/templates/portmap/template b/templates/portmap/template new file mode 100644 index 00000000000..69d20c512cf --- /dev/null +++ b/templates/portmap/template @@ -0,0 +1,24 @@ +# Template file for 'portmap' +pkgname=portmap +version=6.0 +wrksrc="${pkgname}_${version}" +distfiles="http://neil.brown.name/$pkgname/$pkgname-$version.tgz" +build_style=gnu_makefile +make_install_target="BASEDIR=$XBPS_DESTDIR/$pkgname-$version install" +short_desc="RPC connection manager" +maintainer="Juan RP " +checksum=02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a281d41de +long_desc=" + portmap is a part of the ONCRPC collection of software for implementing + remote procedure calls between computer programs. It is use widely by NFS + and NIS, and assorted other systems." + +Add_dependency full glibc +Add_dependency build tcp_wrappers +Add_dependency run tcp_wrappers-libs + +post_install() +{ + # Install the rc.d script. + install -D -m755 ${FILESDIR}/portmap ${DESTDIR}/etc/rc.d/portmap +}