diff options
author | Timothy Redaelli <drizzt@gentoo.org> | 2007-04-23 12:44:25 +0000 |
---|---|---|
committer | Timothy Redaelli <drizzt@gentoo.org> | 2007-04-23 12:44:25 +0000 |
commit | ea48e2f99b605f595e4dfa0fa358252475394ec3 (patch) | |
tree | 317fb8d48bf8e11e45c1b82488c17ea932f37eed /sys-freebsd/freebsd-sbin | |
parent | In main tree (diff) | |
download | drizzt-ea48e2f99b605f595e4dfa0fa358252475394ec3.tar.gz drizzt-ea48e2f99b605f595e4dfa0fa358252475394ec3.tar.bz2 drizzt-ea48e2f99b605f595e4dfa0fa358252475394ec3.zip |
Add FreeBSD 7.0_pre200704 ebuilds
svn path=/; revision=116
Diffstat (limited to 'sys-freebsd/freebsd-sbin')
-rw-r--r-- | sys-freebsd/freebsd-sbin/ChangeLog | 253 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/Manifest | 20 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/adjkerntz-crontab | 4 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/devd.conf | 153 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/devd.initd | 50 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/devd_queue | 50 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.1-pr102701.patch | 17 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/freebsd-sbin-setXid.patch | 20 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/freebsd-sbin-zlib.patch | 21 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/ipfw.confd | 7 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/ipfw.initd | 101 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/sysctl.initd | 28 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/freebsd-sbin-7.0_pre200704.ebuild | 101 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/metadata.xml | 5 |
14 files changed, 830 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-sbin/ChangeLog b/sys-freebsd/freebsd-sbin/ChangeLog new file mode 100644 index 0000000..781d148 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/ChangeLog @@ -0,0 +1,253 @@ +# 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.36 2007/04/11 10:42:37 uberlord Exp $ + + 11 Apr 2007; Roy Marples <uberlord@gentoo.org> files/devd_queue: + Quick fix for baselayout-2 + +*freebsd-sbin-6.2-r1 (06 Apr 2007) + + 06 Apr 2007; Roy Marples <uberlord@gentoo.org> + +freebsd-sbin-6.2-r1.ebuild: + Bump for non bash init scripts. + + 13 Mar 2007; Roy Marples <uberlord@gentoo.org> +files/ipfw.confd, + files/ipfw.initd, freebsd-sbin-6.2.ebuild: + Scrap the supplied ipfw script and replace with my own ipfw stateful + firewall script. + + 23 Feb 2007; Roy Marples <uberlord@gentoo.org> files/devd.initd, + files/ipfw.initd, files/sysctl.initd: + init scripts no longer use bash. + +*freebsd-sbin-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli <drizzt@gentoo.org> + -freebsd-sbin-6.2_rc2.ebuild, +freebsd-sbin-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.1.ebuild: + Remove 6.1 ebuild. + + 04 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.2_rc2.ebuild: + Add dependency over dev-libs/libedit, fix catalyst build. + +*freebsd-sbin-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.2_beta3.ebuild, -freebsd-sbin-6.2_rc1.ebuild, + +freebsd-sbin-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + +*freebsd-sbin-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> + +freebsd-sbin-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-sbin-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> + +freebsd-sbin-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 24 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.1.ebuild, freebsd-sbin-6.2_beta2.ebuild: + Fix mirror:// uri, thanks Brian. + + 24 Oct 2006; Roy Marples <uberlord@gentoo.org> + freebsd-sbin-6.2_beta2.ebuild: + Don't install rcorder as baselayout has it's own variant. + + 19 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples <uberlord@gentoo.org> + freebsd-sbin-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + + 05 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.1.ebuild, freebsd-sbin-6.2_beta2.ebuild: + Add a build useflag that uses a downloaded tarball of sys rather than + symlinking it. + +*freebsd-sbin-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> + +freebsd-sbin-6.2_beta2.ebuild: + Version 6.2_beta2. + + 03 Oct 2006; Roy Marples <uberlord@gentoo.org> + -files/freebsd-sbin-6.1-devd-conf.patch, +files/devd.conf, + +files/devd.initd, +files/devd_queue, files/sysctl.initd, + freebsd-sbin-6.1.ebuild, freebsd-sbin-6.2_beta1.ebuild: + Tart up init scripts. + Install a Gentooified devd.cond and devd_queue + + 03 Oct 2006; Roy Marples <uberlord@gentoo.org> files/sysctl.initd: + Updated sysctl init script a little. + + 22 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.2_beta1.ebuild: + Fix patch naming. + +*freebsd-sbin-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> + +freebsd-sbin-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 11 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/freebsd-sbin-6.1-pr102701.patch, freebsd-sbin-6.1.ebuild: + Add patch to fix the Problem Report bin/102701 of FreeBSD (can't delete an + inet6 alias). + + 09 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.1.ebuild: + Move ping command into /bin so that it can be used by users. + + 27 Jul 2006; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.1.ebuild: + Remove dhcpc provision, as dhclient is no more shipped here. Also fix quoting. + + 27 Jul 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.0-r1.ebuild: + Remove 6.0 version. + +*freebsd-sbin-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.1_rc2.ebuild, +freebsd-sbin-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-sbin-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.1_rc1.ebuild, +freebsd-sbin-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-sbin-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/freebsd-sbin-6.1-devd-conf.patch, +freebsd-sbin-6.1_rc1.ebuild: + Update to 6.1 and add patch for devd to avoid using FreeBSD's rc system. + + 23 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + files/adjkerntz-crontab: + Specify adjkerntz complete path. + + 20 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-6.0-r1.ebuild: + Drop dependency on freebsd-headers. + + 20 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + -freebsd-sbin-6.0.ebuild: + Drop old version. + + 20 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/adjkerntz-crontab, freebsd-sbin-6.0-r1.ebuild: + Add crontab for adjkerntz running. Thanks to swegener for the idea. This + makes freebsd-sbin depend on vixie-cron as it's the only one working this + way; either way, it's the only keyworded and the default, so not much of a + problem. + +*freebsd-sbin-6.0-r1 (12 Apr 2006) + + 12 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> files/sysctl.initd, + +freebsd-sbin-6.0-r1.ebuild: + Fix init.d script to use the right variable in sysctl call, thanks to Javier + Villavicencio in bug #129621. + + 02 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + -files/freebsd-sbin-fixmakefiles.patch, -files/freebsd-sbin-flex.patch: + Drop obsolete files. + +*freebsd-sbin-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> + +files/freebsd-sbin-fixmakefiles.patch, +files/freebsd-sbin-flex.patch, + +files/freebsd-sbin-setXid.patch, +files/freebsd-sbin-zlib.patch, + +files/ipfw.initd, +files/sysctl.initd, +metadata.xml, + +freebsd-sbin-6.0.ebuild: + Import into portage. + + 20 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Fix deprecated stuff to use NO_* syntax. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Handle also sysctl configuration file and init script. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Add here ipfw init.d script and rc.firewall used by it. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Add ipf scripts only if ipfilter is enabled. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Install minfree file. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Add periodic files. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Start moving etc files here. + + 13 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + On suggestion from Benigno B. Junior (bbj), don't extract sys, instead + symlink int inside ${WORKDIR}. This also drops the patch to fix makefiles. + + 12 Feb 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Extract also -sys as it's needed to geom/eli to build. + + 01 Nov 2005; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Remove pf support, as freebsd-pf will provide it. + + 20 Oct 2005; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: + Make sure /var/log is kept by this package instead of baselayout. + + 27 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-5.4.ebuild: + Fix dependencies for sys-freebsd move. + +*freebsd-sbin-5.4 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> + +files/freebsd-sbin-fixmakefiles.patch, +files/freebsd-sbin-flex.patch, + +files/freebsd-sbin-setXid.patch, +files/freebsd-sbin-zlib.patch, + +freebsd-sbin-5.4.ebuild: + Moved to sys-freebsd. + + 29 Jul 2005; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-5.4.ebuild: + Adapt to recent bsdmk changes. + + 16 Jun 2005; Diego Pettenò <flameeyes@gentoo.org> + freebsd-sbin-5.4.ebuild: + Avoid building and installing dhclient. + + 29 Sep 2004; Aaron Walker <ka0ttic@gentoo.org> + freebsd-sbin-5.2.1-r1.ebuild: + inherit should be the first thing under CVS header. + +*freebsd-sbin-5.2.1-r1 (18 Sep 2004) + + 18 Sep 2004; Otavio Piske <angusyoung@gentoo.org> + freebsd-sbin-5.2.1-r1.ebuild: + Updated ebuild DEPEND. Lots of dependencies are now considered. Also, + corrected the problem with ebuild not handling schg/noschg flags + correctly. + + 15 Sep 2004; Otavio Piske <angusyoung@gentoo.org> freebsd-sbin-5.2.1.ebuild: + Initial release + +*freebsd-sbin-5.2.1.ebuild (15 Sep 2004) diff --git a/sys-freebsd/freebsd-sbin/Manifest b/sys-freebsd/freebsd-sbin/Manifest new file mode 100644 index 0000000..9298ae6 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/Manifest @@ -0,0 +1,20 @@ +AUX adjkerntz-crontab 184 RMD160 c9abca80479ee47cfec7cbab70adad2018770785 SHA1 2f4785974574ca6d92aafd4d5238d265a8201aa8 SHA256 f3b08140ea38bfe502b34dd8c69aa4a6b65b786d792828cce082be8f844345dc +AUX devd.conf 4770 RMD160 a050c42c8fa8e11e7044857ef61668949090e0be SHA1 62c0dad16760be68b4a3e79d4721cacbcd1c0409 SHA256 48c6d3664813222aed6b3c0ff5badbf3e8a37477445fe705850f77a9b95e3219 +AUX devd.initd 1166 RMD160 2210da01c941f07d7d48b72532857b26edc58f5b SHA1 f9d1ae9b1870d2612d15d06a5c0a4502f878d110 SHA256 0f474fd20f549cdc81366df2457e25e53daa5bbf8b83d37269e68f716e221015 +AUX devd_queue 853 RMD160 e966736ceccecc9b1376695644dc57ab46958194 SHA1 b64f439165bfc85b9ae217886c86798a9cd64021 SHA256 af57ffa202eec7d8c050e32e5ca3f54cbf491fac2e439172f9e008ac3e5e8417 +AUX freebsd-sbin-6.1-pr102701.patch 548 RMD160 ccaac521cdbb9b5449329cf98fc77be340c59cd1 SHA1 a1469860a620a9cdad07e3c22331b68fd95a71f7 SHA256 dccf32386359a2cfd80272c86085467d612c8f4d7924a6a223cd1259a8b7a176 +AUX freebsd-sbin-setXid.patch 541 RMD160 003ee4530218c609a4a443d2c2d2c8c05d1f4ae6 SHA1 fdc01c623893d5819d37d2ed47b7272e50172b89 SHA256 2d8158df7af52f9ce15f1513d16ed08ea6244f310aea3f271b12184a6a4c4267 +AUX freebsd-sbin-zlib.patch 793 RMD160 ba321e563ba92e73c4183740e425d50471fbffcf SHA1 74b76a4166b07c0b3fdaebc295802cfd02057132 SHA256 a02a2f8dda23952f6d90100fd1dddc3a3a5048653a74fb1f4b52ceb18bedb448 +AUX ipfw.confd 292 RMD160 78901ec3b3dbd67da089c2a9cd40d6b6457ffa06 SHA1 a67c0d7edcf116460413b6fc8dcedffa209ca79d SHA256 8e09c8c290b9323e9e7125329886d1f8514e00165500080723f788eec5dae733 +AUX ipfw.initd 2424 RMD160 3b95ab5045493cf723d1eba7fbca43d6c65fb661 SHA1 0cf7941ca6d29579b5768d6f0ecdb223b3c84a9b SHA256 3b0d52a221210fda64faeccd2e48abfe4f50f83018d9c273f96ff089e527482e +AUX sysctl.initd 664 RMD160 e07440c9cc9fb4aa36dd724ffd7e01bdcdb7658f SHA1 9928928c154eaba070e75c5c99cee539a0c9875a SHA256 3f58694d02a1cd57e02e28d51b3e598e9edb022ba52c64be352bc392604de717 +DIST freebsd-contrib-7.0_pre200704.tar.bz2 36743671 RMD160 aae7903e03d8decf910ee7e252d615658b8bfc25 SHA1 71006b34dc0e34be1f9093fca7b2aa9919038cd5 SHA256 1045c6d9ee9d0df02bd2627153da5bff2a74798af9f1852429ba0101430dcff3 +DIST freebsd-etc-7.0_pre200704.tar.bz2 191186 RMD160 321bff52828b8beedb8dcebe6c058076bf1f0218 SHA1 8e23c466b86cb6437196d2374d80de24b1aa014e SHA256 58ab1e844089dd836be7a5cab980858607ae800195ef9d416797b14a744bac12 +DIST freebsd-lib-7.0_pre200704.tar.bz2 2853461 RMD160 8384a200f7d61c5953ccd8299e2e40373ae970ed SHA1 33d80fef5909ef584646c4c5a2733576224c4cc6 SHA256 56b586b58b7b29ea748151cc8377a5bede8047dffdbb1b8d12888acdfd67e105 +DIST freebsd-libexec-7.0_pre200704.tar.bz2 276791 RMD160 fd230b6ca263cf5a54c8641f852c07890a887357 SHA1 bc8ffe965fc09a9e461cda9598598cdb2e810191 SHA256 bcf5ecea155fd8f4f135ccd1ed797dc6802a79f80bd50b32795109508d327be5 +DIST freebsd-sbin-7.0_pre200704.tar.bz2 1181704 RMD160 67eeec8fd5b7baec4090181b7c7cd15ed2dff17d SHA1 2c73a70e52a297195a5e0ec18ff6e7f8431038a7 SHA256 714d175ffb3691b518d486c8e0fb9a70db990f1338c39a595026524f999cc305 +DIST freebsd-sys-7.0_pre200704.tar.bz2 20940473 RMD160 eee64418bd658056fa61d8f3344c2d95f21acd81 SHA1 2f8c7aa5636a2961e603b454b930b51585e6c98f SHA256 49fc2d930f2c01425610811a2e8c143131ce63c112b8f4a26574da7bf7ffdeba +DIST freebsd-usbin-7.0_pre200704.tar.bz2 2622893 RMD160 66de2753ab0d1044b6c123fec26103560f5eabe2 SHA1 df76dd7604328da83b8b6e1a38b3ef58a3818af8 SHA256 1188d92fc11809efba8384f0ee96dd09efcee7dc968df7a1782b5a586fcc5bc8 +EBUILD freebsd-sbin-7.0_pre200704.ebuild 2867 RMD160 7a866972ad41c392162199f5b6d62acebfdd30cf SHA1 57cbca6b15e1781c5076d2867245d0a3aba1b0ad SHA256 89b4f75758eea872eaeab4a7a6a3ced5fd7e6f9460b9bdd68199a411cb76e30e +MISC ChangeLog 8666 RMD160 fe52a1464b8135cabd8f6ed1238f0a572cbc2588 SHA1 732574a7d25707be168e7acda9564fe7203095f1 SHA256 8eb39fb74a37554bbd82b330fb2bbbb1370f86cd3bac8ff0dfff788c4aadaa3b +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-sbin/files/adjkerntz-crontab b/sys-freebsd/freebsd-sbin/files/adjkerntz-crontab new file mode 100644 index 0000000..5fc46f5 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/adjkerntz-crontab @@ -0,0 +1,4 @@ +# Adjust the time zone if the CMOS clock keeps local time, as opposed to +# UTC time. See adjkerntz(8) for details. +1,31 0-5 * * * root /sbin/adjkerntz -a + diff --git a/sys-freebsd/freebsd-sbin/files/devd.conf b/sys-freebsd/freebsd-sbin/files/devd.conf new file mode 100644 index 0000000..fd1e035 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/devd.conf @@ -0,0 +1,153 @@ +# Refer to devd.conf(5) and devd(8) man pages for the details on how to +# run and configure devd. +# + +# NB: All regular expressions have an implicit ^$ around them. +# NB: device-name is shorthand for 'match device-name' + +options { + # Each directory directive adds a directory the list of directories + # that we scan for files. Files are read-in in the order that they + # are returned from readdir(3). The rule-sets are combined to + # create a DFA that's used to match events to actions. + directory "/etc/devd"; + directory "/usr/local/etc/devd"; + pid-file "/var/run/devd.pid"; + + # Setup some shorthand for regex that we use later in the file. + #XXX Yes, these are gross -- imp + set scsi-controller-regex + "(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\ + esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\ + [0-9]+"; +}; + +# Note that the attach/detach with the highest value wins, so that one can +# override these general rules. + +# +# For ethernet like devices start configuring the interface. Due to +# a historical accident, this script is called pccard_ether. +# +attach 0 { + media-type "ethernet"; + action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/net.$device-name start"; +}; + +detach 0 { + media-type "ethernet"; + action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/net.$device-name stop"; +}; + +# +# Try to start dhclient on Ethernet like interfaces when the link comes +# up. Only devices that are configured to support DHCP will actually +# run it. No link down rule exists because dhclient automaticly exits +# when the link goes down. +# +notify 0 { + match "system" "IFNET"; + match "type" "LINK_UP"; + media-type "ethernet"; + action "/etc/devd_queue add /etc/init.d/net.$subsystem start"; +}; +notify 0 { + match "system" "IFNET"; + match "type" "LINK_DOWN"; + media-type "ethernet"; + action "/etc/devd_queue add /etc/init.d/net.$subsystem stop"; +}; + +# +# Like Ethernet devices, but separate because +# they have a different media type. We may want +# to exploit this later. +# +#detach 0 { +# media-type "802.11"; +# action "env IN_HOTPLUG=1 /etc/init.d/net.$device-name stop"; +#}; +#attach 0 { +# media-type "802.11"; +# action "env IN_HOTPLUG=1 /etc/init.d/net.$device-name start"; +#}; + +# Not sure how to handle this in Gentoo yet +# When a USB Bluetooth dongle appears activate it +#attach 100 { +# device-name "ubt[0-9]+"; +# action "/etc/rc.d/bluetooth start $device-name"; +#}; +#detach 100 { +# device-name "ubt[0-9]+"; +# action "/etc/rc.d/bluetooth stop $device-name"; +#}; + +# When a USB keyboard arrives, attach it as the console keyboard. +attach 100 { + device-name "ukbd0"; + action "kbdcontrol -k /dev/ukbd0 < /dev/console"; +}; +detach 100 { + device-name "ukbd0"; + action "kbdcontrol -k /dev/kbd0 < /dev/console"; +}; + +# The entry below starts and stops moused when a mouse is plugged in. +attach 100 { + device-name "psm[0-9]+"; + action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name start"; +}; +detach 100 { + device-name "psm[0-9]+"; + action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name stop"; +}; +attach 100 { + device-name "ums[0-9]+"; + action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name start"; +}; +detach 100 { + device-name "ums[0-9]+"; + action "/etc/devd_queue add env IN_HOTPLUG=1 /etc/init.d/moused.$device-name stop"; +}; + +# Notify all users before beginning emergency shutdown when we get +# a _CRT or _HOT thermal event and we're going to power down the system +# very soon. +notify 10 { + match "system" "ACPI"; + match "subsystem" "Thermal"; + match "notify" "0xcc"; + action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'"; +}; + +/* EXAMPLES TO END OF FILE + + +# Examples of notify hooks. A notify is a generic way for a kernel +# subsystem to send event notification to userland. +# +# Here are some examples of ACPI notify handlers. ACPI subsystems that +# generate notifies include the AC adapter, power/sleep buttons, +# control method batteries, lid switch, and thermal zones. +# +# Information returned is not always the same as the ACPI notify +# events. See the ACPI specification for more information about +# notifies. Here is the information returned for each subsystem: +# +# ACAD: AC line state (0 is offline, 1 is online) +# Button: Button pressed (0 for power, 1 for sleep) +# CMBAT: ACPI battery events +# Lid: Lid state (0 is closed, 1 is open) +# Thermal: ACPI thermal zone events +# +# This example calls a script when the AC state changes, passing the +# notify value as the first argument. If the state is 0x00, it might +# call some sysctls to implement economy mode. If 0x01, it might set +# the mode to performance. +notify 10 { + match "system" "ACPI"; + match "subsystem" "ACAD"; + action "/etc/acpi_ac $notify"; +}; +*/ diff --git a/sys-freebsd/freebsd-sbin/files/devd.initd b/sys-freebsd/freebsd-sbin/files/devd.initd new file mode 100644 index 0000000..c2017f0 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/devd.initd @@ -0,0 +1,50 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + after bootmisc hostname net +} + +start() { + # Services may depend on us, so mark us as inactive + mark_service_inactive "${SVCNAME}" + + # Create a queue so that if things went UP DOWN UP DOWN UP DOWN UP + # We just do an UP + # This is used by /etc/devd_queue + mkdir -p /var/run/devd + + ebegin "Starting the Device State Change Daemon" + sysctl hw.bus.devctl_disable=0 >/dev/null + start-stop-daemon --start --exec /sbin/devd \ + --pidfile /var/run/devd.pid + eend $? "Failed to start devd" \ + || return $? + + ebegin "Waiting for Device State Change Daemon to settle" + LC_ALL=C sleep "${DEVD_WAIT:-2}" + eend $? + + # Now flush the queue + einfo "Flushing Device State Change Daemon queue" + + # Flush the output buffer + eflush + + /etc/devd_queue flush + + mark_service_started "${SVCNAME}" + return 0 +} + +stop() { + ebegin "Stopping the Device State Change Daemon" + sysctl hw.bus.devctl_disable=1 >/dev/null + start-stop-daemon --stop --exec /sbin/devd \ + --pidfile /var/run/devd.pid + eend $? $"Failed to stop devd" +} + +# vim: ts=4 : diff --git a/sys-freebsd/freebsd-sbin/files/devd_queue b/sys-freebsd/freebsd-sbin/files/devd_queue new file mode 100644 index 0000000..d42cb83 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/devd_queue @@ -0,0 +1,50 @@ +#!/bin/sh + +# Notify the rc system that we're in the background +export IN_BACKGROUND=true + +arg1="$1" +if [ -z "$arg1" ] ; then + echo "Command required" > /dev/stderr + exit 1 +fi +shift + +case "$arg1" in + add) + if [ -z "$1" ] ; then + echo "Command missing!" > /dev/stderr + exit 1 + fi + + # If we don't have a queue then just run + if [ ! -d /var/run/devd ] ; then + "$@" + exit $? + fi + + cmd="$1" + args="$*" + if [ "$cmd" = "env" ] ; then + shift + while echo "$1" | grep -q "="; do + shift + [ "$1" = "--" ] && shift && break + done + cmd="$1" + fi + echo "$args" > /var/run/devd/$(basename "$cmd") + ;; + flush) + while ! rmdir /var/run/devd 2>/dev/null ; do + for cmd in $(cd /var/run/devd; ls) ; do + args=$(cat /var/run/devd/$cmd) + rm -f /var/run/devd/$cmd + $args + done + done + ;; + *) + echo "Unknown command $arg1" + ;; +esac diff --git a/sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.1-pr102701.patch b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.1-pr102701.patch new file mode 100644 index 0000000..7b9578c --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.1-pr102701.patch @@ -0,0 +1,17 @@ +Solves the issue reported in Problem Report bin/102701. + +Can't delete an inet6 alias address from an interface. + +Index: fbsd-6.1/sbin/ifconfig/af_inet6.c +=================================================================== +--- fbsd-6.1.orig/sbin/ifconfig/af_inet6.c ++++ fbsd-6.1/sbin/ifconfig/af_inet6.c +@@ -515,7 +515,7 @@ static struct afswtch af_inet6 = { + .af_settunnel = in6_set_tunnel, + .af_difaddr = SIOCDIFADDR_IN6, + .af_aifaddr = SIOCAIFADDR_IN6, +- .af_ridreq = &in6_addreq, ++ .af_ridreq = &in6_ridreq, + .af_addreq = &in6_addreq, + }; + diff --git a/sys-freebsd/freebsd-sbin/files/freebsd-sbin-setXid.patch b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-setXid.patch new file mode 100644 index 0000000..c8cbebc --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-setXid.patch @@ -0,0 +1,20 @@ +diff -ur sbin.orig/ping/Makefile sbin.setXid/ping/Makefile +--- sbin.orig/ping/Makefile Thu Apr 7 20:27:57 2005 ++++ sbin.setXid/ping/Makefile Thu Apr 7 20:42:02 2005 +@@ -18,4 +18,6 @@ + LDADD+= -lipsec + .endif + ++LDFLAGS+= -Wl,-z,now ++ + .include <bsd.prog.mk> +diff -ur sbin.orig/shutdown/Makefile sbin.setXid/shutdown/Makefile +--- sbin.orig/shutdown/Makefile Thu Apr 7 20:27:57 2005 ++++ sbin.setXid/shutdown/Makefile Thu Apr 7 20:42:17 2005 +@@ -7,4 +7,6 @@ + BINGRP= operator + BINMODE=4550 + ++LDFLAGS+= -Wl,-z,now ++ + .include <bsd.prog.mk> diff --git a/sys-freebsd/freebsd-sbin/files/freebsd-sbin-zlib.patch b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-zlib.patch new file mode 100644 index 0000000..b8a0437 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-zlib.patch @@ -0,0 +1,21 @@ +diff -ur sbin/savecore/savecore.c sbin-zlib/savecore/savecore.c +--- sbin/savecore/savecore.c 2005-02-26 01:21:50 +0000 ++++ sbin-zlib/savecore/savecore.c 2005-05-06 12:00:06 +0000 +@@ -95,7 +95,7 @@ + static int checkfor, compress, clear, force, keep, verbose; /* flags */ + static int nfound, nsaved, nerr; /* statistics */ + +-extern FILE *zopen(const char *, const char *); ++extern FILE *gzopen(const char *, const char *); + + static void + printheader(FILE *f, const struct kerneldumpheader *h, const char *device, +@@ -387,7 +387,7 @@ + oumask = umask(S_IRWXG|S_IRWXO); /* Restrict access to the core file.*/ + if (compress) { + sprintf(buf, "vmcore.%d.gz", bounds); +- fp = zopen(buf, "w"); ++ fp = gzopen(buf, "w"); + } else { + sprintf(buf, "vmcore.%d", bounds); + fp = fopen(buf, "w"); diff --git a/sys-freebsd/freebsd-sbin/files/ipfw.confd b/sys-freebsd/freebsd-sbin/files/ipfw.confd new file mode 100644 index 0000000..78864ee --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/ipfw.confd @@ -0,0 +1,7 @@ +# ipfw provides a stateful firewall. +# This means we allow everything out, and if we have a connection we allow it +# back in. This is very flexable and quite secure. + +# For ease of use, we allow auth and ssh ports through as well. +# To override the list of allowed ports +#PORTS_IN="auth ssh" diff --git a/sys-freebsd/freebsd-sbin/files/ipfw.initd b/sys-freebsd/freebsd-sbin/files/ipfw.initd new file mode 100644 index 0000000..b0bd26f --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/ipfw.initd @@ -0,0 +1,101 @@ +#!/sbin/runscript +# Copyright 2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# This is a nice client firewall script which should suit most desktop users. +# We allow auth and ssh in by default. + +PORTS_IN=${PORTS_IN:-auth ssh} + +opts="panic showstatus" + +depend() { + before net + provide firewall +} + +ipfw() { + /sbin/ipfw -f -q "$@" +} + +init() { + # Load the kernel module + if ! sysctl net.inet.ip.fw.enable=1 >/dev/null 2>/dev/null ; then + if ! kldload ipfw ; then + eend 1 "Unable to load firewall module" + return 1 + fi + fi + + ipfw flush + + ipfw add allow all from any to any via lo0 + ipfw add allow all from any to 127.0.0.0/8 + ipfw add deny ip from 127.0.0.0/8 to any + + ipfw add allow ipv6-icmp from :: to ff02::/16 + ipfw add allow ipv6-icmp from fe80::/10 to fe80::/10 + ipfw add allow ipv6-icmp from fe80::/10 to ff02::/16 +} + +start() { + local x= + ebegin "Starting firewall rules" + if ! init ; then + eend 1 "Failed to flush firewall ruleset" + return 1 + fi + + # Use a statefull firewall + ipfw add check-state + + # Open our configured ports + if [ -n "${PORTS_IN}" ] ; then + local pin= + for x in ${PORTS_IN} ; do + [ -n "${pin}" ] && pin="${pin}," + pin="${pin}${x}" + done + ipfw add allow tcp from any to me ${pin} setup keep-state + ipfw add allow tcp from any to me6 ${pin} setup keep-state + ipfw add allow udp from any to me ${pin} keep-state + ipfw add allow udp from any to me6 ${pin} keep-state + fi + + # Nice flexable rules that disallow incoming except for stuff we + # have asked for, and allow all outgoing. + ipfw add allow tcp from me to any setup keep-state + ipfw add allow tcp from me6 to any setup keep-state + ipfw add deny tcp from any to any + ipfw add allow udp from me to any keep-state + ipfw add allow udp from me6 to any keep-state + ipfw add deny udp from any to any + + # Be a good firewall and allow some ICMP traffic. + # Remove 8 if you really want to disallow ping. + ipfw add allow icmp from any to any icmptypes 0,3,8,11,12 + ipfw add allow ip6 from any to any proto ipv6-icmp + + eend 0 +} + +stop() { + ebegin "Stopping firewall rules" + # We don't unload the kernel module as that action + # can cause memory leaks as of FreeBSD 6.x + sysctl net.inet.ip.fw.enable=0 >/dev/null + eend $? +} + +panic() { + ebegin "Stopping firewall rules - hard" + if ! init ; then + eend 1 "Failed to flush firewall ruleset" + return 1 + fi + eend 0 +} + +showstatus() { + ipfw show +} diff --git a/sys-freebsd/freebsd-sbin/files/sysctl.initd b/sys-freebsd/freebsd-sbin/files/sysctl.initd new file mode 100644 index 0000000..12974a0 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/files/sysctl.initd @@ -0,0 +1,28 @@ +#!/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-sbin/files/sysctl.initd,v 1.4 2007/02/23 13:56:05 uberlord Exp $ + +depend() { + need checkroot +} + +start() { + ebegin "Configuring kernel parameters" + + if [ ! -f /etc/sysctl.conf ]; then + eend 1 "/etc/sysctl.conf" "not found" + return 1 + fi + + local retval=0 var= comments= + while read var comments ; do + case "${var}" in + ""|"#"*) continue;; + esac + sysctl "${var}" >/dev/null || retval=1 + done < /etc/sysctl.conf + eend ${retval} "Some errors were encountered" +} + +# vim: set ts=4 : diff --git a/sys-freebsd/freebsd-sbin/freebsd-sbin-7.0_pre200704.ebuild b/sys-freebsd/freebsd-sbin/freebsd-sbin-7.0_pre200704.ebuild new file mode 100644 index 0000000..5d7e483 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/freebsd-sbin-7.0_pre200704.ebuild @@ -0,0 +1,101 @@ +# 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-r1.ebuild,v 1.1 2007/04/06 14:51:22 uberlord Exp $ + +inherit flag-o-matic bsdmk freebsd + +DESCRIPTION="FreeBSD sbin utils" +KEYWORDS=" ~x86-fbsd" +SLOT="0" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${SBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${CONTRIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIBEXEC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${USBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${ETC}.tar.bz2 + build? ( http://84.33.1.46/~drizzt/stages/${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}-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" + + 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 +} diff --git a/sys-freebsd/freebsd-sbin/metadata.xml b/sys-freebsd/freebsd-sbin/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-sbin/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>bsd</herd> +</pkgmetadata> |