diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-11-19 17:02:29 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-11-19 17:02:29 +0000 |
commit | f446390e2b4e0154095b87cb5350d7cf7ce016a3 (patch) | |
tree | a412c4192444cf3b958435e9571912f6d10a03f1 /sys-freebsd/freebsd-usbin | |
parent | Stable on hppa. (diff) | |
download | gentoo-2-f446390e2b4e0154095b87cb5350d7cf7ce016a3.tar.gz gentoo-2-f446390e2b4e0154095b87cb5350d7cf7ce016a3.tar.bz2 gentoo-2-f446390e2b4e0154095b87cb5350d7cf7ce016a3.zip |
Add init.d and conf.d files for reverse ARP daemon (rarpd).
(Portage version: 2.1.2_rc2)
Diffstat (limited to 'sys-freebsd/freebsd-usbin')
-rw-r--r-- | sys-freebsd/freebsd-usbin/ChangeLog | 6 | ||||
-rw-r--r-- | sys-freebsd/freebsd-usbin/files/rarpd.confd | 7 | ||||
-rw-r--r-- | sys-freebsd/freebsd-usbin/files/rarpd.initd | 32 | ||||
-rw-r--r-- | sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild | 4 |
4 files changed, 46 insertions, 3 deletions
diff --git a/sys-freebsd/freebsd-usbin/ChangeLog b/sys-freebsd/freebsd-usbin/ChangeLog index 13a0f53be4f8..986e9b89a12f 100644 --- a/sys-freebsd/freebsd-usbin/ChangeLog +++ b/sys-freebsd/freebsd-usbin/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-freebsd/freebsd-usbin # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.31 2006/11/19 01:48:41 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.32 2006/11/19 17:02:29 flameeyes Exp $ + + 19 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> +files/rarpd.confd, + +files/rarpd.initd, freebsd-usbin-6.2_rc1.ebuild: + Add init.d and conf.d files for reverse ARP daemon (rarpd). *freebsd-usbin-6.2_rc1 (19 Nov 2006) diff --git a/sys-freebsd/freebsd-usbin/files/rarpd.confd b/sys-freebsd/freebsd-usbin/files/rarpd.confd new file mode 100644 index 000000000000..63c7fac4883b --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/rarpd.confd @@ -0,0 +1,7 @@ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/rarpd.confd,v 1.1 2006/11/19 17:02:29 flameeyes Exp $ + +# Configuration file for /etc/init.d/rarpd + +# To start rarpd only for a given interface, set the +# following variable +# RARPD_ONLY_INTERFACE="rl0" diff --git a/sys-freebsd/freebsd-usbin/files/rarpd.initd b/sys-freebsd/freebsd-usbin/files/rarpd.initd new file mode 100644 index 000000000000..34105eb838d9 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/rarpd.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/rarpd.initd,v 1.1 2006/11/19 17:02:29 flameeyes Exp $ + +depend() { + if [[ -z ${RARPD_ONLY_INTERFACE} ]]; then + need net + else + need net."${RARPD_ONLY_INTERFACE}" + fi +} + +start() { + local rarpd_opts + + if [[ -z ${RARPD_ONLY_INTERFACE} ]]; then + rarpd_opts="${rarpd_opts} -a" + else + rarpd_opts="${rarpd_opts} ${RARPD_ONLY_INTERFACE}" + fi + + ebegin "Starting reverse ARP daemon" + start-stop-daemon --start --exec /usr/sbin/rarpd -- ${rarpd_opts} + eend $? +} + +stop() { + ebegin "Stopping reverse ARP daemon" + start-stop-daemon --stop --exec /usr/sbin/rarpd -- ${rarpd_opts} + eend $? +} diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild index dd24152fa63e..792ccf8d3901 100644 --- a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild +++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild,v 1.1 2006/11/19 01:48:41 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_rc1.ebuild,v 1.2 2006/11/19 17:02:29 flameeyes Exp $ inherit bsdmk freebsd flag-o-matic eutils @@ -109,7 +109,7 @@ src_install() { # in the wrong place, just put it in the doc directory. mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed" - for util in nfs nfsmount rpcbind syslogd moused powerd syscons; do + for util in nfs nfsmount rpcbind syslogd moused powerd syscons rarpd; do newinitd ${FILESDIR}/${util}.initd ${util} [[ -e ${FILESDIR}/${util}.confd ]] && \ newconfd ${FILESDIR}/${util}.confd ${util} |