portmap: swith to OpenRC. Run portmap in a chroot.

--HG--
extra : convert_revision : 3ec821ec8d074cb16d5b0772892a09c9ccebe334
This commit is contained in:
Juan RP 2009-05-11 03:59:16 +02:00
parent e02ea7ddb8
commit aaded2a8c6
3 changed files with 20 additions and 17 deletions

View File

@ -1,14 +0,0 @@
#!/bin/sh
#
# PROVIDE: portmap
# REQUIRE: LOGIN DAEMON NETWORKING
# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name="portmap"
rcvar=$name
command="/sbin/$name"
load_rc_config $name
run_rc_command "$1"

View File

@ -0,0 +1,12 @@
#!/sbin/runscript
: ${portmap_args:=-t /var/chroot/portmap}
command=/sbin/portmap
command_args=$portmap_args
name="RPC Port mapper daemon"
depend()
{
need net
}

View File

@ -1,7 +1,7 @@
# Template file for 'portmap' # Template file for 'portmap'
pkgname=portmap pkgname=portmap
version=6.0 version=6.0
revision=1 revision=2
wrksrc="${pkgname}_${version}" wrksrc="${pkgname}_${version}"
distfiles="http://neil.brown.name/$pkgname/$pkgname-$version.tgz" distfiles="http://neil.brown.name/$pkgname/$pkgname-$version.tgz"
build_style=gnu_makefile build_style=gnu_makefile
@ -14,12 +14,17 @@ long_desc="
remote procedure calls between computer programs. It is use widely by NFS remote procedure calls between computer programs. It is use widely by NFS
and NIS, and assorted other systems." and NIS, and assorted other systems."
openrc_services="portmap default"
triggers="openrc-service"
Add_dependency full glibc Add_dependency full glibc
Add_dependency build tcp_wrappers Add_dependency build tcp_wrappers
Add_dependency run tcp_wrappers-libs Add_dependency run tcp_wrappers-libs
Add_dependency run OpenRC
post_install() post_install()
{ {
# Install the rc.d script. # Install the OpenRC service.
install -D -m755 ${FILESDIR}/portmap ${DESTDIR}/etc/rc.d/portmap install -D -m755 ${FILESDIR}/portmap.rc ${DESTDIR}/etc/init.d/portmap
install -d ${DESTDIR}/var/chroot/portmap
} }