diff options
-rw-r--r-- | sys-freebsd/freebsd-sbin/ChangeLog | 9 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/digest-freebsd-sbin-6.2-r2 | 21 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.2-ldconfig.patch | 13 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/freebsd-sbin-6.2-r2.ebuild | 106 |
4 files changed, 148 insertions, 1 deletions
diff --git a/sys-freebsd/freebsd-sbin/ChangeLog b/sys-freebsd/freebsd-sbin/ChangeLog index 7a9d6d278fb7..1c64f394909d 100644 --- a/sys-freebsd/freebsd-sbin/ChangeLog +++ b/sys-freebsd/freebsd-sbin/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-freebsd/freebsd-sbin # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/ChangeLog,v 1.40 2007/07/12 08:26:18 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/ChangeLog,v 1.41 2007/08/06 09:46:15 uberlord Exp $ + +*freebsd-sbin-6.2-r2 (06 Aug 2007) + + 06 Aug 2007; Roy Marples <uberlord@gentoo.org> + +files/freebsd-sbin-6.2-ldconfig.patch, +freebsd-sbin-6.2-r2.ebuild: + Always add /lib and /usr/lib to our search paths for ldconfig. + This patch will need changing if we move to a multilib system. 12 Jul 2007; Roy Marples <uberlord@gentoo.org> files/devd.initd: Fix devd for baselayout-2.0.0_alpha4. diff --git a/sys-freebsd/freebsd-sbin/files/digest-freebsd-sbin-6.2-r2 b/sys-freebsd/freebsd-sbin/files/digest-freebsd-sbin-6.2-r2 new file mode 100644 index 000000000000..cf6f5c7a280c --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/digest-freebsd-sbin-6.2-r2 @@ -0,0 +1,21 @@ +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 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 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-sbin/files/freebsd-sbin-6.2-ldconfig.patch b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.2-ldconfig.patch new file mode 100644 index 000000000000..81ad02461681 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.2-ldconfig.patch @@ -0,0 +1,13 @@ +diff -ur sbin.orig/ldconfig/elfhints.c sbin/ldconfig/elfhints.c +--- sbin.orig/ldconfig/elfhints.c 2001-05-03 00:56:18 +0100 ++++ sbin/ldconfig/elfhints.c 2007-08-06 10:16:24 +0100 +@@ -245,6 +245,9 @@ + else + add_dir(hintsfile, argv[i], 0); + } ++ /* Always add our system dirs */ ++ add_dir (hintsfile, "/lib", 1); ++ add_dir (hintsfile, "/usr/lib", 1); + write_elf_hints(hintsfile); + } + diff --git a/sys-freebsd/freebsd-sbin/freebsd-sbin-6.2-r2.ebuild b/sys-freebsd/freebsd-sbin/freebsd-sbin-6.2-r2.ebuild new file mode 100644 index 000000000000..d6e84140ce65 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/freebsd-sbin-6.2-r2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/freebsd-sbin-6.2-r2.ebuild,v 1.1 2007/08/06 09:46:15 uberlord Exp $ + +inherit flag-o-matic bsdmk freebsd + +DESCRIPTION="FreeBSD sbin utils" +KEYWORDS="~sparc-fbsd ~x86-fbsd" +SLOT="0" + +SRC_URI="mirror://gentoo/${SBIN}.tar.bz2 + mirror://gentoo/${CONTRIB}.tar.bz2 + mirror://gentoo/${LIB}.tar.bz2 + mirror://gentoo/${LIBEXEC}.tar.bz2 + mirror://gentoo/${USBIN}.tar.bz2 + mirror://gentoo/${ETC}.tar.bz2 + build? ( mirror://gentoo/${SYS}.tar.bz2 )" + +RDEPEND="=sys-freebsd/freebsd-lib-${RV}* + =sys-freebsd/freebsd-libexec-${RV}* + ssl? ( dev-libs/openssl ) + dev-libs/libedit + sys-libs/readline + sys-process/vixie-cron" +DEPEND="${RDEPEND} + !build? ( =sys-freebsd/freebsd-sources-${RV}* ) + =sys-freebsd/freebsd-mk-defs-${RV}*" + +PROVIDE="virtual/dev-manager" + +S="${WORKDIR}/sbin" + +IUSE="atm ipfilter ipv6 vinum suid ssl build" + +pkg_setup() { + use atm || mymakeopts="${mymakeopts} NO_ATM= " + use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= " + use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " + use vinum || mymakeopts="${mymakeopts} NO_VINUM= " + use suid || mymakeopts="${mymakeopts} NO_SUID= " + + # O3 breaks this, apparently + replace-flags -O3 -O2 +} + +REMOVE_SUBDIRS="dhclient pfctl pflogd rcorder" + +PATCHES="${FILESDIR}/${PN}-6.2-ldconfig.patch + ${FILESDIR}/${PN}-setXid.patch + ${FILESDIR}/${PN}-zlib.patch + ${FILESDIR}/${PN}-6.1-pr102701.patch" + +src_unpack() { + freebsd_src_unpack + use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" +} + +src_install() { + freebsd_src_install + keepdir /var/log + + # Allow users to use ping and other commands + dodir /bin + mv "${D}/sbin/ping" "${D}/bin/" || die "mv failed" + + # ext2fs can mount ext3, you just don't get the journalling + dosym mount_ext2fs sbin/mount_ext3 + + newinitd "${FILESDIR}/devd.initd" devd + newinitd "${FILESDIR}/ipfw.initd" ipfw + newconfd "${FILESDIR}/ipfw.confd" ipfw + newinitd "${FILESDIR}/sysctl.initd" sysctl + + # Gentoo devd.conf + # devd_queue is a filter so that only the last event is applied to an + # init script + insinto /etc + newins "${FILESDIR}/devd.conf" devd.conf + exeinto /etc + newexe "${FILESDIR}/devd_queue" devd_queue + + # Do we need pccard.conf if we have devd? + # Maybe ship our own sysctl.conf so things like radvd work out of the box. + cd "${WORKDIR}/etc/" + insinto /etc + doins defaults/pccard.conf minfree sysctl.conf + + # Install a crontab for adjkerntz + insinto /etc/cron.d + newins "${FILESDIR}/adjkerntz-crontab" adjkerntz + + # Install the periodic stuff (needs probably to be ported in a more + # gentooish way) + cd "${WORKDIR}/etc/periodic" + + doperiodic security \ + security/*.ipfwlimit \ + security/*.ip6fwlimit \ + security/*.ip6fwdenied \ + security/*.ipfwdenied + + use ipfilter && doperiodic security \ + security/*.ipf6denied \ + security/*.ipfdenied + +} |