From 8ca3a2acba9e6c01b778b81d42207a1b6e1ecc7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 20 Nov 2006 14:27:10 +0000 Subject: [PATCH] Add init script for bootp. Package-Manager: portage-2.1.2_rc2 --- sys-freebsd/freebsd-libexec/ChangeLog | 6 +++- sys-freebsd/freebsd-libexec/Manifest | 30 ++++++++++++------- .../freebsd-libexec/files/bootpd.confd | 9 ++++++ .../freebsd-libexec/files/bootpd.initd | 28 +++++++++++++++++ .../freebsd-libexec-6.2_rc1.ebuild | 5 +++- 5 files changed, 65 insertions(+), 13 deletions(-) create mode 100644 sys-freebsd/freebsd-libexec/files/bootpd.confd create mode 100644 sys-freebsd/freebsd-libexec/files/bootpd.initd diff --git a/sys-freebsd/freebsd-libexec/ChangeLog b/sys-freebsd/freebsd-libexec/ChangeLog index 78ce3757690a..4a7946dcd284 100644 --- a/sys-freebsd/freebsd-libexec/ChangeLog +++ b/sys-freebsd/freebsd-libexec/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-freebsd/freebsd-libexec # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.19 2006/11/19 01:37:43 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.20 2006/11/20 14:27:10 flameeyes Exp $ + + 20 Nov 2006; Diego Pettenò +files/bootpd.confd, + +files/bootpd.initd, freebsd-libexec-6.2_rc1.ebuild: + Add init script for bootp. *freebsd-libexec-6.2_rc1 (19 Nov 2006) diff --git a/sys-freebsd/freebsd-libexec/Manifest b/sys-freebsd/freebsd-libexec/Manifest index 33cbe5d41b8c..55bd08d7f557 100644 --- a/sys-freebsd/freebsd-libexec/Manifest +++ b/sys-freebsd/freebsd-libexec/Manifest @@ -1,6 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX bootpd.confd 308 RMD160 7dff83be49f40dbf2a429bfeebe0dc87818851e0 SHA1 243b929b6d30e24eb6b23378f0082c47a46704dd SHA256 469ab9c83c4ca6f13efd175b0a04acc61e2da8d9852d6b4444750026bfaa4391 +MD5 2bb09c900d93c1b68c53ec1bbb09414d files/bootpd.confd 308 +RMD160 7dff83be49f40dbf2a429bfeebe0dc87818851e0 files/bootpd.confd 308 +SHA256 469ab9c83c4ca6f13efd175b0a04acc61e2da8d9852d6b4444750026bfaa4391 files/bootpd.confd 308 +AUX bootpd.initd 677 RMD160 747874a3342339d5ef813d9109c7de1ee12d9f01 SHA1 828f409e109a9c95e6c44a6623d37b8c635f9c88 SHA256 c272bcf298cb8b1e6514b4e7ff05d29f015f98e4da5192d354610184065f9fb8 +MD5 3bdf77601aaec8c10fa5ae95d1f25ce8 files/bootpd.initd 677 +RMD160 747874a3342339d5ef813d9109c7de1ee12d9f01 files/bootpd.initd 677 +SHA256 c272bcf298cb8b1e6514b4e7ff05d29f015f98e4da5192d354610184065f9fb8 files/bootpd.initd 677 AUX freebsd-libexec-5.3_rc1-ypxfr-makefile.patch 263 RMD160 40b586d5036d1456df7479339a3a11d82fae038e SHA1 4dee4c5dc1fff2262c91ef6c2eae30eea5267d4f SHA256 15903b83aff510790a8d3c18c3c34e352f35a5d8d07528ce0e243a07bf1cdb08 MD5 5d5db03a0ec099511d480ed697158c2f files/freebsd-libexec-5.3_rc1-ypxfr-makefile.patch 263 RMD160 40b586d5036d1456df7479339a3a11d82fae038e files/freebsd-libexec-5.3_rc1-ypxfr-makefile.patch 263 @@ -54,14 +62,14 @@ EBUILD freebsd-libexec-6.2_beta3.ebuild 1705 RMD160 4b17def096ce608f0976b3f0102d MD5 8469dd545c9fd6b56b833d3e925bad22 freebsd-libexec-6.2_beta3.ebuild 1705 RMD160 4b17def096ce608f0976b3f0102d07e7990f5b46 freebsd-libexec-6.2_beta3.ebuild 1705 SHA256 f4b25737b0d24690ece5ba56302eacb813aa3ed4f6f5f09242bd15e29c53f6d4 freebsd-libexec-6.2_beta3.ebuild 1705 -EBUILD freebsd-libexec-6.2_rc1.ebuild 1703 RMD160 69d1ff6d816d09c446221a6f4e5a2bc311f66e4f SHA1 ec70b8e79e7e3c5e0ab4a1c308a7f3d7cae5869f SHA256 36f59e0eef05d28d3f51b72bfdaba0abbc9aeba08b419677553add4c7c9da39c -MD5 4be4814b36499abe92df50c96dbf4a4a freebsd-libexec-6.2_rc1.ebuild 1703 -RMD160 69d1ff6d816d09c446221a6f4e5a2bc311f66e4f freebsd-libexec-6.2_rc1.ebuild 1703 -SHA256 36f59e0eef05d28d3f51b72bfdaba0abbc9aeba08b419677553add4c7c9da39c freebsd-libexec-6.2_rc1.ebuild 1703 -MISC ChangeLog 5349 RMD160 e706b9f0ffe0b46723c0442e89546e61bac71945 SHA1 4999364a110dcf8640387e974b4405d809bafd84 SHA256 78f80588592e16f3ef1cab8c661c6a24322b77c5f5ae93103e95896bd15cad2e -MD5 2614ed1dd3752b7d0beb6c6d43e2a5fe ChangeLog 5349 -RMD160 e706b9f0ffe0b46723c0442e89546e61bac71945 ChangeLog 5349 -SHA256 78f80588592e16f3ef1cab8c661c6a24322b77c5f5ae93103e95896bd15cad2e ChangeLog 5349 +EBUILD freebsd-libexec-6.2_rc1.ebuild 1778 RMD160 e1cbda932e03677754c10a02e39f84335ca778bf SHA1 26496eaf6fce2b8ccd912345995219114c5769ec SHA256 7a4944960c005ea15ac8defe1ac1b5c46db66930b2a15fa3d7da7ac438cf21e2 +MD5 9b2d2af3ed9c65a0d25331b82eaf46ac freebsd-libexec-6.2_rc1.ebuild 1778 +RMD160 e1cbda932e03677754c10a02e39f84335ca778bf freebsd-libexec-6.2_rc1.ebuild 1778 +SHA256 7a4944960c005ea15ac8defe1ac1b5c46db66930b2a15fa3d7da7ac438cf21e2 freebsd-libexec-6.2_rc1.ebuild 1778 +MISC ChangeLog 5508 RMD160 3184c8cf3d042ac6da80248e5369683d9198a937 SHA1 c433bcf98e4e1773d9c3a7c96057baf03a388ccf SHA256 6cf9c94abacf1898075d883187451827ed2e6ccd59c756476f9c6c999b376d77 +MD5 54ee7d0fd5f60703b76f246585c21f10 ChangeLog 5508 +RMD160 3184c8cf3d042ac6da80248e5369683d9198a937 ChangeLog 5508 +SHA256 6cf9c94abacf1898075d883187451827ed2e6ccd59c756476f9c6c999b376d77 ChangeLog 5508 MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 MD5 2bd48a5ae413433cbb36110b219ce97c metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 metadata.xml 156 @@ -78,7 +86,7 @@ SHA256 95d5c2f2c2877450f665037f8ef87bd2aa977a567de6764df05ede0312185b3f files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFFX7V5AiZjviIA2XgRAiZeAJwNR/ThXmX3j6byqJayOE2fEzFmzACgkwNX -3Th8xRGIvTN18dF2AjzOuZY= -=3D3+ +iD8DBQFFYbtMAiZjviIA2XgRAsz0AKCeReCRaFjbdwqZLw0D8NE7VFCMZACgmpOA +gtVhAGC0WKfHp9hJTngj6s8= +=ZWsU -----END PGP SIGNATURE----- diff --git a/sys-freebsd/freebsd-libexec/files/bootpd.confd b/sys-freebsd/freebsd-libexec/files/bootpd.confd new file mode 100644 index 000000000000..1dcd1e1c237c --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/bootpd.confd @@ -0,0 +1,9 @@ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/files/bootpd.confd,v 1.1 2006/11/20 14:27:10 flameeyes Exp $ + +# Configuration file for /etc/init.d/bootpd + +# Name of the configuration file for bootpd +# BOOTPTAB_FILE="/etc/bootptab" + +# Options to pass to bootpd. See bootpd(8). +# BOOTPD_OPTS="" diff --git a/sys-freebsd/freebsd-libexec/files/bootpd.initd b/sys-freebsd/freebsd-libexec/files/bootpd.initd new file mode 100644 index 000000000000..c8cf16abb79b --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/bootpd.initd @@ -0,0 +1,28 @@ +#!/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-libexec/files/bootpd.initd,v 1.1 2006/11/20 14:27:10 flameeyes Exp $ + +depend() { + need net +} + +start() { + local bootptab=${BOOTPTAB_FILE:-/etc/bootptab} + + if ! [[ -f ${bootptab} ]]; then + eerror "Unable to find the bootptab file: ${bootptab}" + eend 1 + return 1 + fi + + ebegin "Starting BOOTP server" + start-stop-daemon --start --exec /usr/libexec/bootpd -- ${BOOTPD_OPTS} ${bootptab} + eend $? +} + +stop() { + ebegin "Stopping BOOTP server" + start-stop-daemon --stop --exec /usr/libexec/bootpd + eend $? +} diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-6.2_rc1.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-6.2_rc1.ebuild index 335d50243a20..0160e09d26c1 100644 --- a/sys-freebsd/freebsd-libexec/freebsd-libexec-6.2_rc1.ebuild +++ b/sys-freebsd/freebsd-libexec/freebsd-libexec-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-libexec/freebsd-libexec-6.2_rc1.ebuild,v 1.1 2006/11/19 01:37:43 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/freebsd-libexec-6.2_rc1.ebuild,v 1.2 2006/11/20 14:27:10 flameeyes Exp $ inherit bsdmk freebsd pam @@ -54,6 +54,9 @@ REMOVE_SUBDIRS="smrsh mail.local tcpd telnetd rshd rlogind lukemftpd ftpd" src_install() { freebsd_src_install + newinitd "${FILESDIR}/bootpd.initd" + newconfd "${FILESDIR}/bootpd.confd" + insinto /etc cd "${WORKDIR}/etc" doins gettytab -- 2.26.2