From: Diego Elio Pettenò Date: Sun, 19 Nov 2006 17:02:29 +0000 (+0000) Subject: Add init.d and conf.d files for reverse ARP daemon (rarpd). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d12a8a63f7f4d838ebdd8c17d5b0bdf3f89d245a;p=gentoo.git Add init.d and conf.d files for reverse ARP daemon (rarpd). Package-Manager: portage-2.1.2_rc2 --- 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ò +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/Manifest b/sys-freebsd/freebsd-usbin/Manifest index 8ad4e5154458..d0543d5f868b 100644 --- a/sys-freebsd/freebsd-usbin/Manifest +++ b/sys-freebsd/freebsd-usbin/Manifest @@ -57,6 +57,14 @@ AUX pw.conf 179 RMD160 b40103a1c85c1b5e24ad60da82741ee744e46cb8 SHA1 f08952bb60e MD5 990afbd0fae94ba8dc2e77ad70bed008 files/pw.conf 179 RMD160 b40103a1c85c1b5e24ad60da82741ee744e46cb8 files/pw.conf 179 SHA256 0aa508e3911a80ccd1dc5005ec6f2e86e7c4fc5c99ca127f4d7e479d133c69ef files/pw.conf 179 +AUX rarpd.confd 269 RMD160 de16adb7bd4a7e2deea75fb6ba4d717582e376cf SHA1 b15f515e61c64bac9f7b2cb9a39d50a833649b21 SHA256 aa45f3085267be17d6549e05c5fbe21c4035b41c620023d76e38537fc82594cb +MD5 da16b87b1e974c523572a1ab545f8432 files/rarpd.confd 269 +RMD160 de16adb7bd4a7e2deea75fb6ba4d717582e376cf files/rarpd.confd 269 +SHA256 aa45f3085267be17d6549e05c5fbe21c4035b41c620023d76e38537fc82594cb files/rarpd.confd 269 +AUX rarpd.initd 766 RMD160 38914a84180d4c1f026426c867748ae265715f79 SHA1 6c7c8b1034bc36fac8460a5c5dc81d4b80033b30 SHA256 3f8ba48ab67c21dc5a874c665a7c240f26b13f31b6309c71f0af0eb1bcea5512 +MD5 e3ce50531ddf9309b8a14900d90c0877 files/rarpd.initd 766 +RMD160 38914a84180d4c1f026426c867748ae265715f79 files/rarpd.initd 766 +SHA256 3f8ba48ab67c21dc5a874c665a7c240f26b13f31b6309c71f0af0eb1bcea5512 files/rarpd.initd 766 AUX rpcbind.initd 639 RMD160 3901302ea80d110a83404a883c9ce32b8eb5dce1 SHA1 4d8109881c9a6893a860f191bb2fb51ddbffedb3 SHA256 435dbc12922affda1e915abf7fa2ae524e7637586832002404fe264570f0ff57 MD5 a416276060ff5fb771144bb9cf98fc34 files/rpcbind.initd 639 RMD160 3901302ea80d110a83404a883c9ce32b8eb5dce1 files/rpcbind.initd 639 @@ -108,14 +116,14 @@ EBUILD freebsd-usbin-6.2_beta3.ebuild 5313 RMD160 c9c49645034284bffa0c4b5ee6c46f MD5 e4f0999fe813959c418d24b671183bac freebsd-usbin-6.2_beta3.ebuild 5313 RMD160 c9c49645034284bffa0c4b5ee6c46fb67d955ee0 freebsd-usbin-6.2_beta3.ebuild 5313 SHA256 1f04d405e200c2fd40577001c9f6204804adb4a1035f55bc31cae0879619c3a0 freebsd-usbin-6.2_beta3.ebuild 5313 -EBUILD freebsd-usbin-6.2_rc1.ebuild 5311 RMD160 5e7c27783264bd966fbf1cccad9b93d81edeb27b SHA1 0558c7f2377a3a16fdbecf73f1954de3962fc072 SHA256 6d851908627ae3738602149d3ab3f653e3616149be37d7c00cd87c83b46b6b00 -MD5 92aa7b7aec363432c7a26d985d5f42e4 freebsd-usbin-6.2_rc1.ebuild 5311 -RMD160 5e7c27783264bd966fbf1cccad9b93d81edeb27b freebsd-usbin-6.2_rc1.ebuild 5311 -SHA256 6d851908627ae3738602149d3ab3f653e3616149be37d7c00cd87c83b46b6b00 freebsd-usbin-6.2_rc1.ebuild 5311 -MISC ChangeLog 11927 RMD160 07a822aa967af5c549e365e39d6e7cb41dead679 SHA1 83d2a5c7cf3f8bdc068ef681f33a1c41b1f2bba4 SHA256 083b2f2cc5be761d3036162bf3152a2df217a9d2795ee044280605c0bfbe0cd0 -MD5 546dc3f6d9b9b9503b72fd29687bcdce ChangeLog 11927 -RMD160 07a822aa967af5c549e365e39d6e7cb41dead679 ChangeLog 11927 -SHA256 083b2f2cc5be761d3036162bf3152a2df217a9d2795ee044280605c0bfbe0cd0 ChangeLog 11927 +EBUILD freebsd-usbin-6.2_rc1.ebuild 5317 RMD160 cc4c1662957305bf76175eb5e7cd9eab4b78eb26 SHA1 536f9d6d099267e011a762fb568415fe77dfd7bd SHA256 55110d76602d8fb7f8a6d8709afa43a5a3d41cee7a5f112d330e33765f956479 +MD5 10e666a2e5781a8bae0595417e21bc21 freebsd-usbin-6.2_rc1.ebuild 5317 +RMD160 cc4c1662957305bf76175eb5e7cd9eab4b78eb26 freebsd-usbin-6.2_rc1.ebuild 5317 +SHA256 55110d76602d8fb7f8a6d8709afa43a5a3d41cee7a5f112d330e33765f956479 freebsd-usbin-6.2_rc1.ebuild 5317 +MISC ChangeLog 12115 RMD160 b5cc3460da3f422906fff8769a17252ecdc43350 SHA1 ef4b622534416fc10450860bba386f1a4e11f5f9 SHA256 340ee5b74e0e015c8b1eb11a438f1dce6190dabbf1741efcc9545151a7d6cb09 +MD5 7c4aac6871bf49a7e21e33f469067890 ChangeLog 12115 +RMD160 b5cc3460da3f422906fff8769a17252ecdc43350 ChangeLog 12115 +SHA256 340ee5b74e0e015c8b1eb11a438f1dce6190dabbf1741efcc9545151a7d6cb09 ChangeLog 12115 MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 MD5 2bd48a5ae413433cbb36110b219ce97c metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 metadata.xml 156 @@ -132,7 +140,7 @@ SHA256 2bdda0b85b870524cda906fe90cc3c2659ef612c55be3acc7aa039fbb38aa797 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFFX7gUAiZjviIA2XgRAt1vAKC0wha7W3mrJ0eZuzB83mLvvo/xmwCfdu+2 -qyFYTN00myXVkjEWo3e6r+Y= -=Sg2a +iD8DBQFFYI40AiZjviIA2XgRAivHAKCAeyCh6nZuJFhOKsFNY9iQRDlLUQCgmCpy +fk2i2AAOMVcErtZMphVsUXY= +=D/0U -----END PGP SIGNATURE----- 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}