diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-04-06 14:47:17 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-04-06 14:47:17 +0000 |
commit | f76d6ac1335bb2d2eb834950a47c3efef979f8f2 (patch) | |
tree | 2681702c93dfe5cc789f1b654759aeee52721453 /sys-freebsd | |
parent | Version bump (diff) | |
download | gentoo-2-f76d6ac1335bb2d2eb834950a47c3efef979f8f2.tar.gz gentoo-2-f76d6ac1335bb2d2eb834950a47c3efef979f8f2.tar.bz2 gentoo-2-f76d6ac1335bb2d2eb834950a47c3efef979f8f2.zip |
Bump for non bash init scripts and smbfs.
(Portage version: 2.1.2.3)
Diffstat (limited to 'sys-freebsd')
-rw-r--r-- | sys-freebsd/freebsd-usbin/ChangeLog | 8 | ||||
-rw-r--r-- | sys-freebsd/freebsd-usbin/files/digest-freebsd-usbin-6.2-r1 | 27 | ||||
-rwxr-xr-x | sys-freebsd/freebsd-usbin/files/nfs.initd | 26 | ||||
-rwxr-xr-x | sys-freebsd/freebsd-usbin/files/nfsmount.initd | 14 | ||||
-rw-r--r-- | sys-freebsd/freebsd-usbin/freebsd-usbin-6.2-r1.ebuild | 179 |
5 files changed, 233 insertions, 21 deletions
diff --git a/sys-freebsd/freebsd-usbin/ChangeLog b/sys-freebsd/freebsd-usbin/ChangeLog index 0bfb4273a6e4..8c96fe43da4a 100644 --- a/sys-freebsd/freebsd-usbin/ChangeLog +++ b/sys-freebsd/freebsd-usbin/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-freebsd/freebsd-usbin # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.43 2007/03/01 09:08:54 drizzt Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.44 2007/04/06 14:47:17 uberlord Exp $ + +*freebsd-usbin-6.2-r1 (06 Apr 2007) + + 06 Apr 2007; Roy Marples <uberlord@gentoo.org> files/nfs.initd, + files/nfsmount.initd, +freebsd-usbin-6.2-r1.ebuild: + Bump for non bash init scripts and smbfs. 01 Mar 2007; Timothy Redaelli <drizzt@gentoo.org> freebsd-usbin-6.2.ebuild: diff --git a/sys-freebsd/freebsd-usbin/files/digest-freebsd-usbin-6.2-r1 b/sys-freebsd/freebsd-usbin/files/digest-freebsd-usbin-6.2-r1 new file mode 100644 index 000000000000..c3de4732eb20 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/digest-freebsd-usbin-6.2-r1 @@ -0,0 +1,27 @@ +MD5 da39228784512bd5bb4fba41f84d70d5 freebsd-contrib-6.2.tar.bz2 36594160 +RMD160 8b89f1ac72ba0054efe1aec2d747ecd33789fde3 freebsd-contrib-6.2.tar.bz2 36594160 +SHA256 dbbd9198597e176242806329242d0e12181820a921e5da42aadefaacda1b6277 freebsd-contrib-6.2.tar.bz2 36594160 +MD5 a25ab389e5f4ebef301abe071b4c196e freebsd-etc-6.2.tar.bz2 190297 +RMD160 1540601566ece689b3fc2935329a2eca62a24314 freebsd-etc-6.2.tar.bz2 190297 +SHA256 ff5970db1d7842d2933589203ae0c3907dee427b2ea99de68fce678582bf1804 freebsd-etc-6.2.tar.bz2 190297 +MD5 35378351a7ff00643f6149fe2a2d5998 freebsd-include-6.2.tar.bz2 131651 +RMD160 9264ba0661bbdceba85c4bef19a2ebd788ec6957 freebsd-include-6.2.tar.bz2 131651 +SHA256 38928510c34efd735a977896a9f96e71b48c22cf4727677ee954a23aff871d53 freebsd-include-6.2.tar.bz2 131651 +MD5 63b8b5552e729be41b98a73665bcd422 freebsd-lib-6.2.tar.bz2 2670374 +RMD160 95bbce7862fc7a406b8629914f281d5e01e5ea71 freebsd-lib-6.2.tar.bz2 2670374 +SHA256 8e0c909a79a9ed18841f8a5a6e25fc770f76de1a5dc20cbd6bc591bed52d1033 freebsd-lib-6.2.tar.bz2 2670374 +MD5 5cad9ad0ed76a85bf9188020ed9be879 freebsd-libexec-6.2.tar.bz2 277231 +RMD160 423490cb7c888bfce7edcf473d77868c65c21fe2 freebsd-libexec-6.2.tar.bz2 277231 +SHA256 546821f50ff3e69cebd59e1415798233050259de33a4b37acfcbd56b8d92782b freebsd-libexec-6.2.tar.bz2 277231 +MD5 b128d77e13f4956dd8ff60c4b4a670da freebsd-sbin-6.2.tar.bz2 1162548 +RMD160 f7d5f4ea5e4b5e03910a44a127b5670f8d6ebf2c freebsd-sbin-6.2.tar.bz2 1162548 +SHA256 aef424c07686bb72fbd06e4fd66a01b00bd36b70fec02ebdc228061cd4b435dd freebsd-sbin-6.2.tar.bz2 1162548 +MD5 79c16213744e76d3bf13a9ac21ede56d freebsd-sys-6.2.tar.bz2 18344936 +RMD160 784230e22ccaf09933ef3f053ff29cc3e579786a freebsd-sys-6.2.tar.bz2 18344936 +SHA256 a754371d88601aaab7152bb3d127bd3777db912e13a26a866e13ba34934c5e5b freebsd-sys-6.2.tar.bz2 18344936 +MD5 c6c8f8a7218d2294e499f80a2c77def3 freebsd-ubin-6.2.tar.bz2 1772844 +RMD160 8101bc3e98fa485e31ecf0d5529136ddeb4be5b9 freebsd-ubin-6.2.tar.bz2 1772844 +SHA256 446c1a8c7031defda8b184ccf4535cacf651928f324db6ce0aaec3b87b04d9ae freebsd-ubin-6.2.tar.bz2 1772844 +MD5 a1596f3407f95b33f927afc0e3eff428 freebsd-usbin-6.2.tar.bz2 2695872 +RMD160 ea6104fcfbf6c0be511a80d0475e5a8f716292be freebsd-usbin-6.2.tar.bz2 2695872 +SHA256 6195301d39e7bc7fa00f6dec71479b1800ea5c3dc9d3ea375dafe4e71e6485f0 freebsd-usbin-6.2.tar.bz2 2695872 diff --git a/sys-freebsd/freebsd-usbin/files/nfs.initd b/sys-freebsd/freebsd-usbin/files/nfs.initd index 77f51c723fb8..d99017f9d0ad 100755 --- a/sys-freebsd/freebsd-usbin/files/nfs.initd +++ b/sys-freebsd/freebsd-usbin/files/nfs.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/nfs.initd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/nfs.initd,v 1.2 2007/04/06 14:47:17 uberlord Exp $ #--------------------------------------------------------------------------- # This script starts/stops the following @@ -34,11 +34,11 @@ depend() { } start_idmapd() { - [[ ! -x ${idmapd} ]] && return 0 + [ ! -x "${idmapd}" ] && return 0 if grep -q rpc_pipefs /proc/filesystems ; then if ! grep -q "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then - [[ ! -d /var/lib/nfs/rpc_pipefs ]] && mkdir -p /var/lib/nfs/rpc_pipefs + [ ! -d /var/lib/nfs/rpc_pipefs ] && mkdir -p /var/lib/nfs/rpc_pipefs ebegin "Mounting RPC pipefs" mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs eend $? @@ -51,14 +51,14 @@ start_idmapd() { } stop_idmapd() { - [[ ! -x ${idmapd} ]] && return 0 + [ ! -x ${idmapd} ] && return 0 ebegin "Stopping idmapd" start-stop-daemon --stop --quiet --exec ${idmapd} ret=$? eend ${ret} - if [[ $restarting == "no" ]] ; then + if [ $restarting = "no" -a "${RC_CMD}" != "restart" ] ; then if grep -q "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then ebegin "Unmounting RPC pipefs" umount /var/lib/nfs/rpc_pipefs @@ -71,7 +71,7 @@ stop_idmapd() { start_statd() { # Don't start rpc.statd if already started by init.d/nfsmount - killall -0 rpc.statd &>/dev/null && return 0 + killall -0 rpc.statd 2>/dev/null && return 0 ebegin "Starting NFS statd" start-stop-daemon --start --quiet --exec \ $statd -- $RPCSTATDOPTS 1>&2 @@ -82,7 +82,7 @@ stop_statd() { # Don't stop rpc.statd if it's in use by init.d/nfsmount. mount -t nfs | grep -q . && return 0 # Make sure it's actually running - killall -0 rpc.statd &>/dev/null || return 0 + killall -0 rpc.statd 2>/dev/null || return 0 # Okay, all tests passed, stop rpc.statd ebegin "Stopping NFS statd" start-stop-daemon --stop --quiet --exec $statd 1>&2 @@ -91,7 +91,7 @@ stop_statd() { waitfor_exportfs() { local pid=$1 - ( sleep ${EXPORTFSTIMEOUT:-30}; kill -9 $pid &>/dev/null ) & + ( sleep ${EXPORTFSTIMEOUT:-30}; kill -9 $pid 2>/dev/null ) & wait $1 } @@ -102,8 +102,8 @@ start() { fi # This is the new "kernel 2.6 way" to handle the exports file - if grep -q nfsd /proc/filesystems &>/dev/null; then - if ! grep -q "nfsd /proc/fs/nfs" /proc/mounts &>/dev/null; then + if grep -q nfsd /proc/filesystems 2>/dev/null; then + if ! grep -q "nfsd /proc/fs/nfs" /proc/mounts 2>/dev/null; then ebegin "Mounting nfsd filesystem in /proc" mount -t nfsd nfsd /proc/fs/nfs eend $? "Error mounting nfsd filesystem in /proc" @@ -117,14 +117,14 @@ start() { # Exportfs likes to hang if networking isn't working. # If that's the case, then try to kill it so the # bootup process can continue. - if grep -q '^/' /etc/exports &>/dev/null; then + if grep -q '^/' /etc/exports 2>/dev/null; then ebegin "Exporting NFS directories" $exportfs -r 1>&2 & waitfor_exportfs $! eend $? "Error exporting NFS directories" fi - if [ -x $rquotad ]; then + if [ -x "${rquotad}" ]; then ebegin "Starting NFS rquotad" start-stop-daemon --start --quiet --exec \ $rquotad -- $RPCRQUOTADOPTS 1>&2 @@ -177,7 +177,7 @@ stop() { # then "exportfs -r" will reread the xtab, and all the current # clients will be able to resume NFS activity, *without* needing # to umount/(re)mount the filesystem. - if [ "$restarting" = no ]; then + if [ "$restarting" = no -a "${RC_CMD}" != "restart" ]; then ebegin "Unexporting NFS directories" # Exportfs likes to hang if networking isn't working. # If that's the case, then try to kill it so the diff --git a/sys-freebsd/freebsd-usbin/files/nfsmount.initd b/sys-freebsd/freebsd-usbin/files/nfsmount.initd index a17dff3957a4..9208804d6627 100755 --- a/sys-freebsd/freebsd-usbin/files/nfsmount.initd +++ b/sys-freebsd/freebsd-usbin/files/nfsmount.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/nfsmount.initd,v 1.2 2007/02/23 14:03:08 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/nfsmount.initd,v 1.3 2007/04/06 14:47:17 uberlord Exp $ depend() { need net rpcbind @@ -10,7 +10,7 @@ depend() { start_statd() { # Don't start rpc.statd if already started by init.d/nfs - killall -0 rpc.statd &>/dev/null && return 0 + killall -0 rpc.statd 2>/dev/null && return 0 ebegin "Starting NFS statd" rpc.statd eend $? "Error starting NFS statd" @@ -18,9 +18,9 @@ start_statd() { stop_statd() { # Don't stop rpc.statd if it's in use by init.d/nfs - killall -0 nfsd &>/dev/null && return 0 + killall -0 nfsd 2>/dev/null && return 0 # Make sure it's actually running - killall -0 rpc.statd &>/dev/null || return 0 + killall -0 rpc.statd 2>/dev/null || return 0 # Okay, all tests passed, stop rpc.statd ebegin "Stopping NFS statd" killall rpc.statd @@ -29,7 +29,7 @@ stop_statd() { start_lockd() { # Don't start rpc.lockd if already started by init.d/nfs - killall -0 rpc.lockd &>/dev/null && return 0 + killall -0 rpc.lockd 2>/dev/null && return 0 ebegin "Starting NFS lockd" rpc.lockd eend $? "Error starting NFS lockd" @@ -37,9 +37,9 @@ start_lockd() { stop_lockd() { # Don't stop rpc.lockd if it's in use by init.d/nfs - killall -0 nfsd &>/dev/null && return 0 + killall -0 nfsd 2>/dev/null && return 0 # Make sure it's actually running - killall -0 rpc.lockd &>/dev/null || return 0 + killall -0 rpc.lockd 2>/dev/null || return 0 # Okay, all tests passed, stop rpc.lockd ebegin "Stopping NFS lockd" killall rpc.lockd diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2-r1.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2-r1.ebuild new file mode 100644 index 000000000000..2ce7bede3356 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2-r1.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2007 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-r1.ebuild,v 1.1 2007/04/06 14:47:17 uberlord Exp $ + +inherit bsdmk freebsd flag-o-matic eutils + +DESCRIPTION="FreeBSD /usr/sbin tools" +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" + +IUSE="atm bluetooth tcpd ssl usb ipv6 acpi ipfilter isdn pam ssl radius + minimal ipsec nis pam suid nat radius build" + +SRC_URI="mirror://gentoo/${P}.tar.bz2 + mirror://gentoo/${CONTRIB}.tar.bz2 + mirror://gentoo/${UBIN}.tar.bz2 + mirror://gentoo/${LIB}.tar.bz2 + mirror://gentoo/${SBIN}.tar.bz2 + mirror://gentoo/${ETC}.tar.bz2 + nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 ) + build? ( mirror://gentoo/${SYS}.tar.bz2 + mirror://gentoo/${INCLUDE}.tar.bz2 )" + +RDEPEND="=sys-freebsd/freebsd-lib-${RV}* + =sys-freebsd/freebsd-libexec-${RV}* + build? ( virtual/baselayout ) + ssl? ( dev-libs/openssl ) + tcpd? ( sys-apps/tcp-wrappers ) + dev-libs/libedit + net-libs/libpcap" +DEPEND="${RDEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}* + !build? ( =sys-freebsd/freebsd-sources-${RV}* ) + sys-apps/texinfo + sys-devel/flex" + +PROVIDE="virtual/logger" + +S="${WORKDIR}/usr.sbin" + +pkg_setup() { + # Release crunch is something like minimal. It seems to remove everything + # which is not needed to work. + use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= " + + use atm || mymakeopts="${mymakeopts} NO_ATM= " + use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= " + use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " + use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= " + use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= " + use usb || mymakeopts="${mymakeopts} NO_USB= " + use acpi || mymakeopts="${mymakeopts} NO_ACPI= " + use isdn || mymakeopts="${mymakeopts} NO_I4B= " + use pam || mymakeopts="${mymakeopts} NO_PAM= " + use radius || mymakeopts="${mymakeopts} NO_RADIUS= " + use suid || mymakeopts="${mymakeopts} NO_SUID= " + use ipsec || mymakeopts="${mymakeopts} NO_IPSEC= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " + use nat || mymakeopts="${mymakeopts} NO_NAT= " + use pam || mymakeopts="${mymakeopts} NO_PAM= " + use suid || mymakeopts="${mymakeopts} NO_SUID= PPP_NOSUID= " + use radius || mymakeopts="${mymakeopts} NO_RADIUS= " + use tcpd || mymakeopts="${mymakeopts} NO_WRAP= " + + mymakeopts="${mymakeopts} NO_MAILWRAPPER= NO_BIND= NO_SENDMAIL= NO_PF= NO_AUTHPF= NO_LPR=" + + # kldxref does not build with -O2 + replace-flags "-O?" "-O1" +} + +PATCHES="${FILESDIR}/${PN}-6.0-fixmakefiles.patch + ${FILESDIR}/${PN}-6.1-nowrap.patch + ${FILESDIR}/${PN}-6.1-gcc41.patch + ${FILESDIR}/${PN}-adduser.patch + ${FILESDIR}/${PN}-6.2_rc2-libedit-netbsd.patch" + +REMOVE_SUBDIRS=" + named named-checkzone named-checkconf rndc rndc-confgen + dnssec-keygen dnssec-signzone + tcpdchk tcpdmatch + sendmail praliases editmap mailstats makemap + sysinstall cron mailwrapper ntp bsnmpd + tcpdump ndp traceroute inetd + wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli + zic amd + pkg_install freebsd-update" + +src_unpack() { + freebsd_src_unpack + + if ! use build; then + ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" + ln -s "/usr/include" "${WORKDIR}/include" + fi +} + +src_compile() { + strip-flags + append-flags -I "${WORKDIR}/sys" + + NOFLAGSTRIP="yes" freebsd_src_compile +} + +src_install() { + # By creating these directories we avoid having to do a + # more complex hack + dodir /usr/share/doc + dodir /sbin + dodir /usr/libexec + dodir /usr/bin + + # FILESDIR is used by some makefiles which will install files + # 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 rarpd; do + newinitd ${FILESDIR}/${util}.initd ${util} + [[ -e ${FILESDIR}/${util}.confd ]] && \ + newconfd ${FILESDIR}/${util}.confd ${util} + done + + for class in daily monthly weekly; do + cat - > ${T}/periodic.${class} <<EOS +#!/bin/sh +/usr/sbin/periodic ${class} +EOS + exeinto /etc/cron.${class} + newexe ${T}/periodic.${class} periodic + done + + # Install the pw.conf file to let pw use Gentoo's skel location + insinto /etc + doins "${FILESDIR}/pw.conf" + + cd "${WORKDIR}/etc" + doins amd.map apmd.conf syslog.conf newsyslog.conf usbd.conf + + insinto /etc/ppp + doins ppp/ppp.conf + + if use isdn; then + insinto /etc/isdn + doins isdn/* + rm -f ${D}/etc/isdn/Makefile + fi + + if use bluetooth; then + insinto /etc/bluetooth + doins bluetooth/* + rm -f ${D}/etc/bluetooth/Makefile + fi + + # Install the periodic stuff (needs probably to be ported in a more + # gentooish way) + cd "${WORKDIR}/etc/periodic" + + doperiodic daily daily/*.accounting + doperiodic monthly monthly/*.accounting +} + +pkg_postinst() { + # We need to run pwd_mkdb if key files are not present + # If they are, then there is no need to run pwd_mkdb + if [[ ! -e ${ROOT}etc/passwd || ! -e ${ROOT}etc/pwd.db || ! -e ${ROOT}etc/spwd.db ]] ; then + if [[ -e ${ROOT}etc/master.passwd ]] ; then + einfo "Generating passwd files from ${ROOT}etc/master.passwd" + ${ROOT}usr/sbin/pwd_mkdb -p -d ${ROOT}etc ${ROOT}etc/master.passwd + else + eerror "${ROOT}etc/master.passwd does not exist!" + eerror "You will no be able to log into your system!" + fi + fi + + for logfile in messages security auth.log maillog lpd-errs xferlog cron \ + debug.log slip.log ppp.log; do + [[ -f ${ROOT}/var/log/${logfile} ]] || touch ${ROOT}/var/log/${logfile} + done +} + |