From ea48e2f99b605f595e4dfa0fa358252475394ec3 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Mon, 23 Apr 2007 12:44:25 +0000 Subject: Add FreeBSD 7.0_pre200704 ebuilds svn path=/; revision=116 --- profiles/base/ChangeLog | 32 ++ profiles/base/make.defaults | 39 ++ profiles/base/package.use.mask | 9 + profiles/base/package.use.mask.example | 25 + profiles/base/packages | 77 +++ profiles/base/profile.bashrc | 14 + profiles/base/use.defaults | 125 +++++ profiles/base/use.force | 5 + profiles/base/use.mask | 169 ++++++ profiles/base/virtuals | 74 +++ profiles/default-bsd/ChangeLog | 10 + profiles/default-bsd/fbsd/7.0/make.defaults | 9 + profiles/default-bsd/fbsd/7.0/package.mask | 48 ++ profiles/default-bsd/fbsd/7.0/packages | 5 + profiles/default-bsd/fbsd/7.0/parent | 1 + profiles/default-bsd/fbsd/7.0/profile.bashrc | 4 + profiles/default-bsd/fbsd/7.0/sparc/make.defaults | 11 + profiles/default-bsd/fbsd/7.0/sparc/parent | 1 + profiles/default-bsd/fbsd/7.0/sparc/use.mask | 3 + profiles/default-bsd/fbsd/7.0/sparc/virtuals | 10 + profiles/default-bsd/fbsd/7.0/x86/make.defaults | 19 + profiles/default-bsd/fbsd/7.0/x86/package.use.mask | 5 + profiles/default-bsd/fbsd/7.0/x86/parent | 1 + profiles/default-bsd/fbsd/7.0/x86/use.mask | 23 + profiles/default-bsd/fbsd/make.defaults | 41 ++ profiles/default-bsd/fbsd/package.mask | 37 ++ profiles/default-bsd/fbsd/package.use.mask | 43 ++ profiles/default-bsd/fbsd/packages | 24 + profiles/default-bsd/fbsd/packages.build | 46 ++ profiles/default-bsd/fbsd/parent | 1 + profiles/default-bsd/fbsd/use.force | 5 + profiles/default-bsd/fbsd/use.mask | 49 ++ profiles/default-bsd/fbsd/virtuals | 17 + profiles/default-bsd/package.mask | 60 +++ profiles/default-bsd/package.use.force | 3 + profiles/default-bsd/package.use.mask | 12 + profiles/default-bsd/packages | 19 + profiles/default-bsd/parent | 1 + profiles/default-bsd/profile.bashrc | 8 + profiles/default-bsd/use.force | 1 + profiles/default-bsd/use.mask | 91 ++++ profiles/default-bsd/virtuals | 13 + sys-freebsd/boot0/ChangeLog | 107 ++++ sys-freebsd/boot0/Manifest | 7 + sys-freebsd/boot0/boot0-7.0_pre200704.ebuild | 37 ++ sys-freebsd/boot0/files/boot0-6.0-gentoo.patch | 129 +++++ sys-freebsd/boot0/files/boot0-7.0-gentoo.patch | 77 +++ .../boot0/files/freebsd-sources-6.2-sparc64.patch | 33 ++ sys-freebsd/boot0/metadata.xml | 5 + sys-freebsd/freebsd-bin/ChangeLog | 166 ++++++ sys-freebsd/freebsd-bin/Manifest | 7 + .../files/freebsd-bin-6.0-flex-2.5.31.patch | 10 + .../freebsd-bin/freebsd-bin-7.0_pre200704.ebuild | 37 ++ sys-freebsd/freebsd-bin/metadata.xml | 5 + sys-freebsd/freebsd-contrib/ChangeLog | 151 ++++++ sys-freebsd/freebsd-contrib/Manifest | 5 + .../freebsd-contrib-7.0_pre200704.ebuild | 56 ++ sys-freebsd/freebsd-contrib/metadata.xml | 5 + sys-freebsd/freebsd-lib/ChangeLog | 363 +++++++++++++ sys-freebsd/freebsd-lib/Manifest | 22 + .../files/freebsd-lib-6.0-binutils-asm.patch | 36 ++ .../files/freebsd-lib-6.0-flex-2.5.31.patch | 13 + .../files/freebsd-lib-6.0-gccfloat.patch | 16 + .../freebsd-lib/files/freebsd-lib-6.0-pmc.patch | 13 + .../freebsd-lib/files/freebsd-lib-6.0-ssp.patch | 135 +++++ .../freebsd-lib/files/freebsd-lib-6.1-csu.patch | 20 + .../freebsd-lib/files/freebsd-lib-6.2-gcc41.patch | 26 + .../files/freebsd-lib-6.2-sparc64.patch | 106 ++++ .../freebsd-lib/files/freebsd-lib-7.0-ssp.patch | 135 +++++ .../freebsd-lib/files/freebsd-lib-bsdxml.patch | 13 + .../files/freebsd-sources-6.2-sparc64.patch | 594 +++++++++++++++++++++ .../freebsd-lib/freebsd-lib-7.0_pre200704.ebuild | 268 ++++++++++ sys-freebsd/freebsd-lib/metadata.xml | 5 + sys-freebsd/freebsd-libexec/ChangeLog | 187 +++++++ sys-freebsd/freebsd-libexec/Manifest | 19 + sys-freebsd/freebsd-libexec/files/bootpd.confd | 9 + sys-freebsd/freebsd-libexec/files/bootpd.initd | 28 + .../files/freebsd-libexec-6.1-libfallback.patch | 149 ++++++ .../files/freebsd-libexec-6.2-sparc64.patch | 34 ++ .../freebsd-libexec-7.0-libfallback.patch.old | 137 +++++ .../files/freebsd-libexec-nossp.patch | 12 + .../files/freebsd-libexec-setXid.patch | 10 + sys-freebsd/freebsd-libexec/files/ftpd.pamd | 20 + .../freebsd-libexec-7.0_pre200704.ebuild | 70 +++ sys-freebsd/freebsd-libexec/metadata.xml | 5 + sys-freebsd/freebsd-mk-defs/ChangeLog | 217 ++++++++ sys-freebsd/freebsd-mk-defs/Manifest | 7 + .../files/freebsd-mk-defs-6.0-gnu.patch | 105 ++++ .../files/freebsd-mk-defs-6.2-2-gentoo.patch | 288 ++++++++++ .../files/freebsd-mk-defs-7.0-gentoo.patch | 296 ++++++++++ .../freebsd-mk-defs-7.0_pre200704.ebuild | 40 ++ sys-freebsd/freebsd-mk-defs/metadata.xml | 5 + sys-freebsd/freebsd-pam-modules/ChangeLog | 135 +++++ sys-freebsd/freebsd-pam-modules/Manifest | 10 + .../freebsd-pam-modules/files/5.4/README.pamd | 63 +++ .../freebsd-pam-modules/files/5.4/convert.pl | 87 +++ .../freebsd-pam-modules/files/5.4/pam.d/other | 25 + .../freebsd-pam-modules/files/5.4/pam.d/system | 25 + .../files/5.4/pam.d/system-auth | 9 + .../files/freebsd-pam-modules-6.0-gentoo.patch | 24 + .../freebsd-pam-modules-7.0_pre200704.ebuild | 49 ++ sys-freebsd/freebsd-pam-modules/metadata.xml | 5 + sys-freebsd/freebsd-pf/ChangeLog | 134 +++++ sys-freebsd/freebsd-pf/Manifest | 11 + .../freebsd-pf/files/freebsd-pf-6.0-pcap.patch | 15 + sys-freebsd/freebsd-pf/files/pf.confd | 10 + sys-freebsd/freebsd-pf/files/pf.initd | 50 ++ .../freebsd-pf/freebsd-pf-7.0_pre200704.ebuild | 58 ++ sys-freebsd/freebsd-pf/metadata.xml | 5 + sys-freebsd/freebsd-rescue/ChangeLog | 110 ++++ sys-freebsd/freebsd-rescue/Manifest | 15 + .../files/freebsd-rescue-5.4-gentoo.patch | 12 + .../files/freebsd-rescue-5.4-sbin-gentoo.patch | 21 + .../freebsd-rescue-7.0_pre200704.ebuild | 51 ++ sys-freebsd/freebsd-rescue/metadata.xml | 5 + sys-freebsd/freebsd-sbin/ChangeLog | 253 +++++++++ sys-freebsd/freebsd-sbin/Manifest | 20 + sys-freebsd/freebsd-sbin/files/adjkerntz-crontab | 4 + sys-freebsd/freebsd-sbin/files/devd.conf | 153 ++++++ sys-freebsd/freebsd-sbin/files/devd.initd | 50 ++ sys-freebsd/freebsd-sbin/files/devd_queue | 50 ++ .../files/freebsd-sbin-6.1-pr102701.patch | 17 + .../freebsd-sbin/files/freebsd-sbin-setXid.patch | 20 + .../freebsd-sbin/files/freebsd-sbin-zlib.patch | 21 + sys-freebsd/freebsd-sbin/files/ipfw.confd | 7 + sys-freebsd/freebsd-sbin/files/ipfw.initd | 101 ++++ sys-freebsd/freebsd-sbin/files/sysctl.initd | 28 + .../freebsd-sbin/freebsd-sbin-7.0_pre200704.ebuild | 101 ++++ sys-freebsd/freebsd-sbin/metadata.xml | 5 + sys-freebsd/freebsd-share/ChangeLog | 178 ++++++ sys-freebsd/freebsd-share/Manifest | 15 + .../files/freebsd-share-5.3-doc-locations.patch | 20 + .../files/freebsd-share-5.4-gentoo-skel.patch | 20 + .../files/freebsd-share-7.0-locale.patch | 20 + .../freebsd-share-7.0_pre200704.ebuild | 75 +++ sys-freebsd/freebsd-share/metadata.xml | 5 + sys-freebsd/freebsd-sources/ChangeLog | 273 ++++++++++ sys-freebsd/freebsd-sources/Manifest | 11 + .../files/freebsd-sources-6.0-asm.patch | 143 +++++ .../files/freebsd-sources-6.0-flex-2.5.31.patch | 22 + .../files/freebsd-sources-6.0-werror.patch | 26 + .../files/freebsd-sources-6.1-ntfs.patch | 32 ++ .../files/freebsd-sources-6.2-gcc41.patch | 526 ++++++++++++++++++ .../files/freebsd-sources-6.2-sparc64.patch | 594 +++++++++++++++++++++ .../files/freebsd-sources-gentoo.patch | 34 ++ .../freebsd-sources-7.0_pre200704.ebuild | 100 ++++ sys-freebsd/freebsd-sources/metadata.xml | 5 + sys-freebsd/freebsd-ubin/ChangeLog | 321 +++++++++++ sys-freebsd/freebsd-ubin/Manifest | 22 + .../files/freebsd-ubin-6.0-bsdcmp.patch | 13 + .../files/freebsd-ubin-6.0-fixmakefiles.patch | 35 ++ .../files/freebsd-ubin-6.0-kdump-ioctl.patch | 28 + .../files/freebsd-ubin-6.1-gcc41.patch | 35 ++ .../files/freebsd-ubin-6.2-rpcgen-gcc4.1.patch | 131 +++++ .../files/freebsd-ubin-6.2-sparc64.patch | 92 ++++ .../files/freebsd-ubin-lint-stdarg.patch | 24 + .../freebsd-ubin/files/freebsd-ubin-setXid.patch | 129 +++++ .../freebsd-ubin/files/locate-updatedb-cron | 6 + sys-freebsd/freebsd-ubin/files/login.pamd | 20 + sys-freebsd/freebsd-ubin/files/passwd.pamd | 11 + sys-freebsd/freebsd-ubin/files/su.pamd | 17 + .../freebsd-ubin/freebsd-ubin-7.0_pre200704.ebuild | 115 ++++ sys-freebsd/freebsd-ubin/metadata.xml | 5 + sys-freebsd/freebsd-usbin/ChangeLog | 364 +++++++++++++ sys-freebsd/freebsd-usbin/Manifest | 32 ++ .../files/freebsd-usbin-6.0-fixmakefiles.patch | 24 + .../files/freebsd-usbin-6.1-gcc41.patch | 18 + .../files/freebsd-usbin-6.1-nowrap.patch | 48 ++ .../freebsd-usbin-6.2_rc2-libedit-netbsd.patch | 13 + .../files/freebsd-usbin-7.0-nowrap.patch | 45 ++ .../files/freebsd-usbin-adduser.patch | 20 + sys-freebsd/freebsd-usbin/files/moused.confd | 20 + sys-freebsd/freebsd-usbin/files/moused.initd | 66 +++ sys-freebsd/freebsd-usbin/files/nfs.confd | 24 + sys-freebsd/freebsd-usbin/files/nfs.initd | 209 ++++++++ sys-freebsd/freebsd-usbin/files/nfsmount.initd | 63 +++ sys-freebsd/freebsd-usbin/files/powerd.confd | 14 + sys-freebsd/freebsd-usbin/files/powerd.initd | 27 + sys-freebsd/freebsd-usbin/files/pw.conf | 5 + sys-freebsd/freebsd-usbin/files/rarpd.confd | 7 + sys-freebsd/freebsd-usbin/files/rarpd.initd | 35 ++ sys-freebsd/freebsd-usbin/files/rpcbind.initd | 30 ++ sys-freebsd/freebsd-usbin/files/syscons.confd | 14 + sys-freebsd/freebsd-usbin/files/syscons.initd | 78 +++ sys-freebsd/freebsd-usbin/files/syslogd.initd | 25 + .../freebsd-usbin-7.0_pre200704.ebuild | 176 ++++++ sys-freebsd/freebsd-usbin/metadata.xml | 5 + sys-freebsd/metadata.xml | 11 + 188 files changed, 11665 insertions(+) create mode 100644 profiles/base/ChangeLog create mode 100644 profiles/base/make.defaults create mode 100644 profiles/base/package.use.mask create mode 100644 profiles/base/package.use.mask.example create mode 100644 profiles/base/packages create mode 100644 profiles/base/profile.bashrc create mode 100644 profiles/base/use.defaults create mode 100644 profiles/base/use.force create mode 100644 profiles/base/use.mask create mode 100644 profiles/base/virtuals create mode 100644 profiles/default-bsd/ChangeLog create mode 100644 profiles/default-bsd/fbsd/7.0/make.defaults create mode 100644 profiles/default-bsd/fbsd/7.0/package.mask create mode 100644 profiles/default-bsd/fbsd/7.0/packages create mode 100644 profiles/default-bsd/fbsd/7.0/parent create mode 100644 profiles/default-bsd/fbsd/7.0/profile.bashrc create mode 100644 profiles/default-bsd/fbsd/7.0/sparc/make.defaults create mode 100644 profiles/default-bsd/fbsd/7.0/sparc/parent create mode 100644 profiles/default-bsd/fbsd/7.0/sparc/use.mask create mode 100644 profiles/default-bsd/fbsd/7.0/sparc/virtuals create mode 100644 profiles/default-bsd/fbsd/7.0/x86/make.defaults create mode 100644 profiles/default-bsd/fbsd/7.0/x86/package.use.mask create mode 100644 profiles/default-bsd/fbsd/7.0/x86/parent create mode 100644 profiles/default-bsd/fbsd/7.0/x86/use.mask create mode 100644 profiles/default-bsd/fbsd/make.defaults create mode 100644 profiles/default-bsd/fbsd/package.mask create mode 100644 profiles/default-bsd/fbsd/package.use.mask create mode 100644 profiles/default-bsd/fbsd/packages create mode 100644 profiles/default-bsd/fbsd/packages.build create mode 100644 profiles/default-bsd/fbsd/parent create mode 100644 profiles/default-bsd/fbsd/use.force create mode 100644 profiles/default-bsd/fbsd/use.mask create mode 100644 profiles/default-bsd/fbsd/virtuals create mode 100644 profiles/default-bsd/package.mask create mode 100644 profiles/default-bsd/package.use.force create mode 100644 profiles/default-bsd/package.use.mask create mode 100644 profiles/default-bsd/packages create mode 100644 profiles/default-bsd/parent create mode 100644 profiles/default-bsd/profile.bashrc create mode 100644 profiles/default-bsd/use.force create mode 100644 profiles/default-bsd/use.mask create mode 100644 profiles/default-bsd/virtuals create mode 100644 sys-freebsd/boot0/ChangeLog create mode 100644 sys-freebsd/boot0/Manifest create mode 100644 sys-freebsd/boot0/boot0-7.0_pre200704.ebuild create mode 100644 sys-freebsd/boot0/files/boot0-6.0-gentoo.patch create mode 100644 sys-freebsd/boot0/files/boot0-7.0-gentoo.patch create mode 100644 sys-freebsd/boot0/files/freebsd-sources-6.2-sparc64.patch create mode 100644 sys-freebsd/boot0/metadata.xml create mode 100644 sys-freebsd/freebsd-bin/ChangeLog create mode 100644 sys-freebsd/freebsd-bin/Manifest create mode 100644 sys-freebsd/freebsd-bin/files/freebsd-bin-6.0-flex-2.5.31.patch create mode 100644 sys-freebsd/freebsd-bin/freebsd-bin-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-bin/metadata.xml create mode 100644 sys-freebsd/freebsd-contrib/ChangeLog create mode 100644 sys-freebsd/freebsd-contrib/Manifest create mode 100644 sys-freebsd/freebsd-contrib/freebsd-contrib-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-contrib/metadata.xml create mode 100644 sys-freebsd/freebsd-lib/ChangeLog create mode 100644 sys-freebsd/freebsd-lib/Manifest create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-binutils-asm.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-ssp.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.1-csu.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-gcc41.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-sparc64.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-ssp.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch create mode 100644 sys-freebsd/freebsd-lib/files/freebsd-sources-6.2-sparc64.patch create mode 100644 sys-freebsd/freebsd-lib/freebsd-lib-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-lib/metadata.xml create mode 100644 sys-freebsd/freebsd-libexec/ChangeLog create mode 100644 sys-freebsd/freebsd-libexec/Manifest create mode 100644 sys-freebsd/freebsd-libexec/files/bootpd.confd create mode 100644 sys-freebsd/freebsd-libexec/files/bootpd.initd create mode 100644 sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.1-libfallback.patch create mode 100644 sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.2-sparc64.patch create mode 100644 sys-freebsd/freebsd-libexec/files/freebsd-libexec-7.0-libfallback.patch.old create mode 100644 sys-freebsd/freebsd-libexec/files/freebsd-libexec-nossp.patch create mode 100644 sys-freebsd/freebsd-libexec/files/freebsd-libexec-setXid.patch create mode 100644 sys-freebsd/freebsd-libexec/files/ftpd.pamd create mode 100644 sys-freebsd/freebsd-libexec/freebsd-libexec-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-libexec/metadata.xml create mode 100644 sys-freebsd/freebsd-mk-defs/ChangeLog create mode 100644 sys-freebsd/freebsd-mk-defs/Manifest create mode 100644 sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.0-gnu.patch create mode 100644 sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.2-2-gentoo.patch create mode 100644 sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-7.0-gentoo.patch create mode 100644 sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-mk-defs/metadata.xml create mode 100644 sys-freebsd/freebsd-pam-modules/ChangeLog create mode 100644 sys-freebsd/freebsd-pam-modules/Manifest create mode 100644 sys-freebsd/freebsd-pam-modules/files/5.4/README.pamd create mode 100644 sys-freebsd/freebsd-pam-modules/files/5.4/convert.pl create mode 100644 sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/other create mode 100644 sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system create mode 100644 sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system-auth create mode 100644 sys-freebsd/freebsd-pam-modules/files/freebsd-pam-modules-6.0-gentoo.patch create mode 100644 sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-pam-modules/metadata.xml create mode 100644 sys-freebsd/freebsd-pf/ChangeLog create mode 100644 sys-freebsd/freebsd-pf/Manifest create mode 100644 sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch create mode 100644 sys-freebsd/freebsd-pf/files/pf.confd create mode 100755 sys-freebsd/freebsd-pf/files/pf.initd create mode 100644 sys-freebsd/freebsd-pf/freebsd-pf-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-pf/metadata.xml create mode 100644 sys-freebsd/freebsd-rescue/ChangeLog create mode 100644 sys-freebsd/freebsd-rescue/Manifest create mode 100644 sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-gentoo.patch create mode 100644 sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch create mode 100644 sys-freebsd/freebsd-rescue/freebsd-rescue-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-rescue/metadata.xml create mode 100644 sys-freebsd/freebsd-sbin/ChangeLog create mode 100644 sys-freebsd/freebsd-sbin/Manifest create mode 100644 sys-freebsd/freebsd-sbin/files/adjkerntz-crontab create mode 100644 sys-freebsd/freebsd-sbin/files/devd.conf create mode 100644 sys-freebsd/freebsd-sbin/files/devd.initd create mode 100644 sys-freebsd/freebsd-sbin/files/devd_queue create mode 100644 sys-freebsd/freebsd-sbin/files/freebsd-sbin-6.1-pr102701.patch create mode 100644 sys-freebsd/freebsd-sbin/files/freebsd-sbin-setXid.patch create mode 100644 sys-freebsd/freebsd-sbin/files/freebsd-sbin-zlib.patch create mode 100644 sys-freebsd/freebsd-sbin/files/ipfw.confd create mode 100644 sys-freebsd/freebsd-sbin/files/ipfw.initd create mode 100644 sys-freebsd/freebsd-sbin/files/sysctl.initd create mode 100644 sys-freebsd/freebsd-sbin/freebsd-sbin-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-sbin/metadata.xml create mode 100644 sys-freebsd/freebsd-share/ChangeLog create mode 100644 sys-freebsd/freebsd-share/Manifest create mode 100644 sys-freebsd/freebsd-share/files/freebsd-share-5.3-doc-locations.patch create mode 100644 sys-freebsd/freebsd-share/files/freebsd-share-5.4-gentoo-skel.patch create mode 100644 sys-freebsd/freebsd-share/files/freebsd-share-7.0-locale.patch create mode 100644 sys-freebsd/freebsd-share/freebsd-share-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-share/metadata.xml create mode 100644 sys-freebsd/freebsd-sources/ChangeLog create mode 100644 sys-freebsd/freebsd-sources/Manifest create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-asm.patch create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-flex-2.5.31.patch create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-werror.patch create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-6.1-ntfs.patch create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-gcc41.patch create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-sparc64.patch create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-gentoo.patch create mode 100644 sys-freebsd/freebsd-sources/freebsd-sources-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-sources/metadata.xml create mode 100644 sys-freebsd/freebsd-ubin/ChangeLog create mode 100644 sys-freebsd/freebsd-ubin/Manifest create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.1-gcc41.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-rpcgen-gcc4.1.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-sparc64.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch create mode 100644 sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch create mode 100644 sys-freebsd/freebsd-ubin/files/locate-updatedb-cron create mode 100644 sys-freebsd/freebsd-ubin/files/login.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/passwd.pamd create mode 100644 sys-freebsd/freebsd-ubin/files/su.pamd create mode 100644 sys-freebsd/freebsd-ubin/freebsd-ubin-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-ubin/metadata.xml create mode 100644 sys-freebsd/freebsd-usbin/ChangeLog create mode 100644 sys-freebsd/freebsd-usbin/Manifest create mode 100644 sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.0-fixmakefiles.patch create mode 100644 sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-gcc41.patch create mode 100644 sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-nowrap.patch create mode 100644 sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch create mode 100644 sys-freebsd/freebsd-usbin/files/freebsd-usbin-7.0-nowrap.patch create mode 100644 sys-freebsd/freebsd-usbin/files/freebsd-usbin-adduser.patch create mode 100644 sys-freebsd/freebsd-usbin/files/moused.confd create mode 100644 sys-freebsd/freebsd-usbin/files/moused.initd create mode 100644 sys-freebsd/freebsd-usbin/files/nfs.confd create mode 100755 sys-freebsd/freebsd-usbin/files/nfs.initd create mode 100755 sys-freebsd/freebsd-usbin/files/nfsmount.initd create mode 100644 sys-freebsd/freebsd-usbin/files/powerd.confd create mode 100755 sys-freebsd/freebsd-usbin/files/powerd.initd create mode 100644 sys-freebsd/freebsd-usbin/files/pw.conf create mode 100644 sys-freebsd/freebsd-usbin/files/rarpd.confd create mode 100644 sys-freebsd/freebsd-usbin/files/rarpd.initd create mode 100755 sys-freebsd/freebsd-usbin/files/rpcbind.initd create mode 100644 sys-freebsd/freebsd-usbin/files/syscons.confd create mode 100755 sys-freebsd/freebsd-usbin/files/syscons.initd create mode 100755 sys-freebsd/freebsd-usbin/files/syslogd.initd create mode 100644 sys-freebsd/freebsd-usbin/freebsd-usbin-7.0_pre200704.ebuild create mode 100644 sys-freebsd/freebsd-usbin/metadata.xml create mode 100644 sys-freebsd/metadata.xml diff --git a/profiles/base/ChangeLog b/profiles/base/ChangeLog new file mode 100644 index 0000000..6ea41bf --- /dev/null +++ b/profiles/base/ChangeLog @@ -0,0 +1,32 @@ +# ChangeLog for Gentoo base-profile +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/ChangeLog,v 1.9 2007/03/31 19:28:49 antarus Exp $ + + 30 Mar 2007; Alec Warner make.defaults: + Remove autoconfig from FEATURES, it died a long time ago + + 12 Mar 2007; Joseph Jezak use.mask: + Add macbook USE flag to use.mask. + + 05 Mar 2007; Stephen Bennett make.defaults: + Add /etc/env.d to CONFIG_PROTECT_MASK + + 15 Feb 2007; Chris Gianelloni use.defaults: + Removed udev remnants using a patch from Arfrever Frehtes Taifersar Arahesis + and closing bug #166917. + + 29 Jan 2007; Diego Pettenò make.defaults: + Add midi useflag by default to cope with newer alsa versions. + + 27 Jan 2007; Alon Bar-Lev make.defaults: + Added CAMERAS USE_EXPAND bug#139884 + + 22 Jan 2007; Christian Faulhammer use.mask: + masked bmpx USE flag in order to stable conky + + 18 Jan 2007; Robert Buchholz use.mask: + Masked lcd_devices_svga as it only works on x86 + + 17 Jan 2007; Robert Buchholz make.defaults: + Added LCD_DEVICES to USE_EXPAND and provided some defaults + diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults new file mode 100644 index 0000000..83bf8b3 --- /dev/null +++ b/profiles/base/make.defaults @@ -0,0 +1,39 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/make.defaults,v 1.35 2007/03/31 19:28:49 antarus Exp $ +# +# System-wide defaults for the Portage system +# See portage(5) manpage + +# Turn on strict checking and smart filesystems permissions (man make.conf) +FEATURES="strict sfperms" + +# Env vars to expand into USE vars. Modifying this requires prior +# discussion on gentoo-dev@gentoo.org. +USE_EXPAND="FOO2ZJS_DEVICES MISDN_CARDS FRITZCAPI_CARDS FCDSL_CARDS VIDEO_CARDS DVB_CARDS LIRC_DEVICES INPUT_DEVICES LINGUAS USERLAND KERNEL ELIBC CROSSCOMPILE_OPTS ALSA_CARDS ALSA_PCM_PLUGINS LCD_DEVICES CAMERAS" + +# USE_EXPAND variables whose contents are not shown in package manager +# output. Changes need discussion on gentoo-dev. +USE_EXPAND_HIDDEN="USERLAND KERNEL ELIBC CROSSCOMPILE_OPTS" + +CONFIG_PROTECT="/etc" +CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf" + +# 'Sane' defaults +ELIBC="glibc" +KERNEL="linux" +USERLAND="GNU" +INPUT_DEVICES="keyboard mouse" + +# Diego Pettenò (21 Dec 2006) +# Build everything for the average user +ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" + +# Robert Buchholz (17 Jan 2006) +# Some common lcd devices +LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" + +# Diego Pettenò (29 Jan 2007) +# As parts of the tree might suffer if you got midi disabled, for now +# enable midi useflag by default. Many users might disable this. +USE="${USE} midi" diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask new file mode 100644 index 0000000..7dcbf26 --- /dev/null +++ b/profiles/base/package.use.mask @@ -0,0 +1,9 @@ +# This file requires >=portage-2.1.1 + +dev-java/sun-jdk nsplugin +dev-java/sun-jre-bin nsplugin +dev-java/ibm-jdk-bin nsplugin +dev-java/ibm-jre-bin nsplugin + +# These are for BSD only +net-proxy/squid -pf-transparent pf-transparent diff --git a/profiles/base/package.use.mask.example b/profiles/base/package.use.mask.example new file mode 100644 index 0000000..6477b6a --- /dev/null +++ b/profiles/base/package.use.mask.example @@ -0,0 +1,25 @@ +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/package.use.mask.example,v 1.1 2006/10/03 01:10:42 antarus Exp $ + +# This file requires >=portage-2.1.1 +# It's named example so portage doesn't open it and it doesn't do anything yet. +# The syntax is similar to /etc/portage/package.use + +### +### Examples! +### +### Masking + +# sys-devel/gcc hardened # mask hardened USE flag for sys-devel/gcc + + +### Unmasking +# sys-devel/gcc -hardened # unmask hardened USE flag for sys-devel/gcc + +# DO NOT DO +# -sys-devel/gcc hardened + +# This wrong example is here because someone did it (he blamed his copy +# and pasting program). + diff --git a/profiles/base/packages b/profiles/base/packages new file mode 100644 index 0000000..3a29802 --- /dev/null +++ b/profiles/base/packages @@ -0,0 +1,77 @@ +# Copyright 2004 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/packages,v 1.40 2006/10/17 14:24:38 dsd Exp $ + +# Gentoo Base Profile + +# NOTE: THIS IS THE BASE PROFILE FOR *ANY* GENTOO BASED OPERATING SYSTEM. +# NO MODIFICATIONS MAY BE MADE TO THIS FILE WITHOUT PRIOR DISCUSSION. IF +# YOU ARE CREATING A NEW PROFILE, YOU SIMPLY NEED TO INHERIT THIS BASE +# PROFILE IN YOUR PROFILE DIRECTORY'S "parent" FILE. + + +# OK, you're staring at this file and you have no idea what these stars are +# for. Here's the scoop. An initial "*" marks a package that is part of +# the official BASE system profile. If there is a "*" then `emerge system` +# will use the line in its calculations of what should be installed for the +# base profile. Lines without a "*" prefix will be ignored for profile +# system calculations. + +# Please note that this file is rarely used as a package inclusion mask +# file, because it affects EVERY SINGLE gentoo profile. As can be seen, +# we've limited the inclusion mask to a version of portage which supports +# cascaded profiles, but apart from that, there should be no version +# specific information in here. This file serves as a high level description +# of the minimum set of packages needed for any Gentoo based system. + +*virtual/baselayout +*app-arch/bzip2 +*app-arch/cpio +*app-arch/tar +*app-shells/bash +*dev-lang/perl +*dev-lang/python +*net-misc/iputils +*net-misc/rsync +*net-misc/wget +*sys-apps/coreutils +*sys-apps/debianutils +*sys-apps/diffutils +*sys-apps/file +*sys-apps/findutils +*sys-apps/gawk +*sys-apps/grep +*sys-apps/groff +*sys-apps/kbd +*sys-apps/net-tools +*>=sys-apps/portage-2.0.51.22 +*sys-process/procps +*sys-process/psmisc +*sys-apps/sed +*sys-apps/shadow +*sys-apps/texinfo +*sys-apps/which +*sys-devel/autoconf +*sys-devel/automake +*sys-devel/binutils +*sys-devel/bison +*sys-devel/flex +*sys-devel/gcc +*sys-devel/gnuconfig +*sys-devel/libtool +*sys-devel/m4 +*sys-devel/make +*sys-devel/patch +*sys-fs/e2fsprogs +*sys-libs/ncurses +*sys-libs/readline +*sys-libs/zlib +*virtual/dev-manager +*virtual/editor +*virtual/gzip +*virtual/libc +*virtual/man +*virtual/modutils +*virtual/os-headers +*virtual/pager +*virtual/ssh diff --git a/profiles/base/profile.bashrc b/profiles/base/profile.bashrc new file mode 100644 index 0000000..c76d82f --- /dev/null +++ b/profiles/base/profile.bashrc @@ -0,0 +1,14 @@ +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/profile.bashrc,v 1.2 2006/07/06 21:35:00 genone Exp $ + +for conf in ${PN} ${PN}-${PV} ${PN}-${PV}-${PR}; do + [[ -r ${PORTAGE_CONFIGROOT}/etc/portage/env/${CATEGORY}/${conf} ]] \ + && . ${PORTAGE_CONFIGROOT}/etc/portage/env/${CATEGORY}/${conf} +done + +if [[ $(type -t elog) != "function" ]]; then + elog() { + einfo "$@" + } +fi diff --git a/profiles/base/use.defaults b/profiles/base/use.defaults new file mode 100644 index 0000000..011ea54 --- /dev/null +++ b/profiles/base/use.defaults @@ -0,0 +1,125 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/use.defaults,v 1.30 2007/03/04 10:23:42 hkbst Exp $ + +aalib media-libs/aalib +acl sys-apps/acl +adns net-libs/adns +afs net-fs/openafs +alsa media-libs/alsa-lib +arts kde-base/arts +audiofile media-libs/audiofile +bash-completion app-shells/bash-completion +berkdb sys-libs/db +bonobo gnome-base/bonobo +bzip2 app-arch/bzip2 +canna app-i18n/canna +cdb dev-db/cdb +cdr app-cdr/cdrtools +cscope dev-util/cscope +cups net-print/cups +curl net-misc/curl +directfb dev-libs/DirectFB +dts media-libs/libdts +eds gnome-extra/evolution-data-server +emacs app-editors/emacs-cvs +emacs app-editors/emacs +emboss sci-biology/emboss +esd media-sound/esound +ethereal net-analyzer/ethereal +exif media-libs/libexif +expat dev-libs/expat +fam virtual/fam +firebird dev-db/firebird +ffmpeg media-video/ffmpeg +flac media-libs/flac +foomaticdb net-print/foomatic-db +freetds dev-db/freetds +gd media-libs/gd +gdbm sys-libs/gdbm +geoip dev-libs/geoip +ggi media-libs/libggi +gif media-libs/giflib +glut virtual/glut +gmp dev-libs/gmp +gnome gnome-base/gnome +gphoto2 media-gfx/gphoto2 +gpm sys-libs/gpm +gstreamer media-libs/gstreamer +gtk x11-libs/gtk+ +gtkhtml gnome-extra/gtkhtml +guile dev-scheme/guile +hal sys-apps/hal +howl net-misc/howl +idn net-dns/libidn +imagemagick media-gfx/imagemagick +imlib media-libs/imlib +jack media-sound/jack-audio-connection-kit +java virtual/jre +jpeg media-libs/jpeg +junit dev-java/junit +kde kde-base/kdebase +lcms media-libs/lcms +ldap net-nds/openldap +libcaca media-libs/libcaca +libedit dev-libs/libedit +libwww net-libs/libwww +lirc app-misc/lirc +lua dev-lang/lua +mad media-libs/libmad +matroska media-libs/libmatroska +mcal dev-libs/libmcal +mhash app-crypt/mhash +mikmod media-libs/libmikmod +ming media-libs/ming +mng media-libs/libmng +motif x11-libs/openmotif +mozilla www-client/mozilla +mysql dev-db/mysql +nas media-libs/nas +ncurses sys-libs/ncurses +nls sys-devel/gettext +odbc dev-db/unixODBC +ogg media-libs/libogg +openal media-libs/openal +opengl virtual/opengl +pam sys-libs/pam +pcre dev-libs/libpcre +pdf media-libs/pdflib +perl dev-lang/perl +php dev-lang/php +plotutils media-libs/plotutils +png media-libs/libpng +postgres dev-db/postgresql +python dev-lang/python +qt3 x11-libs/qt +readline sys-libs/readline +recode app-text/recode +ruby dev-lang/ruby +samba net-fs/samba +scanner media-gfx/sane-backends +sdl media-libs/libsdl +slang sys-libs/slang +snmp net-analyzer/net-snmp +speex media-libs/speex +sqlite dev-db/sqlite +ssl dev-libs/openssl +svg media-libs/libsvg +svga media-libs/svgalib +tcl dev-lang/tcl +tk dev-lang/tk +tcpd sys-apps/tcp-wrappers +tetex app-text/tetex +tiff media-libs/tiff +truetype media-libs/freetype +usb dev-libs/libusb +vorbis media-libs/libvorbis +wmf media-libs/libwmf +X virtual/x11 +xine media-libs/xine-lib +xml dev-libs/libxml +xml2 dev-libs/libxml2 +xmms media-sound/xmms +xvid media-libs/xvid +yaz dev-libs/yaz +zlib sys-libs/zlib diff --git a/profiles/base/use.force b/profiles/base/use.force new file mode 100644 index 0000000..01486e6 --- /dev/null +++ b/profiles/base/use.force @@ -0,0 +1,5 @@ +# Force the GNU/Linux ELIBC, KERNEL, and USERLAND +# flags that apply to the majority of profiles. +elibc_glibc +kernel_linux +userland_GNU diff --git a/profiles/base/use.mask b/profiles/base/use.mask new file mode 100644 index 0000000..37dff81 --- /dev/null +++ b/profiles/base/use.mask @@ -0,0 +1,169 @@ +# profile specific USE flags +selinux +uclibc + +# amd64/x86 arch specific USE flags +kqemu +3dnow +3dnowext +icc +icc-pgo +ifc +mmx +mmxext +sse +sse2 +svga +win32codecs +real +nvram + +# ppc arch specific USE flags +altivec +pbbuttonsd +ppcsha1 + +# mips arch specific USE flags +n32 +n64 + +# ppc64 arch specific USE flags +ibm + +# sparc arch specific USE flags +vis +ultra1 + +# nVidia XvMC requires nvidia-drivers/nvidia-legacy-drivers +nvidia + +# dev-db/oracle-instantclient-basic is only available on x86 +oci8-instant-client + +# net-libs/osptoolkit is only available on x86 (used by asterisk, bug 115798) +osp + +# yellownet is only avaible as a binary blob (bug 149970) +yellownet + +# not needed on non-sparc systems +video_cards_sunbw2 +video_cards_suncg14 +video_cards_suncg3 +video_cards_suncg6 +video_cards_sunffb +video_cards_sunleo +video_cards_suntcx + +# not needed on non-mips system +video_cards_newport +video_cards_impact + +# not needed on non-x86, non-amd64 systems +input_devices_vmmouse +video_cards_nvidia +video_cards_fglrx +video_cards_vmware + +# not needed on non-x86, non-amd64, non-ppc systems +input_devices_synaptics +input_devices_wacom + +# beep-media-player is in package.mask +bmp +# media-sound/bmpx is broken, app-admin/conky wants to pull it in (bug #162405) +bmpx + +# xmms is going away +xmms +# app-admin/conky deps on xmms with this flag +infopipe + +# psyco only works on x86 +psyco + +# Mask ELIBC, KERNEL, and USERLAND flags that apply to specific profiles. +elibc_FreeBSD +elibc_NetBSD +elibc_OpenBSD +elibc_Darwin +elibc_DragonFly +elibc_uclibc +kernel_Darwin +kernel_FreeBSD +userland_BSD +userland_Darwin + +# Diego Pettenò (6 Dec 2006) +# Mask specific Apple drivers +alsa_cards_aoa +alsa_cards_aoa-fabric-layout +alsa_cards_aoa-onyx +alsa_cards_aoa-soundbus +alsa_cards_aoa-soundbus-i2s +alsa_cards_aoa-tas +alsa_cards_aoa-toonie +alsa_cards_powermac +# Mask specific Sun drivers +alsa_cards_sun-amd7930 +alsa_cards_sun-cs4231 +alsa_cards_sun-dbri +# Mask specific ARM drivers +alsa_cards_pxa2xx-i2sound +alsa_cards_pxa2xx-soc +alsa_cards_pxa2xx-soc-corgi +alsa_cards_pxa2xx-soc-poodle +alsa_cards_pxa2xx-soc-spitz +alsa_cards_pxa2xx-soc-tosa +alsa_cards_sa11xx-uda1341ts +alsa_cards_armaaci +alsa_cards_at91-soc +alsa_cards_at91-soc-eti-b1-wm8731 +# Mask specific HPPA drivers +alsa_cards_harmony +# Mask specific MIPS drivers +alsa_cards_au1x00 + +# Diego Pettenò (29 Dec 2006) +# Adobe FDF toolkit is x86 only. +fdftk + +# Diego Pettenò (30 Dec 2006) +# These are specific of Mac OS X +aqua +coreaudio + +# Diego Pettenò (4 Jan 2007) +# Mask the flags for PHP that are available only on x86 +fdftk +sybase-ct +ingres +birdstep +adabas +filepro +pfpro +informix +empress +empress-bcs +sybase +frontbase +dbmaker +esoob +solid +# Shared with amd64 +oci8 +oracle7 +firebird +db2 + +# Robert Buchholz (18 Jan 2007) +# Only works on x86 +lcd_devices_svga + +# Joseph Jezak (11 Mar 2007) +# Only for x86 and amd64 (in pbbuttonsd) +macbook + +# George Shapovalov (8 Apr 2007) +# Ada is supported only on x86, amd64 and ppc at present +ada diff --git a/profiles/base/virtuals b/profiles/base/virtuals new file mode 100644 index 0000000..900017d --- /dev/null +++ b/profiles/base/virtuals @@ -0,0 +1,74 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/base/virtuals,v 1.99 2007/02/11 04:26:55 pylon Exp $ + +# This file describes the packages that by default satisfy a certain virtual +# That this file exists in the base profile implies that these packages will +# work on any architecture that needs that virtual + +# KEEP THIS FILE SORTED ALPHABETICALLY OR RISK WRATH + +virtual/alsa sys-kernel/gentoo-sources +virtual/antivirus app-antivirus/clamav +virtual/aspell-dict app-dicts/aspell-en +virtual/baselayout sys-apps/baselayout +virtual/bittorrent net-p2p/bittorrent +virtual/blackbox x11-wm/blackbox +virtual/blas sci-libs/blas-atlas +virtual/cblas sci-libs/blas-atlas +virtual/cdrtools app-cdr/cdrkit +virtual/commonlisp dev-lisp/sbcl +virtual/cron sys-process/vixie-cron +virtual/dev-manager sys-fs/udev +virtual/dhcpc net-misc/dhcpcd +virtual/editor app-editors/nano +virtual/eject sys-apps/eject +virtual/emacs app-editors/emacs +virtual/fam app-admin/gamin +virtual/flim app-emacs/flim +virtual/gsasl net-libs/libgsasl +virtual/ghc dev-lang/ghc-bin +virtual/gnustep-back gnustep-base/gnustep-back-art +virtual/gzip app-arch/gzip +virtual/httpd-php dev-lang/php +virtual/imap-c-client net-libs/c-client +virtual/imapd net-mail/courier-imap +virtual/inetd sys-apps/xinetd +virtual/j2ee dev-java/sun-j2ee +virtual/jabber-server net-im/jabberd +virtual/krb5 app-crypt/mit-krb5 +virtual/lapack sci-libs/lapack-atlas +virtual/libc sys-libs/glibc +virtual/libpcap net-libs/libpcap +virtual/linux-sources sys-kernel/gentoo-sources +virtual/logger app-admin/metalog +virtual/lpr net-print/cups +virtual/m3 dev-lang/cm3-bin +virtual/mailx mail-client/mailx +virtual/man sys-apps/man +virtual/mda mail-filter/procmail +virtual/modutils sys-apps/module-init-tools +virtual/motif x11-libs/openmotif +virtual/mpg123 media-sound/mpg123 +virtual/mta mail-mta/ssmtp +virtual/ooo app-office/openoffice-bin +virtual/pager sys-apps/less +# Only have this for >=pam-0.78, as we want to make use of the 'include' +# directive to phase out pam_stack. +virtual/pam >=sys-libs/pam-0.78 +virtual/pbs sys-cluster/torque +virtual/php dev-lang/php +virtual/portage sys-apps/portage +virtual/python dev-lang/python +virtual/quicktime media-libs/libquicktime +virtual/ruby dev-lang/ruby +virtual/semi app-emacs/semi +virtual/skkserv app-i18n/skkserv +virtual/squeak-image dev-lang/squeak-fullimage +virtual/ssh net-misc/openssh +virtual/sylpheed mail-client/sylpheed +virtual/tetex app-text/tetex +virtual/tftp net-ftp/tftp-hpa +virtual/utempter sys-libs/libutempter +virtual/w3m www-client/w3m +virtual/xemacs app-editors/xemacs diff --git a/profiles/default-bsd/ChangeLog b/profiles/default-bsd/ChangeLog new file mode 100644 index 0000000..38a7fde --- /dev/null +++ b/profiles/default-bsd/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for profile directory +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/ChangeLog,v 1.2 2007/03/23 14:48:24 beandog Exp $ + + 23 Mar 2007; Steve Dibb package.use.mask: + Restrict dvdnav use flag on BSD + + 22 Mar 2007; Steve Dibb use.mask: + Add mplayer local use flags, add changelog + diff --git a/profiles/default-bsd/fbsd/7.0/make.defaults b/profiles/default-bsd/fbsd/7.0/make.defaults new file mode 100644 index 0000000..b58e572 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/make.defaults @@ -0,0 +1,9 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/6.2/make.defaults,v 1.2 2006/10/07 10:57:28 flameeyes Exp $ + +# Note: CHOST must be *-gentoo-freebsd6.2, so that Gentoo can be recognized in +# ./configure files. +# Note: ARCH must be *-fbsd + +USE="cups gdbm gpm libg++ ppds unicode" diff --git a/profiles/default-bsd/fbsd/7.0/package.mask b/profiles/default-bsd/fbsd/7.0/package.mask new file mode 100644 index 0000000..b8c69c8 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/package.mask @@ -0,0 +1,48 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/7.0/package.mask,v 1.7 2006/12/13 11:51:37 drizzt Exp $ + +# Diego Pettenò +# Make sure we don't get wrong versions +sys-freebsd/freebsd-pam-modules-7.0.99 +sys-freebsd/freebsd-rescue-7.0.99 +sys-freebsd/freebsd-pf-7.0.99 +sys-freebsd/freebsd-mk-defs-7.0.99 +sys-freebsd/freebsd-lib-7.0.99 +sys-freebsd/freebsd-libexec-7.0.99 +sys-freebsd/freebsd-bin-7.0.99 +sys-freebsd/freebsd-sbin-7.0.99 +sys-freebsd/freebsd-ubin-7.0.99 +sys-freebsd/freebsd-usbin-7.0.99 +sys-freebsd/freebsd-share-7.0.99 +sys-freebsd/freebsd-contrib-7.0.99 +sys-freebsd/boot0-7.0.99 +sys-freebsd/freebsd-sources-7.0.99 + +# Diego Pettenò (4 Oct 2006) +# We want this unmasked as is the only baselayout usable here +->=sys-apps/baselayout-1.13.0_alpha1 + +# And this masked as we cannot use this anymore +sys-freebsd/freebsd-baselayout + (21 Oct 2006) +# We need a newer version of sandbox, as it's the only one working +# for us +->=sys-apps/sandbox-1.2.20_alpha1 +=sys-apps/baselayout-1.13_alpha diff --git a/profiles/default-bsd/fbsd/7.0/parent b/profiles/default-bsd/fbsd/7.0/parent new file mode 100644 index 0000000..f3229c5 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/default-bsd/fbsd/7.0/profile.bashrc b/profiles/default-bsd/fbsd/7.0/profile.bashrc new file mode 100644 index 0000000..4c9d5b9 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/profile.bashrc @@ -0,0 +1,4 @@ +alias make=gmake +alias patch=gpatch +alias sed=gsed +alias awk=gawk diff --git a/profiles/default-bsd/fbsd/7.0/sparc/make.defaults b/profiles/default-bsd/fbsd/7.0/sparc/make.defaults new file mode 100644 index 0000000..c7ca899 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/sparc/make.defaults @@ -0,0 +1,11 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/6.2/sparc/make.defaults,v 1.1 2006/10/16 19:42:36 uberlord Exp $ +# System-wide defaults for the G/FBSD 6.2 Portage system + +ARCH="sparc-fbsd" +CHOST="sparc64-gentoo-freebsd6.2" +CFLAGS="-O2 -pipe" +CXXFLAGS="${CFLAGS}" + +ACCEPT_KEYWORDS="~sparc-fbsd sparc-fbsd" diff --git a/profiles/default-bsd/fbsd/7.0/sparc/parent b/profiles/default-bsd/fbsd/7.0/sparc/parent new file mode 100644 index 0000000..f3229c5 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/sparc/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/default-bsd/fbsd/7.0/sparc/use.mask b/profiles/default-bsd/fbsd/7.0/sparc/use.mask new file mode 100644 index 0000000..ad339b4 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/sparc/use.mask @@ -0,0 +1,3 @@ +# Copyright 2006 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/6.2/sparc/use.mask,v 1.2 2007/01/02 20:59:50 flameeyes Exp $ diff --git a/profiles/default-bsd/fbsd/7.0/sparc/virtuals b/profiles/default-bsd/fbsd/7.0/sparc/virtuals new file mode 100644 index 0000000..1912a89 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/sparc/virtuals @@ -0,0 +1,10 @@ +# Copyright 2007 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/6.2/sparc/virtuals,v 1.1 2007/01/02 21:48:26 flameeyes Exp $ + +# This file defines the virtuals that Gentoo/FreeBSD for SPARC64 needs +# to modify respect the parent profile + +# KEEP THIS FILE SORTED ALPHABETICALLY OR RISK WRATH + +virtual/emacs app-editors/emacs-cvs diff --git a/profiles/default-bsd/fbsd/7.0/x86/make.defaults b/profiles/default-bsd/fbsd/7.0/x86/make.defaults new file mode 100644 index 0000000..0d125cc --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/x86/make.defaults @@ -0,0 +1,19 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/6.2/x86/make.defaults,v 1.3 2006/12/02 17:44:13 flameeyes Exp $ +# System-wide defaults for the G/FBSD 6.2 Portage system + +ARCH="x86-fbsd" +CHOST="i486-gentoo-freebsd6.2" +CFLAGS="-march=i486 -O2 -pipe" +CXXFLAGS="${CFLAGS}" + +ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd" + +VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy i128 i810 mga \ + neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tga \ + trident tseng vga via vmware" + +# Diego Pettenò (2 Dec 2006) +# Turn this on by default as we don't have Java 1.4 at all +USE="${USE} java5" diff --git a/profiles/default-bsd/fbsd/7.0/x86/package.use.mask b/profiles/default-bsd/fbsd/7.0/x86/package.use.mask new file mode 100644 index 0000000..0fc202e --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/x86/package.use.mask @@ -0,0 +1,5 @@ +# Java currently uses generation 1 +dev-libs/cyrus-sasl java + +# Python bindings for avahi work... +net-dns/avahi -python diff --git a/profiles/default-bsd/fbsd/7.0/x86/parent b/profiles/default-bsd/fbsd/7.0/x86/parent new file mode 100644 index 0000000..f3229c5 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/x86/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/default-bsd/fbsd/7.0/x86/use.mask b/profiles/default-bsd/fbsd/7.0/x86/use.mask new file mode 100644 index 0000000..1b22e13 --- /dev/null +++ b/profiles/default-bsd/fbsd/7.0/x86/use.mask @@ -0,0 +1,23 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/6.2/x86/use.mask,v 1.4 2006/10/08 10:56:50 flameeyes Exp $ + +-3dnow +-3dnowext +-mmx +-mmxext +-sse +-sse2 +-win32codecs + +# nvidia drivers works on x86 +-xvmc +-nvidia +-video_cards_nvidia + +# Unmask vmware drivers +-video_cards_vmware +-input_devices_vmmouse + +# Diablo Latte and Caffe (JRE and JDK) works here +-java diff --git a/profiles/default-bsd/fbsd/make.defaults b/profiles/default-bsd/fbsd/make.defaults new file mode 100644 index 0000000..addaef7 --- /dev/null +++ b/profiles/default-bsd/fbsd/make.defaults @@ -0,0 +1,41 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/make.defaults,v 1.9 2007/02/20 22:43:17 wolf31o2 Exp $ + +FEATURES="-sandbox" + +USERLAND="BSD" +KERNEL="FreeBSD" +ELIBC="FreeBSD" + +MAKE="gmake" + +USE="berkdb crypt ipv6 ncurses nls pam perl python readline ssl tcpd zlib" + +# Don't enable ipv6 because it can create trouble sto who have only IPv4 +USE="${USE} -ipv6" + +# 2006/03/07 - Donnie Berkholz +# Modular X: Support direct rendering by default +USE="${USE} dri" + +# 2006/04/19 - Chris Gianelloni +# Make sure dev-lang/php works right. See bug #120088 for more info. +USE="${USE} cli pcre reflection session spl" + +# 2006/04/21 - Donnie Berkholz +# Modular X: Build the Xorg X server by default +USE="${USE} xorg" + +# 2006/08/18 - Donnie Berkholz +# Defaults for video drivers +VIDEO_CARDS="dummy fbdev vmware" + +# 2006/10/22 - Diego Pettenò +# FreeBSD only uses Open Sound System, so enable it even if Linux defaults for it to off. +USE="${USE} oss" + +# 2006/10/30 - Diego Pettenò +# Enable iconv by default for mplayer upon Luca's request +USE="${USE} iconv" + diff --git a/profiles/default-bsd/fbsd/package.mask b/profiles/default-bsd/fbsd/package.mask new file mode 100644 index 0000000..109bbc8 --- /dev/null +++ b/profiles/default-bsd/fbsd/package.mask @@ -0,0 +1,37 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/package.mask,v 1.8 2006/11/06 22:28:58 drizzt Exp $ + +# As soon as the ~x86-fbsd keyword is spread enough, drop the extra masking +# used to limit usage of unsupported packages. + +# Diego Pettenò (27 May 2005) +# SGI's FAM is dead upstream, and requires mayor changes. +# Gamin before 0.1.0 is not supported as missed the FreeBSD patches. +# At the moment we rely on Gentopia's patched Gamin. +app-admin/fam + (23 May 2005) +# Strace doesn't support FreeBSD 5. When a better port will be +# available, this can be unmasked. +dev-util/strace + +# Diego Pettenò (28 April 2005) +# Those versions uses the pam_stack module instead of include format. +<=app-admin/sudo-1.6.7_p5-r2 + (26 Aug 2005) +# mpg123 has too many patches and handling it is difficult, let's default +# to mpg321 that works out of the box. +media-sound/mpg123 + +# Don't use them, use the one in base system +dev-util/yacc +dev-util/byacc + +# Timothy Redaelli (06 Nov 2006) +# Unmask the newer version, it's only that works +->=sys-apps/dbus-0.91 diff --git a/profiles/default-bsd/fbsd/package.use.mask b/profiles/default-bsd/fbsd/package.use.mask new file mode 100644 index 0000000..8720964 --- /dev/null +++ b/profiles/default-bsd/fbsd/package.use.mask @@ -0,0 +1,43 @@ +app-text/crm114 mew mimencode test + +# ptex isn't tested yet +app-text/xdvik cjk + +# Threaded Postgres is a total no go - initdb hands and psql +# segfaults when result set requires a pager +dev-db/libpq threads +dev-db/postgresql threads + +# Threaded Ruby (1.8) on FreeBSD segfaults +dev-lang/ruby threads + +# Somehow, check's tests are broken.. +dev-libs/confuse test +dev-util/checkstyle test + +# Dillo won't run on FreeBSD +# PDA masked until we can do some testing on it +mail-client/claws-mail dillo pda + +# Python support isn't tested (Twisted for instance) +net-dns/avahi python + +# Original spell plugin uses ispell that requires +# miscfiles.. that in turn does not work +net-irc/rbot spell + +# Diego Pettenò (18 Jan 2007) +# Vixie-Cron uses pam useflag for pam_limits.so that is provided +# by Linux-PAM we don't use for now. +sys-process/vixie-cron pam + +x11-misc/xscreensaver new-login + +# media-libs/mesa with xcb actually doesn't work +media-libs/mesa xcb + +# net-wireless/aircrack-ng - wireless capture tools not needed. +net-wireless/aircrack-ng wifi + +# sane-backends not yet keyworded, xv doesn't build +dev-python/imaging scanner X diff --git a/profiles/default-bsd/fbsd/packages b/profiles/default-bsd/fbsd/packages new file mode 100644 index 0000000..7890530 --- /dev/null +++ b/profiles/default-bsd/fbsd/packages @@ -0,0 +1,24 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/packages,v 1.5 2006/10/05 16:27:06 flameeyes Exp $ + +# This files contains a small list of packages that define a +# minimal FreeBSD system. DO NOT change this without contacting +# Stephen Bennet or Diego Pettenò +# +*sys-freebsd/freebsd-lib +*sys-freebsd/freebsd-libexec +*sys-freebsd/freebsd-bin +*sys-freebsd/freebsd-sbin +*sys-freebsd/freebsd-ubin +*sys-freebsd/freebsd-usbin +*sys-freebsd/freebsd-share +*sys-freebsd/freebsd-contrib +*sys-freebsd/boot0 + +*sys-devel/gettext +*dev-libs/libiconv + +*app-arch/bsdtar + +*sys-libs/timezone-data diff --git a/profiles/default-bsd/fbsd/packages.build b/profiles/default-bsd/fbsd/packages.build new file mode 100644 index 0000000..697447c --- /dev/null +++ b/profiles/default-bsd/fbsd/packages.build @@ -0,0 +1,46 @@ +# Copyright 2004 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/packages.build,v 1.1 2006/10/05 16:31:36 flameeyes Exp $ + +# This file describes the packages needed to build a stage 1 based on this +# profile. Packages in this file are built in order. + +# Please do not move perl before baselayout doing so will break lib -> lib64 +# symlinks on systems that use them. + +app-arch/bzip2 +app-arch/bsdtar +app-shells/bash +net-misc/rsync +net-misc/wget +virtual/baselayout +sys-apps/diffutils +sys-apps/file +sys-apps/gawk +sys-apps/grep +sys-apps/less +sys-apps/portage +sys-apps/sed +sys-apps/texinfo +sys-devel/binutils +sys-devel/bison +sys-devel/flex +sys-devel/gcc +dev-libs/libiconv +sys-devel/gettext +sys-devel/gnuconfig +sys-devel/make +sys-devel/patch +dev-lang/perl +dev-lang/python +virtual/editor +virtual/gzip +virtual/libc +virtual/os-headers +sys-freebsd/freebsd-lib +sys-freebsd/freebsd-libexec +sys-freebsd/freebsd-bin +sys-freebsd/freebsd-sbin +sys-freebsd/freebsd-ubin +sys-freebsd/freebsd-usbin +sys-freebsd/freebsd-contrib diff --git a/profiles/default-bsd/fbsd/parent b/profiles/default-bsd/fbsd/parent new file mode 100644 index 0000000..f3229c5 --- /dev/null +++ b/profiles/default-bsd/fbsd/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/default-bsd/fbsd/use.force b/profiles/default-bsd/fbsd/use.force new file mode 100644 index 0000000..d221d0e --- /dev/null +++ b/profiles/default-bsd/fbsd/use.force @@ -0,0 +1,5 @@ +java5 + +# Force freebsd-specific variables +elibc_FreeBSD +kernel_FreeBSD diff --git a/profiles/default-bsd/fbsd/use.mask b/profiles/default-bsd/fbsd/use.mask new file mode 100644 index 0000000..ddcd595 --- /dev/null +++ b/profiles/default-bsd/fbsd/use.mask @@ -0,0 +1,49 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/use.mask,v 1.35 2007/04/19 12:24:48 drizzt Exp $ + +# Someone who knows kerberos is needed to make sure that this works +kerberos +krb4 + +# Apache defaults to Apache 1.x, mask it for the time +apache + +# fftw requires sinl and cosl function, not present in FreeBSD +fftw +# tunepimp 0.5 requires fftw indirectly +musicbrainz + +# PIE doesn't work on FreeBSD, so just mask the no* flag as the eclass drop it +# entirely, but we have hardened. +nopie +-hardened + +# Unmask freebsd-specific variables +-elibc_FreeBSD +-kernel_FreeBSD + +# I don't want to mess with xdelta +kdexdeltas + +# LUA requires a complete cleanup before being usable +lua + +# This does not build on FreeBSD, unless anybody wants to fix it, use opie +skey + +# To be tested +mono +meanwhile +smartcard +openct +mzscheme +snmp +pyste +pcsc-lite +sametime +sms +mtp +milter +qdbm +xosd diff --git a/profiles/default-bsd/fbsd/virtuals b/profiles/default-bsd/fbsd/virtuals new file mode 100644 index 0000000..08cd913 --- /dev/null +++ b/profiles/default-bsd/fbsd/virtuals @@ -0,0 +1,17 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/fbsd/virtuals,v 1.7 2006/10/05 10:46:01 flameeyes Exp $ + +# This file defines the virtuals that Gentoo/FreeBSD needs to modify respect +# the base profile + +# KEEP THIS FILE SORTED ALPHABETICALLY OR RISK WRATH + +virtual/baselayout sys-apps/baselayout +virtual/bootloader sys-freebsd/boot0 +virtual/inetd sys-freebsd/freebsd-usbin +virtual/libc sys-freebsd/freebsd-lib +virtual/logger sys-freebsd/freebsd-usbin +virtual/opengl media-libs/mesa +virtual/os-headers sys-freebsd/freebsd-lib +virtual/pam sys-auth/openpam diff --git a/profiles/default-bsd/package.mask b/profiles/default-bsd/package.mask new file mode 100644 index 0000000..3f8f93a --- /dev/null +++ b/profiles/default-bsd/package.mask @@ -0,0 +1,60 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/package.mask,v 1.3 2007/02/28 16:23:51 the_paya Exp $ + +# Mask out the GNU versions of various packages. +# We want BSD versions wherever possible +# Also mask packages that are depending on Linux kernel +sys-apps/apmd +sys-apps/debianutils +sys-apps/eject +sys-apps/net-tools +sys-apps/pam-login +net-misc/iputils +sys-apps/shadow +sys-apps/utempter +sys-apps/util-linux +sys-apps/which +sys-libs/glibc +sys-libs/libcap +sys-libs/pam +sys-power/acpid +sys-process/procps +sys-apps/iproute2 +sys-fs/udev +sys-fs/sysfsutils +sys-apps/hal +sys-apps/attr +sys-apps/acl +net-misc/udhcp +net-misc/pump + +# Diego Pettenò (18 Aug 2005) +# Previous versions of these tools installs non g-prefixed, so causes +# collision protection to come up. + (5 June 2005) +# metamail isn't maintained anymore upstream, Debian patches doesn't +# work on FreeBSD, and neither on Debian or on FreeBSD the package +# has a maintainer to coordinate with. Isn't an hard-dep for anything. +net-mail/metamail + +# Diego Pettenò (28 April 2005) +# Those versions uses the pam_stack module instead of include format. +<=app-admin/sudo-1.6.7_p5-r2 + (20 Aug 2005) +# We obviously can't have linux-sources (mask this to allow the +# virtual to be masked) +sys-kernel/gentoo-sources + +# Javier Villavicencio (26 Feb 2007) +# This seems to use gnu-style regular expressions, not compatible +# with posix ones in bsd. Some things may work, and some may not +# work entirely. +dev-cpp/libherdstat +app-portage/herdstat diff --git a/profiles/default-bsd/package.use.force b/profiles/default-bsd/package.use.force new file mode 100644 index 0000000..f5a85a7 --- /dev/null +++ b/profiles/default-bsd/package.use.force @@ -0,0 +1,3 @@ +# Peter Weller (10 March 2007) +# lprng deps on a p.masked package, force xarchiver to use cups +xfce-base/xfprint cups diff --git a/profiles/default-bsd/package.use.mask b/profiles/default-bsd/package.use.mask new file mode 100644 index 0000000..c153e44 --- /dev/null +++ b/profiles/default-bsd/package.use.mask @@ -0,0 +1,12 @@ +media-video/mplayer dvdnav mp2 +app-misc/mc pam +dev-util/catalyst cdr +# See http://bugzilla.gnome.org/show_bug.cgi?id=370847 for why we disable pam +gnome-extra/gnome-screensaver pam +kde-base/kcontrol ieee1394 +kde-base/kdenetwork-meta wifi +media-video/ffmpeg ieee1394 +net-proxy/squid -ipf-transparent -pf-transparent +sys-apps/baselayout pam +sys-apps/coreutils acl +sys-apps/help2man nls diff --git a/profiles/default-bsd/packages b/profiles/default-bsd/packages new file mode 100644 index 0000000..674775c --- /dev/null +++ b/profiles/default-bsd/packages @@ -0,0 +1,19 @@ +# Copyright 2004-2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/packages,v 1.3 2006/12/24 22:06:11 drizzt Exp $ + +-*virtual/modutils +-*virtual/dev-manager +-*sys-fs/e2fsprogs +-*sys-process/procps +-*sys-process/psmisc +-*sys-apps/shadow +-*sys-apps/which +-*sys-apps/net-tools +-*sys-apps/kbd +-*sys-apps/findutils +-*sys-apps/debianutils +-*sys-apps/coreutils +-*net-misc/iputils +-*app-arch/tar + diff --git a/profiles/default-bsd/parent b/profiles/default-bsd/parent new file mode 100644 index 0000000..eb001c6 --- /dev/null +++ b/profiles/default-bsd/parent @@ -0,0 +1 @@ +../base diff --git a/profiles/default-bsd/profile.bashrc b/profiles/default-bsd/profile.bashrc new file mode 100644 index 0000000..19145fa --- /dev/null +++ b/profiles/default-bsd/profile.bashrc @@ -0,0 +1,8 @@ +if [[ ${EBUILD_PHASE} == compile ]] ; then + if grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c; then + eerror "The source code contains a faulty openal.c unit from gnulib." + eerror "Please report this on Gentoo Bugzilla in Gentoo BSD product." + eerror "http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%20BSD" + die "Broken openal.c gnulib unit." + fi +fi diff --git a/profiles/default-bsd/use.force b/profiles/default-bsd/use.force new file mode 100644 index 0000000..8602cb4 --- /dev/null +++ b/profiles/default-bsd/use.force @@ -0,0 +1 @@ +userland_BSD diff --git a/profiles/default-bsd/use.mask b/profiles/default-bsd/use.mask new file mode 100644 index 0000000..ec01c9e --- /dev/null +++ b/profiles/default-bsd/use.mask @@ -0,0 +1,91 @@ +# Copyright 2004 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/use.mask,v 1.31 2007/03/22 05:04:43 beandog Exp $ + +# Linux-dependant flags +selinux +nptl +alsa +aoss +v4l +v4l2 +fbcon +directfb +ev6 +hal +gpm +lirc +multilib +sysfs +lm_sensors +nodroproot +caps +vidix +madwifi +jack +3dfx +pmount +dxr3 +nvidia +win32codecs +xvmc +xfs + +# Steve Dibb (21 Mar 2007) +# media-video/mplayer local use flags +ivtv +live +dv +ggi +x264 +xanim + +# This usually refers just to linux-dvb +dvb + +# Hardened doesn't work on Gentoo/*BSD for now +hardened + +# termcap-compat doesn't work on BSD +termcap-compat + +# useflags for php commercial software +hyperwave-api +interbase +mnogosearch +msql +ovrimos +sapdb + +# Java requires that new-style virtuals are prepared for kaffe +java +gcj + +# This requires a kernel module that's Linux specific right now +ifp + +# This requires hal and a usb-eject command +ipod + +# Mask extraneous elibc/kernel combinations +-userland_BSD +elibc_glibc +kernel_linux +userland_GNU + +# Mask Xorg-modular drivers that are Linux-specific +input_devices_aiptek +input_devices_evdev +input_devices_linuxwacom +input_devices_synaptics +input_devices_ur98 +input_devices_vmmouse +video_cards_fglrx +video_cards_newport +video_cards_sisusb +video_cards_v4l +video_cards_vmware +video_cards_nvidia + +# Apache's MPM-itk requires sys-libs/libcap +mpm-itk diff --git a/profiles/default-bsd/virtuals b/profiles/default-bsd/virtuals new file mode 100644 index 0000000..82f4891 --- /dev/null +++ b/profiles/default-bsd/virtuals @@ -0,0 +1,13 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/default-bsd/virtuals,v 1.4 2007/03/01 15:47:58 uberlord Exp $ + +# This file defines the virtuals that all Gentoo/*BSD need to modify respect +# the base profile + +# KEEP THIS FILE SORTED ALPHABETICALLY OR RISK WRATH + +virtual/eject sys-block/unieject +virtual/linux-sources sys-kernel/gentoo-sources +virtual/mpg123 media-sound/mpg321 +virtual/utempter sys-libs/libutempter diff --git a/sys-freebsd/boot0/ChangeLog b/sys-freebsd/boot0/ChangeLog new file mode 100644 index 0000000..17c8991 --- /dev/null +++ b/sys-freebsd/boot0/ChangeLog @@ -0,0 +1,107 @@ +# ChangeLog for sys-freebsd/boot0 +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.20 2007/01/15 21:33:57 drizzt Exp $ + +*boot0-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli -boot0-6.2_rc2.ebuild, + +boot0-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò -boot0-6.1.ebuild: + Remove 6.1 ebuild. + +*boot0-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -boot0-6.2_beta2.ebuild, -boot0-6.2_beta3.ebuild, -boot0-6.2_rc1.ebuild, + +boot0-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 19 Nov 2006; Timothy Redaelli boot0-6.2_rc1.ebuild: + Patched to make it compile on GCC 4. + +*boot0-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò +boot0-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + +*boot0-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +boot0-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -boot0-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + +files/freebsd-sources-6.2-sparc64.patch, boot0-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*boot0-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +boot0-6.2_beta2.ebuild: + Version 6.2_beta2. + + 24 Sep 2006; Javier Villavicencio + files/boot0-6.0-gentoo.patch: + Fix compilation over an i586 CHOST of boot2 by forcing -march=i386 to its + Makefile. + +*boot0-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +boot0-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò -boot0-6.0.ebuild: + Remove 6.0 version. + + 18 Jul 2006; Javier Villavicencio boot0-6.0.ebuild, + boot0-6.1.ebuild: + Fixes compilation with gcc-4.1.1. + +*boot0-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò -boot0-6.1_rc2.ebuild, + +boot0-6.1.ebuild: + Update to 6.1-RELEASE. + +*boot0-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò -boot0-6.1_rc1.ebuild, + +boot0-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*boot0-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò boot0-6.0.ebuild, + +boot0-6.1_rc1.ebuild: + Update to 6.1_rc1 and disable stack protector. + + 02 Apr 2006; Diego Pettenò + -files/boot0-gentoo.patch: + Drop obsolete files. + +*boot0-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/boot0-6.0-gentoo.patch, +files/boot0-gentoo.patch, +metadata.xml, + +boot0-6.0.ebuild: + Import into portage. + +*boot0-5.4 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò + +files/boot0-gentoo.patch, +boot0-5.4.ebuild: + Moved to sys-freebsd. + + 29 Jul 2005; Diego Pettenò boot0-5.4.ebuild: + Adapt to recent bsdmk changes. + diff --git a/sys-freebsd/boot0/Manifest b/sys-freebsd/boot0/Manifest new file mode 100644 index 0000000..c991c3c --- /dev/null +++ b/sys-freebsd/boot0/Manifest @@ -0,0 +1,7 @@ +AUX boot0-6.0-gentoo.patch 4463 RMD160 86f75013a4656bd8a481a3b9b12acf588f3d9ad6 SHA1 2304a507b99844427da9b49ed9bb236ea285d989 SHA256 39b6958ab6b47ad45e6ec176fc99b17e69b59fafc79ae16add2bfddcabc0795b +AUX boot0-7.0-gentoo.patch 2827 RMD160 7030ce28d62699f2ec48205f624cee2b8a82a777 SHA1 9ad44757dae03c719439939a23f1ed9ea42c814b SHA256 8b733bc7cdf6e9961c21ccf5fc238732715b603fb61f271b01b861f37af3f393 +AUX freebsd-sources-6.2-sparc64.patch 1239 RMD160 73b66e01b53d2233247e349b5c5a06af75d032cf SHA1 707675bc680ebf6096744450aed1ddc6cbe02304 SHA256 fcc6db401bf004b4985f0237408aed7fd3efba48de0b73769fb9566f9fe5083a +DIST freebsd-sys-7.0_pre200704.tar.bz2 20940473 RMD160 eee64418bd658056fa61d8f3344c2d95f21acd81 SHA1 2f8c7aa5636a2961e603b454b930b51585e6c98f SHA256 49fc2d930f2c01425610811a2e8c143131ce63c112b8f4a26574da7bf7ffdeba +EBUILD boot0-7.0_pre200704.ebuild 1044 RMD160 46edd500aa8429eda13312918771324055417569 SHA1 c79b9e26430c592fc4ac8b0183907bd6bb23719a SHA256 67da85182db13fa79a8ef7c92f7c400c014772d13b920092251881acca6a32c9 +MISC ChangeLog 3136 RMD160 2e9091942c8c24457eae5f37f70656e20a6a6f54 SHA1 e8de37a5fd966ace146cd0f88be39ffa8b56cc75 SHA256 458b9a4f155adf9161c6dba124a2fe16dbdbecb85069d0aecd1fdb55b3bcbdf4 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/boot0/boot0-7.0_pre200704.ebuild b/sys-freebsd/boot0/boot0-7.0_pre200704.ebuild new file mode 100644 index 0000000..e411b47 --- /dev/null +++ b/sys-freebsd/boot0/boot0-7.0_pre200704.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-6.2.ebuild,v 1.1 2007/01/15 21:33:57 drizzt Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's bootloader" +SLOT="0" +KEYWORDS=" ~x86-fbsd" + +IUSE="" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2" + +RDEPEND="" +DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}* + =sys-freebsd/freebsd-lib-${RV}*" + +S="${WORKDIR}/sys/boot" + +PATCHES="${FILESDIR}/boot0-7.0-gentoo.patch + ${FILESDIR}/freebsd-sources-6.2-sparc64.patch" + +src_unpack() { + freebsd_src_unpack + + grep -lr --null -- -ffreestanding "${S}" | xargs -0 sed -i -e \ + "s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" || die +# sed -i -e '/-fomit-frame-pointer/d' "${S}"/i386/boot2/Makefile || die + sed -i -e 's/^BOOT2_UFS?\=.*/BOOT2_UFS?=UFS2_ONLY/' "${S}"/i386/boot2/Makefile || die +} + +src_install() { + dodir /boot/defaults + + mkinstall FILESDIR=/boot || die "mkinstall failed" +} diff --git a/sys-freebsd/boot0/files/boot0-6.0-gentoo.patch b/sys-freebsd/boot0/files/boot0-6.0-gentoo.patch new file mode 100644 index 0000000..6c62610 --- /dev/null +++ b/sys-freebsd/boot0/files/boot0-6.0-gentoo.patch @@ -0,0 +1,129 @@ +Index: sys/boot/alpha/common/Makefile.common +=================================================================== +--- sys/boot/alpha/common/Makefile.common.orig ++++ sys/boot/alpha/common/Makefile.common +@@ -34,7 +34,7 @@ CLEANFILES+= vers.c ${BOOT} ${BOOT}.sym + + CFLAGS+= -Wall + +-CFLAGS+= -I${LIBSTANDDIR} ++CFLAGS+= -I/usr/include/libstand + CFLAGS+= -I${.CURDIR}/.. + + vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version +Index: sys/boot/alpha/libalpha/Makefile +=================================================================== +--- sys/boot/alpha/libalpha/Makefile.orig ++++ sys/boot/alpha/libalpha/Makefile +@@ -5,7 +5,7 @@ INTERNALLIB= + + #CFLAGS+= -DDISK_DEBUG + +-CFLAGS+= -I${LIBSTANDDIR} ++CFLAGS+= -I/usr/include/libstand + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common +Index: sys/boot/arc/lib/Makefile +=================================================================== +--- sys/boot/arc/lib/Makefile.orig ++++ sys/boot/arc/lib/Makefile +@@ -7,7 +7,7 @@ CFLAGS+= -ffreestanding + .PATH: ${.CURDIR}/arch/${MACHINE_ARCH} + # XXX hack to pick up stand.h + LIBSTANDDIR= ${.CURDIR}/../../../../lib/libstand +-CFLAGS+= -I${LIBSTANDDIR} ++CFLAGS+= -I/usr/include/libstand + CFLAGS+= -DDEBUG + + # Pick up the bootstrap header for some interface items +Index: sys/boot/arc/loader/Makefile +=================================================================== +--- sys/boot/arc/loader/Makefile.orig ++++ sys/boot/arc/loader/Makefile +@@ -26,7 +26,7 @@ CLEANFILES+= machine + + CFLAGS+= -Wall + +-CFLAGS+= -I${LIBSTANDDIR} ++CFLAGS+= -I/usr/include/libstand + CFLAGS+= -I${.CURDIR}/../include + CRT= start.o + STRIP= +Index: sys/boot/efi/libefi/Makefile +=================================================================== +--- sys/boot/efi/libefi/Makefile.orig ++++ sys/boot/efi/libefi/Makefile +@@ -14,7 +14,7 @@ SRCS+= efifpswa.c pal.S + + CFLAGS+= -I${.CURDIR}/../include + CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH} +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common +Index: sys/boot/i386/boot2/Makefile +=================================================================== +--- sys/boot/i386/boot2/Makefile.orig ++++ sys/boot/i386/boot2/Makefile +@@ -24,7 +24,7 @@ CFLAGS= -Os \ + -fno-guess-branch-probability \ + -fomit-frame-pointer \ + -fno-unit-at-a-time \ +- -mno-align-long-strings \ ++ -march=i386 \ + -mrtd \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 \ + -D${BOOT2_UFS} \ +Index: sys/boot/i386/libi386/Makefile +=================================================================== +--- sys/boot/i386/libi386/Makefile.orig ++++ sys/boot/i386/libi386/Makefile +@@ -28,7 +28,7 @@ CFLAGS+= -I${.CURDIR}/../../common -I${. + -I${.CURDIR}/../../../contrib/dev/acpica \ + -I${.CURDIR}/../../.. -I. + # the location of libstand +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + .if ${MACHINE_ARCH} == "amd64" + CLEANFILES+= machine +Index: sys/boot/ofw/libofw/Makefile +=================================================================== +--- sys/boot/ofw/libofw/Makefile.orig ++++ sys/boot/ofw/libofw/Makefile +@@ -7,7 +7,7 @@ SRCS= devicename.c elf_freebsd.c ofw_con + ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \ + ofw_time.c openfirm.c + +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. +Index: sys/boot/pc98/libpc98/Makefile +=================================================================== +--- sys/boot/pc98/libpc98/Makefile.orig ++++ sys/boot/pc98/libpc98/Makefile +@@ -28,6 +28,6 @@ CFLAGS+= -I${.CURDIR}/../../common -I${. + -I${.CURDIR}/../../i386/libi386 \ + -I${.CURDIR}/../../.. -I. + # the location of libstand +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + .include +Index: sys/boot/sparc64/loader/Makefile +=================================================================== +--- sys/boot/sparc64/loader/Makefile.orig ++++ sys/boot/sparc64/loader/Makefile +@@ -63,7 +63,7 @@ LIBOFW= ${.OBJDIR}/../../ofw/libofw/lib + CFLAGS+= -I${.CURDIR}/../../ofw/libofw/ + + # where to get libstand from +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + DPADD= ${LIBFICL} ${LIBOFW} ${LIBSTAND} + LDADD= ${LIBFICL} ${LIBOFW} -lstand diff --git a/sys-freebsd/boot0/files/boot0-7.0-gentoo.patch b/sys-freebsd/boot0/files/boot0-7.0-gentoo.patch new file mode 100644 index 0000000..6d13a7e --- /dev/null +++ b/sys-freebsd/boot0/files/boot0-7.0-gentoo.patch @@ -0,0 +1,77 @@ +Index: sys/boot/efi/libefi/Makefile +=================================================================== +--- sys/boot/efi/libefi/Makefile.orig ++++ sys/boot/efi/libefi/Makefile +@@ -14,7 +14,7 @@ SRCS+= efifpswa.c pal.S + + CFLAGS+= -I${.CURDIR}/../include + CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH:S/amd64/i386/} +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common +Index: sys/boot/i386/boot2/Makefile +=================================================================== +--- sys/boot/i386/boot2/Makefile.orig ++++ sys/boot/i386/boot2/Makefile +@@ -24,7 +24,7 @@ CFLAGS= -Os \ + -fno-guess-branch-probability \ + -fomit-frame-pointer \ + -fno-unit-at-a-time \ +- -mno-align-long-strings \ ++ -march=i386 \ + -mrtd \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 \ + -D${BOOT2_UFS} \ +Index: sys/boot/i386/libi386/Makefile +=================================================================== +--- sys/boot/i386/libi386/Makefile.orig ++++ sys/boot/i386/libi386/Makefile +@@ -28,7 +28,7 @@ CFLAGS+= -I${.CURDIR}/../../common -I${. + -I${.CURDIR}/../../../contrib/dev/acpica \ + -I${.CURDIR}/../../.. -I. + # the location of libstand +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + .if ${MACHINE_ARCH} == "amd64" + CLEANFILES+= machine +Index: sys/boot/ofw/libofw/Makefile +=================================================================== +--- sys/boot/ofw/libofw/Makefile.orig ++++ sys/boot/ofw/libofw/Makefile +@@ -7,7 +7,7 @@ SRCS= devicename.c elf_freebsd.c ofw_con + ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \ + ofw_time.c openfirm.c + +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. +Index: sys/boot/pc98/libpc98/Makefile +=================================================================== +--- sys/boot/pc98/libpc98/Makefile.orig ++++ sys/boot/pc98/libpc98/Makefile +@@ -28,6 +28,6 @@ CFLAGS+= -I${.CURDIR}/../../common -I${. + -I${.CURDIR}/../../i386/libi386 \ + -I${.CURDIR}/../../.. -I. + # the location of libstand +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + .include +Index: sys/boot/sparc64/loader/Makefile +=================================================================== +--- sys/boot/sparc64/loader/Makefile.orig ++++ sys/boot/sparc64/loader/Makefile +@@ -63,7 +63,7 @@ LIBOFW= ${.OBJDIR}/../../ofw/libofw/lib + CFLAGS+= -I${.CURDIR}/../../ofw/libofw/ + + # where to get libstand from +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + DPADD= ${LIBFICL} ${LIBOFW} ${LIBSTAND} + LDADD= ${LIBFICL} ${LIBOFW} -lstand diff --git a/sys-freebsd/boot0/files/freebsd-sources-6.2-sparc64.patch b/sys-freebsd/boot0/files/freebsd-sources-6.2-sparc64.patch new file mode 100644 index 0000000..7e10d00 --- /dev/null +++ b/sys-freebsd/boot0/files/freebsd-sources-6.2-sparc64.patch @@ -0,0 +1,33 @@ +FreeBSD only works on Sparc64 and freeBSD code relies on the __sparc64__ define. +gcc only defines __sparc64__ if -mcpu is not used. +gcc-4 defaults to using -mcpu=ultrasparc on FreeBSD. + +This causes us a problem. Infact, FreeBSD developers sent gcc a patch to always +define __sparc64__ when using -mcpu=ultrasparc, but this was rejected by most +people including NetBSD developers. + +The correct solution is to use __sparc__. +If platform detection is required, or the code is obviously 64 bit then we can +use the __arch64__ define as well. +This combination should be supported by all gcc versions:) + +--- ofw/libofw/ofw_net.c 2005-03-02 20:12:27 +0000 ++++ ofw/libofw/ofw_net.c 2006-10-11 08:10:48 +0100 +@@ -189,7 +189,7 @@ + if ((ch = index(path, ':')) != NULL) + *ch = '\0'; + netdev = OF_finddevice(path); +-#ifdef __sparc64__ ++#if defined(__sparc__) + if (OF_getprop(netdev, "mac-address", desc->myea, 6) == -1) + #else + if (OF_getprop(netdev, "local-mac-address", desc->myea, 6) == -1) +@@ -207,7 +207,7 @@ + printf("ofwn_init: Open Firmware instance handle: %08x\n", netinstance); + #endif + +-#ifndef __sparc64__ ++#ifndef __sparc__ + dmabuf = NULL; + if (OF_call_method("dma-alloc", netinstance, 1, 1, (64 * 1024), &dmabuf) + < 0) { diff --git a/sys-freebsd/boot0/metadata.xml b/sys-freebsd/boot0/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/boot0/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-bin/ChangeLog b/sys-freebsd/freebsd-bin/ChangeLog new file mode 100644 index 0000000..66a6e92 --- /dev/null +++ b/sys-freebsd/freebsd-bin/ChangeLog @@ -0,0 +1,166 @@ +# ChangeLog for sys-freebsd/freebsd-bin +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-bin/ChangeLog,v 1.27 2007/01/15 21:34:27 drizzt Exp $ + +*freebsd-bin-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-bin-6.2_rc2.ebuild, +freebsd-bin-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-bin-6.1.ebuild: + Remove 6.1 ebuild. + +*freebsd-bin-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-bin-6.2_beta3.ebuild, -freebsd-bin-6.2_rc1.ebuild, + +freebsd-bin-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 28 Dec 2006; Diego Pettenò + freebsd-bin-6.2_rc1.ebuild: + Depend on libedit for /bin/sh. + +*freebsd-bin-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-bin-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta2. + + 18 Nov 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta2. + + 18 Nov 2006; Diego Pettenò + -freebsd-bin-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-bin-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-bin-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-bin-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + freebsd-bin-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + + 17 Oct 2006; Timothy Redaelli + +files/freebsd-bin-6.2-mkdir-posix.patch, freebsd-bin-6.2_beta2.ebuild: + Add a patch from Alex Unleashed to fix bug #144594 + Removed use rcp (it collided with netkit-rsh) + +*freebsd-bin-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-bin-6.2_beta2.ebuild: + Version 6.2_beta2. + +*freebsd-bin-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-bin-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-bin-6.0-r1.ebuild: + Remove 6.0 version. + + 29 May 2006; Diego Pettenò freebsd-bin-6.1.ebuild: + Fix deprecated knob. + +*freebsd-bin-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-bin-6.1_rc2.ebuild, +freebsd-bin-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-bin-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-bin-6.1_rc1.ebuild, +freebsd-bin-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-bin-6.1_rc1 (30 Apr 2006) + + 30 Apr 2006; Diego Pettenò + +freebsd-bin-6.1_rc1.ebuild: + Update to 6.1_rc1. + + 27 Apr 2006; Alec Warner Manifest: + Fixing SHA256 digest, pass four + + 20 Apr 2006; Diego Pettenò + freebsd-bin-6.0-r1.ebuild: + Block on realpath. + +*freebsd-bin-6.0-r1 (20 Apr 2006) + + 20 Apr 2006; Diego Pettenò + -freebsd-bin-6.0.ebuild, +freebsd-bin-6.0-r1.ebuild: + Don't build ed from here, but use sys-apps/ed that's mostly compatible. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-bin-flex.patch: + Drop obsolete files. + +*freebsd-bin-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-bin-6.0-flex-2.5.31.patch, +files/freebsd-bin-flex.patch, + +metadata.xml, +freebsd-bin-6.0.ebuild: + Import into portage. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Add patch to use newer flex (and depend on it). + + 20 Feb 2006; Diego Pettenò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + +*freebsd-bin-5.4 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò + +files/freebsd-bin-flex.patch, +freebsd-bin-5.4.ebuild: + Moved to sys-freebsd. + + 29 Jul 2005; Diego Pettenò freebsd-bin-5.4.ebuild: + Adapt to recent bsdmk changes. + + 16 Jun 2005; Diego Pettenò freebsd-bin-5.4.ebuild: + Removed sendmail/rmail (installed by sendmail itself) and csh (provided by + app-shells/tcsh), avoid building of libsm and doesn't need ${CONTRIB} + anymore. + +*freebsd-bin-5.4_rc4 (05 May 2005) + + 05 May 2005; Diego Pettenò + -freebsd-bin-5.4_rc3.ebuild, +freebsd-bin-5.4_rc4.ebuild: + Updated to rc4. + +*freebsd-bin-5.4_rc3 (03 May 2005) + + 03 May 2005; Diego Pettenò +freebsd-bin-5.4_rc3.ebuild + Added 5.4_rc3 ebuild. + +*freebsd-bin-5.3.20050301-r1 (17 Mar 2005) + + 17 Mar 2005; Otavio R. Piske + +freebsd-bin-5.3.20050301-r1.ebuild: + New ebuild with useflag suport. Thanks to Diego Pettenò for submitting the + patch + + 15 Sep 2004; Otavio Piske freebsd-bin-5.2.1.ebuild: + Initial release + +*freebsd-bin-5.2.1.ebuild (15 Sep 2004) diff --git a/sys-freebsd/freebsd-bin/Manifest b/sys-freebsd/freebsd-bin/Manifest new file mode 100644 index 0000000..60307dc --- /dev/null +++ b/sys-freebsd/freebsd-bin/Manifest @@ -0,0 +1,7 @@ +AUX freebsd-bin-6.0-flex-2.5.31.patch 277 RMD160 3dd13f280f462964feecd54ea9cafac8608955d4 SHA1 a1e9e16bc343610a30b60f77ee54e85e0c601326 SHA256 4c60ee85f4ec7dfb86eab1536eb0d6aae65c955c756362cd2b7f2b5a024dfb17 +DIST freebsd-bin-7.0_pre200704.tar.bz2 407110 RMD160 7be1020156ef0e50ef72171b0ff1c2ae8a62cadf SHA1 4be9fb5d24368d09f64c01e0cec782046582a09b SHA256 f02e5a35a0ab24213e215c5ba016fe66c2c1bf003ba356a66d65e15caee936dd +DIST freebsd-lib-7.0_pre200704.tar.bz2 2853461 RMD160 8384a200f7d61c5953ccd8299e2e40373ae970ed SHA1 33d80fef5909ef584646c4c5a2733576224c4cc6 SHA256 56b586b58b7b29ea748151cc8377a5bede8047dffdbb1b8d12888acdfd67e105 +DIST freebsd-sbin-7.0_pre200704.tar.bz2 1181704 RMD160 67eeec8fd5b7baec4090181b7c7cd15ed2dff17d SHA1 2c73a70e52a297195a5e0ec18ff6e7f8431038a7 SHA256 714d175ffb3691b518d486c8e0fb9a70db990f1338c39a595026524f999cc305 +EBUILD freebsd-bin-7.0_pre200704.ebuild 1005 RMD160 59ba86cb47c7dff95208440f6cbcd54d28e8e1f9 SHA1 e0357df643ba30e68fa821738aeb16dc0a865d39 SHA256 b966fac79560b4744fc2f8d56d595d63efbddc272642ba8bdfc2e369333f2ce5 +MISC ChangeLog 5104 RMD160 1a335b79b87ffb9999a6a237794dbf0a7e0d07aa SHA1 73acfa6e7beafdfe4a9497f93d24ee35ddbfd5ae SHA256 26869ac183b06bec283bfdfb9d8d36b14907898f000ff09b742c7ed244bdad6c +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-bin/files/freebsd-bin-6.0-flex-2.5.31.patch b/sys-freebsd/freebsd-bin/files/freebsd-bin-6.0-flex-2.5.31.patch new file mode 100644 index 0000000..e6a8cd3 --- /dev/null +++ b/sys-freebsd/freebsd-bin/files/freebsd-bin-6.0-flex-2.5.31.patch @@ -0,0 +1,10 @@ +Index: fbsd-6/bin/sh/arith_lex.l +=================================================================== +--- fbsd-6.orig/bin/sh/arith_lex.l ++++ fbsd-6/bin/sh/arith_lex.l +@@ -128,5 +128,4 @@ extern char *arith_buf, *arith_startbuf; + void + arith_lex_reset(void) + { +- YY_NEW_FILE; + } diff --git a/sys-freebsd/freebsd-bin/freebsd-bin-7.0_pre200704.ebuild b/sys-freebsd/freebsd-bin/freebsd-bin-7.0_pre200704.ebuild new file mode 100644 index 0000000..56a1be4 --- /dev/null +++ b/sys-freebsd/freebsd-bin/freebsd-bin-7.0_pre200704.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-bin/freebsd-bin-6.2.ebuild,v 1.1 2007/01/15 21:34:27 drizzt Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD /bin tools" +SLOT="0" +KEYWORDS=" ~x86-fbsd" + +IUSE="nls" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${BIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${SBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIB}.tar.bz2" + +RDEPEND="=sys-freebsd/freebsd-lib-${RV}* + dev-libs/libedit + sys-libs/ncurses + sys-apps/ed + !app-admin/realpath" +DEPEND="${RDEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}* + >=sys-devel/flex-2.5.31-r2" + +S=${WORKDIR}/bin + +PATCHES="${FILESDIR}/${PN}-6.0-flex-2.5.31.patch" + +pkg_setup() { + use nls || mymakeopts="${mymakeopts} NO_NLS= " + + mymakeopts="${mymakeopts} NO_TCSH= NO_SENDMAIL= NO_OPENSSL= NO_CRYPT= NO_RCMDS= " +} + +# csh and tcsh are provided by tcsh package, rmail is sendmail stuff. +REMOVE_SUBDIRS="csh rmail ed" diff --git a/sys-freebsd/freebsd-bin/metadata.xml b/sys-freebsd/freebsd-bin/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-bin/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-contrib/ChangeLog b/sys-freebsd/freebsd-contrib/ChangeLog new file mode 100644 index 0000000..6bdcc86 --- /dev/null +++ b/sys-freebsd/freebsd-contrib/ChangeLog @@ -0,0 +1,151 @@ +# ChangeLog for sys-freebsd/freebsd-contrib +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-contrib/ChangeLog,v 1.23 2007/01/15 21:34:58 drizzt Exp $ + +*freebsd-contrib-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-contrib-6.2_rc2.ebuild, +freebsd-contrib-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-contrib-6.1-r1.ebuild: + Remove 6.1 ebuild. + +*freebsd-contrib-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-contrib-6.2_rc1.ebuild, +freebsd-contrib-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 22 Nov 2006; Diego Pettenò + freebsd-contrib-6.2_rc1.ebuild: + Learn from kde-meta, extract just the part of code we need, cuts the time + needed to build freebsd-contrib to about an half. + +*freebsd-contrib-6.1-r1 (22 Nov 2006) + + 22 Nov 2006; Diego Pettenò + -files/freebsd-contrib-5.3-lib_csu-makefile.patch, + -files/freebsd-contrib-6.2-sparc64.patch, -freebsd-contrib-6.1.ebuild, + +freebsd-contrib-6.1-r1.ebuild, -freebsd-contrib-6.2_beta3.ebuild, + freebsd-contrib-6.2_rc1.ebuild: + Don't build csu directory, as that is code coming from GCC and GCC will take + care of building it; this way the sparc64 patch is unneeded and the GCC + sources have no more reason to be keeped here. Also remove kerberos and ssl + useflags as they were referring to cvs, and users are using dev-util/cvs. + Remove all the patches as they are not needed anymore now. + +*freebsd-contrib-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-contrib-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò ChangeLog, Manifest: + Remove 6.2_beta2. + + 18 Nov 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta2. + + 18 Nov 2006; Diego Pettenò + -freebsd-contrib-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-contrib-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-contrib-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-contrib-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + +files/freebsd-contrib-6.2-sparc64.patch, + freebsd-contrib-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*freebsd-contrib-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-contrib-6.2_beta2.ebuild: + Version 6.2_beta2. + +*freebsd-contrib-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-contrib-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 09 Sep 2006; Diego Pettenò + freebsd-contrib-6.1.ebuild: + Move sort in /bin so that it won't hinder booting without /usr partition. + + 27 Jul 2006; Diego Pettenò + -freebsd-contrib-6.0.ebuild: + Remove 6.0 version. + +*freebsd-contrib-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-contrib-6.1_rc2.ebuild, +freebsd-contrib-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-contrib-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-contrib-6.1_rc1.ebuild, +freebsd-contrib-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-contrib-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-contrib-6.1_rc1.ebuild: + Update to 6.1_rc1. + + 20 Apr 2006; Diego Pettenò + freebsd-contrib-6.0.ebuild: + Drop dependency on freebsd-headers. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-contrib-crt_gcc4.patch: + Drop obsolete files. + +*freebsd-contrib-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-contrib-5.3-lib_csu-makefile.patch, + +files/freebsd-contrib-crt_gcc4.patch, +metadata.xml, + +freebsd-contrib-6.0.ebuild: + Import into portage. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + +*freebsd-contrib-5.4 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò + +files/freebsd-contrib-5.3-lib_csu-makefile.patch, + +files/freebsd-contrib-crt_gcc4.patch, +freebsd-contrib-5.4.ebuild: + Moved to sys-freebsd. + + 18 Aug 2005; Diego Pettenò + freebsd-contrib-5.4.ebuild: + Updated to reflect bsdmk/freebsd eclasses changes. + + 29 Jul 2005; Diego Pettenò + freebsd-contrib-5.4.ebuild: + Adapt to recent bsdmk changes. + +*freebsd-contrib-5.3.20050301 (31 Mar 2005) + + 31 Mar 2005; Otavio R. Piske + freebsd-contrib-5.3.20050301.ebuild: + New ebuild based on updated sources and with suport for new use flags. + Thanks to Diego Petteno for the use flag patch. + diff --git a/sys-freebsd/freebsd-contrib/Manifest b/sys-freebsd/freebsd-contrib/Manifest new file mode 100644 index 0000000..d834d4f --- /dev/null +++ b/sys-freebsd/freebsd-contrib/Manifest @@ -0,0 +1,5 @@ +DIST freebsd-contrib-7.0_pre200704.tar.bz2 36743671 RMD160 aae7903e03d8decf910ee7e252d615658b8bfc25 SHA1 71006b34dc0e34be1f9093fca7b2aa9919038cd5 SHA256 1045c6d9ee9d0df02bd2627153da5bff2a74798af9f1852429ba0101430dcff3 +DIST freebsd-gnu-7.0_pre200704.tar.bz2 806988 RMD160 25f9ad2e4a160bf481f749fde14031072e69d6ce SHA1 13780d7c3765d3848563444a7c32c977ea1631b4 SHA256 711663aa53a86411e7c65a2f93f991b13128b4828b11733eab47dd8083100abf +EBUILD freebsd-contrib-7.0_pre200704.ebuild 1523 RMD160 4015d3cc0b14f52e14272233cc050a58047c07e9 SHA1 31458bb466a077632b82fe24139fa0fd1ee02f98 SHA256 92f7c0a1867bd8f751a3e218623685ca3f23df1f01020b89289d27631c0cee2b +MISC ChangeLog 5053 RMD160 e9a2ee287e72f229ebc3b255fe9220d52ad05049 SHA1 c91dddac958d895aff4e2ac919368a6685e5292f SHA256 80cbc7711ba34c0818f50653ca0ecc2ebef1b53ff7034ed86e7e8530aad636d8 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-contrib/freebsd-contrib-7.0_pre200704.ebuild b/sys-freebsd/freebsd-contrib/freebsd-contrib-7.0_pre200704.ebuild new file mode 100644 index 0000000..a84ea8f --- /dev/null +++ b/sys-freebsd/freebsd-contrib/freebsd-contrib-7.0_pre200704.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-contrib/freebsd-contrib-6.2.ebuild,v 1.1 2007/01/15 21:34:58 drizzt Exp $ + +inherit bsdmk freebsd flag-o-matic + +DESCRIPTION="Contributed sources for FreeBSD." +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" +LICENSE="BSD GPL-2 as-is" + +IUSE="" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${GNU}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${P}.tar.bz2" + +RDEPEND="" +DEPEND="=sys-freebsd/freebsd-sources-${RV}* + =sys-freebsd/freebsd-mk-defs-${RV}*" + +S="${WORKDIR}/gnu" + +src_unpack() { + echo ">>> Unpacking needed parts of ${GNU}.tar.bz2 to ${WORKDIR}" + tar -jxpf "${DISTDIR}/${GNU}.tar.bz2" gnu/lib/libdialog gnu/usr.bin/sort gnu/usr.bin/patch + echo ">>> Unpacking needed parts of ${CONTRIB}.tar.bz2 to ${WORKDIR}" + tar -jxpf "${DISTDIR}/${CONTRIB}.tar.bz2" contrib/gnu-sort + + freebsd_do_patches + freebsd_rename_libraries +} + +src_compile() { + cd "${S}/lib/libdialog" + freebsd_src_compile + + cd "${S}/usr.bin/sort" + freebsd_src_compile + + cd "${S}/usr.bin/patch" + freebsd_src_compile +} + +src_install() { + use profile || mymakeopts="${mymakeopts} NO_PROFILE= " + mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= " + + cd "${S}/lib/libdialog" + mkinstall || die "libdialog install failed" + + cd "${S}/usr.bin/sort" + mkinstall DESTDIR="${D}/bin/" || die "libdialog install failed" + + cd "${S}/usr.bin/patch" + mkinstall DESTDIR="${D}/usr/bin/" || die "libdialog install failed" +} diff --git a/sys-freebsd/freebsd-contrib/metadata.xml b/sys-freebsd/freebsd-contrib/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-contrib/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-lib/ChangeLog b/sys-freebsd/freebsd-lib/ChangeLog new file mode 100644 index 0000000..34aa7c5 --- /dev/null +++ b/sys-freebsd/freebsd-lib/ChangeLog @@ -0,0 +1,363 @@ +# ChangeLog for sys-freebsd/freebsd-lib +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.50 2007/02/28 13:45:48 uberlord Exp $ + + 28 Feb 2007; Roy Marples freebsd-lib-6.2.ebuild: + Install libsmb for mount_smbfs in usbin. + +*freebsd-lib-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-lib-6.2_rc2.ebuild, +freebsd-lib-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-lib-6.1.ebuild: + Remove 6.1 ebuild. + + 04 Jan 2007; Diego Pettenò + +files/freebsd-sources-6.2-sparc64.patch, freebsd-lib-6.2_rc2.ebuild: + Apply the sparc64 patch when using the build useflag, or building stages + with catalyst will fail. + + 02 Jan 2007; Diego Pettenò + freebsd-lib-6.2_rc2.ebuild: + Remove histedit.h file from being installed. + +*freebsd-lib-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-lib-6.2_rc1.ebuild, -freebsd-lib-6.2_rc1-r1.ebuild, + +freebsd-lib-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + +*freebsd-lib-6.2_rc1-r1 (28 Dec 2006) + + 28 Dec 2006; Diego Pettenò + +freebsd-lib-6.2_rc1-r1.ebuild: + Add new revision that does not build libedit anymore. + + 22 Nov 2006; Diego Pettenò + -files/freebsd-lib-fixmp.patch, freebsd-lib-6.1.ebuild, + -freebsd-lib-6.2_beta3.ebuild, freebsd-lib-6.2_rc1.ebuild: + Remove the fixmp patch, that was applied on a Makefile removed right + afterward; remove beta3. + +*freebsd-lib-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-lib-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-lib-6.2_beta2.ebuild: + Remove 6.2_beta2. + + 17 Nov 2006; Diego Pettenò + freebsd-lib-6.2_beta3.ebuild: + Fix crossdev build, crt* files were installed in the wrong location. + +*freebsd-lib-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-lib-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 26 Oct 2006; Diego Pettenò freebsd-lib-6.1.ebuild, + freebsd-lib-6.2_beta2.ebuild: + Require the SYS package when crosscompiling, it's irrelevant which kernel + one is using. + + 22 Oct 2006; Diego Pettenò + freebsd-lib-6.2_beta2.ebuild: + Install a sandbox configuration file to allow /dev/crypto access in sandbox, + to close bug #138344. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-lib-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + +files/freebsd-lib-6.2-sparc64.patch, freebsd-lib-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + + 06 Oct 2006; Diego Pettenò + freebsd-lib-6.2_beta2.ebuild: + Add a bootstrap useflag to disable libstand, as in stage1 we don't have + libbz2 available. + + 06 Oct 2006; Diego Pettenò freebsd-lib-6.1.ebuild, + freebsd-lib-6.2_beta2.ebuild: + Add a buildtime dependency over bzip2 because libstand uses it to build a + few things. + + 06 Oct 2006; Roy Marples + +files/freebsd-lib-6.1-csu.patch, -files/freebsd-lib-6.1-csu-amd64.patch, + freebsd-lib-6.1.ebuild, freebsd-lib-6.2_beta1.ebuild, + freebsd-lib-6.2_beta2.ebuild: + sparc has the same csu issue as amd64 - lacking a dir to install to + + 05 Oct 2006; Diego Pettenò freebsd-lib-6.1.ebuild, + freebsd-lib-6.2_beta2.ebuild: + Add a build useflag that uses a downloaded tarball of sys rather than + symlinking it. + +*freebsd-lib-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-lib-6.2_beta2.ebuild: + Version 6.2_beta2. + + 22 Sep 2006; Diego Pettenò + +files/freebsd-lib-6.2-gcc41.patch, freebsd-lib-6.2_beta1.ebuild: + Add patch to build with GCC 4.1 (half committed upstream). + +*freebsd-lib-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-lib-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 03 Sep 2006; Diego Pettenò freebsd-lib-6.1.ebuild: + Update to new use-expand variable, thanks to Danny Van Dyk. + + 27 Jul 2006; Diego Pettenò + -freebsd-lib-6.0-r3.ebuild: + Remove 6.0 version. + + 05 Jul 2006; Javier Villavicencio + freebsd-lib-6.0-r3.ebuild, freebsd-lib-6.1.ebuild: + Fixes bug #139259. Thanks to Mike Kelly for reporting. + + 04 Jul 2006; Javier Villavicencio + files/freebsd-lib-6.1-csu-amd64.patch, freebsd-lib-6.1.ebuild: + Fixes bug #139109. + + 02 Jul 2006; Diego Pettenò + +files/freebsd-lib-6.1-csu-amd64.patch, freebsd-lib-6.1.ebuild: + Add patch to fix csu's makefile on amd64, from Victor Roman Archidona + who's working on amd64-fbsd support. + + 29 May 2006; Diego Pettenò freebsd-lib-6.1.ebuild: + Use testflags to avoid adding -fno-stack-protector-all when using GCC 4.1. + + 26 May 2006; Diego Pettenò freebsd-lib-6.1.ebuild: + Don't mess up dependencies when cross-compiling. + + 24 May 2006; Diego Pettenò freebsd-lib-6.1.ebuild: + Add compatibility symlinks for 5.x. + + 14 May 2006; Diego Pettenò freebsd-lib-6.1.ebuild: + Re-add the missing manpages as now OpenSSL installs them in another section. + + 09 May 2006; Diego Pettenò freebsd-lib-6.1.ebuild: + Remove libmd man pages, as openssl installs the same (almost). + +*freebsd-lib-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-lib-6.1_rc2.ebuild, +freebsd-lib-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-lib-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-lib-6.1_rc1.ebuild, +freebsd-lib-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-lib-6.1_rc1 (30 Apr 2006) + + 30 Apr 2006; Diego Pettenò + +freebsd-lib-6.1_rc1.ebuild: + Update to 6.1_rc1 ensuring that the includes from the same package are used. + +*freebsd-lib-6.0-r3 (30 Apr 2006) + + 30 Apr 2006; Diego Pettenò + files/freebsd-lib-6.0-ssp.patch, -freebsd-lib-6.0-r2.ebuild, + +freebsd-lib-6.0-r3.ebuild: + New patch for ssp support, based on OpenBSD code, too. This version has now + the patch by default. Please re-compile gcc if you want to have ssp support, + tho. + + 30 Apr 2006; Diego Pettenò + +files/freebsd-lib-6.0-ssp.patch, freebsd-lib-6.0-r2.ebuild: + Commit the first try patch for ssp, thanks to solar. + + 27 Apr 2006; Diego Pettenò + freebsd-lib-6.0-r2.ebuild: + Make installation to suite more the correct sysroot installation. + + 25 Apr 2006; Diego Pettenò + freebsd-lib-6.0-r2.ebuild: + Build and installa lso libm. + + 25 Apr 2006; Diego Pettenò + freebsd-lib-6.0-r2.ebuild: + Improve support for crosscompilation, now freebsd-lib actually compiles and + install fine on Gentoo/Linux AMD64. + + 25 Apr 2006; Diego Pettenò + freebsd-lib-6.0-r2.ebuild: + Improve support for crosscompilation, now freebsd-lib actually compiles and + install fine on Gentoo/Linux AMD64. + +*freebsd-lib-6.0-r2 (20 Apr 2006) + + 20 Apr 2006; Diego Pettenò + -freebsd-lib-6.0-r1.ebuild, +freebsd-lib-6.0-r2.ebuild: + Add new version that now merges freebsd-headers in a single package. The + upgrade path from old system it's not impossible albeit a bit difficult. New + stage will follow. + + 18 Apr 2006; Diego Pettenò + freebsd-lib-6.0-r1.ebuild: + End src functions immediatly when buidling only headers, as this ebuild + doesn't provide headers for the libc itself. + +*freebsd-lib-6.0-r1 (05 Apr 2006) + + 05 Apr 2006; Diego Pettenò + -freebsd-lib-6.0.ebuild, +freebsd-lib-6.0-r1.ebuild: + Don't allow to disable usb support, as many things relies on freebsd-lib + having usb support, like SDL. + + 04 Apr 2006; Diego Pettenò + +files/freebsd-lib-6.0-binutils-asm.patch, freebsd-lib-6.0.ebuild: + Add patch from Emanuele Giaquinta to fix building with + binutils 2.16.91.0.7. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-lib-fixmakefiles.patch, + -files/freebsd-lib-msun-fenvc.patch, -files/freebsd-lib-runet.patch: + Drop obsolete files. + +*freebsd-lib-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-lib-6.0-flex-2.5.31.patch, + +files/freebsd-lib-6.0-gccfloat.patch, +files/freebsd-lib-6.0-pmc.patch, + +files/freebsd-lib-bsdxml.patch, +files/freebsd-lib-fixmakefiles.patch, + +files/freebsd-lib-fixmp.patch, +files/freebsd-lib-msun-fenvc.patch, + +files/freebsd-lib-runet.patch, +metadata.xml, +freebsd-lib-6.0.ebuild: + Import into portage. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Add patch to build with flex 2.5.31 (and hard depend on that version as the + change is non-backward-compatible. + + 14 Feb 2006; Diego Pettenò ChangeLog: + Make sure that /dev/zero is a character special so that we don't compile a + broken libc if /dev is not mounted. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Install configuration files here instead than on baselayout. + + 13 Feb 2006; Diego Pettenò ChangeLog: + On suggestion from Benigno B. Junior (bbj), don't extract sys and include, + instead symlink them inside ${WORKDIR}. This also drops the patch to fix + makefiles. + + 13 Jan 2006; Diego Pettenò ChangeLog: + Add -static-libgcc to flags so that libc won't link to libgcc_s. + + 23 Oct 2005; Diego Pettenò ChangeLog: + Added conditional src_uri on usr.sbin for nis useflag. Thanks The_Paya @ + #gentoo-bsd. + +*freebsd-lib-6.0_beta4 (19 Sep 2005) + + 19 Sep 2005; Diego Pettenò + +files/freebsd-lib-6.0-fixmakefiles.patch, + +files/freebsd-lib-6.0-gccfloat.patch, + +files/freebsd-lib-6.0-gccfloat.patch~, +files/freebsd-lib-6.0-pmc.patch, + +freebsd-lib-6.0_beta4.ebuild: + Added freebsd-lib 6.0_beta4, slotted to avoid removing the old 5.4. This can + be a problem, remember\!. + + 25 Aug 2005; Diego Pettenò + +files/freebsd-lib-bsdxml.patch, +files/freebsd-lib-fixmakefiles.patch, + +files/freebsd-lib-fixmp.patch, +files/freebsd-lib-msun-fenvc.patch, + +files/freebsd-lib-runet.patch, +freebsd-lib-5.4-r2.ebuild: + Moved to sys-freebsd. + + 18 Aug 2005; Diego Pettenò + freebsd-lib-5.4-r2.ebuild: + Updated to reflect bsdmk/freebsd eclasses changes. + + 29 Jul 2005; Diego Pettenò + freebsd-lib-5.4-r2.ebuild: + Adapt to recent bsdmk changes. + + 16 Jun 2005; Diego Pettenò + freebsd-lib-5.4-r2.ebuild: + Removed a lot of subtargets which aren't needed on our setup. + + 15 Jun 2005; Diego Pettenò + freebsd-lib-5.4-r2.ebuild: + libarchive has its own ebuild now. + + 08 Jun 2005; Diego Pettenò + -files/freebsd-lib-minimal-2.patch, -files/freebsd-lib-minimal.patch, + -files/freebsd-lib-nosnmp.patch, freebsd-lib-5.4.ebuild, + freebsd-lib-5.4-r1.ebuild, freebsd-lib-5.4-r2.ebuild: + Moved also freebsd-lib to use dummy_mk instead of minimal patches. + +*freebsd-lib-5.4-r2 (08 Jun 2005) + + 08 Jun 2005; Diego Pettenò + +files/freebsd-lib-minimal-2.patch, freebsd-lib-5.3.ebuild, + freebsd-lib-5.3.20050301.ebuild, freebsd-lib-5.3.20050301-r1.ebuild, + freebsd-lib-5.4.ebuild, freebsd-lib-5.4-r1.ebuild, + +freebsd-lib-5.4-r2.ebuild: + New revision which removes a few more external libraries (which are going to + be added as ebuilds on their own). Sorry for this rapid-changing. + +*freebsd-lib-5.4-r1 (04 Jun 2005) + + 04 Jun 2005; Diego Pettenò + +files/freebsd-lib-nosnmp.patch, +freebsd-lib-5.4-r1.ebuild: + Remove libbsnmp and libbegemot as they're installed on their own. + + 26 May 2005; Diego Pettenò + +files/freebsd-lib-fixmp.patch, freebsd-lib-5.4.ebuild: + Added a patch to fix a compilation -ssl -> +ssl + +*freebsd-lib-5.4_rc4 (05 May 2005) + + 05 May 2005; Diego Pettenò + files/freebsd-lib-minimal.patch, -freebsd-lib-5.4_rc3.ebuild, + +freebsd-lib-5.4_rc4.ebuild: + Updated to rc4. + +*freebsd-lib-5.4_rc3 (29 Apr 2005) + + 29 Apr 2005; Diego Pettenò + +files/freebsd-lib-fixmakefiles.patch, +files/freebsd-lib-minimal.patch, + +files/freebsd-lib-msun-fenvc.patch, +files/freebsd-lib-runet.patch, + +freebsd-lib-5.4_rc3.ebuild: + Added new experimental 5.4_rc3 ebuild which follows the new gentooish + structure. + +*freebsd-lib-5.3.20050301-r1 (19 Apr 2005) + + 19 Apr 2005; Otavio R. Piske + +files/freebsd-lib-5.3-pkgs_removed.patch, + +freebsd-lib-5.3.20050301-r1.ebuild: + New ebuild with a patch to avoid compilation of ncurses. + + 07 Apr 2005; Otavio R. Piske : + New ebuild with support for new use flags and based on updated sources + +*freebsd-lib-5.2.1 (19 Oct 2004) + + 19 Oct 2004; Otavio R. Piske + freebsd-lib-5.2.1.ebuild: + Initial release + diff --git a/sys-freebsd/freebsd-lib/Manifest b/sys-freebsd/freebsd-lib/Manifest new file mode 100644 index 0000000..405284a --- /dev/null +++ b/sys-freebsd/freebsd-lib/Manifest @@ -0,0 +1,22 @@ +AUX freebsd-lib-6.0-binutils-asm.patch 1096 RMD160 1d2c2e60f2c8ca49fb8b01c65aca65b5cd59ea23 SHA1 1533aef95476da5b631d2ffb9b4892773ee5b2ae SHA256 5794228b1754d0b0a9a46fbae7e117ca91ca7da1d842339b279a4185014cbfd9 +AUX freebsd-lib-6.0-flex-2.5.31.patch 421 RMD160 6ef83c6b09e31a81ba3c25772b02aef34540dbe8 SHA1 1408a36a967b0ff5ba94e23921357f4296e31bc2 SHA256 1d46cf13e1059ae3731ba5555764e020fcf4de7db5abf039fac83423e05d53c4 +AUX freebsd-lib-6.0-gccfloat.patch 542 RMD160 564f5a1b1aba59479c22f91570635de717e8b7bf SHA1 94f463f123fdc3009d4ca1d5ab351aa76d768c6b SHA256 d549125f174c86c2d5e7e1f1c99cf1303b84e91ce8ee51db8c962be48b7a7951 +AUX freebsd-lib-6.0-pmc.patch 338 RMD160 bb284cc2f9eafd3f65090087af215c3da679fefa SHA1 18343fc612bd231ec722b579dff61c887542b1c2 SHA256 36ca464f0aa1ed8784c8f1edc4a3580704c9a7813963684305250d806000075f +AUX freebsd-lib-6.0-ssp.patch 4343 RMD160 2ae7e8ba8d2dd691a943049bc03703af02c97a5c SHA1 bbfd416550a10a42bc48f4daf4b3feb0457ec37a SHA256 74fe62e37428faaf4ebe4a6e3735c7cc900b1faeb2bf7a3016db23483a9606ab +AUX freebsd-lib-6.1-csu.patch 655 RMD160 d4fa9ade913ef3ce90351ae368f0944265eae2e4 SHA1 b165b704258d2ce600bcd2a900363d851a4a2a77 SHA256 e6fe72a4183227b275815a75eec9639321046dc1e02b80c507ae6bf902a58cf1 +AUX freebsd-lib-6.2-gcc41.patch 890 RMD160 231bf22bade53a71364c18a00cecaf702cd8803d SHA1 2f26428988501fc9e6b8d0d493e39366d0cf46f7 SHA256 a5aba66f97f445f7d6c6dbfd2ec15506a922b0a38e1ae9ac951767cdf3777651 +AUX freebsd-lib-6.2-sparc64.patch 4003 RMD160 d27d3bab8314b7daa7ef8c77e94f530f6d332d61 SHA1 6f34ec7b10dd80a7df25719aa4509bae2c3e3d5e SHA256 9369b7453d2c3452215208ccfaa06d3a927be877bb4fec212b3bda8d7fcf702f +AUX freebsd-lib-7.0-ssp.patch 4344 RMD160 683f4afd3c8bb95cdc45b0a42f76faacbeda1b7e SHA1 22791e87417b99b11cedd8ede6e73cc5c6e9ea07 SHA256 b2a0733520eb2e00de18e427db956ad93c3cd4eab3cbc6be73403a1dd87d2526 +AUX freebsd-lib-bsdxml.patch 339 RMD160 27b501cda2ac76230a72dfc3ee6593cb50f8d4b0 SHA1 3b456d272de5d0c56bc650fe60f38524857f8b31 SHA256 c1ac47d6c7176475f0f4b86bb17288a980b44a799fb6f4e7b1920f69e0447dc9 +AUX freebsd-sources-6.2-sparc64.patch 18794 RMD160 7e529e32924c872ea033f03c781a86031fe8d13b SHA1 ef21dc71571d547c01f5ce8f43a33e9e4d00a519 SHA256 a1b5803f3366d3466ba3c07f510e0b8c72e17b515a1dc82f696e5a10bec7a60c +DIST freebsd-contrib-7.0_pre200704.tar.bz2 36743671 RMD160 aae7903e03d8decf910ee7e252d615658b8bfc25 SHA1 71006b34dc0e34be1f9093fca7b2aa9919038cd5 SHA256 1045c6d9ee9d0df02bd2627153da5bff2a74798af9f1852429ba0101430dcff3 +DIST freebsd-crypto-7.0_pre200704.tar.bz2 4395672 RMD160 41c15010f4b86ec787dcfecc26934c96d9755db2 SHA1 9d54fa9d32f5b5bba5b026d5ef9612b29448886d SHA256 8c768aea91f5e716d94e43ca05150b0d99ad35f2a84f3b761a7fff82d3431f66 +DIST freebsd-etc-7.0_pre200704.tar.bz2 191186 RMD160 321bff52828b8beedb8dcebe6c058076bf1f0218 SHA1 8e23c466b86cb6437196d2374d80de24b1aa014e SHA256 58ab1e844089dd836be7a5cab980858607ae800195ef9d416797b14a744bac12 +DIST freebsd-include-7.0_pre200704.tar.bz2 136471 RMD160 65f3af47b48b415744176505322aef401b1fb2d4 SHA1 12b0440ddba7bedb61172c46590c363c75b3046f SHA256 70d5705a0da01320f00ccc450e5241b01351307df603257f59e600b7980e99a0 +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-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-lib-7.0_pre200704.ebuild 8266 RMD160 c11566541d9faf75565ab86a2b4d2c6d5030708f SHA1 469be42ff131b1ad4136df2f69ad446b6b7405ca SHA256 e04a1e3df50e2d9eb631a762fc0f61a94f41fc5fdde78576acf69402e73b3e08 +MISC ChangeLog 13708 RMD160 d88495a5a7b58c9efeb2aa4338d768e69634e473 SHA1 db57a1996f6adb51b9fb1d025725a3567ec69ce2 SHA256 d83615bda52d89d756b4a01c01233f13dbfee58677115f27ea85f549240d0e73 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-binutils-asm.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-binutils-asm.patch new file mode 100644 index 0000000..f6fdd83 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-binutils-asm.patch @@ -0,0 +1,36 @@ +Update ASM code to build with newer binutils (2.16.91.0.x). Thanks to Emanuele +Giaquinta +Index: fbsd-6/lib/libpthread/arch/i386/i386/thr_getcontext.S +=================================================================== +--- fbsd-6.orig/lib/libpthread/arch/i386/i386/thr_getcontext.S ++++ fbsd-6/lib/libpthread/arch/i386/i386/thr_getcontext.S +@@ -63,10 +63,10 @@ ENTRY(__thr_setcontext) + movl $-1, %eax /* bzzzt, invalid context */ + jmp 8f + 2: /*movl 4(%edx), %gs*/ /* we don't touch %gs */ +- movl 8(%edx), %fs +- movl 12(%edx), %es +- movl 16(%edx), %ds +- movl 76(%edx), %ss ++ movw 8(%edx), %fs ++ movw 12(%edx), %es ++ movw 16(%edx), %ds ++ movw 76(%edx), %ss + movl 20(%edx), %edi + movl 24(%edx), %esi + movl 28(%edx), %ebp +@@ -127,10 +127,10 @@ ENTRY(__thr_getcontext) + movl $-1, %eax + jmp 2f + 1: /*movl %gs, 4(%edx)*/ /* we don't touch %gs */ +- movl %fs, 8(%edx) +- movl %es, 12(%edx) +- movl %ds, 16(%edx) +- movl %ss, 76(%edx) ++ movw %fs, 8(%edx) ++ movw %es, 12(%edx) ++ movw %ds, 16(%edx) ++ movw %ss, 76(%edx) + movl %edi, 20(%edx) + movl %esi, 24(%edx) + movl %ebp, 28(%edx) diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch new file mode 100644 index 0000000..00de8a6 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-flex-2.5.31.patch @@ -0,0 +1,13 @@ +Index: fbsd-6/lib/libipsec/policy_token.l +=================================================================== +--- fbsd-6.orig/lib/libipsec/policy_token.l ++++ fbsd-6/lib/libipsec/policy_token.l +@@ -138,8 +138,6 @@ void + __policy__strbuffer__init__(msg) + char *msg; + { +- if (yy_current_buffer) +- yy_delete_buffer(yy_current_buffer); + strbuffer = (YY_BUFFER_STATE)yy_scan_string(msg); + yy_switch_to_buffer(strbuffer); + diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch new file mode 100644 index 0000000..a3e7d5e --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-gccfloat.patch @@ -0,0 +1,16 @@ +This patch is needed to avoid inclusion of GCC's float.h that defines +LDBL_MANT_DIG at 53 (while the source file checks for 113 or 64. + +Index: freebsd-6.0_beta4/lib/msun/src/s_fmal.c +=================================================================== +--- freebsd-6.0_beta4.orig/lib/msun/src/s_fmal.c ++++ freebsd-6.0_beta4/lib/msun/src/s_fmal.c +@@ -28,7 +28,7 @@ + __FBSDID("$FreeBSD: src/lib/msun/src/s_fmal.c,v 1.2 2005/03/18 02:27:59 das Exp $"); + + #include +-#include ++#include + #include + + /* diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch new file mode 100644 index 0000000..2f6de46 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-pmc.patch @@ -0,0 +1,13 @@ +Index: freebsd-6.0_beta4/lib/libpmc/Makefile +=================================================================== +--- freebsd-6.0_beta4.orig/lib/libpmc/Makefile ++++ freebsd-6.0_beta4/lib/libpmc/Makefile +@@ -9,6 +9,8 @@ WARNS?= 6 + + MAN= pmc.3 pmclog.3 + ++CFLAGS+= -I${.CURDIR} ++ + MLINKS+= \ + pmc.3 pmc_allocate.3 \ + pmc.3 pmc_attach.3 \ diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-ssp.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-ssp.patch new file mode 100644 index 0000000..e94e557 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.0-ssp.patch @@ -0,0 +1,135 @@ +Index: fbsd-6/lib/libc/sys/Makefile.inc +=================================================================== +--- fbsd-6.orig/lib/libc/sys/Makefile.inc ++++ fbsd-6/lib/libc/sys/Makefile.inc +@@ -18,7 +18,7 @@ + .endif + + # Sources common to both syscall interfaces: +-SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c __error.c ++SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c __error.c ssp.c + + # Add machine dependent asm sources: + SRCS+=${MDASM} +Index: fbsd-6/lib/libc/sys/ssp.c +=================================================================== +--- /dev/null ++++ fbsd-6/lib/libc/sys/ssp.c +@@ -0,0 +1,83 @@ ++/* ++ * Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat. ++ * Copyright (c) 2006 Ned Ludd ++ * Diego Pettenò ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++ * DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, ++ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ++ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, ++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ++ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++ * POSSIBILITY OF SUCH DAMAGE. ++ * ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++extern int __sysctl(int *, u_int, void *, size_t *, void *, size_t); ++ ++unsigned long __guard = 0UL; ++void __guard_setup(void) __attribute__ ((constructor)); ++void __stack_smash_handler(char func[], int damaged __attribute__((unused))); ++ ++void ++__guard_setup(void) ++{ ++ int i, mib[2]; ++ size_t len = 4; ++ ++ __guard = 0xFF0A0D00UL; ++ if (__guard != 0) return; ++ ++ srandomdev(); ++ ++ __guard = random(); ++} ++ ++void ++__stack_smash_handler(char func[], int damaged) ++{ ++ static const char message[] = "stack overflow in function "; ++ struct sigaction sa; ++ sigset_t mask; ++ ++ /* Immediately block all signal handlers from running code */ ++ sigfillset(&mask); ++ sigdelset(&mask, SIGABRT); ++ sigprocmask(SIG_BLOCK, &mask, NULL); ++ ++ write(2, message, sizeof(message)); ++ write(2, func, strlen(func)); ++ write(2, "\n", 1); ++ ++ bzero(&sa, sizeof(struct sigaction)); ++ sigemptyset(&sa.sa_mask); ++ sa.sa_flags = 0; ++ sa.sa_handler = SIG_DFL; ++ sigaction(SIGABRT, &sa, NULL); ++ ++ kill(getpid(), SIGABRT); ++ ++ _exit(127); ++} +Index: fbsd-6/lib/csu/i386-elf/crt1.c +=================================================================== +--- fbsd-6.orig/lib/csu/i386-elf/crt1.c ++++ fbsd-6/lib/csu/i386-elf/crt1.c +@@ -44,6 +44,7 @@ extern void _fini(void); + extern void _init(void); + extern int main(int, char **, char **); + extern void _start(char *, ...); ++extern void __guard_setup(void); + + #ifdef GCRT + extern void _mcleanup(void); +@@ -106,6 +107,7 @@ _start(char *ap, ...) + monstartup(&eprol, &etext); + #endif + _init(); ++ __guard_setup(); + exit( main(argc, argv, env) ); + } + +Index: fbsd-6/lib/libc/Makefile +=================================================================== +--- fbsd-6.orig/lib/libc/Makefile ++++ fbsd-6/lib/libc/Makefile +@@ -15,6 +15,9 @@ SHLIBDIR?= /lib + WARNS?= 2 + CFLAGS+=-I${.CURDIR}/include -I${.CURDIR}/../../include + CFLAGS+=-I${.CURDIR}/${MACHINE_ARCH} ++# Disable stack protection for the only libc, and leave it for the rest of ++# the libraries. ++CFLAGS+= -fno-stack-protector + CLEANFILES+=tags + INSTALL_PIC_ARCHIVE= + PRECIOUSLIB= diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.1-csu.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.1-csu.patch new file mode 100644 index 0000000..075f278 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.1-csu.patch @@ -0,0 +1,20 @@ +--- lib/csu/amd64/Makefile.orig 2006-07-04 07:49:58 -0300 ++++ lib/csu/amd64/Makefile 2006-07-04 07:50:15 -0300 +@@ -16,6 +16,7 @@ + ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c + + realinstall: ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${OBJS} ${DESTDIR}${LIBDIR} + +--- lib/csu/sparc64/Makefile.orig 2006-10-06 15:13:55 +0100 ++++ lib/csu/sparc64/Makefile 2006-10-06 15:15:06 +0100 +@@ -15,6 +15,7 @@ + ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC} + + realinstall: ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${OBJS} ${DESTDIR}${LIBDIR} + diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-gcc41.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-gcc41.patch new file mode 100644 index 0000000..e7addfa --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-gcc41.patch @@ -0,0 +1,26 @@ +Index: fbsd-6.2/lib/libc/isc/eventlib_p.h +=================================================================== +--- fbsd-6.2.orig/lib/libc/isc/eventlib_p.h ++++ fbsd-6.2/lib/libc/isc/eventlib_p.h +@@ -280,6 +280,8 @@ evWait *evFreeWait(evContext_p *ctx, evW + #endif + + /* Global options */ ++#ifndef _LIBC + extern int __evOptMonoTime; ++#endif + + #endif /*_EVENTLIB_P_H*/ +Index: fbsd-6.2/lib/libc/resolv/res_debug.c +=================================================================== +--- fbsd-6.2.orig/lib/libc/resolv/res_debug.c ++++ fbsd-6.2/lib/libc/resolv/res_debug.c +@@ -472,7 +472,7 @@ const struct res_sym __p_type_syms[] = { + /* + * Names of DNS rcodes. + */ +-static const struct res_sym __p_rcode_syms[] = { ++const struct res_sym __p_rcode_syms[] = { + {ns_r_noerror, "NOERROR", "no error"}, + {ns_r_formerr, "FORMERR", "format error"}, + {ns_r_servfail, "SERVFAIL", "server failed"}, diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-sparc64.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-sparc64.patch new file mode 100644 index 0000000..0759d49 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-6.2-sparc64.patch @@ -0,0 +1,106 @@ +FreeBSD only works on Sparc64 and freeBSD code relies on the __sparc64__ define. +gcc only defines __sparc64__ if -mcpu is not used. +gcc-4 defaults to using -mcpu=ultrasparc on FreeBSD. + +This causes us a problem. Infact, FreeBSD developers sent gcc a patch to always +define __sparc64__ when using -mcpu=ultrasparc, but this was rejected by most +people including NetBSD developers. + +The correct solution is to use __sparc__. +If platform detection is required, or the code is obviously 64 bit then we can +use the __arch64__ define as well. +This combination should be supported by all gcc versions:) + +diff -ur lib.orig/libc/gen/tls.c lib/libc/gen/tls.c +--- lib.orig/libc/gen/tls.c 2006-09-02 21:38:13 +0100 ++++ lib/libc/gen/tls.c 2006-10-09 18:17:53 +0100 +@@ -61,7 +61,7 @@ + #if defined(__ia64__) || defined(__alpha__) || defined(__powerpc__) + #define TLS_VARIANT_I + #endif +-#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__) || \ ++#if defined(__i386__) || defined(__amd64__) || defined(__sparc__) || \ + defined(__arm__) + #define TLS_VARIANT_II + #endif +diff -ur lib.orig/libc/gmon/gmon.c lib/libc/gmon/gmon.c +--- lib.orig/libc/gmon/gmon.c 2004-10-16 07:32:43 +0100 ++++ lib/libc/gmon/gmon.c 2006-10-09 18:18:12 +0100 +@@ -53,7 +53,7 @@ + + #include "libc_private.h" + +-#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__) ++#if defined(__i386__) || defined(__sparc__) || defined(__amd64__) + extern char *minbrk __asm (".minbrk"); + #else + extern char *minbrk __asm ("minbrk"); +diff -ur lib.orig/libc/stdlib/malloc.c lib/libc/stdlib/malloc.c +--- lib.orig/libc/stdlib/malloc.c 2005-09-18 04:45:24 +0100 ++++ lib/libc/stdlib/malloc.c 2006-10-09 18:22:29 +0100 +@@ -55,7 +55,7 @@ + # define malloc_pageshift 13U + # define malloc_minsize 16U + # endif +-# if defined(__sparc64__) ++# if defined(__sparc__) && defined(__arch64__) + # define malloc_pageshift 13U + # define malloc_minsize 16U + # endif +diff -ur lib.orig/libc/xdr/xdr_float.c lib/libc/xdr/xdr_float.c +--- lib.orig/libc/xdr/xdr_float.c 2004-10-16 07:32:43 +0100 ++++ lib/libc/xdr/xdr_float.c 2006-10-09 18:23:17 +0100 +@@ -64,7 +64,7 @@ + #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ + defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \ + defined(__arm__) || defined(__ppc__) || defined(__ia64__) || \ +- defined(__arm26__) || defined(__sparc64__) || defined(__amd64__) ++ defined(__arm26__) || defined(__amd64__) + #include + #define IEEEFP + #endif +diff -ur lib.orig/libc_r/uthread/pthread_private.h lib/libc_r/uthread/pthread_private.h +--- lib.orig/libc_r/uthread/pthread_private.h 2005-05-31 20:57:23 +0100 ++++ lib/libc_r/uthread/pthread_private.h 2006-10-09 18:24:55 +0100 +@@ -144,7 +144,7 @@ + GET_BSP_JB(jb) = (long)(stk); \ + } while (0) + #define UPD_STACK_JB(jb, stk) GET_STACK_JB(jb) = (long)(stk) +-#elif defined(__sparc64__) ++#elif defined(__sparc__) && defined(__arch64__) + #include + + #define CCFSZ sizeof (struct frame) +diff -ur lib.orig/libdisk/disk.c lib/libdisk/disk.c +--- lib.orig/libdisk/disk.c 2006-05-10 16:26:46 +0100 ++++ lib/libdisk/disk.c 2006-10-09 18:26:33 +0100 +@@ -42,7 +42,7 @@ + p_i386 + #elif defined(__alpha__) + p_alpha +-#elif defined(__sparc64__) ++#elif defined(__sparc__) && defined(__arch64__) + p_sparc64 + #elif defined(__ia64__) + p_ia64 +@@ -309,7 +309,7 @@ + if (!d->boot1) + return -1; + memcpy(d->boot1, b1, 15 * 512); +-#elif defined(__sparc64__) ++#elif defined(__sparc__) && defined(__arch64__) + if (d->boot1 != NULL) + free(d->boot1); + d->boot1 = malloc(16 * 512); +diff -ur lib.orig/msun/src/math.h lib/msun/src/math.h +--- lib.orig/msun/src/math.h 2005-04-16 22:12:47 +0100 ++++ lib/msun/src/math.h 2006-10-09 18:27:09 +0100 +@@ -69,7 +69,7 @@ + #define math_errhandling MATH_ERREXCEPT + + /* XXX We need a . */ +-#if defined(__ia64__) || defined(__sparc64__) ++#if defined(__ia64__) || defined(__sparc__) + #define FP_FAST_FMA + #endif + #ifdef __ia64__ diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-ssp.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-ssp.patch new file mode 100644 index 0000000..07af437 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-7.0-ssp.patch @@ -0,0 +1,135 @@ +Index: fbsd-6/lib/libc/sys/Makefile.inc +=================================================================== +--- fbsd-6.orig/lib/libc/sys/Makefile.inc ++++ fbsd-6/lib/libc/sys/Makefile.inc +@@ -18,7 +18,7 @@ + .endif + + # Sources common to both syscall interfaces: +-SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c __error.c ++SRCS+= ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c __error.c ssp.c + + # Add machine dependent asm sources: + SRCS+=${MDASM} +Index: fbsd-6/lib/libc/sys/ssp.c +=================================================================== +--- /dev/null ++++ fbsd-6/lib/libc/sys/ssp.c +@@ -0,0 +1,83 @@ ++/* ++ * Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat. ++ * Copyright (c) 2006 Ned Ludd ++ * Diego Pettenò ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++ * DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, ++ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ++ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, ++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ++ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++ * POSSIBILITY OF SUCH DAMAGE. ++ * ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++extern int __sysctl(int *, u_int, void *, size_t *, void *, size_t); ++ ++unsigned long __guard = 0UL; ++void __guard_setup(void) __attribute__ ((constructor)); ++void __stack_smash_handler(char func[], int damaged __attribute__((unused))); ++ ++void ++__guard_setup(void) ++{ ++ int i, mib[2]; ++ size_t len = 4; ++ ++ __guard = 0xFF0A0D00UL; ++ if (__guard != 0) return; ++ ++ srandomdev(); ++ ++ __guard = random(); ++} ++ ++void ++__stack_smash_handler(char func[], int damaged) ++{ ++ static const char message[] = "stack overflow in function "; ++ struct sigaction sa; ++ sigset_t mask; ++ ++ /* Immediately block all signal handlers from running code */ ++ sigfillset(&mask); ++ sigdelset(&mask, SIGABRT); ++ sigprocmask(SIG_BLOCK, &mask, NULL); ++ ++ write(2, message, sizeof(message)); ++ write(2, func, strlen(func)); ++ write(2, "\n", 1); ++ ++ bzero(&sa, sizeof(struct sigaction)); ++ sigemptyset(&sa.sa_mask); ++ sa.sa_flags = 0; ++ sa.sa_handler = SIG_DFL; ++ sigaction(SIGABRT, &sa, NULL); ++ ++ kill(getpid(), SIGABRT); ++ ++ _exit(127); ++} +Index: fbsd-6/lib/csu/i386-elf/crt1.c +=================================================================== +--- fbsd-6.orig/lib/csu/i386-elf/crt1.c ++++ fbsd-6/lib/csu/i386-elf/crt1.c +@@ -44,6 +44,7 @@ extern void _fini(void); + extern void _init(void); + extern int main(int, char **, char **); + extern void _start(char *, ...); ++extern void __guard_setup(void); + + #ifdef GCRT + extern void _mcleanup(void); +@@ -106,6 +107,7 @@ _start(char *ap, ...) + monstartup(&eprol, &etext); + #endif + _init(); ++ __guard_setup(); + exit( main(argc, argv, env) ); + } + +Index: fbsd-6/lib/libc/Makefile +=================================================================== +--- fbsd-6.orig/lib/libc/Makefile ++++ fbsd-6/lib/libc/Makefile +@@ -15,6 +15,9 @@ SHLIBDIR?= /lib + WARNS?= 2 + CFLAGS+=-I${.CURDIR}/include -I${.CURDIR}/../../include + CFLAGS+=-I${.CURDIR}/${MACHINE_ARCH} ++# Disable stack protection for the only libc, and leave it for the rest of ++# the libraries. ++CFLAGS+= -fno-stack-protector + CLEANFILES+=tags + INSTALL_PIC_ARCHIVE= + PRECIOUSLIB= diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch new file mode 100644 index 0000000..ec90def --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-bsdxml.patch @@ -0,0 +1,13 @@ +diff -u lib/libgeom/Makefile lib.xml/libgeom/Makefile +--- lib/libgeom/Makefile 2004-03-07 16:07:57 +0000 ++++ lib.xml/libgeom/Makefile 2005-05-06 10:38:41 +0000 +@@ -8,7 +8,8 @@ + SRCS+= geom_ctl.c + INCS= libgeom.h + +-CFLAGS += -I${.CURDIR} ++CFLAGS += -I${.CURDIR} -I${.CURDIR}/../libexpat ++LDFLAGS += -L${.CURDIR}/../libexpat + + WARNS?= 3 + diff --git a/sys-freebsd/freebsd-lib/files/freebsd-sources-6.2-sparc64.patch b/sys-freebsd/freebsd-lib/files/freebsd-sources-6.2-sparc64.patch new file mode 100644 index 0000000..76785b8 --- /dev/null +++ b/sys-freebsd/freebsd-lib/files/freebsd-sources-6.2-sparc64.patch @@ -0,0 +1,594 @@ +FreeBSD only works on Sparc64 and freeBSD code relies on the __sparc64__ define. +gcc only defines __sparc64__ if -mcpu is not used. +gcc-4 defaults to using -mcpu=ultrasparc on FreeBSD. + +This causes us a problem. Infact, FreeBSD developers sent gcc a patch to always +define __sparc64__ when using -mcpu=ultrasparc, but this was rejected by most +people including NetBSD developers. + +The correct solution is to use __sparc__. +If platform detection is required, or the code is obviously 64 bit then we can +use the __arch64__ define as well. +This combination should be supported by all gcc versions:) + +diff -ur sys.orig/boot/ofw/libofw/ofw_net.c sys/boot/ofw/libofw/ofw_net.c +--- sys.orig/boot/ofw/libofw/ofw_net.c 2005-03-02 20:12:27 +0000 ++++ sys/boot/ofw/libofw/ofw_net.c 2006-10-11 11:08:26 +0100 +@@ -189,7 +189,7 @@ + if ((ch = index(path, ':')) != NULL) + *ch = '\0'; + netdev = OF_finddevice(path); +-#ifdef __sparc64__ ++#if defined(__sparc__) + if (OF_getprop(netdev, "mac-address", desc->myea, 6) == -1) + #else + if (OF_getprop(netdev, "local-mac-address", desc->myea, 6) == -1) +@@ -207,7 +207,7 @@ + printf("ofwn_init: Open Firmware instance handle: %08x\n", netinstance); + #endif + +-#ifndef __sparc64__ ++#ifndef __sparc__ + dmabuf = NULL; + if (OF_call_method("dma-alloc", netinstance, 1, 1, (64 * 1024), &dmabuf) + < 0) { +diff -ur sys.orig/conf/ldscript.sparc64 sys/conf/ldscript.sparc64 +--- sys.orig/conf/ldscript.sparc64 2003-06-07 19:23:50 +0100 ++++ sys/conf/ldscript.sparc64 2006-10-11 11:10:21 +0100 +@@ -1,6 +1,6 @@ + /* $FreeBSD: src/sys/conf/ldscript.sparc64,v 1.4 2003/06/07 18:23:50 jake Exp $ */ +-OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", +- "elf64-sparc") ++OUTPUT_FORMAT("elf64-sparc-freebsd", "elf64-sparc-freebsd", ++ "elf64-sparc-freebsd") + OUTPUT_ARCH(sparc:v9) + ENTRY(_start) + SEARCH_DIR(/usr/lib); +diff -ur sys.orig/dev/atkbdc/atkbd.c sys/dev/atkbdc/atkbd.c +--- sys.orig/dev/atkbdc/atkbd.c 2006-05-26 01:56:14 +0100 ++++ sys/dev/atkbdc/atkbd.c 2006-10-11 11:08:26 +0100 +@@ -1031,7 +1031,7 @@ + static void + atkbd_shutdown_final(void *v) + { +-#ifdef __sparc64__ ++#ifdef __sparc__ + keyboard_t *kbd = v; + KBDC kbdc = ((atkbd_state_t *)kbd->kb_data)->kbdc; + +@@ -1330,7 +1330,7 @@ + } + } + +-#if defined(__alpha__) || defined(__sparc64__) ++#if defined(__alpha__) || defined(__sparc__) + if (send_kbd_command_and_data( + kbdc, KBDC_SET_SCANCODE_SET, 2) != KBD_ACK) { + printf("atkbd: can't set translation.\n"); +diff -ur sys.orig/dev/atkbdc/atkbdc.c sys/dev/atkbdc/atkbdc.c +--- sys.orig/dev/atkbdc/atkbdc.c 2006-09-22 02:05:30 +0100 ++++ sys/dev/atkbdc/atkbdc.c 2006-10-11 11:08:26 +0100 +@@ -46,7 +46,7 @@ + + #include + +-#ifdef __sparc64__ ++#ifdef __sparc__ + #include + #include + #include +@@ -93,7 +93,7 @@ + + static int verbose = KBDIO_DEBUG; + +-#ifdef __sparc64__ ++#ifdef __sparc__ + static struct bus_space_tag atkbdc_bst_store[MAXKBDC]; + #endif + +@@ -157,7 +157,7 @@ + volatile int i; + register_t flags; + #endif +-#ifdef __sparc64__ ++#ifdef __sparc__ + char name[32]; + phandle_t chosen, node; + ihandle_t stdin; +@@ -178,13 +178,13 @@ + tag = busspace_isa_io; + #elif defined(__ia64__) + tag = IA64_BUS_SPACE_IO; +-#elif defined(__sparc64__) ++#elif defined(__sparc__) + tag = &atkbdc_bst_store[0]; + #else + #error "define tag!" + #endif + +-#ifdef __sparc64__ ++#if defined(__sparc__) && defined (__arch64__) + if ((chosen = OF_finddevice("/chosen")) == -1) + return 0; + if (OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) +diff -ur sys.orig/dev/firewire/sbp.c sys/dev/firewire/sbp.c +--- sys.orig/dev/firewire/sbp.c 2005-01-06 01:42:41 +0000 ++++ sys/dev/firewire/sbp.c 2006-10-11 11:08:26 +0100 +@@ -160,7 +160,7 @@ + #define NEED_RESPONSE 0 + + #define SBP_SEG_MAX rounddown(0xffff, PAGE_SIZE) +-#ifdef __sparc64__ /* iommu */ ++#if defined(__sparc__) && defined(__arch64__) /* iommu */ + #define SBP_IND_MAX howmany(MAXPHYS, SBP_SEG_MAX) + #else + #define SBP_IND_MAX howmany(MAXPHYS, PAGE_SIZE) +diff -ur sys.orig/dev/hme/if_hme_pci.c sys/dev/hme/if_hme_pci.c +--- sys.orig/dev/hme/if_hme_pci.c 2005-07-10 11:36:45 +0100 ++++ sys/dev/hme/if_hme_pci.c 2006-10-11 11:08:26 +0100 +@@ -44,7 +44,7 @@ + #include + + #include +-#if defined(__powerpc__) || defined(__sparc64__) ++#if defined(__powerpc__) || defined(__sparc__) + #include + #include + #endif +@@ -140,7 +140,7 @@ + struct hme_pci_softc *hsc = device_get_softc(dev); + struct hme_softc *sc = &hsc->hsc_hme; + int error = 0; +-#if !(defined(__powerpc__) || defined(__sparc64__)) ++#if !(defined(__powerpc__) || defined(__sparc__)) + device_t *children, ebus_dev; + struct resource *ebus_rres; + bus_space_handle_t romh; +@@ -221,7 +221,7 @@ + bus_space_subregion(hsc->hsc_memt, hsc->hsc_memh, 0x7000, 0x1000, + &sc->sc_mifh); + +-#if defined(__powerpc__) || defined(__sparc64__) ++#if defined(__powerpc__) || defined(__sparc__) + OF_getetheraddr(dev, sc->sc_enaddr); + #else + /* +diff -ur sys.orig/dev/isp/isp_freebsd.h sys/dev/isp/isp_freebsd.h +--- sys.orig/dev/isp/isp_freebsd.h 2006-09-01 06:55:13 +0100 ++++ sys/dev/isp/isp_freebsd.h 2006-10-11 11:08:26 +0100 +@@ -78,7 +78,7 @@ + /* + * Efficiency- get rid of SBus code && tests unless we need them. + */ +-#ifdef __sparc64__ ++#ifdef __sparc__ + #define ISP_SBUS_SUPPORTED 1 + #else + #define ISP_SBUS_SUPPORTED 0 +diff -ur sys.orig/dev/sym/sym_hipd.c sys/dev/sym/sym_hipd.c +--- sys.orig/dev/sym/sym_hipd.c 2005-05-29 05:42:26 +0100 ++++ sys/dev/sym/sym_hipd.c 2006-10-11 11:08:26 +0100 +@@ -143,7 +143,7 @@ + #define MEMORY_BARRIER() __asm__ volatile("eieio; sync" : : : "memory") + #elif defined __ia64__ + #define MEMORY_BARRIER() __asm__ volatile("mf.a; mf" : : : "memory") +-#elif defined __sparc64__ ++#elif defined __sparc__ && defined __arch64__ + #define MEMORY_BARRIER() __asm__ volatile("membar #Sync" : : : "memory") + #else + #error "Not supported platform" +diff -ur sys.orig/dev/syscons/scgfbrndr.c sys/dev/syscons/scgfbrndr.c +--- sys.orig/dev/syscons/scgfbrndr.c 2005-10-05 22:48:02 +0100 ++++ sys/dev/syscons/scgfbrndr.c 2006-10-11 11:08:26 +0100 +@@ -213,7 +213,7 @@ + + static int pxlblinkrate = 0; + +-#if defined(__sparc64__) || defined(SC_OFWFB) ++#if defined(__sparc__) || defined(SC_OFWFB) + static void + gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip) + { +diff -ur sys.orig/dev/syscons/schistory.c sys/dev/syscons/schistory.c +--- sys.orig/dev/syscons/schistory.c 2004-01-21 05:08:51 +0000 ++++ sys/dev/syscons/schistory.c 2006-10-11 11:08:26 +0100 +@@ -42,7 +42,7 @@ + #include + #include + +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +diff -ur sys.orig/dev/syscons/scterm-dumb.c sys/dev/syscons/scterm-dumb.c +--- sys.orig/dev/syscons/scterm-dumb.c 2004-01-21 05:08:51 +0000 ++++ sys/dev/syscons/scterm-dumb.c 2006-10-11 11:08:26 +0100 +@@ -33,7 +33,7 @@ + #include + #include + +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +diff -ur sys.orig/dev/syscons/scterm-sc.c sys/dev/syscons/scterm-sc.c +--- sys.orig/dev/syscons/scterm-sc.c 2004-05-30 21:08:42 +0100 ++++ sys/dev/syscons/scterm-sc.c 2006-10-11 11:08:26 +0100 +@@ -36,7 +36,7 @@ + #include + #include + +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +diff -ur sys.orig/dev/syscons/scvtb.c sys/dev/syscons/scvtb.c +--- sys.orig/dev/syscons/scvtb.c 2005-05-21 21:28:15 +0100 ++++ sys/dev/syscons/scvtb.c 2006-10-11 11:08:26 +0100 +@@ -74,7 +74,7 @@ + } + vtb->vtb_flags |= VTB_VALID; + break; +-#ifndef __sparc64__ ++#ifndef __sparc__ + case VTB_FRAMEBUFFER: + vtb->vtb_buffer = (vm_offset_t)buf; + vtb->vtb_flags |= VTB_VALID; +@@ -119,7 +119,7 @@ + int + sc_vtb_getc(sc_vtb_t *vtb, int at) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + return (readw(sc_vtb_pointer(vtb, at)) & 0x00ff); + else +@@ -130,7 +130,7 @@ + int + sc_vtb_geta(sc_vtb_t *vtb, int at) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + return (readw(sc_vtb_pointer(vtb, at)) & 0xff00); + else +@@ -141,7 +141,7 @@ + void + sc_vtb_putc(sc_vtb_t *vtb, int at, int c, int a) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + writew(sc_vtb_pointer(vtb, at), a | c); + else +@@ -152,7 +152,7 @@ + vm_offset_t + sc_vtb_putchar(sc_vtb_t *vtb, vm_offset_t p, int c, int a) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + writew(p, a | c); + else +@@ -176,7 +176,7 @@ + void + sc_vtb_clear(sc_vtb_t *vtb, int c, int attr) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, 0), vtb->vtb_size); + else +@@ -187,7 +187,7 @@ + void + sc_vtb_copy(sc_vtb_t *vtb1, int from, sc_vtb_t *vtb2, int to, int count) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + /* XXX if both are VTB_VRAMEBUFFER... */ + if (vtb2->vtb_type == VTB_FRAMEBUFFER) + bcopy_toio(sc_vtb_pointer(vtb1, from), +@@ -214,7 +214,7 @@ + + while (count > 0) { + len = imin(count, vtb2->vtb_size - vtb2->vtb_tail); +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb1->vtb_type == VTB_FRAMEBUFFER) + bcopy_fromio(sc_vtb_pointer(vtb1, from), + sc_vtb_pointer(vtb2, vtb2->vtb_tail), +@@ -241,7 +241,7 @@ + { + if (at + count > vtb->vtb_size) + count = vtb->vtb_size - at; +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, at), count); + else +@@ -258,7 +258,7 @@ + count = vtb->vtb_size - to; + if (count <= 0) + return; +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + bcopy_io(sc_vtb_pointer(vtb, from), + sc_vtb_pointer(vtb, to), count*sizeof(u_int16_t)); +@@ -277,7 +277,7 @@ + count = vtb->vtb_size - at; + len = vtb->vtb_size - at - count; + if (len > 0) { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + bcopy_io(sc_vtb_pointer(vtb, at + count), + sc_vtb_pointer(vtb, at), +@@ -288,7 +288,7 @@ + (void *)sc_vtb_pointer(vtb, at), + len*sizeof(u_int16_t)); + } +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, at + len), + vtb->vtb_size - at - len); +@@ -304,7 +304,7 @@ + if (at + count > vtb->vtb_size) + count = vtb->vtb_size - at; + else { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + bcopy_io(sc_vtb_pointer(vtb, at), + sc_vtb_pointer(vtb, at + count), +@@ -315,7 +315,7 @@ + (void *)sc_vtb_pointer(vtb, at + count), + (vtb->vtb_size - at - count)*sizeof(u_int16_t)); + } +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, at), count); + else +diff -ur sys.orig/dev/syscons/syscons.c sys/dev/syscons/syscons.c +--- sys.orig/dev/syscons/syscons.c 2006-03-04 00:41:28 +0000 ++++ sys/dev/syscons/syscons.c 2006-10-11 11:08:26 +0100 +@@ -58,7 +58,7 @@ + #include + + #include +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +@@ -491,7 +491,7 @@ + sc_softc_t *sc; + struct tty *tp; + scr_stat *scp; +-#ifndef __sparc64__ ++#ifndef __sparc__ + keyarg_t key; + #endif + int error; +@@ -508,7 +508,7 @@ + tp->t_termios = tp->t_init_in; + /* Use the current setting of the <-- key as default VERASE. */ + /* If the Delete key is preferable, an stty is necessary */ +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (sc->kbd != NULL) { + key.keynum = KEYCODE_BS; + kbd_ioctl(sc->kbd, GIO_KEYMAPENT, (caddr_t)&key); +@@ -564,7 +564,7 @@ + } + else { + sc_vtb_destroy(&scp->vtb); +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_destroy(&scp->scr); + #endif + sc_free_history_buffer(scp, scp->ysize); +@@ -2447,7 +2447,7 @@ + if (sc->old_scp->mode != scp->mode || ISUNKNOWNSC(sc->old_scp)) + #endif + set_mode(scp); +-#ifndef __sparc64__ ++#ifndef __sparc__ + else + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, scp->xsize, scp->ysize, + (void *)sc->adp->va_window, FALSE); +@@ -2724,7 +2724,7 @@ + } + sc->cur_scp = scp; + +-#ifndef __sparc64__ ++#ifndef __sparc__ + /* copy screen to temporary buffer */ + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, scp->xsize, scp->ysize, + (void *)scp->sc->adp->va_window, FALSE); +@@ -3010,7 +3010,7 @@ + } + } + sc_vtb_init(&scp->vtb, VTB_MEMORY, 0, 0, NULL, FALSE); +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, 0, 0, NULL, FALSE); + #endif + scp->xoff = scp->yoff = 0; +@@ -3455,7 +3455,7 @@ + /* setup video hardware for the given mode */ + (*vidsw[scp->sc->adapter]->set_mode)(scp->sc->adp, scp->mode); + scp->rndr->init(scp); +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, scp->xsize, scp->ysize, + (void *)scp->sc->adp->va_window, FALSE); + #endif +diff -ur sys.orig/dev/syscons/syscons.h sys/dev/syscons/syscons.h +--- sys.orig/dev/syscons/syscons.h 2005-10-05 22:48:02 +0100 ++++ sys/dev/syscons/syscons.h 2006-10-11 11:08:26 +0100 +@@ -92,11 +92,11 @@ + + #define DPRINTF(l, p) if (SC_DEBUG_LEVEL >= (l)) printf p + +-#ifndef __sparc64__ ++#ifndef __sparc__ + #define SC_DRIVER_NAME "sc" + #else + /* +- * Use a different driver name on sparc64 so it does not get confused ++ * Use a different driver name on sparc so it does not get confused + * with the system controller devices which are also termed 'sc' in OFW. + */ + #define SC_DRIVER_NAME "syscons" +@@ -269,7 +269,7 @@ + int index; /* index of this vty */ + struct sc_softc *sc; /* pointer to softc */ + struct sc_rndr_sw *rndr; /* renderer */ +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_t scr; + #endif + sc_vtb_t vtb; +diff -ur sys.orig/kern/kern_ktr.c sys/kern/kern_ktr.c +--- sys.orig/kern/kern_ktr.c 2005-06-11 00:21:29 +0100 ++++ sys/kern/kern_ktr.c 2006-10-11 11:08:26 +0100 +@@ -51,7 +51,7 @@ + #include + + #include +-#ifdef __sparc64__ ++#ifdef __sparc__ + #include + #endif + +diff -ur sys.orig/kern/subr_param.c sys/kern/subr_param.c +--- sys.orig/kern/subr_param.c 2005-10-17 01:16:54 +0100 ++++ sys/kern/subr_param.c 2006-10-11 11:08:26 +0100 +@@ -51,7 +51,7 @@ + */ + + #ifndef HZ +-# if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc64__) ++# if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc__) + # define HZ 1000 + # else + # define HZ 100 +diff -ur sys.orig/kern/subr_witness.c sys/kern/subr_witness.c +--- sys.orig/kern/subr_witness.c 2006-09-02 06:42:16 +0100 ++++ sys/kern/subr_witness.c 2006-10-11 11:08:26 +0100 +@@ -391,7 +391,7 @@ + #if defined(__i386__) || defined(__amd64__) + { "tlb", &lock_class_mtx_spin }, + #endif +-#ifdef __sparc64__ ++#ifdef __sparc__ + { "ipi", &lock_class_mtx_spin }, + { "rtc_mtx", &lock_class_mtx_spin }, + #endif +diff -ur sys.orig/kern/vfs_subr.c sys/kern/vfs_subr.c +--- sys.orig/kern/vfs_subr.c 2006-09-27 01:36:10 +0100 ++++ sys/kern/vfs_subr.c 2006-10-11 11:08:26 +0100 +@@ -110,7 +110,7 @@ + * build. Without mpsafevm the buffer cache can not run Giant free. + */ + #if defined(__alpha__) || defined(__amd64__) || defined(__i386__) || \ +- defined(__sparc64__) ++ defined(__sparc__) + int mpsafe_vfs = 1; + #else + int mpsafe_vfs; +diff -ur sys.orig/net/if_loop.c sys/net/if_loop.c +--- sys.orig/net/if_loop.c 2006-09-29 05:24:50 +0100 ++++ sys/net/if_loop.c 2006-10-11 11:08:26 +0100 +@@ -289,7 +289,7 @@ + /* Strip away media header */ + if (hlen > 0) { + m_adj(m, hlen); +-#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) ++#if defined(__alpha__) || defined(__ia64__) || defined(__sparc__) + /* The alpha doesn't like unaligned data. + * We move data down in the first mbuf */ + if (mtod(m, vm_offset_t) & 3) { +diff -ur sys.orig/pci/if_dc.c sys/pci/if_dc.c +--- sys.orig/pci/if_dc.c 2006-06-21 22:06:07 +0100 ++++ sys/pci/if_dc.c 2006-10-11 11:08:26 +0100 +@@ -134,7 +134,7 @@ + + #include + +-#ifdef __sparc64__ ++#ifdef __sparc__ + #include + #include + #endif +@@ -2027,7 +2027,7 @@ + break; + case DC_TYPE_DM9102: + dc_read_eeprom(sc, (caddr_t)&eaddr, DC_EE_NODEADDR, 3, 0); +-#ifdef __sparc64__ ++#ifdef __sparc__ + /* + * If this is an onboard dc(4) the station address read from + * the EEPROM is all zero and we have to get it from the fcode. +diff -ur sys.orig/sys/bus_dma.h sys/sys/bus_dma.h +--- sys.orig/sys/bus_dma.h 2005-03-15 14:57:29 +0000 ++++ sys/sys/bus_dma.h 2006-10-11 11:08:26 +0100 +@@ -216,7 +216,7 @@ + * for the sparc64 arch contains the equivalent + * declarations. + */ +-#if !defined(__sparc64__) ++#if !(defined(__sparc__) && defined(__arch64__)) + + /* + * Allocate a handle for mapping from kva/uva/physical +@@ -293,6 +293,6 @@ + _bus_dmamap_unload(dmat, dmamap); \ + } while (0) + +-#endif /* __sparc64__ */ ++#endif /* __sparc__ && __arch64__ */ + + #endif /* _BUS_DMA_H_ */ +diff -ur sys.orig/sys/linker.h sys/sys/linker.h +--- sys.orig/sys/linker.h 2005-12-30 22:13:58 +0000 ++++ sys/sys/linker.h 2006-10-11 11:08:26 +0100 +@@ -192,7 +192,7 @@ + #define MODINFOMD_ESYM 0x0004 /* end of symbols */ + #define MODINFOMD_DYNAMIC 0x0005 /* _DYNAMIC pointer */ + /* These values are MD on these two platforms */ +-#if !defined(__sparc64__) && !defined(__powerpc__) ++#if !defined(__sparc__) && !defined(__powerpc__) + #define MODINFOMD_ENVP 0x0006 /* envp[] */ + #define MODINFOMD_HOWTO 0x0007 /* boothowto */ + #define MODINFOMD_KERNEND 0x0008 /* kernend */ +diff -ur sys.orig/sys/param.h sys/sys/param.h +--- sys.orig/sys/param.h 2006-09-15 20:27:40 +0100 ++++ sys/sys/param.h 2006-10-11 11:08:26 +0100 +@@ -300,7 +300,7 @@ + * Constraints: PAGE_SIZE <= MAXALLOCSAVE <= 2 ** (MINBUCKET + 14), and + * MAXALLOCSIZE must be a power of two. + */ +-#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) ++#if defined(__alpha__) || defined(__ia64__) || defined(__sparc__) + #define MINBUCKET 5 /* 5 => min allocation of 32 bytes */ + #else + #define MINBUCKET 4 /* 4 => min allocation of 16 bytes */ +diff -ur sys.orig/sys/user.h sys/sys/user.h +--- sys.orig/sys/user.h 2006-06-24 00:41:05 +0100 ++++ sys/sys/user.h 2006-10-11 11:08:26 +0100 +@@ -100,7 +100,7 @@ + #ifdef __powerpc__ + #define KINFO_PROC_SIZE 768 + #endif +-#ifdef __sparc64__ ++#if defined __sparc__ && defined __arch64__ + #define KINFO_PROC_SIZE 1088 + #endif + #ifndef KINFO_PROC_SIZE diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-7.0_pre200704.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-7.0_pre200704.ebuild new file mode 100644 index 0000000..73568b9 --- /dev/null +++ b/sys-freebsd/freebsd-lib/freebsd-lib-7.0_pre200704.ebuild @@ -0,0 +1,268 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-6.2-r1.ebuild,v 1.1 2007/04/06 14:44:08 uberlord Exp $ + +inherit bsdmk freebsd flag-o-matic toolchain-funcs + +DESCRIPTION="FreeBSD's base system libraries" +SLOT="6.0" +KEYWORDS=" ~x86-fbsd" + +IUSE="atm bluetooth ssl ipv6 kerberos nis gpib build bootstrap" + +# Crypto is needed to have an internal OpenSSL header +# sys is needed for libalias, probably we can just extract that instead of +# extracting the whole tarball +SRC_URI="http://84.33.1.46/~drizzt/stages/${LIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${CONTRIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${CRYPTO}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIBEXEC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${ETC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${INCLUDE}.tar.bz2 + nis? ( http://84.33.1.46/~drizzt/stages/${USBIN}.tar.bz2 ) + build? ( + http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2 )" + +if [[ ${CATEGORY/cross-} == ${CATEGORY} ]]; then + RDEPEND="ssl? ( dev-libs/openssl ) + kerberos? ( virtual/krb5 ) + !sys-freebsd/freebsd-headers" + DEPEND="${RDEPEND} + >=sys-devel/flex-2.5.31-r2 + =sys-freebsd/freebsd-sources-${RV}* + !bootstrap? ( app-arch/bzip2 )" + + PROVIDE="virtual/libc + virtual/os-headers" + +else + SRC_URI="${SRC_URI} + http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2" +fi + +DEPEND="${DEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}*" + +S="${WORKDIR}/lib" + +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then + export CTARGET=${CATEGORY/cross-} +fi + +pkg_setup() { + [[ -c /dev/zero ]] || \ + die "You forgot to mount /dev; the compiled libc would break." + + if ! use ssl && use kerberos; then + eerror "If you want kerberos support you need to enable ssl support, too." + fi + + use atm || mymakeopts="${mymakeopts} NO_ATM= " + use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= " + use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= " + use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " + use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " + use gpib || mymakeopts="${mymakeopts} NO_GPIB= " + + mymakeopts="${mymakeopts} NO_OPENSSH= NO_BIND= NO_SENDMAIL= " + + replace-flags "-O?" -"O1" + + if [[ ${CTARGET} != ${CHOST} ]]; then + mymakeopts="${mymakeopts} MACHINE=$(tc-arch-kernel ${CTARGET})" + mymakeopts="${mymakeopts} MACHINE_ARCH=$(tc-arch-kernel ${CTARGET})" + fi +} + +PATCHES="${FILESDIR}/${PN}-bsdxml.patch + ${FILESDIR}/${PN}-6.0-pmc.patch + ${FILESDIR}/${PN}-6.0-gccfloat.patch + ${FILESDIR}/${PN}-6.0-flex-2.5.31.patch + ${FILESDIR}/${PN}-7.0-ssp.patch + ${FILESDIR}/${PN}-6.1-csu.patch" + +# Here we disable and remove source which we don't need or want +# In order: +# - ncurses stuff +# - archiving libraries (have their own ebuild) +# - sendmail libraries (they are installed by sendmail) +# - SNMP library and dependency (have their own ebuilds) +# +# The rest are libraries we already have somewhere else because +# they are contribution. +# Note: libtelnet is an internal lib used by telnet and telnetd programs +# as it's not used in freebsd-lib package itself, it's pointless building +# it here. +REMOVE_SUBDIRS="ncurses libform libmenu libpanel libedit \ + libz libbz2 libarchive \ + libsm libsmdb libsmutil \ + libbegemot libbsnmp \ + libpam libpcap bind libwrap libmagic \ + libcom_err libtelnet" + +src_unpack() { + freebsd_src_unpack + + sed -i -e 's:-o/dev/stdout:-t:' "${S}/libc/net/Makefile.inc" + sed -i -e 's:histedit.h::' "${WORKDIR}/include/Makefile" + + # Apply this patch for Gentoo/FreeBSD/SPARC64 to build correctly + # from catalyst, then don't do anything else + if use build; then + cd "${WORKDIR}" + epatch "${FILESDIR}/freebsd-sources-6.2-sparc64.patch" + return 0 + fi + + if [[ ${CTARGET} == ${CHOST} ]]; then + ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" + else + sed -i -e "s:/usr/include:/usr/${CTARGET}/usr/include:g" \ + "${S}/libc/"{yp,rpc}"/Makefile.inc" + fi + + [[ -n $(install --version 2> /dev/null | grep GNU) ]] && \ + sed -i -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile" + + # Let arch-specific includes to be found + local machine + machine=$(tc-arch-kernel ${CTARGET}) + ln -s "${WORKDIR}/sys/${machine}/include" "${WORKDIR}/include/machine" + + use bootstrap && dummy_mk libstand +} + +src_compile() { + cd "${WORKDIR}/include" + $(freebsd_get_bmake) CC=$(tc-getCC) || die "make include failed" + + use crosscompile_opts_headers-only && return 0 + + # Don't use ssp until properly fixed + append-flags $(test-flags -fno-stack-protector -fno-stack-protector-all) + + strip-flags + if [[ ${CTARGET} != ${CHOST} ]]; then + export YACC='yacc -by' + CHOST=${CTARGET} tc-export CC LD CXX + + local machine + machine=$(tc-arch-kernel ${CTARGET}) + + local csudir + if [[ -d "${S}/csu/${machine}-elf" ]]; then + csudir="${S}/csu/${machine}-elf" + else + csudir="${S}/csu/${machine}" + fi + cd "${csudir}" + $(freebsd_get_bmake) ${mymakeopts} || die "make csu failed" + + append-flags "-isystem /usr/${CTARGET}/usr/include" + append-flags "-B ${csudir}" + append-ldflags "-B ${csudir}" + cd "${S}/libc" + $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed" + + append-flags "-isystem ${WORKDIR}/lib/msun/${machine/i386/i387}" + cd "${S}/msun" + $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed" + else + # Forces to use the local copy of headers as they might be outdated in + # the system + append-flags "-isystem '${WORKDIR}/sys' -isystem '${WORKDIR}/include'" + + cd "${S}" + NOFLAGSTRIP=yes freebsd_src_compile + fi +} + +src_install() { + cd "${WORKDIR}/include" + + [[ ${CTARGET} == ${CHOST} ]] \ + && INCLUDEDIR="/usr/include" \ + || INCLUDEDIR="/usr/${CTARGET}/usr/include" + + einfo "Installing for ${CTARGET} in ${CHOST}.." + + dodir "${INCLUDEDIR}" + $(freebsd_get_bmake) installincludes \ + MACHINE=$(tc-arch-kernel) \ + DESTDIR="${D}" INCLUDEDIR="${INCLUDEDIR}" || die "Install failed" + + # Install math.h when crosscompiling, at this point + if [[ ${CHOST} != ${CTARGET} ]]; then + insinto "/usr/${CTARGET}/usr/include" + doins "${S}/msun/src/math.h" + fi + + use crosscompile_opts_headers-only && return 0 + + if [[ ${CTARGET} != ${CHOST} ]]; then + local csudir + if [[ -d "${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" ]]; then + csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" + else + csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})" + fi + cd "${csudir}" + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install \ + FILESDIR="/usr/${CTARGET}/usr/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install csu failed" + + cd "${S}/libc" + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ + SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install failed" + + cd "${S}/msun" + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ + INCLUDEDIR="/usr/${CTARGET}/usr/include" \ + SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install failed" + + dosym "usr/include" "/usr/${CTARGET}/sys-include" + else + cd "${S}" + mkinstall || die "Install failed" + fi + + # Don't install the rest of the configuration files if crosscompiling + [[ ${CTARGET} != ${CHOST} ]] && return 0 + + # Compatibility symlinks to run FreeBSD 5.x binaries (ABI is mostly + # identical, remove when problems will actually happen) + dosym /lib/libc.so.6 /usr/lib/libc.so.5 + dosym /lib/libm.so.4 /usr/lib/libm.so.3 + + # install libstand files + dodir /usr/include/libstand + insinto /usr/include/libstand + doins "${S}"/libstand/*.h + + cd "${WORKDIR}/etc/" + insinto /etc + doins auth.conf nls.alias mac.conf netconfig + + # Install ttys file + doins "etc.$(tc-arch-kernel)"/* + + dodir /etc/sandbox.d + cat - > "${D}"/etc/sandbox.d/00freebsd < + + +bsd + diff --git a/sys-freebsd/freebsd-libexec/ChangeLog b/sys-freebsd/freebsd-libexec/ChangeLog new file mode 100644 index 0000000..0f79bab --- /dev/null +++ b/sys-freebsd/freebsd-libexec/ChangeLog @@ -0,0 +1,187 @@ +# ChangeLog for sys-freebsd/freebsd-libexec +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/ChangeLog,v 1.25 2007/04/06 14:59:47 uberlord Exp $ + +*freebsd-libexec-6.2-r1 (06 Apr 2007) + + 06 Apr 2007; Roy Marples files/bootpd.initd, + +freebsd-libexec-6.2-r1.ebuild: + Bump for non bash init script. + +*freebsd-libexec-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + files/freebsd-libexec-6.1-libfallback.patch, + -freebsd-libexec-6.2_rc2.ebuild, +freebsd-libexec-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-libexec-6.1.ebuild: + Remove 6.1 ebuild. + +*freebsd-libexec-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -files/freebsd-libexec-5.3_rc1-ypxfr-makefile.patch, + -freebsd-libexec-6.2_rc1.ebuild, +freebsd-libexec-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 22 Nov 2006; Diego Pettenò + -freebsd-libexec-6.2_beta3.ebuild, freebsd-libexec-6.2_rc1.ebuild: + Remove the old ypxfr patch, symlink /usr/include and be done with it. + + 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) + + 19 Nov 2006; Diego Pettenò + +freebsd-libexec-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-libexec-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-libexec-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-libexec-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-libexec-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + +files/freebsd-libexec-6.2-sparc64.patch, + freebsd-libexec-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*freebsd-libexec-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-libexec-6.2_beta2.ebuild: + Version 6.2_beta2. + + 22 Sep 2006; Diego Pettenò + freebsd-libexec-6.2_beta1.ebuild: + Fix naming of libfallback patch. + +*freebsd-libexec-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-libexec-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-libexec-6.0.ebuild: + Remove 6.0 version. + + 18 Jul 2006; Javier Villavicencio + files/freebsd-libexec-nossp.patch, freebsd-libexec-6.1.ebuild: + Fixes compilation with gcc-4.1.1. + +*freebsd-libexec-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + +files/freebsd-libexec-6.1-libfallback.patch, + -freebsd-libexec-6.1_rc2.ebuild, +freebsd-libexec-6.1.ebuild: + Update to 6.1-RELEASE and patch to skip unloadable libraries. + +*freebsd-libexec-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-libexec-6.1_rc1.ebuild, -freebsd-libexec-6.1_rc1-r1.ebuild, + +freebsd-libexec-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-libexec-6.1_rc1-r1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-libexec-6.1_rc1-r1.ebuild: + Drop ftpd and lukemftpd, there are other daemons available. If someone + really needed lukeftpd-like server, tnftpd can be added to portage. + +*freebsd-libexec-6.1_rc1 (30 Apr 2006) + + 30 Apr 2006; Diego Pettenò + +files/freebsd-libexec-nossp.patch, freebsd-libexec-6.0.ebuild, + +freebsd-libexec-6.1_rc1.ebuild: + Update to 6.1_rc1 and disable ssp on the ld-elf.so loader to avoid breaking it. + + 20 Apr 2006; Diego Pettenò + freebsd-libexec-6.0.ebuild: + Drop dependency on freebsd-headers. + + 09 Apr 2006; Diego Pettenò + freebsd-libexec-6.0.ebuild: + Drop lukemftpd flag as 6.0 builds it by default. + +*freebsd-libexec-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-libexec-5.3_rc1-ypxfr-makefile.patch, + +files/freebsd-libexec-setXid.patch, +files/ftpd.pamd, +metadata.xml, + +freebsd-libexec-6.0.ebuild: + Import into portage. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add gettytab file here instead than in baselayout. + + 01 Nov 2005; Diego Pettenò ChangeLog: + Remove pf support, as freebsd-pf will provide it. + + 27 Aug 2005; Diego Pettenò + freebsd-libexec-5.4-r1.ebuild: + Fixed missing sys-freebsd change. + + 25 Aug 2005; Diego Pettenò + +files/freebsd-libexec-5.3_rc1-ypxfr-makefile.patch, + +files/freebsd-libexec-setXid.patch, +files/ftpd.pamd, + +freebsd-libexec-5.4-r1.ebuild: + Moved to sys-freebsd. + + 18 Aug 2005; Diego Pettenò + freebsd-libexec-5.4-r1.ebuild: + Updated to reflect bsdmk/freebsd eclasses changes. + + 29 Jul 2005; Diego Pettenò + freebsd-libexec-5.4-r1.ebuild: + Adapt to recent bsdmk changes. + + 20 Jun 2005; Diego Pettenò -files/rexecd.pamd, + -files/rsh.pamd, -files/telnetd.pamd, freebsd-libexec-5.3.ebuild, + freebsd-libexec-5.3.20050301.ebuild, freebsd-libexec-5.4-r1.ebuild: + Use new bsdmk eclass, removed rshd rexecd rlogind and related pamd files. + + 16 Jun 2005; Diego Pettenò + freebsd-libexec-5.4-r1.ebuild: + Remove building of sendmail and tcp-wrapper stuff. + +*freebsd-libexec-5.4-r1 (23 May 2005) + + 23 May 2005; Diego Pettenò +files/ftpd.pamd, + +files/rexecd.pamd, +files/telnetd.pamd, -freebsd-libexec-5.4.ebuild, + +freebsd-libexec-5.4-r1.ebuild: + Moved here pamd files. Added dependency over virtual/pam. Using + http://84.33.1.46/~drizzt/stages/. + +*freebsd-libexec-5.3.20050301 (06 Apr 2005) + + 06 Apr 2005; Otavio R. Piske + freebsd-libexec-5.3.20050301.ebuild: + New ebuild for updated sources and support for new use flags (patch provided + by Diego Petteno). + + 14 Oct 2004; Otavio R. Piske + freebsd-libexec-5.2.1.ebuild: + Corrected SRC_URI pointing to a wrong site + diff --git a/sys-freebsd/freebsd-libexec/Manifest b/sys-freebsd/freebsd-libexec/Manifest new file mode 100644 index 0000000..66491e2 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/Manifest @@ -0,0 +1,19 @@ +AUX bootpd.confd 308 RMD160 7dff83be49f40dbf2a429bfeebe0dc87818851e0 SHA1 243b929b6d30e24eb6b23378f0082c47a46704dd SHA256 469ab9c83c4ca6f13efd175b0a04acc61e2da8d9852d6b4444750026bfaa4391 +AUX bootpd.initd 676 RMD160 4a73392c1092238c91862cff0318b2410ac1fe17 SHA1 a77e52a782530eb908b67d63ee1213ee295978af SHA256 eebe22f4e1c1d1e5d30ef1bc8b11ae3919bd514b83b62812b7f46ec3b18f9c75 +AUX freebsd-libexec-6.1-libfallback.patch 4230 RMD160 ec9a2d6b85945932f3d2c463c55730663961e9e5 SHA1 f67aab56a84a14c38aab467572d68d3be622cdc9 SHA256 a9db8a93a973be10c9c9f7044f9d40ed4a58a16906b3da089db9873aa7597380 +AUX freebsd-libexec-6.2-sparc64.patch 1288 RMD160 d13df233cc0eb2df597e48f4096c5e718239471c SHA1 5784cb93076e6f45578008b781bbead6ca32241a SHA256 b5a8c95d81d6204777ac53e6a560fa43b48c120500e0377c08000704c2ba1df7 +AUX freebsd-libexec-7.0-libfallback.patch.old 3955 RMD160 1ba757f14a96b70f8864880d3da7aceeb923226a SHA1 b2f120ed69c45b494f3a2bab80465e38de24018e SHA256 5850a3b9bc5c25fca8c70547926423b44a9123878d37e40a0fc6323ebc8a843c +AUX freebsd-libexec-nossp.patch 434 RMD160 7b63e750f7d1364b1a4cc8af139788d163899563 SHA1 93bc3197fa5dd5d857ec295ebc3c0ca2574c93e3 SHA256 8ee38006be649adf95dc9742a9356e337e769c11c48206566023d9c8e85c3364 +AUX freebsd-libexec-setXid.patch 270 RMD160 70cb184d02b3a3102eeb6332226db42b2abf04f5 SHA1 0e9332ab2a6951abfdfd58bd134368e7e437fa28 SHA256 b96e8adef3276e5bd2b2518641b9d971202476803b82bdea7077603510116b8e +AUX ftpd.pamd 597 RMD160 acb189e5e3166d21a5c3ad8e71d652386853f882 SHA1 34deacd2210c5ad623d08a1cc5b969dfcd36236b SHA256 dc779a1c0b0ad94660584e902d505ad0197b52a3944bc13666815d653790e090 +DIST freebsd-bin-7.0_pre200704.tar.bz2 407110 RMD160 7be1020156ef0e50ef72171b0ff1c2ae8a62cadf SHA1 4be9fb5d24368d09f64c01e0cec782046582a09b SHA256 f02e5a35a0ab24213e215c5ba016fe66c2c1bf003ba356a66d65e15caee936dd +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-rtld-elf-6.2.tar.bz2 61087 RMD160 165148fc74b7e245a96473be7e4b72eba1676161 SHA1 061850a6ae0b3d3e5575c440b569c1b11bf4025a SHA256 1991f083c47bdb93ef9426c1ea3b478151f32fda59e72d179cfdf81e68f6c286 +DIST freebsd-ubin-7.0_pre200704.tar.bz2 1822151 RMD160 b47eac7cc9871ff927a5307e4ed95627f208b73b SHA1 9ea9fe9360821621288a6447890300b07af034ef SHA256 caef71398ce6d0f9d36fdbf88639692e921c76fb8c0581bb66452598a7912e10 +DIST freebsd-usbin-7.0_pre200704.tar.bz2 2622893 RMD160 66de2753ab0d1044b6c123fec26103560f5eabe2 SHA1 df76dd7604328da83b8b6e1a38b3ef58a3818af8 SHA256 1188d92fc11809efba8384f0ee96dd09efcee7dc968df7a1782b5a586fcc5bc8 +EBUILD freebsd-libexec-7.0_pre200704.ebuild 2043 RMD160 a98180c69c930e1f3d52f68afe6464a72137d40a SHA1 08f9d060ab7e1185f9bd9fa91cf52644cf93c534 SHA256 6a2f2eae73dc04130fd8fe17b99446f4df0d5a8a723c7e6542b2f842f3f593ea +MISC ChangeLog 6497 RMD160 b4aa838129464f5ceb203f68e0419c91918e1ba0 SHA1 f01e30525f3c75024a5cf40a70d5fda21a583d3e SHA256 75e6c04ddbd55cb3a9b6903bc5042d299143b37c2735b250b63d6294b2007a75 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-libexec/files/bootpd.confd b/sys-freebsd/freebsd-libexec/files/bootpd.confd new file mode 100644 index 0000000..1dcd1e1 --- /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 0000000..dc35923 --- /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.2 2007/04/06 14:59:47 uberlord 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/files/freebsd-libexec-6.1-libfallback.patch b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.1-libfallback.patch new file mode 100644 index 0000000..6004193 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.1-libfallback.patch @@ -0,0 +1,149 @@ +diff -Nur libexec.old/rtld-elf/rtld.c libexec/rtld-elf/rtld.c +--- libexec.old/rtld-elf/rtld.c 2007-01-15 21:30:30.000000000 +0100 ++++ libexec/rtld-elf/rtld.c 2007-01-15 21:32:39.000000000 +0100 +@@ -894,6 +894,103 @@ + return NULL; + } + ++#define MAX_LIBRARIES_HITS 255 ++ ++struct fill_library_paths_args { ++ const char *name; ++ size_t namelen; ++ char **libraries; ++ size_t *count; ++}; ++ ++static void * ++fill_library_paths(const char *dir, size_t dirlen, void *param) ++{ ++ struct fill_library_paths_args *arg; ++ ++ arg = param; ++ if (*(arg->count) > MAX_LIBRARIES_HITS) ++ return (NULL); ++ ++ if (*dir == '/' || trust) { ++ arg->libraries[*(arg->count)] = malloc(sizeof(char)*(dirlen + 1 + arg->namelen + 1)); ++ strncpy(arg->libraries[*(arg->count)], dir, dirlen); ++ arg->libraries[*(arg->count)][dirlen] = '/'; ++ strncpy(arg->libraries[*(arg->count)] + dirlen + 1, arg->name, arg->namelen+1); ++ ++ dbg(" Trying \"%s\"\n", arg->libraries[*(arg->count)]); ++ if (access(arg->libraries[*(arg->count)], F_OK) == 0) { ++ *(arg->count) += 1; ++ } ++ } ++ return (NULL); ++} ++ ++/** ++ * Find all libraries matching xname for the object refobj (if not null), like ++ * find_library but find all the matching libraries in the paths. ++ * ++ * The returned pointer has to be free()'d (as well as the contained strings) ++ * if it's non-NULL. ++ * The end of the array is found when the pointer gets NULL. ++ */ ++static char **find_libraries(const char *xname, const Obj_Entry *refobj) ++{ ++ char **libraries; ++ size_t libraries_count; ++ struct fill_library_paths_args arg; ++ char *name; ++ ++ if (strchr(xname, '/') != NULL) { /* Hard coded pathname */ ++ if (xname[0] != '/' && !trust) { ++ _rtld_error("Absolute pathname required for shared object \"%s\"", ++ xname); ++ return NULL; ++ } ++ libraries = malloc(sizeof(char*)*2); ++ libraries[0] = xstrdup(xname); ++ libraries[1] = NULL; ++ return libraries; ++ } ++ ++ if (libmap_disable || (refobj == NULL) || ++ (name = lm_find(refobj->path, xname)) == NULL) ++ name = (char *)xname; ++ ++ dbg(" Searching for \"%s\"", name); ++ ++ /* look up at maximum 255 libraries, would be crazy going over that */ ++ libraries = malloc(sizeof(char*)*(MAX_LIBRARIES_HITS+1)); ++ libraries_count = 0; ++ ++ arg.name = name; ++ arg.namelen = strlen(name); ++ arg.libraries = libraries; ++ arg.count = &libraries_count; ++ ++ path_enumerate(ld_library_path, fill_library_paths, &arg); ++ if(refobj != NULL) ++ path_enumerate(refobj->rpath, fill_library_paths, &arg); ++ path_enumerate(gethints(), fill_library_paths, &arg); ++ path_enumerate(STANDARD_LIBRARY_PATH, fill_library_paths, &arg); ++ ++ libraries[libraries_count] = NULL; ++ ++ if(libraries_count == 0) { ++ if(refobj != NULL && refobj->path != NULL) { ++ _rtld_error("Shared object \"%s\" not found, required by \"%s\"", ++ name, basename(refobj->path)); ++ } else { ++ _rtld_error("Shared object \"%s\" not found", name); ++ } ++ ++ free(libraries); ++ return NULL; ++ } ++ ++ return libraries; ++} ++ + /* + * Given a symbol number in a referencing object, find the corresponding + * definition of the symbol. Returns a pointer to the symbol, or NULL if +@@ -1165,17 +1262,33 @@ + + for (needed = obj->needed; needed != NULL; needed = needed->next) { + const char *name = obj->strtab + needed->name; +- char *path = find_library(name, obj); ++ char **paths = find_libraries(name, obj); ++ char **curpath = paths; + + needed->obj = NULL; +- if (path == NULL && !ld_tracing) +- return -1; +- +- if (path) { +- needed->obj = load_object(path); +- if (needed->obj == NULL && !ld_tracing) +- return -1; /* XXX - cleanup */ ++ if (paths == NULL) { ++ if (ld_tracing) ++ continue; ++ else ++ return -1; ++ } ++ ++ while(*curpath) { ++ if (needed->obj == NULL) { ++ needed->obj = load_object(*curpath); ++ curpath++; ++ continue; ++ } ++ ++ /* Continue, so that we can free the whole lot */ ++ free(*curpath); ++ curpath++; + } ++ ++ free(paths); ++ ++ if (needed->obj == NULL && !ld_tracing) ++ return -1; /* XXX - cleanup */ + } + } + diff --git a/sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.2-sparc64.patch b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.2-sparc64.patch new file mode 100644 index 0000000..3ed300a --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-6.2-sparc64.patch @@ -0,0 +1,34 @@ +FreeBSD only works on Sparc64 and freeBSD code relies on the __sparc64__ define. +gcc only defines __sparc64__ if -mcpu is not used. +gcc-4 defaults to using -mcpu=ultrasparc on FreeBSD. + +This causes us a problem. Infact, FreeBSD developers sent gcc a patch to always +define __sparc64__ when using -mcpu=ultrasparc, but this was rejected by most +people including NetBSD developers. + +The correct solution is to use __sparc__. +If platform detection is required, or the code is obviously 64 bit then we can +use the __arch64__ define as well. +This combination should be supported by all gcc versions:) + +diff -ur libexec.orig/rtld-elf/rtld.c libexec/rtld-elf/rtld.c +--- libexec.orig/rtld-elf/rtld.c 2006-10-10 08:16:56 +0100 ++++ libexec/rtld-elf/rtld.c 2006-10-10 08:19:08 +0100 +@@ -2732,7 +2732,7 @@ + + #endif + +-#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__) || \ ++#if defined(__i386__) || defined(__amd64__) || defined(__sparc__) || \ + defined(__arm__) + + /* +@@ -2897,7 +2897,7 @@ + void + free_tls_offset(Obj_Entry *obj) + { +-#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__) || \ ++#if defined(__i386__) || defined(__amd64__) || defined(__sparc__) || \ + defined(__arm__) + /* + * If we were the last thing to allocate out of the static TLS diff --git a/sys-freebsd/freebsd-libexec/files/freebsd-libexec-7.0-libfallback.patch.old b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-7.0-libfallback.patch.old new file mode 100644 index 0000000..6269ac4 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-7.0-libfallback.patch.old @@ -0,0 +1,137 @@ +--- rtld-elf/rtld.c.orig 2007-04-07 23:17:00 +0000 ++++ rtld-elf/rtld.c 2007-04-23 09:42:32 +0000 +@@ -988,6 +988,103 @@ + return NULL; + } + ++#define MAX_LIBRARIES_HITS 255 ++ ++struct fill_library_paths_args { ++ const char *name; ++ size_t namelen; ++ char **libraries; ++ size_t *count; ++}; ++ ++static void * ++fill_library_paths(const char *dir, size_t dirlen, void *param) ++{ ++ struct fill_library_paths_args *arg; ++ ++ arg = param; ++ if (*(arg->count) > MAX_LIBRARIES_HITS) ++ return (NULL); ++ ++ if (*dir == '/' || trust) { ++ arg->libraries[*(arg->count)] = malloc(sizeof(char)*(dirlen + 1 + arg->namelen + 1)); ++ strncpy(arg->libraries[*(arg->count)], dir, dirlen); ++ arg->libraries[*(arg->count)][dirlen] = '/'; ++ strncpy(arg->libraries[*(arg->count)] + dirlen + 1, arg->name, arg->namelen+1); ++ ++ dbg(" Trying \"%s\"\n", arg->libraries[*(arg->count)]); ++ if (access(arg->libraries[*(arg->count)], F_OK) == 0) { ++ *(arg->count) += 1; ++ } ++ } ++ return (NULL); ++} ++ ++/** ++ * Find all libraries matching xname for the object refobj (if not null), like ++ * find_library but find all the matching libraries in the paths. ++ * ++ * The returned pointer has to be free()'d (as well as the contained strings) ++ * if it's non-NULL. ++ * The end of the array is found when the pointer gets NULL. ++ */ ++static char **find_libraries(const char *xname, const Obj_Entry *refobj) ++{ ++ char **libraries; ++ size_t libraries_count; ++ struct fill_library_paths_args arg; ++ char *name; ++ ++ if (strchr(xname, '/') != NULL) { /* Hard coded pathname */ ++ if (xname[0] != '/' && !trust) { ++ _rtld_error("Absolute pathname required for shared object \"%s\"", ++ xname); ++ return NULL; ++ } ++ libraries = malloc(sizeof(char*)*2); ++ libraries[0] = xstrdup(xname); ++ libraries[1] = NULL; ++ return libraries; ++ } ++ ++ if (libmap_disable || (refobj == NULL) || ++ (name = lm_find(refobj->path, xname)) == NULL) ++ name = (char *)xname; ++ ++ dbg(" Searching for \"%s\"", name); ++ ++ /* look up at maximum 255 libraries, would be crazy going over that */ ++ libraries = malloc(sizeof(char*)*(MAX_LIBRARIES_HITS+1)); ++ libraries_count = 0; ++ ++ arg.name = name; ++ arg.namelen = strlen(name); ++ arg.libraries = libraries; ++ arg.count = &libraries_count; ++ ++ path_enumerate(ld_library_path, fill_library_paths, &arg); ++ if(refobj != NULL) ++ path_enumerate(refobj->rpath, fill_library_paths, &arg); ++ path_enumerate(gethints(), fill_library_paths, &arg); ++ path_enumerate(STANDARD_LIBRARY_PATH, fill_library_paths, &arg); ++ ++ libraries[libraries_count] = NULL; ++ ++ if(libraries_count == 0) { ++ if(refobj != NULL && refobj->path != NULL) { ++ _rtld_error("Shared object \"%s\" not found, required by \"%s\"", ++ name, basename(refobj->path)); ++ } else { ++ _rtld_error("Shared object \"%s\" not found", name); ++ } ++ ++ free(libraries); ++ return NULL; ++ } ++ ++ return libraries; ++} ++ + /* + * Given a symbol number in a referencing object, find the corresponding + * definition of the symbol. Returns a pointer to the symbol, or NULL if +@@ -1260,7 +1357,29 @@ + Needed_Entry *needed; + + for (needed = obj->needed; needed != NULL; needed = needed->next) { +- needed->obj = load_object(obj->strtab + needed->name, obj); ++ const char *name = obj->strtab + needed->name; ++ char **paths = find_libraries(name, obj); ++ char **curpath = paths; ++ ++ needed->obj = NULL; ++ if (paths == NULL) { ++ if (ld_tracing) ++ continue; ++ else ++ return -1; ++ } ++ ++ while(*curpath) { ++ if (needed->obj == NULL) { ++ needed->obj = load_object(*curpath, NULL); ++ curpath++; ++ continue; ++ } ++ /* Continue, so that we can free the whole lot */ ++ free(*curpath); ++ curpath++; ++ } ++ free(paths); + if (needed->obj == NULL && !ld_tracing) + return -1; + } diff --git a/sys-freebsd/freebsd-libexec/files/freebsd-libexec-nossp.patch b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-nossp.patch new file mode 100644 index 0000000..5412546 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-nossp.patch @@ -0,0 +1,12 @@ +Index: fbsd-6.1/libexec/rtld-elf/Makefile +=================================================================== +--- fbsd-6.1.orig/libexec/rtld-elf/Makefile ++++ fbsd-6.1/libexec/rtld-elf/Makefile +@@ -7,6 +7,7 @@ SRCS= rtld_start.S \ + MAN= rtld.1 + CSTD?= gnu99 + CFLAGS+= -Wall -DFREEBSD_ELF -DIN_RTLD ++CFLAGS+= ${NOSSP_FLAGS} + CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR} + LDFLAGS+= -nostdlib -e .rtld_start + INSTALLFLAGS= -C -b diff --git a/sys-freebsd/freebsd-libexec/files/freebsd-libexec-setXid.patch b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-setXid.patch new file mode 100644 index 0000000..4a53dd1 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/freebsd-libexec-setXid.patch @@ -0,0 +1,10 @@ +diff -ur libexec.orig/pt_chown/Makefile libexec/pt_chown/Makefile +--- libexec.orig/pt_chown/Makefile Thu Apr 7 20:09:33 2005 ++++ libexec/pt_chown/Makefile Thu Apr 7 20:16:36 2005 +@@ -6,4 +6,6 @@ + BINMODE=4555 + NOMAN= + ++LDFLAGS += -Wl,-z,now ++ + .include diff --git a/sys-freebsd/freebsd-libexec/files/ftpd.pamd b/sys-freebsd/freebsd-libexec/files/ftpd.pamd new file mode 100644 index 0000000..d9feb82 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/files/ftpd.pamd @@ -0,0 +1,20 @@ +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-libexec/files/ftpd.pamd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# +# PAM configuration for the "ftpd" service +# + +# auth +auth required pam_nologin.so no_warn +auth sufficient pam_opie.so no_warn no_fake_prompts +auth requisite pam_opieaccess.so no_warn allow_local +#auth sufficient pam_krb5.so no_warn +#auth sufficient pam_ssh.so no_warn try_first_pass +auth required pam_unix.so no_warn try_first_pass + +# account +#account required pam_krb5.so +account required pam_unix.so + +# session +session required pam_permit.so diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-7.0_pre200704.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-7.0_pre200704.ebuild new file mode 100644 index 0000000..3abee05 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/freebsd-libexec-7.0_pre200704.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2007 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-r1.ebuild,v 1.1 2007/04/06 14:59:47 uberlord Exp $ + +inherit bsdmk freebsd pam + +DESCRIPTION="FreeBSD libexec things" +SLOT="0" +KEYWORDS=" ~x86-fbsd" + +IUSE="pam ssl kerberos ipv6 nis" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${LIBEXEC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${UBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${BIN}.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/${ETC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${USBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/freebsd-rtld-elf-6.2.tar.bz2" + +RDEPEND="=sys-freebsd/freebsd-lib-${RV}* + pam? ( virtual/pam )" +DEPEND="${RDEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}* + =sys-freebsd/freebsd-sources-${RV}*" + +S="${WORKDIR}/libexec" + +PATCHES="${FILESDIR}/${PN}-setXid.patch + ${FILESDIR}/${PN}-nossp.patch + ${FILESDIR}/${PN}-6.1-libfallback.patch" +# ${FILESDIR}/${PN}-6.2-sparc64.patch" + +# Remove sendmail, tcp_wrapper and other useless stuff +REMOVE_SUBDIRS="smrsh mail.local tcpd telnetd rshd rlogind lukemftpd ftpd" + +pkg_setup() { + use pam || mymakeopts="${mymakeopts} NO_PAM= " + use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= " + use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " + use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " + + mymakeopts="${mymakeopts} NO_SENDMAIL= NO_PF= " +} + +src_unpack() { + freebsd_src_unpack + + ln -s /usr/include "${WORKDIR}/include" + + sed -i -e 's/malloc.c//' "${S}"/rtld-elf/Makefile +} + +src_compile() { + NOSSP_FLAGS="$(test-flags -fno-stack-protector -fno-stack-protector-all)" + export NOSSP_FLAGS + freebsd_src_compile +} + +src_install() { + freebsd_src_install + + newinitd "${FILESDIR}/bootpd.initd" bootpd + newconfd "${FILESDIR}/bootpd.confd" bootpd + + insinto /etc + doins "${WORKDIR}/etc/gettytab" +} diff --git a/sys-freebsd/freebsd-libexec/metadata.xml b/sys-freebsd/freebsd-libexec/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-libexec/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-mk-defs/ChangeLog b/sys-freebsd/freebsd-mk-defs/ChangeLog new file mode 100644 index 0000000..f402e6b --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/ChangeLog @@ -0,0 +1,217 @@ +# ChangeLog for sys-freebsd/freebsd-mk-defs +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/ChangeLog,v 1.30 2007/01/15 21:36:42 drizzt Exp $ + +*freebsd-mk-defs-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-mk-defs-6.2_rc2.ebuild, +freebsd-mk-defs-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -files/freebsd-mk-defs-6.0-gentoo.patch, + -files/freebsd-mk-defs-6.0-nowerror.patch, + -files/freebsd-mk-defs-6.0-strip.patch, + -files/freebsd-mk-defs-6.1-gentoo.patch, + -files/freebsd-mk-defs-6.2-gentoo.patch, + -files/freebsd-mk-defs-flex.patch, -freebsd-mk-defs-6.1-r1.ebuild: + Remove 6.1 ebuild. + + 05 Jan 2007; Diego Pettenò + freebsd-mk-defs-6.2_rc2.ebuild: + Dummify src_compile. + +*freebsd-mk-defs-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-mk-defs-6.2_beta3.ebuild, -freebsd-mk-defs-6.2_rc1.ebuild, + +freebsd-mk-defs-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 24 Nov 2006; Diego Pettenò + files/freebsd-mk-defs-6.2-2-gentoo.patch: + Restore -Werror mangling, or the kernel will fail to build. + + 21 Nov 2006; Diego Pettenò + files/freebsd-mk-defs-6.2-2-gentoo.patch: + Don't change the mk definitions files to avoid -Werror and stripping during + install, handle that in bsdmk.eclass. + +*freebsd-mk-defs-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +files/freebsd-mk-defs-6.2-2-gentoo.patch, + +freebsd-mk-defs-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-mk-defs-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-mk-defs-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +files/freebsd-mk-defs-6.2-gentoo.patch, + +freebsd-mk-defs-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 22 Oct 2006; Timothy Redaelli + freebsd-mk-defs-6.2_beta2.ebuild: + Added ~x86 keyword. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-mk-defs-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + freebsd-mk-defs-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*freebsd-mk-defs-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-mk-defs-6.2_beta2.ebuild: + Version 6.2_beta2. + +*freebsd-mk-defs-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-mk-defs-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-mk-defs-6.0-r2.ebuild: + Remove 6.0 version. + + 09 Jul 2006; Diego Pettenò + files/freebsd-mk-defs-6.0-gnu.patch: + Fix building of shared libc.so on Linux. + +*freebsd-mk-defs-6.1-r1 (09 May 2006) +*freebsd-mk-defs-6.0-r2 (09 May 2006) + + 09 May 2006; Diego Pettenò + files/freebsd-mk-defs-6.0-gentoo.patch, + files/freebsd-mk-defs-6.1-gentoo.patch, -freebsd-mk-defs-6.0-r1.ebuild, + +freebsd-mk-defs-6.0-r2.ebuild, -freebsd-mk-defs-6.1.ebuild, + +freebsd-mk-defs-6.1-r1.ebuild: + Add patch to correctly create directories for man pages when not compressing + them. + +*freebsd-mk-defs-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-mk-defs-6.1_rc2.ebuild, +freebsd-mk-defs-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-mk-defs-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-mk-defs-6.1_rc1.ebuild, +freebsd-mk-defs-6.1_rc2.ebuild: + Update to 6.1_rc2. + + 02 May 2006; Diego Pettenò + freebsd-mk-defs-6.0-r1.ebuild, freebsd-mk-defs-6.1_rc1.ebuild: + Add ~amd64 keyword for crosscompile environment. + +*freebsd-mk-defs-6.1_rc1 (30 Apr 2006) + + 30 Apr 2006; Diego Pettenò + +files/freebsd-mk-defs-6.1-gentoo.patch, +freebsd-mk-defs-6.1_rc1.ebuild: + Update to 6.1_rc1, thanks to Robert Sebastian Gerus for the updated patch. + + 30 Apr 2006; Diego Pettenò + files/freebsd-mk-defs-6.0-gnu.patch: + Finally fix the crosscompile. + + 25 Apr 2006; Diego Pettenò + +files/freebsd-mk-defs-6.0-gnu.patch, freebsd-mk-defs-6.0-r1.ebuild: + Add patch to fix some broken behaviours with GNU userland. + + 19 Apr 2006; Diego Pettenò + freebsd-mk-defs-6.0-r1.ebuild: + Replace ${INSTALL} -C with ${INSTALL} when building for a non-BSD system. + + 19 Apr 2006; Diego Pettenò + freebsd-mk-defs-6.0-r1.ebuild: + Install in /usr/share/mk/freebsd non non-FreeBSD systems for crosscompile. + +*freebsd-mk-defs-6.0-r1 (12 Apr 2006) + + 12 Apr 2006; Diego Pettenò + +files/freebsd-mk-defs-6.0-nowerror.patch, -freebsd-mk-defs-6.0.ebuild, + +freebsd-mk-defs-6.0-r1.ebuild: + Add patch to drop -Werror during sys building. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-mk-defs-gentoo.patch, -files/sys.patch: + Drop obsolete files. + +*freebsd-mk-defs-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-mk-defs-6.0-gentoo.patch, + +files/freebsd-mk-defs-6.0-strip.patch, +files/freebsd-mk-defs-flex.patch, + +files/freebsd-mk-defs-gentoo.patch, +files/sys.patch, +metadata.xml, + +freebsd-mk-defs-6.0.ebuild: + Import into portage. + + 23 Feb 2006; Diego Pettenò ChangeLog: + Add patch to avoid stripping binaries while installing, leaving that up to + portage. + + 28 Oct 2005; Diego Pettenò ChangeLog: + Install in alternative directory when installing on non-FreeBSD systems. + +*freebsd-mk-defs-6.0_beta4 (20 Sep 2005) + + 20 Sep 2005; Diego Pettenò + +files/freebsd-mk-defs-6.0-gentoo.patch, + +freebsd-mk-defs-6.0_beta4.ebuild: + freebsd-mk-defs 6.0, still not working. + +*freebsd-mk-defs-5.4-r1 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò + +files/freebsd-mk-defs-flex.patch, +files/freebsd-mk-defs-gentoo.patch, + +files/sys.patch, +freebsd-mk-defs-5.4-r1.ebuild: + Moved to sys-freebsd. + + 15 Jul 2005; Diego Pettenò + freebsd-mk-defs-5.4-r1.ebuild: + Add nostrip restriction. + + 10 Jul 2005; Diego Pettenò + freebsd-mk-defs-5.4-r1.ebuild: + Fix SLOT. + + 16 Jun 2005; Diego Pettenò + freebsd-mk-defs-5.4.ebuild: + Remove BASE_SRC_URI variable. + +*freebsd-mk-defs-5.4_rc4 (05 May 2005) + + 05 May 2005; Diego Petten + +freebsd-mk-defs-5.4_rc4.ebuild: + Added 5.4_rc4. + +*freebsd-mk-defs-5.3_rc1.ebuild (02 Nov 2004) + + 20 Nov 2004; Otavio R. Piske + freebsd-mk-defs-5.3_rc1.ebuild : + Initial Release + +*freebsd-mk-defs-5.2.1-r1.ebuild (20 Oct 2004) + + 20 Oct 2004; Otavio R. Piske + freebsd-mk-defs-5.2.1-r1.ebuild : + New ebuild with patches that avoid having to create dirs inside an ebuild + +*freebsd-mk-defs-5.2.1.ebuild (15 Sep 2004) + + 15 Sep 2004; Otavio Piske freebsd-mk-defs-5.2.1.ebuild: + Initial release + diff --git a/sys-freebsd/freebsd-mk-defs/Manifest b/sys-freebsd/freebsd-mk-defs/Manifest new file mode 100644 index 0000000..7a53baa --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/Manifest @@ -0,0 +1,7 @@ +AUX freebsd-mk-defs-6.0-gnu.patch 3584 RMD160 c9705a8a3f1d0f5c1be71587c391efdda846e3a3 SHA1 677729af4401fdc36f8f4582b7b3a0039759c9f4 SHA256 9519ea8a3e7b1261abdf3694501d1634d74670c8ff4e8a328e1e10e089a64695 +AUX freebsd-mk-defs-6.2-2-gentoo.patch 10377 RMD160 f36d72686e0c175193acff6f65abddea2d53a42c SHA1 4913957abd354db5ea7321f01e8c40e8e6f878f5 SHA256 6ce69b3c1735593d09ab51e9174f4e6bb6b185c68fa3fa30676d87174654d1c7 +AUX freebsd-mk-defs-7.0-gentoo.patch 10357 RMD160 c2b0286458f141084d357a59a5215d3e39fa9cc9 SHA1 e87742d5d4d9ffb05ffe3bea70709195df7f6220 SHA256 30260015c2cbbc9a067c9c71a3a504f0b3b0a84768acf6ea71b4646e1b4ee2c2 +DIST freebsd-share-7.0_pre200704.tar.bz2 3856556 RMD160 b7010932bf6c5df8d3b8f7ab5e1d69ca98d09251 SHA1 a4ffb1cac25a5ffc7ba6f90ba5fd198c03681a28 SHA256 b43e4e76497ce3b40ee810a7ce152a0d578745ee0ba5ac30f273cd75e55c0646 +EBUILD freebsd-mk-defs-7.0_pre200704.ebuild 886 RMD160 32b4847a1b71e5cebf430c88c60f485424c60912 SHA1 98a9eae4b65be3509c59d103a7a452591d9d0f85 SHA256 c13cac605007d835efabe0cde9812bee0f7b03613c06860973359d371d317879 +MISC ChangeLog 7323 RMD160 d6c11c54e532c5e62ffc6222f3a260c12845a074 SHA1 39e371f7b755c18c548207b8f964d48334a8667f SHA256 1558b8d0c364514e66a97276378b7925b502569b5699308a72e8bc18a72450ba +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.0-gnu.patch b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.0-gnu.patch new file mode 100644 index 0000000..76c94e1 --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.0-gnu.patch @@ -0,0 +1,105 @@ +Index: mk/bsd.incs.mk +=================================================================== +--- mk.orig/bsd.incs.mk ++++ mk/bsd.incs.mk +@@ -43,7 +43,7 @@ _${group}INS_${header:T}: ${header} + ${INSTALL} -d -o ${${group}OWN_${.ALLSRC:T}} \ + -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ + ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}} +- ${INSTALL} -C -o ${${group}OWN_${.ALLSRC:T}} \ ++ ${INSTALL} -o ${${group}OWN_${.ALLSRC:T}} \ + -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ + ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}} +@@ -56,11 +56,11 @@ installincludes: _${group}INS + _${group}INS: ${_${group}INCS} + .if defined(${group}NAME) + ${INSTALL} -d ${DESTDIR}${${group}DIR} +- ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ ++ ${INSTALL} -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ + ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME} + .else + ${INSTALL} -d ${DESTDIR}${${group}DIR} +- ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ ++ ${INSTALL} -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ + ${.ALLSRC} ${DESTDIR}${${group}DIR} + .endif + .endif +Index: mk/bsd.lib.mk +=================================================================== +--- mk.orig/bsd.lib.mk ++++ mk/bsd.lib.mk +@@ -105,7 +105,7 @@ _LIBS= lib${LIB}.a + lib${LIB}.a: ${OBJS} ${STATICOBJS} + @${ECHO} building static ${LIB} library + @rm -f ${.TARGET} +- @${AR} cq ${.TARGET} `lorder ${OBJS} ${STATICOBJS} | tsort -q` ${ARADD} ++ @${AR} cq ${.TARGET} ${OBJS} ${STATICOBJS} ${ARADD} + ${RANLIB} ${.TARGET} + .endif + +@@ -118,7 +118,7 @@ POBJS+= ${OBJS:.o=.po} ${STATICOBJS:.o= + lib${LIB}_p.a: ${POBJS} + @${ECHO} building profiled ${LIB} library + @rm -f ${.TARGET} +- @${AR} cq ${.TARGET} `lorder ${POBJS} | tsort -q` ${ARADD} ++ @${AR} cq ${.TARGET} ${POBJS} ${ARADD} + ${RANLIB} ${.TARGET} + .endif + +@@ -138,7 +138,7 @@ ${SHLIB_NAME}: ${SOBJS} + .endif + @${CC} ${LDFLAGS} -shared -Wl,-x \ + -o ${.TARGET} -Wl,-soname,${SONAME} \ +- `lorder ${SOBJS} | tsort -q` ${LDADD} ++ `echo ${SOBJS} | xargs -n 1 echo | sort -u` ${LDADD} + .endif + + .if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) +@@ -183,13 +183,6 @@ _EXTRADEPEND: + + .if !target(install) + +-.if defined(PRECIOUSLIB) +-.if !defined(NO_FSCHG) +-SHLINSTALLFLAGS+= -fschg +-.endif +-SHLINSTALLFLAGS+= -S +-.endif +- + _INSTALLFLAGS:= ${INSTALLFLAGS} + .for ie in ${INSTALLFLAGS_EDIT} + _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} +@@ -205,12 +198,12 @@ realinstall: _libinstall + _libinstall: + .if defined(LIB) && !empty(LIB) && !defined(NO_INSTALLLIB) + ${INSTALL} -d ${DESTDIR}${LIBDIR} +- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ++ ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} + .endif + .if !defined(NO_PROFILE) && defined(LIB) && !empty(LIB) + ${INSTALL} -d ${DESTDIR}${LIBDIR} +- ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ++ ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} + .endif + .if defined(SHLIB_NAME) +Index: mk/bsd.prog.mk +=================================================================== +--- mk.orig/bsd.prog.mk ++++ mk/bsd.prog.mk +@@ -111,13 +111,6 @@ _EXTRADEPEND: + + .if !target(install) + +-.if defined(PRECIOUSPROG) +-.if !defined(NO_FSCHG) +-INSTALLFLAGS+= -fschg +-.endif +-INSTALLFLAGS+= -S +-.endif +- + _INSTALLFLAGS:= ${INSTALLFLAGS} + .for ie in ${INSTALLFLAGS_EDIT} + _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} diff --git a/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.2-2-gentoo.patch b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.2-2-gentoo.patch new file mode 100644 index 0000000..c09633b --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-6.2-2-gentoo.patch @@ -0,0 +1,288 @@ +Index: fbsd-6.2b3/share/mk/bsd.doc.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.doc.mk ++++ fbsd-6.2b3/share/mk/bsd.doc.mk +@@ -137,10 +137,12 @@ CLEANFILES+= ${DOC}.ascii ${DOC}.ascii${ + realinstall: + .for _dev in ${PRINTERDEVICE:Mhtml} + cd ${SRCDIR}; \ ++ ${INSTALL} -d ${DESTDIR}${BINDIR}/${VOLUME} + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${DOC}*.html ${DESTDIR}${BINDIR}/${VOLUME} + .endfor + .for _dev in ${PRINTERDEVICE:Nhtml} ++ ${INSTALL} -d ${DESTDIR}${BINDIR}/${VOLUME} + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${DFILE.${_dev}} ${DESTDIR}${BINDIR}/${VOLUME} + .endfor +Index: fbsd-6.2b3/share/mk/bsd.files.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.files.mk ++++ fbsd-6.2b3/share/mk/bsd.files.mk +@@ -39,6 +39,7 @@ ${group}NAME_${file:T}?= ${file:T} + .endif + installfiles: _${group}INS_${file:T} + _${group}INS_${file:T}: ${file} ++ ${INSTALL} -d ${DESTDIR}${${group}DIR_${.ALLSRC}}/${${group}NAME_${.ALLSRC:T}:H} + ${INSTALL} -o ${${group}OWN_${.ALLSRC:T}} \ + -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ +@@ -51,10 +52,12 @@ _${group}FILES+= ${file} + installfiles: _${group}INS + _${group}INS: ${_${group}FILES} + .if defined(${group}NAME) ++ ${INSTALL} -d ${DESTDIR}${${group}DIR}/${${group}NAME} + ${INSTALL} -o ${${group}OWN} -g ${${group}GRP} \ + -m ${${group}MODE} ${.ALLSRC} \ + ${DESTDIR}${${group}DIR}/${${group}NAME} + .else ++ ${INSTALL} -d ${DESTDIR}${${group}DIR} + ${INSTALL} -o ${${group}OWN} -g ${${group}GRP} \ + -m ${${group}MODE} ${.ALLSRC} ${DESTDIR}${${group}DIR} + .endif +Index: fbsd-6.2b3/share/mk/bsd.incs.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.incs.mk ++++ fbsd-6.2b3/share/mk/bsd.incs.mk +@@ -39,6 +39,10 @@ ${group}NAME_${header:T}?= ${header:T} + .endif + installincludes: _${group}INS_${header:T} + _${group}INS_${header:T}: ${header} ++ ++ ${INSTALL} -d -o ${${group}OWN_${.ALLSRC:T}} \ ++ -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ ++ ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}} + ${INSTALL} -C -o ${${group}OWN_${.ALLSRC:T}} \ + -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ +@@ -51,9 +55,11 @@ _${group}INCS+= ${header} + installincludes: _${group}INS + _${group}INS: ${_${group}INCS} + .if defined(${group}NAME) ++ ${INSTALL} -d ${DESTDIR}${${group}DIR} + ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ + ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME} + .else ++ ${INSTALL} -d ${DESTDIR}${${group}DIR} + ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ + ${.ALLSRC} ${DESTDIR}${${group}DIR} + .endif +Index: fbsd-6.2b3/share/mk/bsd.info.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.info.mk ++++ fbsd-6.2b3/share/mk/bsd.info.mk +@@ -85,6 +85,7 @@ INFO2HTML?= info2html + TEX?= tex + DVIPS?= dvips + DVIPS2ASCII?= dvips2ascii ++INSTALL?= install + + .SUFFIXES: ${ICOMPRESS_EXT} .info .texi .texinfo .dvi .ps .latin1 .html + +@@ -146,12 +147,14 @@ ${x:S/$/${ICOMPRESS_EXT}/}: ${x} + INSTALLINFODIRS+= ${x:S/$/-install/} + ${x:S/$/-install/}: + .if !empty(.MAKEFLAGS:M-j) ++ ${INSTALL} -d ${DESTDIR}${INFODIR}/${INFODIRFILE} + lockf -k ${DESTDIR}${INFODIR}/${INFODIRFILE} \ + ${INSTALLINFO} ${INSTALLINFOFLAGS} \ + --defsection=${INFOSECTION} \ + --defentry=${INFOENTRY_${x}} \ + ${x}.info ${DESTDIR}${INFODIR}/${INFODIRFILE} + .else ++ ${INSTALL} -d ${DESTDIR}${INFODIR}/${INFODIRFILE} + ${INSTALLINFO} ${INSTALLINFOFLAGS} \ + --defsection=${INFOSECTION} \ + --defentry=${INFOENTRY_${x}} \ +Index: fbsd-6.2b3/share/mk/bsd.lib.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.lib.mk ++++ fbsd-6.2b3/share/mk/bsd.lib.mk +@@ -32,10 +32,6 @@ CFLAGS+= ${CRUNCH_CFLAGS} + CFLAGS+= ${DEBUG_FLAGS} + .endif + +-.if !defined(DEBUG_FLAGS) +-STRIP?= -s +-.endif +- + .include + + # prefer .s to a .c, add .po, remove stuff not used in the BSD libraries +@@ -208,14 +204,17 @@ realinstall: _libinstall + .ORDER: beforeinstall _libinstall + _libinstall: + .if defined(LIB) && !empty(LIB) && !defined(NO_INSTALLLIB) ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} + .endif + .if !defined(NO_PROFILE) && defined(LIB) && !empty(LIB) ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} + .endif + .if defined(SHLIB_NAME) ++ ${INSTALL} -d ${DESTDIR}${SHLIBDIR} + ${INSTALL} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \ + ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR} +Index: fbsd-6.2b3/share/mk/bsd.man.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.man.mk ++++ fbsd-6.2b3/share/mk/bsd.man.mk +@@ -165,9 +165,11 @@ _maninstall: ${MAN} + .if defined(NO_MANCOMPRESS) + .if defined(MANFILTER) + .for page in ${MAN} ++ ${INSTALL} -d ${DESTDIR}${MANDIR}${page:E}${MANSUBDIR}/${page} + ${MINSTALL} ${page:T:S/$/${FILTEXTENSION}/g} \ + ${DESTDIR}${MANDIR}${page:E}${MANSUBDIR}/${page} + .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) ++ ${INSTALL} -d ${DESTDIR}${CATDIR}${page:E}${MANSUBDIR}/${page} + ${MINSTALL} ${page:T:S/$/${CATEXT}${FILTEXTENSION}/g} \ + ${DESTDIR}${CATDIR}${page:E}${MANSUBDIR}/${page} + .endif +@@ -181,11 +183,14 @@ _maninstall: ${MAN} + esac; \ + page=$$1; shift; sect=$$1; shift; \ + d=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}; \ ++ ${ECHO} ${INSTALL} -d $${d}; \ ++ ${INSTALL} -d $${d}; \ + ${ECHO} ${MINSTALL} $${page} $${d}; \ + ${MINSTALL} $${page} $${d}; \ + done + .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) + .for page in ${MAN} ++ ${INSTALL} -d ${DESTDIR}${CATDIR}${page:E}${MANSUBDIR}/${page:T} + ${MINSTALL} ${page:T:S/$/${CATEXT}/} \ + ${DESTDIR}${CATDIR}${page:E}${MANSUBDIR}/${page:T} + .endfor +@@ -193,9 +198,11 @@ _maninstall: ${MAN} + .endif + .else + .for page in ${MAN} ++ ${INSTALL} -d ${DESTDIR}${MANDIR}${page:E}${MANSUBDIR} + ${MINSTALL} ${page:T:S/$/${MCOMPRESS_EXT}/g} \ + ${DESTDIR}${MANDIR}${page:E}${MANSUBDIR} + .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) ++ ${INSTALL} -d ${DESTDIR}${CATDIR}${page:E}${MANSUBDIR}/${page:T:S/$/${MCOMPRESS_EXT}/} + ${MINSTALL} ${page:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g} \ + ${DESTDIR}${CATDIR}${page:E}${MANSUBDIR}/${page:T:S/$/${MCOMPRESS_EXT}/} + .endif +Index: fbsd-6.2b3/share/mk/bsd.prog.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.prog.mk ++++ fbsd-6.2b3/share/mk/bsd.prog.mk +@@ -18,10 +18,6 @@ CFLAGS+=${DEBUG_FLAGS} + CFLAGS+=${CRUNCH_CFLAGS} + .endif + +-.if !defined(DEBUG_FLAGS) +-STRIP?= -s +-.endif +- + .if defined(NO_SHARED) && (${NO_SHARED} != "no" && ${NO_SHARED} != "NO") + LDFLAGS+= -static + .endif +@@ -133,9 +129,11 @@ realinstall: _proginstall + _proginstall: + .if defined(PROG) + .if defined(PROGNAME) ++ ${INSTALL} -d ${DESTDIR}${BINDIR} + ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}/${PROGNAME} + .else ++ ${INSTALL} -d ${DESTDIR}${BINDIR} + ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR} + .endif +@@ -163,6 +161,7 @@ SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP} + SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE} + _scriptsinstall: _SCRIPTSINS_${script:T} + _SCRIPTSINS_${script:T}: ${script} ++ ${INSTALL} -d ${DESTDIR}${SCRIPTSDIR_${.ALLSRC:T}} + ${INSTALL} -o ${SCRIPTSOWN_${.ALLSRC:T}} \ + -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ +Index: fbsd-6.2b3/share/mk/sys.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/sys.mk ++++ fbsd-6.2b3/share/mk/sys.mk +@@ -34,13 +34,13 @@ AFLAGS ?= + + .if defined(%POSIX) + CC ?= c89 +-CFLAGS ?= -O ++CFLAGS ?= + .else +-CC ?= cc +-CFLAGS ?= -O2 -fno-strict-aliasing -pipe ++CC ?= gcc ++CFLAGS ?= -pipe + .endif + +-CXX ?= c++ ++CXX ?= g++ + CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes} + + CPP ?= cpp +@@ -252,12 +252,6 @@ YFLAGS ?= -d + ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET} + rm -f ${.PREFIX}.tmp.c + +-# FreeBSD build pollution. Hide it in the non-POSIX part of the ifdef. +-__MAKE_CONF?=/etc/make.conf +-.if exists(${__MAKE_CONF}) +-.include "${__MAKE_CONF}" +-.endif +- + # Default executable format + # XXX hint for bsd.port.mk + OBJFORMAT?= elf +Index: fbsd-6.2b3/share/mk/bsd.libnames.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.libnames.mk ++++ fbsd-6.2b3/share/mk/bsd.libnames.mk +@@ -41,7 +41,7 @@ LIBDISK?= ${DESTDIR}${LIBDIR}/libdisk.a + LIBDNS?= ${DESTDIR}${LIBDIR}/libdns.a + LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a + LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a +-LIBFL?= "don't use LIBFL, use LIBL" ++LIBFL?= ${DESTDIR}${LIBDOR}/libfl.a + LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a + LIBFTPIO?= ${DESTDIR}${LIBDIR}/libftpio.a + LIBG2C?= ${DESTDIR}${LIBDIR}/libg2c.a +@@ -66,7 +66,7 @@ LIBKEYCAP?= ${DESTDIR}${LIBDIR}/libkeyca + LIBKICONV?= ${DESTDIR}${LIBDIR}/libkiconv.a + LIBKRB5?= ${DESTDIR}${LIBDIR}/libkrb5.a + LIBKVM?= ${DESTDIR}${LIBDIR}/libkvm.a +-LIBL?= ${DESTDIR}${LIBDIR}/libl.a ++LIBL?= ${DESTDIR}${LIBDOR}/libfl.a + LIBLN?= "don't use LIBLN, use LIBL" + .if !defined(NO_BIND) + LIBLWRES?= ${DESTDIR}${LIBDIR}/liblwres.a +Index: fbsd-6.2b3/share/mk/bsd.sys.mk +=================================================================== +--- fbsd-6.2b3.orig/share/mk/bsd.sys.mk ++++ fbsd-6.2b3/share/mk/bsd.sys.mk +@@ -27,9 +27,6 @@ CFLAGS += -std=${CSTD} + . if defined(WARNS) + . if ${WARNS} >= 1 + CWARNFLAGS += -Wsystem-headers +-. if !defined(NO_WERROR) +-CWARNFLAGS += -Werror +-. endif + . endif + . if ${WARNS} >= 2 + CWARNFLAGS += -Wall -Wno-format-y2k +@@ -60,9 +57,6 @@ WFORMAT = 1 + . if ${WFORMAT} > 0 + #CWARNFLAGS += -Wformat-nonliteral -Wformat-security -Wno-format-extra-args + CWARNFLAGS += -Wformat=2 -Wno-format-extra-args +-. if !defined(NO_WERROR) +-CWARNFLAGS += -Werror +-. endif + . endif + . endif + .endif diff --git a/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-7.0-gentoo.patch b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-7.0-gentoo.patch new file mode 100644 index 0000000..1ef6ead --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-7.0-gentoo.patch @@ -0,0 +1,296 @@ +diff -ur share.orig/mk/bsd.doc.mk share/mk/bsd.doc.mk +--- share.orig/mk/bsd.doc.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.doc.mk 2007-04-20 22:01:52 +0000 +@@ -137,10 +137,12 @@ + realinstall: + .for _dev in ${PRINTERDEVICE:Mhtml} + cd ${SRCDIR}; \ ++ ${INSTALL} -d ${DESTDIR}${BINDIR}/${VOLUME} + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${DOC}*.html ${DESTDIR}${BINDIR}/${VOLUME} + .endfor + .for _dev in ${PRINTERDEVICE:Nhtml} ++ ${INSTALL} -d ${DESTDIR}${BINDIR}/${VOLUME} + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${DFILE.${_dev}} ${DESTDIR}${BINDIR}/${VOLUME} + .endfor +Only in share/mk: bsd.doc.mk.orig +diff -ur share.orig/mk/bsd.files.mk share/mk/bsd.files.mk +--- share.orig/mk/bsd.files.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.files.mk 2007-04-20 22:01:52 +0000 +@@ -39,6 +39,7 @@ + .endif + installfiles: _${group}INS_${file:T} + _${group}INS_${file:T}: ${file} ++ ${INSTALL} -d ${DESTDIR}${${group}DIR_${.ALLSRC}}/${${group}NAME_${.ALLSRC:T}:H} + ${INSTALL} -o ${${group}OWN_${.ALLSRC:T}} \ + -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ +@@ -51,10 +52,12 @@ + installfiles: _${group}INS + _${group}INS: ${_${group}FILES} + .if defined(${group}NAME) ++ ${INSTALL} -d ${DESTDIR}${${group}DIR}/${${group}NAME} + ${INSTALL} -o ${${group}OWN} -g ${${group}GRP} \ + -m ${${group}MODE} ${.ALLSRC} \ + ${DESTDIR}${${group}DIR}/${${group}NAME} + .else ++ ${INSTALL} -d ${DESTDIR}${${group}DIR} + ${INSTALL} -o ${${group}OWN} -g ${${group}GRP} \ + -m ${${group}MODE} ${.ALLSRC} ${DESTDIR}${${group}DIR} + .endif +Only in share/mk: bsd.files.mk.orig +diff -ur share.orig/mk/bsd.incs.mk share/mk/bsd.incs.mk +--- share.orig/mk/bsd.incs.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.incs.mk 2007-04-20 22:01:52 +0000 +@@ -41,6 +41,10 @@ + .endif + installincludes: _${group}INS_${header:T} + _${group}INS_${header:T}: ${header} ++ ++ ${INSTALL} -d -o ${${group}OWN_${.ALLSRC:T}} \ ++ -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ ++ ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}} + ${INSTALL} -C -o ${${group}OWN_${.ALLSRC:T}} \ + -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ +@@ -53,9 +57,11 @@ + installincludes: _${group}INS + _${group}INS: ${_${group}INCS} + .if defined(${group}NAME) ++ ${INSTALL} -d ${DESTDIR}${${group}DIR} + ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ + ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME} + .else ++ ${INSTALL} -d ${DESTDIR}${${group}DIR} + ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ + ${.ALLSRC} ${DESTDIR}${${group}DIR} + .endif +Only in share/mk: bsd.incs.mk.orig +diff -ur share.orig/mk/bsd.info.mk share/mk/bsd.info.mk +--- share.orig/mk/bsd.info.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.info.mk 2007-04-20 22:01:52 +0000 +@@ -83,6 +83,7 @@ + TEX?= tex + DVIPS?= dvips + DVIPS2ASCII?= dvips2ascii ++INSTALL?= install + + .SUFFIXES: ${ICOMPRESS_EXT} .info .texi .texinfo .dvi .ps .latin1 .html + +@@ -144,12 +145,14 @@ + INSTALLINFODIRS+= ${x:S/$/-install/} + ${x:S/$/-install/}: + .if !empty(.MAKEFLAGS:M-j) ++ ${INSTALL} -d ${DESTDIR}${INFODIR}/${INFODIRFILE} + lockf -k ${DESTDIR}${INFODIR}/${INFODIRFILE} \ + ${INSTALLINFO} ${INSTALLINFOFLAGS} \ + --defsection=${INFOSECTION} \ + --defentry=${INFOENTRY_${x}} \ + ${x}.info ${DESTDIR}${INFODIR}/${INFODIRFILE} + .else ++ ${INSTALL} -d ${DESTDIR}${INFODIR}/${INFODIRFILE} + ${INSTALLINFO} ${INSTALLINFOFLAGS} \ + --defsection=${INFOSECTION} \ + --defentry=${INFOENTRY_${x}} \ +Only in share/mk: bsd.info.mk.orig +diff -ur share.orig/mk/bsd.lib.mk share/mk/bsd.lib.mk +--- share.orig/mk/bsd.lib.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.lib.mk 2007-04-20 22:05:21 +0000 +@@ -37,10 +37,6 @@ + CFLAGS+= ${DEBUG_FLAGS} + .endif + +-.if !defined(DEBUG_FLAGS) +-STRIP?= -s +-.endif +- + .include + + # prefer .s to a .c, add .po, remove stuff not used in the BSD libraries +@@ -236,14 +232,17 @@ + .ORDER: beforeinstall _libinstall + _libinstall: + .if defined(LIB) && !empty(LIB) && !defined(NO_INSTALLLIB) ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} + .endif + .if ${MK_PROFILE} != "no" && defined(LIB) && !empty(LIB) ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}_p.a ${DESTDIR}${LIBDIR} + .endif + .if defined(SHLIB_NAME) ++ ${INSTALL} -d ${DESTDIR}${SHLIBDIR} + ${INSTALL} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \ + ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR} +@@ -261,10 +260,12 @@ + .endif + .endif + .if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no" ++ ${INSTALL} -d ${DESTDIR}${LIBDIR} + ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${LIBDIR} + .endif + .if defined(WANT_LINT) && !defined(NO_LINT) && defined(LIB) && !empty(LIB) ++ ${INSTALL} -d ${DESTDIR}${LINTLIBDIR} + ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${_INSTALLFLAGS} ${LINTLIB} ${DESTDIR}${LINTLIBDIR} + .endif +Only in share/mk: bsd.lib.mk.orig +Only in share/mk: bsd.lib.mk.rej +diff -ur share.orig/mk/bsd.libnames.mk share/mk/bsd.libnames.mk +--- share.orig/mk/bsd.libnames.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.libnames.mk 2007-04-20 22:01:52 +0000 +@@ -41,7 +41,7 @@ + LIBDNS?= ${DESTDIR}${LIBDIR}/libdns.a + LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a + LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a +-LIBFL?= "don't use LIBFL, use LIBL" ++LIBFL?= ${DESTDIR}${LIBDOR}/libfl.a + LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a + LIBFTPIO?= ${DESTDIR}${LIBDIR}/libftpio.a + LIBG2C?= ${DESTDIR}${LIBDIR}/libg2c.a +@@ -68,7 +68,7 @@ + LIBKICONV?= ${DESTDIR}${LIBDIR}/libkiconv.a + LIBKRB5?= ${DESTDIR}${LIBDIR}/libkrb5.a + LIBKVM?= ${DESTDIR}${LIBDIR}/libkvm.a +-LIBL?= ${DESTDIR}${LIBDIR}/libl.a ++LIBL?= ${DESTDIR}${LIBDOR}/libfl.a + LIBLN?= "don't use LIBLN, use LIBL" + .if ${MK_BIND} != "no" + LIBLWRES?= ${DESTDIR}${LIBDIR}/liblwres.a +Only in share/mk: bsd.libnames.mk.orig +diff -ur share.orig/mk/bsd.man.mk share/mk/bsd.man.mk +--- share.orig/mk/bsd.man.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.man.mk 2007-04-20 22:06:58 +0000 +@@ -165,9 +165,11 @@ + .if defined(NO_MANCOMPRESS) + .if defined(MANFILTER) + .for __page in ${MAN} ++ ${INSTALL} -d ${DESTDIR}${MANDIR}${__page:E}${MANSUBDIR}/${__page} + ${MINSTALL} ${__page:T:S/$/${FILTEXTENSION}/g} \ + ${DESTDIR}${MANDIR}${__page:E}${MANSUBDIR}/${__page} + .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) ++ ${INSTALL} -d ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page} + ${MINSTALL} ${__page:T:S/$/${CATEXT}${FILTEXTENSION}/g} \ + ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page} + .endif +@@ -186,6 +188,7 @@ + done + .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) + .for __page in ${MAN} ++ ${INSTALL} -d ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page:T} + ${MINSTALL} ${__page:T:S/$/${CATEXT}/} \ + ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page:T} + .endfor +@@ -193,9 +196,11 @@ + .endif + .else + .for __page in ${MAN} ++ ${INSTALL} -d ${DESTDIR}${MANDIR}${__page:E}${MANSUBDIR} + ${MINSTALL} ${__page:T:S/$/${MCOMPRESS_EXT}/g} \ + ${DESTDIR}${MANDIR}${__page:E}${MANSUBDIR} + .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) ++ ${INSTALL} -d ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page:T:S/$/${MCOMPRESS_EXT}/} + ${MINSTALL} ${__page:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g} \ + ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page:T:S/$/${MCOMPRESS_EXT}/} + .endif +Only in share/mk: bsd.man.mk.orig +Only in share/mk: bsd.man.mk.rej +diff -ur share.orig/mk/bsd.prog.mk share/mk/bsd.prog.mk +--- share.orig/mk/bsd.prog.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.prog.mk 2007-04-20 22:01:52 +0000 +@@ -23,10 +23,6 @@ + CFLAGS+=${CRUNCH_CFLAGS} + .endif + +-.if !defined(DEBUG_FLAGS) +-STRIP?= -s +-.endif +- + .if defined(NO_SHARED) && (${NO_SHARED} != "no" && ${NO_SHARED} != "NO") + LDFLAGS+= -static + .endif +@@ -138,9 +134,11 @@ + _proginstall: + .if defined(PROG) + .if defined(PROGNAME) ++ ${INSTALL} -d ${DESTDIR}${BINDIR} + ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}/${PROGNAME} + .else ++ ${INSTALL} -d ${DESTDIR}${BINDIR} + ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR} + .endif +@@ -168,6 +166,7 @@ + SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE} + _scriptsinstall: _SCRIPTSINS_${script:T} + _SCRIPTSINS_${script:T}: ${script} ++ ${INSTALL} -d ${DESTDIR}${SCRIPTSDIR_${.ALLSRC:T}} + ${INSTALL} -o ${SCRIPTSOWN_${.ALLSRC:T}} \ + -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \ + ${.ALLSRC} \ +Only in share/mk: bsd.prog.mk.orig +diff -ur share.orig/mk/bsd.sys.mk share/mk/bsd.sys.mk +--- share.orig/mk/bsd.sys.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/bsd.sys.mk 2007-04-20 22:01:52 +0000 +@@ -27,9 +27,6 @@ + . if defined(WARNS) + . if ${WARNS} >= 1 + CWARNFLAGS += -Wsystem-headers +-. if !defined(NO_WERROR) +-CWARNFLAGS += -Werror +-. endif + . endif + . if ${WARNS} >= 2 + CWARNFLAGS += -Wall -Wno-format-y2k +@@ -60,9 +57,6 @@ + . if ${WFORMAT} > 0 + #CWARNFLAGS += -Wformat-nonliteral -Wformat-security -Wno-format-extra-args + CWARNFLAGS += -Wformat=2 -Wno-format-extra-args +-. if !defined(NO_WERROR) +-CWARNFLAGS += -Werror +-. endif + . endif + . endif + .endif +Only in share/mk: bsd.sys.mk.orig +diff -ur share.orig/mk/sys.mk share/mk/sys.mk +--- share.orig/mk/sys.mk 2007-04-20 21:55:49 +0000 ++++ share/mk/sys.mk 2007-04-20 22:01:52 +0000 +@@ -32,13 +32,13 @@ + + .if defined(%POSIX) + CC ?= c89 +-CFLAGS ?= -O ++CFLAGS ?= + .else +-CC ?= cc +-CFLAGS ?= -O2 -fno-strict-aliasing -pipe ++CC ?= gcc ++CFLAGS ?= -pipe + .endif + +-CXX ?= c++ ++CXX ?= g++ + CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes} + + CPP ?= cpp +@@ -250,12 +250,6 @@ + ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET} + rm -f ${.PREFIX}.tmp.c + +-# FreeBSD build pollution. Hide it in the non-POSIX part of the ifdef. +-__MAKE_CONF?=/etc/make.conf +-.if exists(${__MAKE_CONF}) +-.include "${__MAKE_CONF}" +-.endif +- + # Default executable format + # XXX hint for bsd.port.mk + OBJFORMAT?= elf +Only in share/mk: sys.mk.orig diff --git a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-7.0_pre200704.ebuild b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-7.0_pre200704.ebuild new file mode 100644 index 0000000..94416e2 --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-7.0_pre200704.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-6.2.ebuild,v 1.1 2007/01/15 21:36:42 drizzt Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="Makefiles definitions used for building and installing libraries and system files" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" + +IUSE="" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${SHARE}.tar.bz2" + +RDEPEND="" +DEPEND="" + +RESTRICT="strip" + +S="${WORKDIR}/share/mk" + +src_unpack() { + unpack ${A} + cd ${WORKDIR}/share + epatch "${FILESDIR}/${PN}-7.0-gentoo.patch" + + [[ ${CHOST} != *-*bsd* || ${CHOST} == *-gnu ]] && \ + epatch "${FILESDIR}/${PN}-6.0-gnu.patch" +} + +src_compile() { :; } + +src_install() { + if [[ ${CHOST} != *-freebsd* ]]; then + insinto /usr/share/mk/freebsd + else + insinto /usr/share/mk + fi + doins *.mk +} diff --git a/sys-freebsd/freebsd-mk-defs/metadata.xml b/sys-freebsd/freebsd-mk-defs/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-pam-modules/ChangeLog b/sys-freebsd/freebsd-pam-modules/ChangeLog new file mode 100644 index 0000000..8292585 --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/ChangeLog @@ -0,0 +1,135 @@ +# ChangeLog for sys-freebsd/freebsd-pam-modules +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/ChangeLog,v 1.19 2007/01/15 21:37:12 drizzt Exp $ + +*freebsd-pam-modules-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-pam-modules-6.2_rc2.ebuild, +freebsd-pam-modules-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-pam-modules-6.1.ebuild: + Remove 6.1 ebuild. + +*freebsd-pam-modules-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-pam-modules-6.2_beta3.ebuild, + -freebsd-pam-modules-6.2_rc1.ebuild, +freebsd-pam-modules-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + +*freebsd-pam-modules-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-pam-modules-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-pam-modules-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-pam-modules-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-pam-modules-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-pam-modules-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + freebsd-pam-modules-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*freebsd-pam-modules-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-pam-modules-6.2_beta2.ebuild: + Version 6.2_beta2. + +*freebsd-pam-modules-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-pam-modules-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-pam-modules-6.0.ebuild: + Remove 6.0 version. + +*freebsd-pam-modules-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-pam-modules-6.1_rc2.ebuild, +freebsd-pam-modules-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-pam-modules-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-pam-modules-6.1_rc1.ebuild, +freebsd-pam-modules-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-pam-modules-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-pam-modules-6.1_rc1.ebuild: + Update to 6.1_rc1 and don't install convert.pl. + + 20 Apr 2006; Diego Pettenò + freebsd-pam-modules-6.0.ebuild: + Drop dependency on freebsd-headers. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-pam-modules-gentoo.patch: + Drop obsolete files. + +*freebsd-pam-modules-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò +files/5.4/README.pamd, + +files/5.4/pam.d/other, +files/freebsd-pam-modules-6.0-gentoo.patch, + +files/5.4/convert.pl, +files/5.4/pam.d/system, + +files/5.4/pam.d/system-auth, +files/freebsd-pam-modules-gentoo.patch, + +metadata.xml, +freebsd-pam-modules-6.0.ebuild: + Import into portage. + + 25 Aug 2005; Diego Pettenò +files/5.4/README.pamd, + +files/5.4/convert.pl, +files/5.4/pam.d/other, +files/5.4/pam.d/system, + +files/5.4/pam.d/system-auth, +files/freebsd-pam-modules-gentoo.patch, + +freebsd-pam-modules-5.4-r2.ebuild: + Moved to sys-freebsd. + +*freebsd-pam-modules-5.4-r2 (04 Jun 2005) + + 04 Jun 2005; Diego Pettenò + -files/freebsd-lib-fixmakefiles.patch, + +files/freebsd-pam-modules-gentoo.patch, + +files/freebsd-pam-modules-minimal.patch, + +files/freebsd-pam-modules-nopasswdqc.patch, + -freebsd-pam-modules-5.4-r1.ebuild, +freebsd-pam-modules-5.4-r2.ebuild: + Install modules in /lib/security as with Linux-PAM. Remove static version + building. Use sys-libs/openpam as pam library instead of its own. Removed + pam_deny, pam_permit (in sys-libs/openpam) and pam_passwdqc (in + sys-libs/pam_passwdqc). + +*freebsd-pam-modules-5.4-r1 (23 May 2005) + + 23 May 2005; Diego Pettenò +files/5.4/README.pamd, + +files/5.4/pam.d/other, +files/5.4/convert.pl, +files/5.4/pam.d/system, + +files/5.4/pam.d/system-auth, -freebsd-pam-modules-5.4.ebuild, + +freebsd-pam-modules-5.4-r1.ebuild: + New revision, this time installs correctly (pamd, not envd). Pam.d files are + in $FILESDIR instead than in an external tarball, as they are quite less + than before. + +*freebsd-pam-modules-5.4_rc3-r1 (03 May 2005) + + 03 May 2005; Diego Pettenò + -freebsd-pam-modules-5.4_rc3.ebuild, + +freebsd-pam-modules-5.4_rc3-r1.ebuild: + New revision which installs pam configuration files. + diff --git a/sys-freebsd/freebsd-pam-modules/Manifest b/sys-freebsd/freebsd-pam-modules/Manifest new file mode 100644 index 0000000..e05bd3f --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/Manifest @@ -0,0 +1,10 @@ +AUX 5.4/README.pamd 2970 RMD160 70629aa275cec059cf7f599d565e435d0315bfde SHA1 aa93171f02af102146c1904005f6e6e3cdbc2712 SHA256 ab09a002c9c7f2cef797ec5554a8d8666fe60c69196c32968845bff171e5fcc0 +AUX 5.4/convert.pl 3036 RMD160 aa7c4ad1ffb5768d1126f1c494a860fe79c32962 SHA1 4ef604dcd6ee329102b2a9f65be8cfed4cc8ea98 SHA256 2c6130279a39400b0a88abcf923ede5e91348bba480b17df4e5ebc37d28ffa76 +AUX 5.4/pam.d/other 721 RMD160 a2a99ad91df7224456981f416ee91561c13cb0cf SHA1 d5f2246604ff68c3654f8484aa31caba4e2ca0f6 SHA256 a73b092a177df4ac350d35df4e856c46bbb0b7bdce7a10bb8c76ca7088ff21ca +AUX 5.4/pam.d/system 758 RMD160 f867690230cc86f8943b2978a9a57bc22178d368 SHA1 23486799cee6e5c1355778eeaafb6522c0965e36 SHA256 10e2ca7cdc3c86bb6dda4332c40e8998f30b9918507792c85e5744453a7e57bf +AUX 5.4/pam.d/system-auth 216 RMD160 0d399ec43609989cd6494d9c501c6bdfb9a02b6c SHA1 f6a9cbabe2677028c8fb60bf6183262b489956f9 SHA256 28a2e7fe7e3f735555548ca9ec0cf5be252b450c22b872b52217f08c730a0372 +AUX freebsd-pam-modules-6.0-gentoo.patch 701 RMD160 f907769f6f0ded416fac03a1fb6b5531ff682070 SHA1 678bd875b4d50acfac7ab59321b275b2c7664d4b SHA256 8346d95aa5b4f283fedf4387ebb85a61f5f10fac38dc45bdea8c2c345fdc633d +DIST freebsd-lib-7.0_pre200704.tar.bz2 2853461 RMD160 8384a200f7d61c5953ccd8299e2e40373ae970ed SHA1 33d80fef5909ef584646c4c5a2733576224c4cc6 SHA256 56b586b58b7b29ea748151cc8377a5bede8047dffdbb1b8d12888acdfd67e105 +EBUILD freebsd-pam-modules-7.0_pre200704.ebuild 1309 RMD160 f74ab6f77d017c73f1fd61e3c58d7027f5ec1baa SHA1 c7b803bdead8817a9f19deb56d92e9a2606eddba SHA256 5e8e16c702b092f5d4b16122df4a5e1a6cb2b6b8e57a2ce04c7c5aa53a30f625 +MISC ChangeLog 4803 RMD160 607be2563f0accf0e521a80144754ae21b077c32 SHA1 0010c8230cec378a0dcc4104e9e0804302ec292a SHA256 a3bd99fa52c6b22aa69ec8c7c7f8c1acebbb3cbee89b9703fed81fbf8e0fbb24 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-pam-modules/files/5.4/README.pamd b/sys-freebsd/freebsd-pam-modules/files/5.4/README.pamd new file mode 100644 index 0000000..4bd2176 --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/5.4/README.pamd @@ -0,0 +1,63 @@ +/etc/pam.d + +This directory contains configuration files for the Pluggable +Authentication Modules (PAM) library. + +Each file details the module chain for a single service, and must be +named after that service. If no configuration file is found for a +particular service, the /etc/pam.d/other is used instead. If that +file does not exist, /etc/pam.conf is searched for entries matching +the specified service or, failing that, the "other" service. + +See the pam(8) manual page for an explanation of the workings of the +PAM library and descriptions of the various files and modules. Below +is a summary of the format for the pam.conf and /etc/pam.d/* files. + +Configuration lines take the following form: + +module-type control-flag module-path arguments + +Comments are introduced with a hash mark ('#'). Blank lines and lines +consisting entirely of comments are ignored. + +The meanings of the different fields are as follows: + + module-type: + auth: prompt for a password to authenticate that the user is + who they say they are, and set any credentials. + account: non-authentication based authorization, based on time, + resources, etc. + session: housekeeping before and/or after login. + password: update authentication tokens. + + control-flag: How libpam handles success or failure of the module. + required: success is required; on failure all remaining + modules are run, but the request will be denied. + requisite: success is required, and on failure no remaining + modules are run. + sufficient: success is sufficient, and if no previous required + module failed, no remaining modules are run. + binding: success is sufficient; on failure all remaining + modules are run, but the request will be denied. + optional: ignored unless the other modules return PAM_IGNORE. + + arguments: Module-specific options, plus some generic ones: + debug: syslog debug info. + no_warn: return no warning messages to the application. + Remove this to feed back to the user the + reason(s) they are being rejected. + use_first_pass: try authentication using password from the + preceding auth module. + try_first_pass: first try authentication using password from + the preceding auth module, and if that fails + prompt for a new password. + use_mapped_pass: convert cleartext password to a crypto key. + expose_account: allow printing more info about the user when + prompting. + +Note that having a "sufficient" module as the last entry for a +particular service and module type may result in surprising behaviour. +To get the intended semantics, add a "required" entry listing the +pam_deny module at the end of the chain. + +$Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/files/5.4/README.pamd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ diff --git a/sys-freebsd/freebsd-pam-modules/files/5.4/convert.pl b/sys-freebsd/freebsd-pam-modules/files/5.4/convert.pl new file mode 100644 index 0000000..42a061e --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/5.4/convert.pl @@ -0,0 +1,87 @@ +#!/usr/bin/perl -w +#- +# Copyright (c) 2001,2002 Networks Associates Technologies, Inc. +# All rights reserved. +# +# This software was developed for the FreeBSD Project by ThinkSec AS and +# NAI Labs, the Security Research Division of Network Associates, Inc. +# under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the +# DARPA CHATS research program. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/files/5.4/convert.pl,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# + +use strict; +use Fcntl; +use vars qw(%SERVICES); + +MAIN:{ + my $line; + my $service; + my $version; + my $type; + local *FILE; + + while (<>) { + chomp(); + s/\s*$//; + next unless m/^(\#*)(\w+)\s+(auth|account|session|password)\s+(\S.*)$/; + $line = $1.$3; + $line .= "\t" x ((16 - length($line) + 7) / 8); + $line .= $4; + push(@{$SERVICES{$2}->{$3}}, $line); + } + + foreach $service (keys(%SERVICES)) { + $version = '$' . 'FreeBSD' . '$'; + if (sysopen(FILE, $service, O_RDONLY)) { + while () { + next unless (m/(\$[F]reeBSD.*?\$)/); + $version = $1; + last; + } + close(FILE); + } + sysopen(FILE, $service, O_RDWR|O_CREAT|O_TRUNC) + or die("$service: $!\n"); + print(FILE "#\n"); + print(FILE "# $version\n"); + print(FILE "#\n"); + print(FILE "# PAM configuration for the \"$service\" service\n"); + print(FILE "#\n"); + foreach $type (qw(auth account session password)) { + next unless exists($SERVICES{$service}->{$type}); + print(FILE "\n"); + print(FILE "# $type\n"); + print(FILE join("\n", @{$SERVICES{$service}->{$type}}, "")); + } + close(FILE); + warn("$service\n"); + } + + exit(0); +} diff --git a/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/other b/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/other new file mode 100644 index 0000000..5b6170e --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/other @@ -0,0 +1,25 @@ +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/other,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# +# PAM configuration for the "other" service +# + +# auth +auth required pam_nologin.so no_warn +auth sufficient pam_opie.so no_warn no_fake_prompts +auth requisite pam_opieaccess.so no_warn allow_local +#auth sufficient pam_krb5.so no_warn try_first_pass +#auth sufficient pam_ssh.so no_warn try_first_pass +auth required pam_unix.so no_warn try_first_pass + +# account +#account required pam_krb5.so +account required pam_login_access.so +account required pam_unix.so + +# session +#session optional pam_ssh.so +session required pam_permit.so + +# password +password required pam_permit.so diff --git a/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system b/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system new file mode 100644 index 0000000..5c28c2a --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system @@ -0,0 +1,25 @@ +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# +# System-wide defaults +# + +# auth +auth sufficient pam_opie.so no_warn no_fake_prompts +auth requisite pam_opieaccess.so no_warn allow_local +#auth sufficient pam_krb5.so no_warn try_first_pass +#auth sufficient pam_ssh.so no_warn try_first_pass +auth required pam_unix.so no_warn try_first_pass nullok + +# account +#account required pam_krb5.so +account required pam_login_access.so +account required pam_unix.so + +# session +#session optional pam_ssh.so +session required pam_lastlog.so no_fail + +# password +#password sufficient pam_krb5.so no_warn try_first_pass +password required pam_unix.so no_warn try_first_pass diff --git a/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system-auth b/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system-auth new file mode 100644 index 0000000..5f19bff --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/5.4/pam.d/system-auth @@ -0,0 +1,9 @@ +# Copyright 2005 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 +# $ Header: $ + +auth include system +account include system +session include system +password include system + diff --git a/sys-freebsd/freebsd-pam-modules/files/freebsd-pam-modules-6.0-gentoo.patch b/sys-freebsd/freebsd-pam-modules/files/freebsd-pam-modules-6.0-gentoo.patch new file mode 100644 index 0000000..ce1a7fb --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/files/freebsd-pam-modules-6.0-gentoo.patch @@ -0,0 +1,24 @@ +Index: fbsd-6.0/lib/libpam/modules/Makefile.inc +=================================================================== +--- fbsd-6.0.orig/lib/libpam/modules/Makefile.inc ++++ fbsd-6.0/lib/libpam/modules/Makefile.inc +@@ -5,18 +5,10 @@ PAMDIR= ${.CURDIR}/../../../../contrib/ + NO_INSTALLLIB= + NO_PROFILE= + +-CFLAGS+= -I${PAMDIR}/include -I${.CURDIR}/../../libpam ++CFLAGS+= -I${.CURDIR}/../../libpam + WARNS?= 4 + +-# This is nasty. +-# For the static case, libpam.a depends on the modules. +-# For the dynamic case, the modules depend on libpam.so.N +-.if defined(_NO_LIBPAM_SO_YET) +-NO_PIC= +-.else + SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR} +-DPADD+= ${LIBPAM} + LDADD+= -lpam +-.endif + + .include "../Makefile.inc" diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.0_pre200704.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.0_pre200704.ebuild new file mode 100644 index 0000000..b71e38c --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-7.0_pre200704.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-6.2.ebuild,v 1.1 2007/01/15 21:37:12 drizzt Exp $ + +inherit bsdmk freebsd multilib pam + +DESCRIPTION="FreeBSD's PAM authentication modules" +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" + +IUSE="kerberos nis" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${LIB}.tar.bz2" + +RDEPEND=">=sys-auth/openpam-20050201-r1 + kerberos? ( dev-libs/openssl + virtual/krb5 )" +DEPEND="${RDEPEND} + =sys-freebsd/freebsd-mk-defs-${RV}* + =sys-freebsd/freebsd-sources-${RV}*" + +S=${WORKDIR}/lib/libpam/modules + +pkg_setup() { + # Avoid installing pam_ssh as that has its own ebuild. + mymakeopts="${mymakeopts} NO_OPENSSH= " + use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " +} + +src_unpack() { + unpack ${A} + + cd ${WORKDIR}/lib + + for module in pam_deny pam_passwdqc pam_permit; do + sed -i -e "s:${module}::" ${S}/modules.inc + done + + # Avoid using static versions; use gentoo /lib/security dir + epatch ${FILESDIR}/${PN}-6.0-gentoo.patch +} + +src_install() { + mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed" + + dodoc "${FILESDIR}/5.4/README.pamd" + dopamd "${FILESDIR}/5.4/pam.d/"* +} diff --git a/sys-freebsd/freebsd-pam-modules/metadata.xml b/sys-freebsd/freebsd-pam-modules/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-pam-modules/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-pf/ChangeLog b/sys-freebsd/freebsd-pf/ChangeLog new file mode 100644 index 0000000..26aa656 --- /dev/null +++ b/sys-freebsd/freebsd-pf/ChangeLog @@ -0,0 +1,134 @@ +# ChangeLog for sys-freebsd/freebsd-pf +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.24 2007/04/06 14:55:27 uberlord Exp $ + +*freebsd-pf-6.2-r1 (06 Apr 2007) + + 06 Apr 2007; Roy Marples +freebsd-pf-6.2-r1.ebuild: + Bump for a non bash init script. + + 23 Feb 2007; Roy Marples files/pf.initd: + Don't force bashisms. + + 08 Feb 2007; Javier Villavicencio + freebsd-pf-6.2.ebuild: + Build ftp-proxy as well, thanks to Emanuele A. Bagnaschi for reporting in + bug 165846. + + 18 Jan 2007; Timothy Redaelli freebsd-pf-6.2.ebuild: + Fix .gz.bz2 problem in manpages, thanks to geekounet` for reporting and + Flameeyes for fixing + +*freebsd-pf-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-pf-6.2_rc2.ebuild, +freebsd-pf-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò -freebsd-pf-6.1.ebuild: + Remove 6.1 ebuild. + +*freebsd-pf-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-pf-6.2_beta3.ebuild, -freebsd-pf-6.2_rc1.ebuild, + +freebsd-pf-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + +*freebsd-pf-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-pf-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-pf-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-pf-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-pf-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-pf-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + +*freebsd-pf-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-pf-6.2_beta2.ebuild: + Version 6.2_beta2. + +*freebsd-pf-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-pf-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-pf-6.0-r1.ebuild: + Remove 6.0 version. + + 18 Jul 2006; Javier Villavicencio + freebsd-pf-6.1.ebuild: + Remove ftp-proxy since it is already installed by freebsd-libexec. + +*freebsd-pf-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-pf-6.1_rc2.ebuild, +freebsd-pf-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-pf-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-pf-6.1_rc1.ebuild, +freebsd-pf-6.1_rc2.ebuild: + Update to 6.1_rc2. + + 01 May 2006; Diego Pettenò + freebsd-pf-6.0-r1.ebuild, +freebsd-pf-6.1_rc1.ebuild: + Update to 6.1_rc1, install pf.conf as documentation instead than in /etc to + avoid confusion with an already in-place configuration file. + +*freebsd-pf-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-pf-6.1_rc1.ebuild: + Update to 6.1_rc1, install pf.conf as documentation instead than in /etc to + avoid confusion with an already in-place configuration file. + + 20 Apr 2006; Diego Pettenò + freebsd-pf-6.0-r1.ebuild: + Drop dependency on freebsd-headers. + +*freebsd-pf-6.0-r1 (14 Apr 2006) + + 14 Apr 2006; Diego Pettenò +files/pf.confd, + +files/pf.initd, -freebsd-pf-6.0.ebuild, +freebsd-pf-6.0-r1.ebuild: + Add init script for pf, based on the one contributed by Robert Sebastian + Gerus in bug #129171. + + 04 Apr 2006; Diego Pettenò freebsd-pf-6.0.ebuild: + Add dependency over libpcap. + + 04 Apr 2006; Diego Pettenò + +files/freebsd-pf-6.0-pcap.patch, freebsd-pf-6.0.ebuild: + Add patch to allow building using portage's libpcap, see bug #124759. + +*freebsd-pf-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò +metadata.xml, + +freebsd-pf-6.0.ebuild: + Import into portage. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Fix compiling. Add pf.conf and pf.os here instead that on baselayout. + + 01 Nov 2005; Diego Pettenò ChangeLog: + Added freebsd-pf package with tools to maintain pf firewall. + diff --git a/sys-freebsd/freebsd-pf/Manifest b/sys-freebsd/freebsd-pf/Manifest new file mode 100644 index 0000000..9c0655f --- /dev/null +++ b/sys-freebsd/freebsd-pf/Manifest @@ -0,0 +1,11 @@ +AUX freebsd-pf-6.0-pcap.patch 556 RMD160 ddb0733e487a7ba4eecedc82bc95695cb397f072 SHA1 6c66a0f3e05bd4cf5a75e72a1cfe3128e184d526 SHA256 1bef4f28c77386d50712dd8d5579d0dfcd4ef24b2a730597bdcfc4218fe70017 +AUX pf.confd 393 RMD160 fbf83495a2610fdfd26a646fcadd4cdcec1dfa45 SHA1 f5101c101a09004dea107a60a0108b96cee31a86 SHA256 54c97a1dac8ce7047f252b737fee3d927ea8763d1d75562d2f42bf992ff5fb73 +AUX pf.initd 916 RMD160 6835f0074e210c162b0eebda902427013b8440d4 SHA1 af6ea4d8be064b780bca7cb476a888598eaa211f SHA256 b0cf7dadb825a1133fb52069e63eda10042aa62e3fa702bfbee53cd455837ac9 +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-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-usbin-7.0_pre200704.tar.bz2 2622893 RMD160 66de2753ab0d1044b6c123fec26103560f5eabe2 SHA1 df76dd7604328da83b8b6e1a38b3ef58a3818af8 SHA256 1188d92fc11809efba8384f0ee96dd09efcee7dc968df7a1782b5a586fcc5bc8 +EBUILD freebsd-pf-7.0_pre200704.ebuild 1453 RMD160 776cd381d986aaa6231c592ae594cc843fcf6d13 SHA1 714fad7d829ee7d2ff272dd5ee2adce9c90d0063 SHA256 2244af0d71dda4aeebd28491e80e2d2071e7ac8e71c2fb1d16e3a408049e5ac0 +MISC ChangeLog 4393 RMD160 34092bbd4df12a201e2648ba67baa1ab688562e8 SHA1 d36d361ae9f0254e4e8596c1ad7e823fa2ff35ac SHA256 15212e0df6c39e6c279ec07612ce03d25d5820de41887e9529f3c0d6ca30497e +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch b/sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch new file mode 100644 index 0000000..32f0605 --- /dev/null +++ b/sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch @@ -0,0 +1,15 @@ +This patch includes net/bpf.h so that libpcap will use that instead of its own +stripped down version, that doesnt't allow for pflogd to work correctly. + +Index: fbsd-6/contrib/pf/pflogd/pflogd.c +=================================================================== +--- fbsd-6.orig/contrib/pf/pflogd/pflogd.c ++++ fbsd-6/contrib/pf/pflogd/pflogd.c +@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD: src/contrib/pf/pflog + #include + #include + #include ++#include + #include + #include + #include diff --git a/sys-freebsd/freebsd-pf/files/pf.confd b/sys-freebsd/freebsd-pf/files/pf.confd new file mode 100644 index 0000000..41c2fb9 --- /dev/null +++ b/sys-freebsd/freebsd-pf/files/pf.confd @@ -0,0 +1,10 @@ +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/files/pf.confd,v 1.1 2006/04/14 15:26:29 flameeyes Exp $ + +# Defines where the rules file is found, by default /etc/pf.conf +PF_RULES_FILE=/etc/pf.conf + +# Extra options to pass to pfctl when loading the rules +# See pfctl(8) +# PF_OPTS= diff --git a/sys-freebsd/freebsd-pf/files/pf.initd b/sys-freebsd/freebsd-pf/files/pf.initd new file mode 100755 index 0000000..da12019 --- /dev/null +++ b/sys-freebsd/freebsd-pf/files/pf.initd @@ -0,0 +1,50 @@ +#!/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-pf/files/pf.initd,v 1.2 2007/02/23 13:51:44 uberlord Exp $ + +depend() { + need net +} + +checkconfig() { + if ! [ -c /dev/pf ]; then + ewarn "Pseudo-device /dev/pf not found." + + ebegin "Loading pf module" + if ! kldload pf; then + eerror "Unable to load pf module." + eend 1 + return 1 + fi + eend $? + + if ! [ -c /dev/pf ]; then + eerror "Pseudo-device /dev/pf still not found." + return 1 + fi + fi + + return 0 +} + +start() { + checkconfig || return 1 + + einfo "Starting firewall" + + if [ -r "${PF_RULES_FILE}" ]; then + einfo "Loading firewall rules" + /sbin/pfctl -qe -f ${PF_RULES_FILE:-/etc/pf.conf} ${PF_OPTS} + else + /sbin/pfctl -qe ${PF_OPTS} + fi + + eend $? +} + +stop() { + einfo "Stopping firewall" + /sbin/pfctl -qd || retval=1 + eend $? +} diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-7.0_pre200704.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-7.0_pre200704.ebuild new file mode 100644 index 0000000..86ff311 --- /dev/null +++ b/sys-freebsd/freebsd-pf/freebsd-pf-7.0_pre200704.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-6.2-r1.ebuild,v 1.1 2007/04/06 14:55:27 uberlord Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's base system libraries" +SLOT="0" +KEYWORDS="~x86-fbsd" + +IUSE="" + +# Crypto is needed to have an internal OpenSSL header +SRC_URI="http://84.33.1.46/~drizzt/stages/${USBIN}.tar.bz2 + 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/${LIBEXEC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${ETC}.tar.bz2" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND} + sys-freebsd/freebsd-mk-defs + =sys-freebsd/freebsd-sources-${RV}*" + +S="${WORKDIR}" + +SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd libexec/ftp-proxy" + +PATCHES="${FILESDIR}/${PN}-6.0-pcap.patch" + +pkg_setup() { + enewgroup authpf 63 + mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= " +} + +src_compile() { + for dir in ${SUBDIRS}; do + einfo "Starting make in ${dir}" + cd "${S}/${dir}" + mkmake || die "Make ${dir} failed" + done +} + +src_install() { + for dir in ${SUBDIRS}; do + einfo "Starting install in ${dir}" + cd "${S}/${dir}" + mkinstall || die "Install ${dir} failed" + done + + cd "${WORKDIR}"/etc + insinto /etc + doins pf.os + newdoc pf.conf pf.conf.example + + newinitd "${FILESDIR}/pf.initd" pf + newconfd "${FILESDIR}/pf.confd" pf +} diff --git a/sys-freebsd/freebsd-pf/metadata.xml b/sys-freebsd/freebsd-pf/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-pf/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-rescue/ChangeLog b/sys-freebsd/freebsd-rescue/ChangeLog new file mode 100644 index 0000000..60beddb --- /dev/null +++ b/sys-freebsd/freebsd-rescue/ChangeLog @@ -0,0 +1,110 @@ +# ChangeLog for sys-freebsd/freebsd-rescue +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/ChangeLog,v 1.17 2007/01/15 21:38:18 drizzt Exp $ + +*freebsd-rescue-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-rescue-6.2_rc2.ebuild, +freebsd-rescue-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-rescue-6.1.ebuild: + Remove 6.1 ebuild. + +*freebsd-rescue-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-rescue-6.2_beta3.ebuild, -freebsd-rescue-6.2_rc1.ebuild, + +freebsd-rescue-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + +*freebsd-rescue-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-rescue-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-rescue-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-rescue-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-rescue-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-rescue-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + +*freebsd-rescue-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-rescue-6.2_beta2.ebuild: + Version 6.2_beta2. + +*freebsd-rescue-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-rescue-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-rescue-6.0.ebuild: + Remove 6.0 version. + +*freebsd-rescue-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-rescue-6.1_rc2.ebuild, +freebsd-rescue-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-rescue-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-rescue-6.1_rc1.ebuild, +freebsd-rescue-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-rescue-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-rescue-6.1_rc1.ebuild: + Update to 6.1_rc1. + + 20 Apr 2006; Diego Pettenò + freebsd-rescue-6.0.ebuild: + Drop dependency on freebsd-headers. + +*freebsd-rescue-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-rescue-5.4-gentoo.patch, + +files/freebsd-rescue-5.4-sbin-gentoo.patch, +metadata.xml, + +freebsd-rescue-6.0.ebuild: + Import into portage. + + 27 Aug 2005; Diego Pettenò + freebsd-rescue-5.4.ebuild: + Fix dependencies for sys-freebsd move. + + 25 Aug 2005; Diego Pettenò + +files/freebsd-rescue-5.4-gentoo.patch, + +files/freebsd-rescue-5.4-sbin-gentoo.patch, +freebsd-rescue-5.4.ebuild: + Moved to sys-freebsd. + + 18 Aug 2005; Diego Pettenò + freebsd-rescue-5.4.ebuild: + Updated to reflect bsdmk/freebsd eclasses changes. + +*freebsd-rescue-5.4 (13 Aug 2005) + + 13 Aug 2005; Diego Pettenò + +files/freebsd-rescue-5.4-gentoo.patch, + +files/freebsd-rescue-5.4-sbin-gentoo.patch, +freebsd-rescue-5.4.ebuild: + Added freebsd-rescue package that builds /rescue binaries. + diff --git a/sys-freebsd/freebsd-rescue/Manifest b/sys-freebsd/freebsd-rescue/Manifest new file mode 100644 index 0000000..768925f --- /dev/null +++ b/sys-freebsd/freebsd-rescue/Manifest @@ -0,0 +1,15 @@ +AUX freebsd-rescue-5.4-gentoo.patch 370 RMD160 450a06aa2e29146a4977021bef5b471c0e2eb964 SHA1 0208d171a7529805e9bc62574226b4bfe62899d5 SHA256 b745e48667803a62217d4e15e147c6b06d4251a1eea77f048f5cf0bec442931e +AUX freebsd-rescue-5.4-sbin-gentoo.patch 817 RMD160 00982cbcd0922847d8754388e5a5e27df7cf7436 SHA1 9aebe4e19306ae780b73913d2135d318d39430a7 SHA256 8e9c30fb3a3e1344fadc63039165080bfb50ef8ea989383b67b8a343f7436fed +DIST freebsd-bin-7.0_pre200704.tar.bz2 407110 RMD160 7be1020156ef0e50ef72171b0ff1c2ae8a62cadf SHA1 4be9fb5d24368d09f64c01e0cec782046582a09b SHA256 f02e5a35a0ab24213e215c5ba016fe66c2c1bf003ba356a66d65e15caee936dd +DIST freebsd-contrib-7.0_pre200704.tar.bz2 36743671 RMD160 aae7903e03d8decf910ee7e252d615658b8bfc25 SHA1 71006b34dc0e34be1f9093fca7b2aa9919038cd5 SHA256 1045c6d9ee9d0df02bd2627153da5bff2a74798af9f1852429ba0101430dcff3 +DIST freebsd-gnu-7.0_pre200704.tar.bz2 806988 RMD160 25f9ad2e4a160bf481f749fde14031072e69d6ce SHA1 13780d7c3765d3848563444a7c32c977ea1631b4 SHA256 711663aa53a86411e7c65a2f93f991b13128b4828b11733eab47dd8083100abf +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-rescue-7.0_pre200704.tar.bz2 4937 RMD160 e438eba829bd1008c5757de0f2ae6c11091d9d21 SHA1 2d2b7d6bf141ad33895c0dbc29ace6e8dacc1943 SHA256 52f25ae750bb1f093d948b355cc063f2d3a2a2ef4de1b0de125b6f4696a23709 +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-ubin-7.0_pre200704.tar.bz2 1822151 RMD160 b47eac7cc9871ff927a5307e4ed95627f208b73b SHA1 9ea9fe9360821621288a6447890300b07af034ef SHA256 caef71398ce6d0f9d36fdbf88639692e921c76fb8c0581bb66452598a7912e10 +DIST freebsd-usbin-7.0_pre200704.tar.bz2 2622893 RMD160 66de2753ab0d1044b6c123fec26103560f5eabe2 SHA1 df76dd7604328da83b8b6e1a38b3ef58a3818af8 SHA256 1188d92fc11809efba8384f0ee96dd09efcee7dc968df7a1782b5a586fcc5bc8 +EBUILD freebsd-rescue-7.0_pre200704.ebuild 1574 RMD160 f682ed395a35f5f94d2fb4ca70c455454e64922d SHA1 a799816dcd4dfc3b2ddd61675c7bcee5c4fa2615 SHA256 23c85a5d7ec7cdbe3195e4e7e4589b11ede9fd6ebea02775ab9a681febb37dcb +MISC ChangeLog 3387 RMD160 e410678acd9e94514c12de0ad4f175638bb55fe4 SHA1 08e1d0a3c15d8c066c0b94a4a17eb73455ce9e08 SHA256 4e376abbaaea3410b75cec7c90b4d831ee809a48a88c6e87c0d619836ec96137 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-gentoo.patch b/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-gentoo.patch new file mode 100644 index 0000000..1e59c6a --- /dev/null +++ b/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-gentoo.patch @@ -0,0 +1,12 @@ +diff -ur rescue/rescue/Makefile rescue-gentoo/rescue/Makefile +--- rescue/rescue/Makefile 2005-04-22 22:31:22.000000000 +0200 ++++ rescue-gentoo/rescue/Makefile 2005-08-13 17:06:43.000000000 +0200 +@@ -194,7 +194,7 @@ + CRUNCH_LIBS+= -lbz2 + + CRUNCH_PROGS_usr.bin+= tar +-CRUNCH_LIBS+= -larchive ++CRUNCH_LIBS+= -larchive -lz + + CRUNCH_PROGS_usr.bin+= vi + CRUNCH_ALIAS_vi= ex diff --git a/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch b/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch new file mode 100644 index 0000000..d566be1 --- /dev/null +++ b/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch @@ -0,0 +1,21 @@ +diff -ur sbin/savecore/savecore.c sbin-gentoo/savecore/savecore.c +--- sbin/savecore/savecore.c 2005-02-26 02:21:50.000000000 +0100 ++++ sbin-gentoo/savecore/savecore.c 2005-08-13 17:09:53.000000000 +0200 +@@ -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-rescue/freebsd-rescue-7.0_pre200704.ebuild b/sys-freebsd/freebsd-rescue/freebsd-rescue-7.0_pre200704.ebuild new file mode 100644 index 0000000..e29835e --- /dev/null +++ b/sys-freebsd/freebsd-rescue/freebsd-rescue-7.0_pre200704.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-rescue/freebsd-rescue-6.2.ebuild,v 1.1 2007/01/15 21:38:18 drizzt Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's rescue binaries" +SLOT="0" +KEYWORDS="~x86-fbsd" + +IUSE="atm nis" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${UBIN}.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/${BIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${SBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${USBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${GNU}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIBEXEC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${RESCUE}.tar.bz2" + +RDEPEND="" +DEPEND="sys-devel/flex + =sys-freebsd/freebsd-sources-${RV}* + =sys-freebsd/freebsd-mk-defs-${RV}*" + +S="${WORKDIR}/rescue" + +pkg_setup() { + use atm || mymakeopts="${mymakeopts} NO_ATM= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " + + for flag in atm nis; do + if use ${flag} && ! built_with_use sys-libs/freebsd-lib ${flag}; then + die "You can't add ${flag} support here without adding it to sys-libs/freebsd-lib" + fi + done + +# append-flags -fno-stack-protector -fno-stack-protector-all +} + +src_unpack() { + freebsd_src_unpack + + # As they are patches from ${WORKDIR} apply them by hand + cd ${WORKDIR} + epatch ${FILESDIR}/${PN}-5.4-gentoo.patch + epatch ${FILESDIR}/${PN}-5.4-sbin-gentoo.patch +} diff --git a/sys-freebsd/freebsd-rescue/metadata.xml b/sys-freebsd/freebsd-rescue/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-rescue/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + 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 files/devd_queue: + Quick fix for baselayout-2 + +*freebsd-sbin-6.2-r1 (06 Apr 2007) + + 06 Apr 2007; Roy Marples + +freebsd-sbin-6.2-r1.ebuild: + Bump for non bash init scripts. + + 13 Mar 2007; Roy Marples +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 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 + -freebsd-sbin-6.2_rc2.ebuild, +freebsd-sbin-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -freebsd-sbin-6.1.ebuild: + Remove 6.1 ebuild. + + 04 Jan 2007; Diego Pettenò + 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ò + -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ò + +freebsd-sbin-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-sbin-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-sbin-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-sbin-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 24 Oct 2006; Diego Pettenò + freebsd-sbin-6.1.ebuild, freebsd-sbin-6.2_beta2.ebuild: + Fix mirror:// uri, thanks Brian. + + 24 Oct 2006; Roy Marples + freebsd-sbin-6.2_beta2.ebuild: + Don't install rcorder as baselayout has it's own variant. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-sbin-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + freebsd-sbin-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + + 05 Oct 2006; Diego Pettenò + 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ò + +freebsd-sbin-6.2_beta2.ebuild: + Version 6.2_beta2. + + 03 Oct 2006; Roy Marples + -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 files/sysctl.initd: + Updated sysctl init script a little. + + 22 Sep 2006; Diego Pettenò + freebsd-sbin-6.2_beta1.ebuild: + Fix patch naming. + +*freebsd-sbin-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-sbin-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 11 Sep 2006; Diego Pettenò + +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ò + freebsd-sbin-6.1.ebuild: + Move ping command into /bin so that it can be used by users. + + 27 Jul 2006; Diego Pettenò + freebsd-sbin-6.1.ebuild: + Remove dhcpc provision, as dhclient is no more shipped here. Also fix quoting. + + 27 Jul 2006; Diego Pettenò + -freebsd-sbin-6.0-r1.ebuild: + Remove 6.0 version. + +*freebsd-sbin-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -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ò + -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ò + +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ò + files/adjkerntz-crontab: + Specify adjkerntz complete path. + + 20 Apr 2006; Diego Pettenò + freebsd-sbin-6.0-r1.ebuild: + Drop dependency on freebsd-headers. + + 20 Apr 2006; Diego Pettenò + -freebsd-sbin-6.0.ebuild: + Drop old version. + + 20 Apr 2006; Diego Pettenò + +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ò 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ò + -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ò + +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ò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Handle also sysctl configuration file and init script. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add here ipfw init.d script and rc.firewall used by it. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add ipf scripts only if ipfilter is enabled. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Install minfree file. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add periodic files. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Start moving etc files here. + + 13 Feb 2006; Diego Pettenò 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ò ChangeLog: + Extract also -sys as it's needed to geom/eli to build. + + 01 Nov 2005; Diego Pettenò ChangeLog: + Remove pf support, as freebsd-pf will provide it. + + 20 Oct 2005; Diego Pettenò ChangeLog: + Make sure /var/log is kept by this package instead of baselayout. + + 27 Aug 2005; Diego Pettenò + freebsd-sbin-5.4.ebuild: + Fix dependencies for sys-freebsd move. + +*freebsd-sbin-5.4 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò + +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ò + freebsd-sbin-5.4.ebuild: + Adapt to recent bsdmk changes. + + 16 Jun 2005; Diego Pettenò + freebsd-sbin-5.4.ebuild: + Avoid building and installing dhclient. + + 29 Sep 2004; Aaron Walker + 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 + 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 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 +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 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 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-share/ChangeLog b/sys-freebsd/freebsd-share/ChangeLog new file mode 100644 index 0000000..61d31cc --- /dev/null +++ b/sys-freebsd/freebsd-share/ChangeLog @@ -0,0 +1,178 @@ +# ChangeLog for sys-freebsd/freebsd-share +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-share/ChangeLog,v 1.27 2007/01/18 21:14:00 drizzt Exp $ + + 18 Jan 2007; Timothy Redaelli + freebsd-share-6.2.ebuild: + Fix .gz.bz2 problem in manpages, thanks to geekounet` for reporting and + Flameeyes for fixing + +*freebsd-share-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-share-6.2_rc2.ebuild, +freebsd-share-6.2.ebuild: + Bump to 6.2 and remove old version. + + 11 Jan 2007; Timothy Redaelli + freebsd-share-6.2_rc2.ebuild: + Remove pbm manpage, it collides with netpbm + + 05 Jan 2007; Diego Pettenò + -files/freebsd-share-6.0-links.patch, -files/freebsd-share-6.1-utf8.patch, + -freebsd-share-6.1-r1.ebuild: + Remove 6.1 ebuild. + +*freebsd-share-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-share-6.2_beta3.ebuild, -freebsd-share-6.2_rc1.ebuild, + +freebsd-share-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 08 Dec 2006; Timothy Redaelli + freebsd-share-6.2_rc1.ebuild: + Remove mailer.conf manpage and add -j1 to make install + +*freebsd-share-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-share-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-share-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-share-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-share-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-share-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + freebsd-share-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*freebsd-share-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-share-6.2_beta2.ebuild: + Version 6.2_beta2. + + 22 Sep 2006; Diego Pettenò + freebsd-share-6.2_beta1.ebuild: + Remove patch already applied upstream. + +*freebsd-share-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-share-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 27 Jul 2006; Diego Pettenò + -freebsd-share-6.0-r1.ebuild: + Remove 6.0 version. + +*freebsd-share-6.1-r1 (18 Jul 2006) + + 18 Jul 2006; Diego Pettenò + +files/freebsd-share-6.1-utf8.patch, -freebsd-share-6.1.ebuild, + +freebsd-share-6.1-r1.ebuild: + Drop the symlink patch that breaks UTF-8 support, and add patch for proper + UTF-8 CTYPE, thanks to Timothy Redaelli for the help. + + 09 May 2006; Diego Pettenò + freebsd-share-6.1.ebuild: + Don't install tabset, that's installed by ncurses already. + +*freebsd-share-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-share-6.1_rc2.ebuild, +freebsd-share-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-share-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-share-6.1_rc1.ebuild, +freebsd-share-6.1_rc2.ebuild: + Update to 6.1_rc2. + + 01 May 2006; Diego Pettenò + freebsd-share-6.1_rc1.ebuild: + Export ESED to BSD sed as per bug #131299. + +*freebsd-share-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-share-6.1_rc1.ebuild: + Update to 6.1_rc1. + +*freebsd-share-6.0-r1 (22 Apr 2006) + + 22 Apr 2006; Diego Pettenò + -freebsd-share-6.0.ebuild, +freebsd-share-6.0-r1.ebuild: + Drop timezone data, now provided by timezone-data package itself. + + 14 Apr 2006; Diego Pettenò + freebsd-share-6.0.ebuild: + Install arch-specific manpages in man4 catalog. Thanks to Javier + Villavicencio in bug #129889. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-share-5.3-colldef-makefile_links.patch: + Drop obsolete files. + +*freebsd-share-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-share-5.3-colldef-makefile_links.patch, + +files/freebsd-share-5.3-doc-locations.patch, + +files/freebsd-share-5.4-gentoo-skel.patch, + +files/freebsd-share-6.0-links.patch, +metadata.xml, + +freebsd-share-6.0.ebuild: + Import into portage. + + 12 Feb 2006; Diego Pettenò ChangeLog: + Add patch to drop broken linkage, might require more work as it's just a + workaround. + + 20 Nov 2005; Diego Pettenò ChangeLog: + Installs default skel content in /etc/skel as usual on Gentoo, also disable + some content that's not Gentoo-style and might create problems to users. + + 02 Sep 2005; Diego Pettenò + freebsd-share-5.4-r1.ebuild: + Removed stray epatch lines that broke the ebuild. + + 25 Aug 2005; Diego Pettenò + +files/freebsd-share-5.3-colldef-makefile_links.patch, + +files/freebsd-share-5.3-doc-locations.patch, + +freebsd-share-5.4-r1.ebuild: + Moved to sys-freebsd. + + 15 Jul 2005; Diego Pettenò + freebsd-share-5.4-r1.ebuild: + Add nostrip restriction. + +*freebsd-share-5.4-r1 (15 Jul 2005) + + 15 Jul 2005; Diego Pettenò + -freebsd-share-5.4.ebuild, +freebsd-share-5.4-r1.ebuild: + Don't install make.conf.5 manpage (it's for ports), close #99129. Fix + missing SLOT. + +*freebsd-share-5.3.20050301 (23 Mar 2005) + + 23 Mar 2005; Otavio R. Piske + +files/freebsd-share-5.3-doc-locations.patch, + +freebsd-share-5.3.20050301.ebuild: + New ebuild for freebsd-share, with support for USE Flags. Thanks for Diego + Petterno (dgp85@users.sourceforge.net) for submitting the patch. + diff --git a/sys-freebsd/freebsd-share/Manifest b/sys-freebsd/freebsd-share/Manifest new file mode 100644 index 0000000..c03df19 --- /dev/null +++ b/sys-freebsd/freebsd-share/Manifest @@ -0,0 +1,15 @@ +AUX freebsd-share-5.3-doc-locations.patch 608 RMD160 62c5b4b8cfe410c41bab4b64e4c47828512a8595 SHA1 008a437fa805bea1666f642fc4c6ba9399c93a1c SHA256 d949e9081a181ab9443a18e56949905a77eff2cbd16d09d37b8abb5771cee3b6 +AUX freebsd-share-5.4-gentoo-skel.patch 621 RMD160 52351bb7b714bb458304d8547c7b113fce622d2e SHA1 4b924b94d653a4675914a7267e1a42178953b01a SHA256 5480127971c2a5df5faf44355d5ed6a8586923577d37e6cff10805626726c767 +AUX freebsd-share-7.0-locale.patch 528 RMD160 891839a29b1de32c45eb6691605a4ed25344dd9a SHA1 5603a83760e8efe665e300ba2cbe5bb8c18e22ca SHA256 9ca8a914f1e7d8ecb8093f22282f68723871c152f8e0eec815ae003937f72b09 +DIST freebsd-bin-7.0_pre200704.tar.bz2 407110 RMD160 7be1020156ef0e50ef72171b0ff1c2ae8a62cadf SHA1 4be9fb5d24368d09f64c01e0cec782046582a09b SHA256 f02e5a35a0ab24213e215c5ba016fe66c2c1bf003ba356a66d65e15caee936dd +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-gnu-7.0_pre200704.tar.bz2 806988 RMD160 25f9ad2e4a160bf481f749fde14031072e69d6ce SHA1 13780d7c3765d3848563444a7c32c977ea1631b4 SHA256 711663aa53a86411e7c65a2f93f991b13128b4828b11733eab47dd8083100abf +DIST freebsd-lib-7.0_pre200704.tar.bz2 2853461 RMD160 8384a200f7d61c5953ccd8299e2e40373ae970ed SHA1 33d80fef5909ef584646c4c5a2733576224c4cc6 SHA256 56b586b58b7b29ea748151cc8377a5bede8047dffdbb1b8d12888acdfd67e105 +DIST freebsd-sbin-7.0_pre200704.tar.bz2 1181704 RMD160 67eeec8fd5b7baec4090181b7c7cd15ed2dff17d SHA1 2c73a70e52a297195a5e0ec18ff6e7f8431038a7 SHA256 714d175ffb3691b518d486c8e0fb9a70db990f1338c39a595026524f999cc305 +DIST freebsd-share-7.0_pre200704.tar.bz2 3856556 RMD160 b7010932bf6c5df8d3b8f7ab5e1d69ca98d09251 SHA1 a4ffb1cac25a5ffc7ba6f90ba5fd198c03681a28 SHA256 b43e4e76497ce3b40ee810a7ce152a0d578745ee0ba5ac30f273cd75e55c0646 +DIST freebsd-ubin-7.0_pre200704.tar.bz2 1822151 RMD160 b47eac7cc9871ff927a5307e4ed95627f208b73b SHA1 9ea9fe9360821621288a6447890300b07af034ef SHA256 caef71398ce6d0f9d36fdbf88639692e921c76fb8c0581bb66452598a7912e10 +DIST freebsd-usbin-7.0_pre200704.tar.bz2 2622893 RMD160 66de2753ab0d1044b6c123fec26103560f5eabe2 SHA1 df76dd7604328da83b8b6e1a38b3ef58a3818af8 SHA256 1188d92fc11809efba8384f0ee96dd09efcee7dc968df7a1782b5a586fcc5bc8 +EBUILD freebsd-share-7.0_pre200704.ebuild 2352 RMD160 c8623f63dc10d31a7e07a5acc76cf82634ee87eb SHA1 fab31dc1acba4fc2e1d6ee84edbe0637859aa2fb SHA256 0a693762fd8321d2e7a7bac363c812da655344158a1029b549b9311b1e399782 +MISC ChangeLog 5923 RMD160 38a20ca29e8e5b867304b835094dc97e3aa77568 SHA1 c90212bd3b0077dd59477cf47633870cc871928f SHA256 f71a9e8d920d137a8bc34ba24f03afd8f24e39eba75f9782f3bfa02039a96853 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-share/files/freebsd-share-5.3-doc-locations.patch b/sys-freebsd/freebsd-share/files/freebsd-share-5.3-doc-locations.patch new file mode 100644 index 0000000..c0798d3 --- /dev/null +++ b/sys-freebsd/freebsd-share/files/freebsd-share-5.3-doc-locations.patch @@ -0,0 +1,20 @@ +--- examples/smbfs/Makefile.orig Tue Mar 22 15:20:20 2005 ++++ examples/smbfs/Makefile Tue Mar 22 15:20:46 2005 +@@ -2,6 +2,7 @@ + + NOOBJ= + BINDIR= /usr/share/examples/smbfs ++FILESDIR= ${DOCDIR}/smbfs + FILES= dot.nsmbrc + + .PATH: ${.CURDIR}/../../../contrib/smbfs/examples +--- examples/smbfs/print/Makefile.orig Tue Mar 22 15:22:17 2005 ++++ examples/smbfs/print/Makefile Tue Mar 22 15:22:35 2005 +@@ -2,6 +2,7 @@ + + NOOBJ= + BINDIR= /usr/share/examples/smbfs/print ++FILESDIR= ${DOCDIR}/smbfs/print + FILES= lj6l ljspool printcap.sample tolj + + .PATH: ${.CURDIR}/../../../../contrib/smbfs/examples/print diff --git a/sys-freebsd/freebsd-share/files/freebsd-share-5.4-gentoo-skel.patch b/sys-freebsd/freebsd-share/files/freebsd-share-5.4-gentoo-skel.patch new file mode 100644 index 0000000..f668d04 --- /dev/null +++ b/sys-freebsd/freebsd-share/files/freebsd-share-5.4-gentoo-skel.patch @@ -0,0 +1,20 @@ +Index: fbsd/share/skel/Makefile +=================================================================== +--- fbsd.orig/share/skel/Makefile ++++ fbsd/share/skel/Makefile +@@ -2,11 +2,11 @@ + # $FreeBSD: src/share/skel/Makefile,v 1.9.2.1 2005/02/13 07:23:30 obrien Exp $ + + FILESGROUPS= FILES1 FILES2 +-FILES1= dot.cshrc dot.login dot.login_conf dot.mailrc dot.profile \ ++FILES1= dot.login_conf dot.mailrc \ + dot.shrc +-FILES2= dot.mail_aliases dot.rhosts +-FILES1DIR= /usr/share/skel +-FILES2DIR= /usr/share/skel ++FILES2= dot.mail_aliases ++FILES1DIR= /etc/skel ++FILES2DIR= /etc/skel + FILES1MODE= 0644 + FILES2MODE= 0600 + NOOBJ= diff --git a/sys-freebsd/freebsd-share/files/freebsd-share-7.0-locale.patch b/sys-freebsd/freebsd-share/files/freebsd-share-7.0-locale.patch new file mode 100644 index 0000000..ad9c879 --- /dev/null +++ b/sys-freebsd/freebsd-share/files/freebsd-share-7.0-locale.patch @@ -0,0 +1,20 @@ +--- /var/tmp/portage/sys-freebsd/freebsd-share-7.0_pre200704/work/share/Makefile.orig 2007-04-21 13:35:34 +0000 ++++ /var/tmp/portage/sys-freebsd/freebsd-share-7.0_pre200704/work/share/Makefile 2007-04-21 13:36:15 +0000 +@@ -5,7 +5,8 @@ + + # Do not include `info' in the SUBDIR list, it is handled separately. + +-SUBDIR= ${_colldef} \ ++SUBDIR= ${_mklocale} \ ++ ${_colldef} \ + ${_dict} \ + ${_doc} \ + ${_examples} \ +@@ -14,7 +15,6 @@ + ${_me} \ + misc \ + mk \ +- ${_mklocale} \ + ${_monetdef} \ + ${_msgdef} \ + ${_numericdef} \ diff --git a/sys-freebsd/freebsd-share/freebsd-share-7.0_pre200704.ebuild b/sys-freebsd/freebsd-share/freebsd-share-7.0_pre200704.ebuild new file mode 100644 index 0000000..db3476c --- /dev/null +++ b/sys-freebsd/freebsd-share/freebsd-share-7.0_pre200704.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-share/freebsd-share-6.2.ebuild,v 1.2 2007/01/18 21:14:00 drizzt Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD shared tools/files" +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" + +IUSE="doc isdn" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${SHARE}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${CONTRIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${GNU}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${UBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${USBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${SBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${BIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${ETC}.tar.bz2" + +DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*" +RDEPEND="" + +RESTRICT="strip" + +S="${WORKDIR}/share" + +pkg_setup() { + use isdn || mymakeopts="${mymakeopts} NO_I4B= " + use doc || mymakeopts="${mymakeopts} NO_SHAREDOCS= " + + mymakeopts="${mymakeopts} NO_SENDMAIL= NO_MANCOMPRESS= NO_INFOCOMPRESS= NO_LOCALES=" +} + +REMOVE_SUBDIRS="mk termcap zoneinfo tabset" + +PATCHES="${FILESDIR}/${PN}-5.3-doc-locations.patch + ${FILESDIR}/${PN}-5.4-gentoo-skel.patch" +# ${FILESDIR}/${PN}-7.0-locale.patch" + +src_unpack() { + freebsd_src_unpack + + # Remove make.conf manpage as it describes bsdmk's make.conf. + sed -i -e 's:make.conf.5::' "${S}/man/man5/Makefile" + # Remove mailer.conf manpage + sed -i -e 's:mailer.conf.5::' "${S}/man/man5/Makefile" + # Remove pbm manpage + sed -i -e 's:pbm.5::' "${S}/man/man5/Makefile" + # Remove security manpage + sed -i -e 's:security.7::' "${S}/man/man7/Makefile" + # Remove builtins manpage + sed -i -e 's:builtin.1::' -e '8s:MLINKS:_MLINKS:' "${S}/man/man1/Makefile" + + # Don't install the arch-specific directories in subdirectories + sed -i -e '/MANSUBDIR/d' "${S}"/man/man4/man4.{i386,sparc64}/Makefile + + # Remove them so that they can't be included by error + rm -rf "${S}"/mk/*.mk +} + +src_compile() { + export ESED="/usr/bin/sed" + + # This is a groff problem and not a -shared problem. + export GROFF_TMAC_PATH="/usr/share/tmac/:/usr/share/groff/1.19.1/tmac/" + mkmake || die "emake failed" +} + +src_install() { + mkmake -j1 DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install || die "Install failed" + rm -rf "${D}"/usr/share/locale +} diff --git a/sys-freebsd/freebsd-share/metadata.xml b/sys-freebsd/freebsd-share/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-share/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-sources/ChangeLog b/sys-freebsd/freebsd-sources/ChangeLog new file mode 100644 index 0000000..6dad92c --- /dev/null +++ b/sys-freebsd/freebsd-sources/ChangeLog @@ -0,0 +1,273 @@ +# ChangeLog for sys-freebsd/freebsd-sources +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.35 2007/01/15 21:40:03 drizzt Exp $ + +*freebsd-sources-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-sources-6.2_rc2.ebuild, +freebsd-sources-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -files/freebsd-sources-6.1-gcc41.patch, -files/SA-06-16-smbfs.patch, + -files/freebsd-sources-6.1-devfs-deadlock.patch, + -files/freebsd-sources-6.1-intrcnt.patch, -freebsd-sources-6.1-r3.ebuild, + -freebsd-sources-6.1-r4.ebuild: + Remove 6.1 ebuild. + +*freebsd-sources-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-sources-6.2_beta3.ebuild, -freebsd-sources-6.2_rc1.ebuild, + +freebsd-sources-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + +*freebsd-sources-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-sources-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-sources-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-sources-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +files/freebsd-sources-6.2-gcc41.patch, +freebsd-sources-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 23 Oct 2006; Javier Villavicencio + freebsd-sources-6.2_beta2.ebuild: + Closing bug #151626. + + 21 Oct 2006; Diego Pettenò + files/digest-freebsd-sources-6.2_beta2, Manifest: + Fix digest. + + 19 Oct 2006; Javier Villavicencio + +files/freebsd-sources-6.1-ntfs.patch, freebsd-sources-6.1-r4.ebuild: + Fixes bug #151626, thanks to Simon Koenig for reporting and testing. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-sources-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + +files/freebsd-sources-6.2-sparc64.patch, + freebsd-sources-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + +*freebsd-sources-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-sources-6.2_beta2.ebuild: + Version 6.2_beta2. + + 21 Sep 2006; Diego Pettenò + freebsd-sources-6.2_beta1.ebuild: + This time is the right one. + + 21 Sep 2006; Diego Pettenò + freebsd-sources-6.2_beta1.ebuild: + Actually, apply again the devfs patch. + +*freebsd-sources-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-sources-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + +*freebsd-sources-6.1-r4 (04 Sep 2006) + + 04 Sep 2006; Diego Pettenò + +files/freebsd-sources-6.1-devfs-deadlock.patch, + +freebsd-sources-6.1-r4.ebuild: + Add patch from Alex for sandbox not to deadlock devfs, see bug #146284. + + 27 Jul 2006; Diego Pettenò + -files/SA-06-04-ipfw.patch, -files/SA-06-06-kmem60.patch, + -files/SA-06-11-ipsec.patch, -files/freebsd-sources-6.0-gentoover.patch, + -files/SA-06-05-80211.patch, -files/SA-06-07-pf.patch, + -files/SA-06-14-fpu.patch, -freebsd-sources-6.1-r1.ebuild, + -freebsd-sources-6.1-r2.ebuild: + Drop old versions and stray patches. + + 27 Jul 2006; Diego Pettenò + -freebsd-sources-6.0-r5.ebuild: + Remove 6.0 version. + +*freebsd-sources-6.1-r3 (08 Jul 2006) + + 08 Jul 2006; Javier Villavicencio + +files/freebsd-sources-6.1-intrcnt.patch, freebsd-sources-6.1-r1.ebuild, + freebsd-sources-6.1-r2.ebuild, +freebsd-sources-6.1-r3.ebuild: + New patch for a bug noticed with new binutils, fixes bug #139431. Also fixes + symlink creation. + +*freebsd-sources-6.1-r2 (12 Jun 2006) + + 12 Jun 2006; Diego Pettenò + files/freebsd-sources-6.1-gcc41.patch, freebsd-sources-6.1-r1.ebuild, + +freebsd-sources-6.1-r2.ebuild: + Add new patch for GCC 4.1 from Javier. + +*freebsd-sources-6.1-r1 (01 Jun 2006) +*freebsd-sources-6.0-r5 (01 Jun 2006) + + 01 Jun 2006; Diego Pettenò + +files/SA-06-16-smbfs.patch, -freebsd-sources-6.0-r4.ebuild, + +freebsd-sources-6.0-r5.ebuild, -freebsd-sources-6.1.ebuild, + +freebsd-sources-6.1-r1.ebuild: + Revision bumps to fix security issue SA-06:16. + + 31 May 2006; Diego Pettenò + +files/freebsd-sources-6.1-gcc41.patch, freebsd-sources-6.1.ebuild: + Add patch to fix bug #134870 (building with GCC 4.1. + + 24 May 2006; Diego Pettenò + freebsd-sources-6.1.ebuild: + Add binchecks restrict for newer portage, and fix quoting. + +*freebsd-sources-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-sources-6.1_rc2.ebuild, +freebsd-sources-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-sources-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-sources-6.1_rc1.ebuild, +freebsd-sources-6.1_rc2.ebuild: + Update to 6.1_rc2. + + 01 May 2006; Diego Pettenò + freebsd-sources-6.0-r4.ebuild, freebsd-sources-6.1_rc1.ebuild: + Disable SSP for kernel, of course. + +*freebsd-sources-6.1_rc1 (30 Apr 2006) + + 30 Apr 2006; Diego Pettenò + +freebsd-sources-6.1_rc1.ebuild: + Update to 6.1, replace gentoover patch with a simple script. + +*freebsd-sources-6.0-r4 (19 Apr 2006) + + 19 Apr 2006; Diego Pettenò + +files/SA-06-14-fpu.patch, -freebsd-sources-6.0-r3.ebuild, + +freebsd-sources-6.0-r4.ebuild: + Bump with patch for SA-06:14 patch. + +*freebsd-sources-6.0-r3 (12 Apr 2006) + + 12 Apr 2006; Diego Pettenò + +files/freebsd-sources-6.0-werror.patch, + files/freebsd-sources-gentoo.patch, -freebsd-sources-6.0-r2.ebuild, + +freebsd-sources-6.0-r3.ebuild: + Add patch to drop -Werror and depend on a fixed version of freebsd-mk-defs + so that a simple 'make' works. + + 04 Apr 2006; Diego Pettenò + +files/freebsd-sources-6.0-asm.patch, freebsd-sources-6.0-r2.ebuild: + Add patch to fix building with binutils 2.16.91.0.x. + +*freebsd-sources-6.0-r2 (03 Apr 2006) + + 03 Apr 2006; Diego Pettenò + +files/SA-06-11-ipsec.patch, +files/freebsd-sources-gentoo.patch, + -freebsd-sources-6.0-r1.ebuild, +freebsd-sources-6.0-r2.ebuild: + Version bump adding patch for SA-06:11. + + 02 Apr 2006; Diego Pettenò + -files/SA-05-09-htt5.patch, -files/SA-05-13-ipfw.patch, + -files/SA-05-15-tcp.patch, -files/SA-05-17-devfs.patch, + -files/SA-05-19-ipsec.patch, -files/freebsd-sources-gentoo.patch: + Drop obsolete files. + +*freebsd-sources-6.0-r1 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/SA-05-09-htt5.patch, +files/SA-05-13-ipfw.patch, + +files/SA-05-15-tcp.patch, +files/SA-05-17-devfs.patch, + +files/SA-05-19-ipsec.patch, +files/SA-06-05-80211.patch, + +files/freebsd-sources-6.0-gentoover.patch, +files/SA-06-04-ipfw.patch, + +files/SA-06-06-kmem60.patch, +files/SA-06-07-pf.patch, + +files/freebsd-sources-6.0-flex-2.5.31.patch, + +files/freebsd-sources-gentoo.patch, +metadata.xml, + +freebsd-sources-6.0-r1.ebuild: + Import into portage. + + 23 Feb 2006; Diego Pettenò ChangeLog: + Apply all the security patches missing. + + 23 Feb 2006; Diego Pettenò ChangeLog: + Make sure that we don't end up having sys-${RV} being a directory. + + 21 Feb 2006; Diego Pettenò ChangeLog: + ADd patch to build kernel with newer flex. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Do the ${RV} symlink only if the ${PVR} is different. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Make sure a sys-${RV} symlink is present, so that we can have a sys + directory for the different releases (useful while building stuff. + +*freebsd-sources-5.4-r4 (25 Aug 2005) + + 25 Aug 2005; Diego Pettenò + +files/SA-05-09-htt5.patch, +files/SA-05-13-ipfw.patch, + +files/SA-05-15-tcp.patch, +files/SA-05-17-devfs.patch, + +files/SA-05-19-ipsec.patch, +files/freebsd-sources-gentoo.patch, + +freebsd-sources-5.4-r4.ebuild: + Moved to sys-freebsd. + +*freebsd-sources-5.4-r3 (21 Jul 2005) + + 21 Jul 2005; Diego Pettenò + +files/SA-05-17-devfs.patch, files/freebsd-sources-gentoo.patch, + -files/freebsd-sources-gentoo-gcc.patch, -freebsd-sources-5.4-r2.ebuild, + +freebsd-sources-5.4-r3.ebuild: + Update to patch for FreeBSD-SA-05:17.devfs and added branding. + + 15 Jul 2005; Diego Pettenò + freebsd-sources-5.4-r2.ebuild: + Added symlink useflag, fixed symlink creation for -rX ebuilds. Added nostrip + restriction (it's a sources ebuild). + +*freebsd-sources-5.4-r2 (30 Jun 2005) +*freebsd-sources-5.3-r2 (30 Jun 2005) + + 30 Jun 2005; Diego Pettenò + +files/SA-05-13-ipfw.patch, +files/SA-05-15-tcp.patch, + +freebsd-sources-5.3-r2.ebuild, +freebsd-sources-5.4-r2.ebuild: + Added patches for Security Advisories 05:13-ipfw and 05:15-tcp. + + 13 May 2005; Diego Pettenò + +files/freebsd-sources-gentoo.patch, freebsd-sources-5.3-r1.ebuild, + freebsd-sources-5.4-r1.ebuild: + Slotted, now installing in /usr/src/sys-${PVR} similarly to linux. + +*freebsd-sources-5.4-r1 (13 May 2005) +*freebsd-sources-5.3-r1 (13 May 2005) + + 13 May 2005; Diego Pettenò + +files/SA-05-09-htt5.patch, -files/ich-sound.patch, + -freebsd-sources-5.3.ebuild, +freebsd-sources-5.3-r1.ebuild, + -freebsd-sources-5.4.ebuild, +freebsd-sources-5.4-r1.ebuild: + Added security patch for advisory FreeBSD-SA-05:09.htt. + +*freebsd-sources-5.4_rc4 (05 May 2005) + + 05 May 2005; Diego Pettenò + +freebsd-sources-5.4_rc4.ebuild: + Added 5.4_rc4. + + 15 Sep 2004; Otavio Piske freebsd-sources-5.2.1.ebuild: + Initial release + +*freebsd-sources-5.2.1.ebuild (15 Sep 2004) diff --git a/sys-freebsd/freebsd-sources/Manifest b/sys-freebsd/freebsd-sources/Manifest new file mode 100644 index 0000000..f26cea7 --- /dev/null +++ b/sys-freebsd/freebsd-sources/Manifest @@ -0,0 +1,11 @@ +AUX freebsd-sources-6.0-asm.patch 4172 RMD160 7872cbedbbe9fbead0d69f26674489b335317606 SHA1 350d5453ec523a6835ff7ad36bcff7f3bc7dce3f SHA256 2431b2dae991eef15c00c3e19ac01e23e374a1e8e6992053e64486032631b52e +AUX freebsd-sources-6.0-flex-2.5.31.patch 826 RMD160 a93341cfba5ddbd8df777273591ce21164f3ed41 SHA1 9f991b64b237a397e7aa0bad79a9a28c0de69339 SHA256 8aaf240a344106fc5434fd098eb6555a554d16513b71c95f93a93388021c3d99 +AUX freebsd-sources-6.0-werror.patch 898 RMD160 41a6f582a70018f29c96c08a5853bcbf167157d0 SHA1 70145f3a065987daf2ceedb0e696ebbef669eecd SHA256 7fbd139296e98697c94dcc6a4cd4d926b057779cb2415cb62bbb881b8acf26e5 +AUX freebsd-sources-6.1-ntfs.patch 1043 RMD160 0389ef971934db5b239d81ec016d94a21398c226 SHA1 03d8c702bbd6bd79f7b3cbe64f720487b87fa442 SHA256 2eb0e22bea267d7ac41c3dec81682d3cc1f1744316ea39342e2aaae1f2dca469 +AUX freebsd-sources-6.2-gcc41.patch 16887 RMD160 8ca5a1a76db802ca3e833ad15796bdf337002cb1 SHA1 5d4cec24352e20200028a98700008e8388999b3e SHA256 b28f57d0c73cf31bcac6c8424b0bc9fb24b5652f11a3e85d8a4a40b376976fab +AUX freebsd-sources-6.2-sparc64.patch 18794 RMD160 7e529e32924c872ea033f03c781a86031fe8d13b SHA1 ef21dc71571d547c01f5ce8f43a33e9e4d00a519 SHA256 a1b5803f3366d3466ba3c07f510e0b8c72e17b515a1dc82f696e5a10bec7a60c +AUX freebsd-sources-gentoo.patch 1191 RMD160 1c8ce1849d767a995f075fe43b7313b341bd0805 SHA1 abe5d4ff186d1b9b6ad6d7af6be359563e81183b SHA256 e5e7186858259e7d6d21e925dde640a68b27255cf69ab089ee82675568e7d9a7 +DIST freebsd-sys-7.0_pre200704.tar.bz2 20940473 RMD160 eee64418bd658056fa61d8f3344c2d95f21acd81 SHA1 2f8c7aa5636a2961e603b454b930b51585e6c98f SHA256 49fc2d930f2c01425610811a2e8c143131ce63c112b8f4a26574da7bf7ffdeba +EBUILD freebsd-sources-7.0_pre200704.ebuild 3281 RMD160 72b917add27a09b9a7cea5cc941006754653daa9 SHA1 c55a487fd712528bd1a70a54eb22bc97301e2bbf SHA256 dba736d4aa5c85bdaae9af02289f285cfa99a63669fa6a8ed273783d3f1c9f13 +MISC ChangeLog 10094 RMD160 57b7f70bee9e42b884563b3678c7e8f1b1b3944a SHA1 6467baafb2e35d2d0c4da5c2e0885419f31239bf SHA256 cf3c03f8ede30823cf0f3d6e619ab056c61d58c12b513aa127a1eaa101d1ff18 +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-asm.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-asm.patch new file mode 100644 index 0000000..46181bf --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-asm.patch @@ -0,0 +1,143 @@ +Index: fbsd-6/sys/i386/i386/locore.s +=================================================================== +--- fbsd-6.orig/sys/i386/i386/locore.s ++++ fbsd-6/sys/i386/i386/locore.s +@@ -358,7 +358,7 @@ NON_GPROF_ENTRY(sigcode) + pushl %eax + testl $PSL_VM,UC_EFLAGS(%eax) + jne 1f +- movl UC_GS(%eax),%gs /* restore %gs */ ++ movw UC_GS(%eax),%gs /* restore %gs */ + 1: + movl $SYS_sigreturn,%eax + pushl %eax /* junk to fake return addr. */ +@@ -375,7 +375,7 @@ freebsd4_sigcode: + pushl %eax + testl $PSL_VM,UC4_EFLAGS(%eax) + jne 1f +- movl UC4_GS(%eax),%gs /* restore %gs */ ++ movw UC4_GS(%eax),%gs /* restore %gs */ + 1: + movl $344,%eax /* 4.x SYS_sigreturn */ + pushl %eax /* junk to fake return addr. */ +@@ -393,7 +393,7 @@ osigcode: + pushl %eax + testl $PSL_VM,SC_PS(%eax) + jne 9f +- movl SC_GS(%eax),%gs /* restore %gs */ ++ movw SC_GS(%eax),%gs /* restore %gs */ + 9: + movl $103,%eax /* 3.x SYS_sigreturn */ + pushl %eax /* junk to fake return addr. */ +Index: fbsd-6/sys/i386/include/cpufunc.h +=================================================================== +--- fbsd-6.orig/sys/i386/include/cpufunc.h ++++ fbsd-6/sys/i386/include/cpufunc.h +@@ -452,7 +452,7 @@ static __inline u_int + rfs(void) + { + u_int sel; +- __asm __volatile("movl %%fs,%0" : "=rm" (sel)); ++ __asm __volatile("movw %%fs,%0" : "=rm" (sel)); + return (sel); + } + +@@ -460,7 +460,7 @@ static __inline u_int + rgs(void) + { + u_int sel; +- __asm __volatile("movl %%gs,%0" : "=rm" (sel)); ++ __asm __volatile("movw %%gs,%0" : "=rm" (sel)); + return (sel); + } + +@@ -468,20 +468,20 @@ static __inline u_int + rss(void) + { + u_int sel; +- __asm __volatile("movl %%ss,%0" : "=rm" (sel)); ++ __asm __volatile("movw %%ss,%0" : "=rm" (sel)); + return (sel); + } + + static __inline void + load_fs(u_int sel) + { +- __asm __volatile("movl %0,%%fs" : : "rm" (sel)); ++ __asm __volatile("movw %0,%%fs" : : "rm" (sel)); + } + + static __inline void + load_gs(u_int sel) + { +- __asm __volatile("movl %0,%%gs" : : "rm" (sel)); ++ __asm __volatile("movw %0,%%gs" : : "rm" (sel)); + } + + static __inline void +Index: fbsd-6/sys/i386/i386/swtch.s +=================================================================== +--- fbsd-6.orig/sys/i386/i386/swtch.s ++++ fbsd-6/sys/i386/i386/swtch.s +@@ -111,7 +111,7 @@ ENTRY(cpu_switch) + movl %ebp,PCB_EBP(%edx) + movl %esi,PCB_ESI(%edx) + movl %edi,PCB_EDI(%edx) +- movl %gs,PCB_GS(%edx) ++ movw %gs,PCB_GS(%edx) + pushfl /* PSL */ + popl PCB_PSL(%edx) + /* Check to see if we need to call a switchout function. */ +@@ -279,7 +279,7 @@ sw1: + /* This must be done after loading the user LDT. */ + .globl cpu_switch_load_gs + cpu_switch_load_gs: +- movl PCB_GS(%edx),%gs ++ movw PCB_GS(%edx),%gs + + /* Test if debug registers should be restored. */ + testl $PCB_DBREGS,PCB_FLAGS(%edx) +@@ -348,7 +348,7 @@ ENTRY(savectx) + movl %ebp,PCB_EBP(%ecx) + movl %esi,PCB_ESI(%ecx) + movl %edi,PCB_EDI(%ecx) +- movl %gs,PCB_GS(%ecx) ++ movw %gs,PCB_GS(%ecx) + pushfl + popl PCB_PSL(%ecx) + +Index: fbsd-6/sys/compat/ndis/winx32_wrap.S +=================================================================== +--- fbsd-6.orig/sys/compat/ndis/winx32_wrap.S ++++ fbsd-6/sys/compat/ndis/winx32_wrap.S +@@ -364,7 +364,7 @@ ENTRY(x86_getfs) + ret + + ENTRY(x86_setfs) +- movl 4(%esp),%fs ++ movw 4(%esp),%fs + ret + + ENTRY(x86_gettid) +Index: fbsd-6/sys/i386/linux/linux_locore.s +=================================================================== +--- fbsd-6.orig/sys/i386/linux/linux_locore.s ++++ fbsd-6/sys/i386/linux/linux_locore.s +@@ -8,7 +8,7 @@ + NON_GPROF_ENTRY(linux_sigcode) + call *LINUX_SIGF_HANDLER(%esp) + leal LINUX_SIGF_SC(%esp),%ebx /* linux scp */ +- movl LINUX_SC_GS(%ebx),%gs ++ movw LINUX_SC_GS(%ebx),%gs + movl %esp, %ebx /* pass sigframe */ + push %eax /* fake ret addr */ + movl $LINUX_SYS_linux_sigreturn,%eax /* linux_sigreturn() */ +@@ -19,7 +19,7 @@ NON_GPROF_ENTRY(linux_sigcode) + linux_rt_sigcode: + call *LINUX_RT_SIGF_HANDLER(%esp) + leal LINUX_RT_SIGF_UC(%esp),%ebx /* linux ucp */ +- movl LINUX_SC_GS(%ebx),%gs ++ movw LINUX_SC_GS(%ebx),%gs + push %eax /* fake ret addr */ + movl $LINUX_SYS_linux_rt_sigreturn,%eax /* linux_rt_sigreturn() */ + int $0x80 /* enter kernel with args */ diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-flex-2.5.31.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-flex-2.5.31.patch new file mode 100644 index 0000000..88710cf --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-flex-2.5.31.patch @@ -0,0 +1,22 @@ +Index: fbsd-6/sys/dev/aic7xxx/aicasm/aicasm_scan.l +=================================================================== +--- fbsd-6.orig/sys/dev/aic7xxx/aicasm/aicasm_scan.l ++++ fbsd-6/sys/dev/aic7xxx/aicasm/aicasm_scan.l +@@ -528,7 +528,7 @@ expand_macro(struct symbol *macro_symbol + + /* Put back everything up until the replacement. */ + while (body_pos > next_match) +- unput(*--body_pos); ++ yyunput(*--body_pos, body_head); + + /* Perform the replacement. */ + if (match_marg != NULL) { +@@ -537,7 +537,7 @@ expand_macro(struct symbol *macro_symbol + next_match = match_marg->replacement_text; + strp = next_match + strlen(next_match); + while (strp > next_match) +- unput(*--strp); ++ yyunput(*--strp, next_match); + + /* Skip past the unexpanded macro arg. */ + body_pos -= match.rm_eo - match.rm_so; diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-werror.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-werror.patch new file mode 100644 index 0000000..0a57905 --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.0-werror.patch @@ -0,0 +1,26 @@ +Index: fbsd-6/sys/conf/kern.pre.mk +=================================================================== +--- fbsd-6.orig/sys/conf/kern.pre.mk ++++ fbsd-6/sys/conf/kern.pre.mk +@@ -76,7 +76,7 @@ CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KE + CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} + CFLAGS+= --param inline-unit-growth=100 + CFLAGS+= --param large-function-growth=1000 +-WERROR?= -Werror ++WERROR?= -Wno-error + .endif + + # XXX LOCORE means "don't declare C stuff" not "for locore.s". +Index: fbsd-6/sys/conf/kmod.mk +=================================================================== +--- fbsd-6.orig/sys/conf/kmod.mk ++++ fbsd-6/sys/conf/kmod.mk +@@ -73,7 +73,7 @@ CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+| + . if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) + CFLAGS+= -fno-strict-aliasing + . endif +-WERROR?= -Werror ++WERROR?= -Wno-error + .endif + CFLAGS+= ${WERROR} + CFLAGS+= -D_KERNEL diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-6.1-ntfs.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.1-ntfs.patch new file mode 100644 index 0000000..e74fcd3 --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.1-ntfs.patch @@ -0,0 +1,32 @@ +--- sys/fs/ntfs/ntfs_vnops.c.orig 2006-10-17 17:31:36 -0300 ++++ sys/fs/ntfs/ntfs_vnops.c 2006-10-17 17:30:24 -0300 +@@ -507,8 +507,12 @@ + + /* Simulate . in every dir except ROOT */ + if( ip->i_number != NTFS_ROOTINO ) { +- struct dirent dot = { NTFS_ROOTINO, +- sizeof(struct dirent), DT_DIR, 1, "." }; ++ struct dirent dot; ++ dot.d_fileno = NTFS_ROOTINO; ++ dot.d_reclen = sizeof(struct dirent); ++ dot.d_type = DT_DIR; ++ dot.d_namlen = 1; ++ bcopy(".", dot.d_name, 1); + + if( uio->uio_offset < sizeof(struct dirent) ) { + dot.d_fileno = ip->i_number; +@@ -522,8 +526,12 @@ + + /* Simulate .. in every dir including ROOT */ + if( uio->uio_offset < 2 * sizeof(struct dirent) ) { +- struct dirent dotdot = { NTFS_ROOTINO, +- sizeof(struct dirent), DT_DIR, 2, ".." }; ++ struct dirent dotdot; ++ dotdot.d_fileno = NTFS_ROOTINO; ++ dotdot.d_reclen = sizeof(struct dirent); ++ dotdot.d_type = DT_DIR; ++ dotdot.d_namlen = 2; ++ bcopy("..", dotdot.d_name, 2); + + error = uiomove((char *)&dotdot,sizeof(struct dirent),uio); + if(error) diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-gcc41.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-gcc41.patch new file mode 100644 index 0000000..b6dd2cb --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-gcc41.patch @@ -0,0 +1,526 @@ +Index: sys/conf/kern.pre.mk +=================================================================== +--- sys/conf/kern.pre.mk.orig ++++ sys/conf/kern.pre.mk +@@ -46,7 +46,7 @@ NOSTDINC= -X + NOSTDINC= -nostdinc + .endif + +-INCLUDES= ${NOSTDINC} -I- ${INCLMAGIC} -I. -I$S ++INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S + + # This hack lets us use the OpenBSD altq code without spamming a new + # include path into contrib'ed source files. +Index: sys/conf/kmod.mk +=================================================================== +--- sys/conf/kmod.mk.orig ++++ sys/conf/kmod.mk +@@ -87,7 +87,7 @@ NOSTDINC= -X + .else + NOSTDINC= -nostdinc + .endif +-CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} -I- ${INCLMAGIC} ${CFLAGS:M-I*} ++CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*} + .if defined(KERNBUILDDIR) + CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h + .endif +Index: sys/ddb/db_command.c +=================================================================== +--- sys/ddb/db_command.c.orig ++++ sys/ddb/db_command.c +@@ -75,7 +75,7 @@ static db_cmdfcn_t db_stack_trace_all; + static db_cmdfcn_t db_watchdog; + + /* XXX this is actually forward-static. */ +-extern struct command db_show_cmds[]; ++static struct command db_show_cmds[]; + + /* + * if 'ed' style: 'dot' is set at start of last item printed, +Index: sys/dev/cp/if_cp.c +=================================================================== +--- sys/dev/cp/if_cp.c.orig ++++ sys/dev/cp/if_cp.c +@@ -338,7 +338,7 @@ static void cp_intr (void *arg) + #endif + } + +-extern struct cdevsw cp_cdevsw; ++static struct cdevsw cp_cdevsw; + + static void + cp_bus_dmamap_addr (void *arg, bus_dma_segment_t *segs, int nseg, int error) +Index: sys/dev/ctau/if_ct.c +=================================================================== +--- sys/dev/ctau/if_ct.c.orig ++++ sys/dev/ctau/if_ct.c +@@ -486,7 +486,7 @@ static int ct_probe (device_t dev) + return 0; + } + +-extern struct cdevsw ct_cdevsw; ++static struct cdevsw ct_cdevsw; + + static void + ct_bus_dmamap_addr (void *arg, bus_dma_segment_t *segs, int nseg, int error) +Index: sys/dev/cx/if_cx.c +=================================================================== +--- sys/dev/cx/if_cx.c.orig ++++ sys/dev/cx/if_cx.c +@@ -229,7 +229,7 @@ static cx_board_t *adapter [NCX]; + static drv_t *channel [NCX*NCHAN]; + static struct callout led_timo [NCX]; + static struct callout timeout_handle; +-extern struct cdevsw cx_cdevsw; ++static struct cdevsw cx_cdevsw; + + static int MY_SOFT_INTR; + +Index: sys/dev/fb/vga.c +=================================================================== +--- sys/dev/fb/vga.c.orig ++++ sys/dev/fb/vga.c +@@ -206,7 +206,7 @@ typedef struct adp_state adp_state_t; + * with a physical address in the following table, as verify_adapter() + * will perform address conversion at run-time. + */ +-static video_adapter_t adapter_init_value[] = { ++video_adapter_t adapter_init_value[] = { + /* DCC_MONO */ + { 0, KD_MONO, "mda", 0, 0, 0, IO_MDA, IO_MDASIZE, MONO_CRTC, + MDA_BUF_BASE, MDA_BUF_SIZE, MDA_BUF_BASE, MDA_BUF_SIZE, MDA_BUF_SIZE, +@@ -748,10 +748,7 @@ static u_char + } + + #ifndef VGA_NO_BIOS +-static void +-fill_adapter_param(int code, video_adapter_t *adp) +-{ +- static struct { ++ struct { + int primary; + int secondary; + } dcc[] = { +@@ -768,7 +765,9 @@ fill_adapter_param(int code, video_adapt + { DCC_EGAMONO, DCC_CGA40 }, + { DCC_EGAMONO, DCC_CGA80 }, + }; +- ++static void ++fill_adapter_param(int code, video_adapter_t *adp) ++{ + if ((code < 0) || (code >= sizeof(dcc)/sizeof(dcc[0]))) { + adp[V_ADP_PRIMARY] = adapter_init_value[DCC_MONO]; + adp[V_ADP_SECONDARY] = adapter_init_value[DCC_CGA80]; +Index: sys/dev/iicbus/iicbus.c +=================================================================== +--- sys/dev/iicbus/iicbus.c.orig ++++ sys/dev/iicbus/iicbus.c +@@ -45,7 +45,7 @@ __FBSDID("$FreeBSD: src/sys/dev/iicbus/i + + #define DEVTOIICBUS(dev) ((struct iicbus_device*)device_get_ivars(dev)) + +-static devclass_t iicbus_devclass; ++static devclass_t iicbus_dev_class; + + /* See comments below for why auto-scanning is a bad idea. */ + #define SCAN_IICBUS 0 +@@ -187,8 +187,8 @@ iicbus_null_repeated_start(device_t dev, + return (IIC_ENOTSUPP); + } + +-DRIVER_MODULE(iicbus, pcf, iicbus_driver, iicbus_devclass, 0, 0); +-DRIVER_MODULE(iicbus, envctrl, iicbus_driver, iicbus_devclass, 0, 0); +-DRIVER_MODULE(iicbus, iicbb, iicbus_driver, iicbus_devclass, 0, 0); +-DRIVER_MODULE(iicbus, bti2c, iicbus_driver, iicbus_devclass, 0, 0); ++DRIVER_MODULE(iicbus, pcf, iicbus_driver, iicbus_dev_class, 0, 0); ++DRIVER_MODULE(iicbus, envctrl, iicbus_driver, iicbus_dev_class, 0, 0); ++DRIVER_MODULE(iicbus, iicbb, iicbus_driver, iicbus_dev_class, 0, 0); ++DRIVER_MODULE(iicbus, bti2c, iicbus_driver, iicbus_dev_class, 0, 0); + MODULE_VERSION(iicbus, IICBUS_MODVER); +Index: sys/dev/ppbus/ppb_msq.c +=================================================================== +--- sys/dev/ppbus/ppb_msq.c.orig ++++ sys/dev/ppbus/ppb_msq.c +@@ -153,31 +153,32 @@ ppb_MS_exec(device_t bus, device_t dev, + * Execute a microseq loop + * + */ ++struct ppb_microseq loop_microseq_1[] = { ++ MS_CALL(0), /* execute prolog */ ++ ++ MS_SET(MS_UNKNOWN), /* set size of transfer */ ++ /* loop: */ ++ MS_CALL(0), /* execute body */ ++ MS_DBRA(-1 /* loop: */), ++ ++ MS_CALL(0), /* execute epilog */ ++ MS_RET(0) ++}; ++ + int + ppb_MS_loop(device_t bus, device_t dev, struct ppb_microseq *prolog, + struct ppb_microseq *body, struct ppb_microseq *epilog, + int iter, int *ret) + { +- struct ppb_microseq loop_microseq[] = { +- MS_CALL(0), /* execute prolog */ +- +- MS_SET(MS_UNKNOWN), /* set size of transfer */ +- /* loop: */ +- MS_CALL(0), /* execute body */ +- MS_DBRA(-1 /* loop: */), +- +- MS_CALL(0), /* execute epilog */ +- MS_RET(0) +- }; + + /* initialize the structure */ +- loop_microseq[0].arg[0].p = (void *)prolog; +- loop_microseq[1].arg[0].i = iter; +- loop_microseq[2].arg[0].p = (void *)body; +- loop_microseq[4].arg[0].p = (void *)epilog; ++ loop_microseq_1[0].arg[0].p = (void *)prolog; ++ loop_microseq_1[1].arg[0].i = iter; ++ loop_microseq_1[2].arg[0].p = (void *)body; ++ loop_microseq_1[4].arg[0].p = (void *)epilog; + + /* execute the loop */ +- return (ppb_MS_microseq(bus, dev, loop_microseq, ret)); ++ return (ppb_MS_microseq(bus, dev, loop_microseq_1, ret)); + } + + /* +Index: sys/fs/fdescfs/fdesc_vnops.c +=================================================================== +--- sys/fs/fdescfs/fdesc_vnops.c.orig ++++ sys/fs/fdescfs/fdesc_vnops.c +@@ -74,7 +74,7 @@ static vop_readdir_t fdesc_readdir; + static vop_reclaim_t fdesc_reclaim; + static vop_setattr_t fdesc_setattr; + +-extern struct vop_vector fdesc_vnodeops; ++static struct vop_vector fdesc_vnodeops; + + /* + * Initialise cache headers +Index: sys/fs/ntfs/ntfs_vfsops.c +=================================================================== +--- sys/fs/ntfs/ntfs_vfsops.c.orig ++++ sys/fs/ntfs/ntfs_vfsops.c +@@ -60,7 +60,7 @@ + #include + #include + +-static MALLOC_DEFINE(M_NTFSMNT, "NTFS mount", "NTFS mount structure"); ++static MALLOC_DEFINE(M_NTFS_MNT, "NTFS mount", "NTFS mount structure"); + MALLOC_DEFINE(M_NTFSNTNODE,"NTFS ntnode", "NTFS ntnode information"); + MALLOC_DEFINE(M_NTFSFNODE,"NTFS fnode", "NTFS fnode information"); + MALLOC_DEFINE(M_NTFSDIR,"NTFS dir", "NTFS dir buffer"); +@@ -279,7 +279,7 @@ ntfs_mountfs(devvp, mp, td) + error = bread(devvp, BBLOCK, BBSIZE, NOCRED, &bp); + if (error) + goto out; +- ntmp = malloc( sizeof *ntmp, M_NTFSMNT, M_WAITOK | M_ZERO); ++ ntmp = malloc( sizeof *ntmp, M_NTFS_MNT, M_WAITOK | M_ZERO); + bcopy( bp->b_data, &ntmp->ntm_bootfile, sizeof(struct bootfile) ); + /* + * We must not cache the boot block if its size is not exactly +@@ -404,7 +404,7 @@ ntfs_mountfs(devvp, mp, td) + /* Alloc memory for attribute definitions */ + MALLOC(ntmp->ntm_ad, struct ntvattrdef *, + num * sizeof(struct ntvattrdef), +- M_NTFSMNT, M_WAITOK); ++ M_NTFS_MNT, M_WAITOK); + + ntmp->ntm_adnum = num; + +@@ -512,8 +512,8 @@ ntfs_unmount( + MNT_ILOCK(mp); + mp->mnt_flag &= ~MNT_LOCAL; + MNT_IUNLOCK(mp); +- FREE(ntmp->ntm_ad, M_NTFSMNT); +- FREE(ntmp, M_NTFSMNT); ++ FREE(ntmp->ntm_ad, M_NTFS_MNT); ++ FREE(ntmp, M_NTFS_MNT); + return (error); + } + +Index: sys/fs/unionfs/union_vfsops.c +=================================================================== +--- sys/fs/unionfs/union_vfsops.c.orig ++++ sys/fs/unionfs/union_vfsops.c +@@ -473,7 +473,7 @@ union_statfs(mp, sbp, td) + return (0); + } + +-static struct vfsops union_vfsops = { ++static struct vfsops union_vfs_ops = { + .vfs_init = union_init, + .vfs_mount = union_mount, + .vfs_root = union_root, +@@ -481,4 +481,4 @@ static struct vfsops union_vfsops = { + .vfs_unmount = union_unmount, + }; + +-VFS_SET(union_vfsops, unionfs, VFCF_LOOPBACK); ++VFS_SET(union_vfs_ops, unionfs, VFCF_LOOPBACK); +Index: sys/i386/i386/vm86.c +=================================================================== +--- sys/i386/i386/vm86.c.orig ++++ sys/i386/i386/vm86.c +@@ -505,7 +505,7 @@ full: + panic("vm86_addpage: not enough room"); + } + +-static void ++void + vm86_initflags(struct vm86frame *vmf) + { + int eflags = vmf->vmf_eflags; +Index: sys/i386/include/segments.h +=================================================================== +--- sys/i386/include/segments.h.orig ++++ sys/i386/include/segments.h +@@ -244,7 +244,7 @@ extern union descriptor gdt[]; + extern struct soft_segment_descriptor gdt_segs[]; + extern struct gate_descriptor *idt; + extern union descriptor ldt[NLDT]; +-extern struct region_descriptor r_gdt, r_idt; ++//extern struct region_descriptor r_gdt, r_idt; + + void lgdt(struct region_descriptor *rdp); + void sdtossd(struct segment_descriptor *sdp, +Index: sys/kern/kern_tc.c +=================================================================== +--- sys/kern/kern_tc.c.orig ++++ sys/kern/kern_tc.c +@@ -61,7 +61,7 @@ struct timehands { + struct timehands *th_next; + }; + +-extern struct timehands th0; ++static struct timehands th0; + static struct timehands th9 = { NULL, 0, 0, 0, {0, 0}, {0, 0}, {0, 0}, 0, &th0}; + static struct timehands th8 = { NULL, 0, 0, 0, {0, 0}, {0, 0}, {0, 0}, 0, &th9}; + static struct timehands th7 = { NULL, 0, 0, 0, {0, 0}, {0, 0}, {0, 0}, 0, &th8}; +Index: sys/net/rtsock.c +=================================================================== +--- sys/net/rtsock.c.orig ++++ sys/net/rtsock.c +@@ -1243,7 +1243,7 @@ SYSCTL_NODE(_net, PF_ROUTE, routetable, + * Definitions of protocols supported in the ROUTE domain. + */ + +-extern struct domain routedomain; /* or at least forward */ ++static struct domain routedomain; /* or at least forward */ + + static struct protosw routesw[] = { + { +Index: sys/net/zlib.c +=================================================================== +--- sys/net/zlib.c.orig ++++ sys/net/zlib.c +@@ -94,7 +94,7 @@ typedef unsigned short ush; + typedef ush FAR ushf; + typedef unsigned long ulg; + +-extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */ ++static const char *z_errmsg[10]; /* indexed by 2-zlib_error */ + /* (size given to avoid silly warnings with Visual C++) */ + + #define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)] +Index: sys/netinet6/in6_proto.c +=================================================================== +--- sys/netinet6/in6_proto.c.orig ++++ sys/netinet6/in6_proto.c +@@ -145,7 +145,7 @@ + */ + + extern struct domain inet6domain; +-static struct pr_usrreqs nousrreqs; ++static struct pr_usrreqs nousr_reqs; + + #define PR_LISTEN 0 + #define PR_ABRTACPTDIS 0 +@@ -158,7 +158,7 @@ struct ip6protosw inet6sw[] = { + .pr_init = ip6_init, + .pr_slowtimo = frag6_slowtimo, + .pr_drain = frag6_drain, +- .pr_usrreqs = &nousrreqs, ++ .pr_usrreqs = &nousr_reqs, + }, + { + .pr_type = SOCK_DGRAM, +@@ -216,7 +216,7 @@ struct ip6protosw inet6sw[] = { + .pr_protocol = IPPROTO_DSTOPTS, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = dest6_input, +- .pr_usrreqs = &nousrreqs ++ .pr_usrreqs = &nousr_reqs + }, + { + .pr_type = SOCK_RAW, +@@ -224,7 +224,7 @@ struct ip6protosw inet6sw[] = { + .pr_protocol = IPPROTO_ROUTING, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = route6_input, +- .pr_usrreqs = &nousrreqs ++ .pr_usrreqs = &nousr_reqs + }, + { + .pr_type = SOCK_RAW, +@@ -232,7 +232,7 @@ struct ip6protosw inet6sw[] = { + .pr_protocol = IPPROTO_FRAGMENT, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = frag6_input, +- .pr_usrreqs = &nousrreqs ++ .pr_usrreqs = &nousr_reqs + }, + #ifdef IPSEC + { +@@ -241,7 +241,7 @@ struct ip6protosw inet6sw[] = { + .pr_protocol = IPPROTO_AH, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = ah6_input, +- .pr_usrreqs = &nousrreqs, ++ .pr_usrreqs = &nousr_reqs, + }, + #ifdef IPSEC_ESP + { +@@ -251,7 +251,7 @@ struct ip6protosw inet6sw[] = { + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = esp6_input, + .pr_ctlinput = esp6_ctlinput, +- .pr_usrreqs = &nousrreqs, ++ .pr_usrreqs = &nousr_reqs, + }, + #endif + { +@@ -260,7 +260,7 @@ struct ip6protosw inet6sw[] = { + .pr_protocol = IPPROTO_IPCOMP, + .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_input = ipcomp6_input, +- .pr_usrreqs = &nousrreqs, ++ .pr_usrreqs = &nousr_reqs, + }, + #endif /* IPSEC */ + #ifdef INET +Index: sys/netinet6/ip6_mroute.c +=================================================================== +--- sys/netinet6/ip6_mroute.c.orig ++++ sys/netinet6/ip6_mroute.c +@@ -188,7 +188,7 @@ static struct ifnet *multicast_register_ + static mifi_t nummifs = 0; + static mifi_t reg_mif_num = (mifi_t)-1; + +-static struct pim6stat pim6stat; ++static struct pim6stat pim6_stat; + static int pim6; + + /* +@@ -1622,7 +1622,7 @@ register_send(ip6, mif, m) + log(LOG_DEBUG, "** IPv6 register_send **\n src %s dst %s\n", + ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&ip6->ip6_dst)); + #endif +- ++pim6stat.pim6s_snd_registers; ++ ++pim6_stat.pim6s_snd_registers; + + /* Make a copy of the packet to send to the user level process */ + MGETHDR(mm, M_DONTWAIT, MT_HEADER); +@@ -1690,7 +1690,7 @@ pim6_input(mp, offp, proto) + int minlen; + int off = *offp; + +- ++pim6stat.pim6s_rcv_total; ++ ++pim6_stat.pim6s_rcv_total; + + ip6 = mtod(m, struct ip6_hdr *); + pimlen = m->m_pkthdr.len - *offp; +@@ -1699,7 +1699,7 @@ pim6_input(mp, offp, proto) + * Validate lengths + */ + if (pimlen < PIM_MINLEN) { +- ++pim6stat.pim6s_rcv_tooshort; ++ ++pim6_stat.pim6s_rcv_tooshort; + #ifdef MRT6DEBUG + if (mrt6debug & DEBUG_PIM) + log(LOG_DEBUG,"pim6_input: PIM packet too short\n"); +@@ -1732,7 +1732,7 @@ pim6_input(mp, offp, proto) + #else + IP6_EXTHDR_GET(pim, struct pim *, m, off, minlen); + if (pim == NULL) { +- pim6stat.pim6s_rcv_tooshort++; ++ pim6_stat.pim6s_rcv_tooshort++; + return (IPPROTO_DONE); + } + #endif +@@ -1752,7 +1752,7 @@ pim6_input(mp, offp, proto) + cksumlen = pimlen; + + if (in6_cksum(m, IPPROTO_PIM, off, cksumlen)) { +- ++pim6stat.pim6s_rcv_badsum; ++ ++pim6_stat.pim6s_rcv_badsum; + #ifdef MRT6DEBUG + if (mrt6debug & DEBUG_PIM) + log(LOG_DEBUG, +@@ -1766,7 +1766,7 @@ pim6_input(mp, offp, proto) + + /* PIM version check */ + if (pim->pim_ver != PIM_VERSION) { +- ++pim6stat.pim6s_rcv_badversion; ++ ++pim6_stat.pim6s_rcv_badversion; + #ifdef MRT6DEBUG + log(LOG_ERR, + "pim6_input: incorrect version %d, expecting %d\n", +@@ -1789,7 +1789,7 @@ pim6_input(mp, offp, proto) + u_int32_t *reghdr; + int rc; + +- ++pim6stat.pim6s_rcv_registers; ++ ++pim6_stat.pim6s_rcv_registers; + + if ((reg_mif_num >= nummifs) || (reg_mif_num == (mifi_t) -1)) { + #ifdef MRT6DEBUG +@@ -1811,8 +1811,8 @@ pim6_input(mp, offp, proto) + * Validate length + */ + if (pimlen < PIM6_REG_MINLEN) { +- ++pim6stat.pim6s_rcv_tooshort; +- ++pim6stat.pim6s_rcv_badregisters; ++ ++pim6_stat.pim6s_rcv_tooshort; ++ ++pim6_stat.pim6s_rcv_badregisters; + #ifdef MRT6DEBUG + log(LOG_ERR, + "pim6_input: register packet size too " +@@ -1836,7 +1836,7 @@ pim6_input(mp, offp, proto) + + /* verify the version number of the inner packet */ + if ((eip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) { +- ++pim6stat.pim6s_rcv_badregisters; ++ ++pim6_stat.pim6s_rcv_badregisters; + #ifdef MRT6DEBUG + log(LOG_DEBUG, "pim6_input: invalid IP version (%d) " + "of the inner packet\n", +@@ -1848,7 +1848,7 @@ pim6_input(mp, offp, proto) + + /* verify the inner packet is destined to a mcast group */ + if (!IN6_IS_ADDR_MULTICAST(&eip6->ip6_dst)) { +- ++pim6stat.pim6s_rcv_badregisters; ++ ++pim6_stat.pim6s_rcv_badregisters; + #ifdef MRT6DEBUG + if (mrt6debug & DEBUG_PIM) + log(LOG_DEBUG, +Index: sys/sys/proc.h +=================================================================== +--- sys/sys/proc.h.orig ++++ sys/sys/proc.h +@@ -840,7 +840,7 @@ extern int lastpid; + extern int nprocs, maxproc; /* Current and max number of procs. */ + extern int maxprocperuid; /* Max procs per uid. */ + extern u_long ps_arg_cache_limit; +-extern int sched_quantum; /* Scheduling quantum in ticks. */ ++//extern int sched_quantum; /* Scheduling quantum in ticks. */ + + LIST_HEAD(proclist, proc); + TAILQ_HEAD(procqueue, proc); diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-sparc64.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-sparc64.patch new file mode 100644 index 0000000..76785b8 --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-6.2-sparc64.patch @@ -0,0 +1,594 @@ +FreeBSD only works on Sparc64 and freeBSD code relies on the __sparc64__ define. +gcc only defines __sparc64__ if -mcpu is not used. +gcc-4 defaults to using -mcpu=ultrasparc on FreeBSD. + +This causes us a problem. Infact, FreeBSD developers sent gcc a patch to always +define __sparc64__ when using -mcpu=ultrasparc, but this was rejected by most +people including NetBSD developers. + +The correct solution is to use __sparc__. +If platform detection is required, or the code is obviously 64 bit then we can +use the __arch64__ define as well. +This combination should be supported by all gcc versions:) + +diff -ur sys.orig/boot/ofw/libofw/ofw_net.c sys/boot/ofw/libofw/ofw_net.c +--- sys.orig/boot/ofw/libofw/ofw_net.c 2005-03-02 20:12:27 +0000 ++++ sys/boot/ofw/libofw/ofw_net.c 2006-10-11 11:08:26 +0100 +@@ -189,7 +189,7 @@ + if ((ch = index(path, ':')) != NULL) + *ch = '\0'; + netdev = OF_finddevice(path); +-#ifdef __sparc64__ ++#if defined(__sparc__) + if (OF_getprop(netdev, "mac-address", desc->myea, 6) == -1) + #else + if (OF_getprop(netdev, "local-mac-address", desc->myea, 6) == -1) +@@ -207,7 +207,7 @@ + printf("ofwn_init: Open Firmware instance handle: %08x\n", netinstance); + #endif + +-#ifndef __sparc64__ ++#ifndef __sparc__ + dmabuf = NULL; + if (OF_call_method("dma-alloc", netinstance, 1, 1, (64 * 1024), &dmabuf) + < 0) { +diff -ur sys.orig/conf/ldscript.sparc64 sys/conf/ldscript.sparc64 +--- sys.orig/conf/ldscript.sparc64 2003-06-07 19:23:50 +0100 ++++ sys/conf/ldscript.sparc64 2006-10-11 11:10:21 +0100 +@@ -1,6 +1,6 @@ + /* $FreeBSD: src/sys/conf/ldscript.sparc64,v 1.4 2003/06/07 18:23:50 jake Exp $ */ +-OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", +- "elf64-sparc") ++OUTPUT_FORMAT("elf64-sparc-freebsd", "elf64-sparc-freebsd", ++ "elf64-sparc-freebsd") + OUTPUT_ARCH(sparc:v9) + ENTRY(_start) + SEARCH_DIR(/usr/lib); +diff -ur sys.orig/dev/atkbdc/atkbd.c sys/dev/atkbdc/atkbd.c +--- sys.orig/dev/atkbdc/atkbd.c 2006-05-26 01:56:14 +0100 ++++ sys/dev/atkbdc/atkbd.c 2006-10-11 11:08:26 +0100 +@@ -1031,7 +1031,7 @@ + static void + atkbd_shutdown_final(void *v) + { +-#ifdef __sparc64__ ++#ifdef __sparc__ + keyboard_t *kbd = v; + KBDC kbdc = ((atkbd_state_t *)kbd->kb_data)->kbdc; + +@@ -1330,7 +1330,7 @@ + } + } + +-#if defined(__alpha__) || defined(__sparc64__) ++#if defined(__alpha__) || defined(__sparc__) + if (send_kbd_command_and_data( + kbdc, KBDC_SET_SCANCODE_SET, 2) != KBD_ACK) { + printf("atkbd: can't set translation.\n"); +diff -ur sys.orig/dev/atkbdc/atkbdc.c sys/dev/atkbdc/atkbdc.c +--- sys.orig/dev/atkbdc/atkbdc.c 2006-09-22 02:05:30 +0100 ++++ sys/dev/atkbdc/atkbdc.c 2006-10-11 11:08:26 +0100 +@@ -46,7 +46,7 @@ + + #include + +-#ifdef __sparc64__ ++#ifdef __sparc__ + #include + #include + #include +@@ -93,7 +93,7 @@ + + static int verbose = KBDIO_DEBUG; + +-#ifdef __sparc64__ ++#ifdef __sparc__ + static struct bus_space_tag atkbdc_bst_store[MAXKBDC]; + #endif + +@@ -157,7 +157,7 @@ + volatile int i; + register_t flags; + #endif +-#ifdef __sparc64__ ++#ifdef __sparc__ + char name[32]; + phandle_t chosen, node; + ihandle_t stdin; +@@ -178,13 +178,13 @@ + tag = busspace_isa_io; + #elif defined(__ia64__) + tag = IA64_BUS_SPACE_IO; +-#elif defined(__sparc64__) ++#elif defined(__sparc__) + tag = &atkbdc_bst_store[0]; + #else + #error "define tag!" + #endif + +-#ifdef __sparc64__ ++#if defined(__sparc__) && defined (__arch64__) + if ((chosen = OF_finddevice("/chosen")) == -1) + return 0; + if (OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) +diff -ur sys.orig/dev/firewire/sbp.c sys/dev/firewire/sbp.c +--- sys.orig/dev/firewire/sbp.c 2005-01-06 01:42:41 +0000 ++++ sys/dev/firewire/sbp.c 2006-10-11 11:08:26 +0100 +@@ -160,7 +160,7 @@ + #define NEED_RESPONSE 0 + + #define SBP_SEG_MAX rounddown(0xffff, PAGE_SIZE) +-#ifdef __sparc64__ /* iommu */ ++#if defined(__sparc__) && defined(__arch64__) /* iommu */ + #define SBP_IND_MAX howmany(MAXPHYS, SBP_SEG_MAX) + #else + #define SBP_IND_MAX howmany(MAXPHYS, PAGE_SIZE) +diff -ur sys.orig/dev/hme/if_hme_pci.c sys/dev/hme/if_hme_pci.c +--- sys.orig/dev/hme/if_hme_pci.c 2005-07-10 11:36:45 +0100 ++++ sys/dev/hme/if_hme_pci.c 2006-10-11 11:08:26 +0100 +@@ -44,7 +44,7 @@ + #include + + #include +-#if defined(__powerpc__) || defined(__sparc64__) ++#if defined(__powerpc__) || defined(__sparc__) + #include + #include + #endif +@@ -140,7 +140,7 @@ + struct hme_pci_softc *hsc = device_get_softc(dev); + struct hme_softc *sc = &hsc->hsc_hme; + int error = 0; +-#if !(defined(__powerpc__) || defined(__sparc64__)) ++#if !(defined(__powerpc__) || defined(__sparc__)) + device_t *children, ebus_dev; + struct resource *ebus_rres; + bus_space_handle_t romh; +@@ -221,7 +221,7 @@ + bus_space_subregion(hsc->hsc_memt, hsc->hsc_memh, 0x7000, 0x1000, + &sc->sc_mifh); + +-#if defined(__powerpc__) || defined(__sparc64__) ++#if defined(__powerpc__) || defined(__sparc__) + OF_getetheraddr(dev, sc->sc_enaddr); + #else + /* +diff -ur sys.orig/dev/isp/isp_freebsd.h sys/dev/isp/isp_freebsd.h +--- sys.orig/dev/isp/isp_freebsd.h 2006-09-01 06:55:13 +0100 ++++ sys/dev/isp/isp_freebsd.h 2006-10-11 11:08:26 +0100 +@@ -78,7 +78,7 @@ + /* + * Efficiency- get rid of SBus code && tests unless we need them. + */ +-#ifdef __sparc64__ ++#ifdef __sparc__ + #define ISP_SBUS_SUPPORTED 1 + #else + #define ISP_SBUS_SUPPORTED 0 +diff -ur sys.orig/dev/sym/sym_hipd.c sys/dev/sym/sym_hipd.c +--- sys.orig/dev/sym/sym_hipd.c 2005-05-29 05:42:26 +0100 ++++ sys/dev/sym/sym_hipd.c 2006-10-11 11:08:26 +0100 +@@ -143,7 +143,7 @@ + #define MEMORY_BARRIER() __asm__ volatile("eieio; sync" : : : "memory") + #elif defined __ia64__ + #define MEMORY_BARRIER() __asm__ volatile("mf.a; mf" : : : "memory") +-#elif defined __sparc64__ ++#elif defined __sparc__ && defined __arch64__ + #define MEMORY_BARRIER() __asm__ volatile("membar #Sync" : : : "memory") + #else + #error "Not supported platform" +diff -ur sys.orig/dev/syscons/scgfbrndr.c sys/dev/syscons/scgfbrndr.c +--- sys.orig/dev/syscons/scgfbrndr.c 2005-10-05 22:48:02 +0100 ++++ sys/dev/syscons/scgfbrndr.c 2006-10-11 11:08:26 +0100 +@@ -213,7 +213,7 @@ + + static int pxlblinkrate = 0; + +-#if defined(__sparc64__) || defined(SC_OFWFB) ++#if defined(__sparc__) || defined(SC_OFWFB) + static void + gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip) + { +diff -ur sys.orig/dev/syscons/schistory.c sys/dev/syscons/schistory.c +--- sys.orig/dev/syscons/schistory.c 2004-01-21 05:08:51 +0000 ++++ sys/dev/syscons/schistory.c 2006-10-11 11:08:26 +0100 +@@ -42,7 +42,7 @@ + #include + #include + +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +diff -ur sys.orig/dev/syscons/scterm-dumb.c sys/dev/syscons/scterm-dumb.c +--- sys.orig/dev/syscons/scterm-dumb.c 2004-01-21 05:08:51 +0000 ++++ sys/dev/syscons/scterm-dumb.c 2006-10-11 11:08:26 +0100 +@@ -33,7 +33,7 @@ + #include + #include + +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +diff -ur sys.orig/dev/syscons/scterm-sc.c sys/dev/syscons/scterm-sc.c +--- sys.orig/dev/syscons/scterm-sc.c 2004-05-30 21:08:42 +0100 ++++ sys/dev/syscons/scterm-sc.c 2006-10-11 11:08:26 +0100 +@@ -36,7 +36,7 @@ + #include + #include + +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +diff -ur sys.orig/dev/syscons/scvtb.c sys/dev/syscons/scvtb.c +--- sys.orig/dev/syscons/scvtb.c 2005-05-21 21:28:15 +0100 ++++ sys/dev/syscons/scvtb.c 2006-10-11 11:08:26 +0100 +@@ -74,7 +74,7 @@ + } + vtb->vtb_flags |= VTB_VALID; + break; +-#ifndef __sparc64__ ++#ifndef __sparc__ + case VTB_FRAMEBUFFER: + vtb->vtb_buffer = (vm_offset_t)buf; + vtb->vtb_flags |= VTB_VALID; +@@ -119,7 +119,7 @@ + int + sc_vtb_getc(sc_vtb_t *vtb, int at) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + return (readw(sc_vtb_pointer(vtb, at)) & 0x00ff); + else +@@ -130,7 +130,7 @@ + int + sc_vtb_geta(sc_vtb_t *vtb, int at) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + return (readw(sc_vtb_pointer(vtb, at)) & 0xff00); + else +@@ -141,7 +141,7 @@ + void + sc_vtb_putc(sc_vtb_t *vtb, int at, int c, int a) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + writew(sc_vtb_pointer(vtb, at), a | c); + else +@@ -152,7 +152,7 @@ + vm_offset_t + sc_vtb_putchar(sc_vtb_t *vtb, vm_offset_t p, int c, int a) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + writew(p, a | c); + else +@@ -176,7 +176,7 @@ + void + sc_vtb_clear(sc_vtb_t *vtb, int c, int attr) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, 0), vtb->vtb_size); + else +@@ -187,7 +187,7 @@ + void + sc_vtb_copy(sc_vtb_t *vtb1, int from, sc_vtb_t *vtb2, int to, int count) + { +-#ifndef __sparc64__ ++#ifndef __sparc__ + /* XXX if both are VTB_VRAMEBUFFER... */ + if (vtb2->vtb_type == VTB_FRAMEBUFFER) + bcopy_toio(sc_vtb_pointer(vtb1, from), +@@ -214,7 +214,7 @@ + + while (count > 0) { + len = imin(count, vtb2->vtb_size - vtb2->vtb_tail); +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb1->vtb_type == VTB_FRAMEBUFFER) + bcopy_fromio(sc_vtb_pointer(vtb1, from), + sc_vtb_pointer(vtb2, vtb2->vtb_tail), +@@ -241,7 +241,7 @@ + { + if (at + count > vtb->vtb_size) + count = vtb->vtb_size - at; +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, at), count); + else +@@ -258,7 +258,7 @@ + count = vtb->vtb_size - to; + if (count <= 0) + return; +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + bcopy_io(sc_vtb_pointer(vtb, from), + sc_vtb_pointer(vtb, to), count*sizeof(u_int16_t)); +@@ -277,7 +277,7 @@ + count = vtb->vtb_size - at; + len = vtb->vtb_size - at - count; + if (len > 0) { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + bcopy_io(sc_vtb_pointer(vtb, at + count), + sc_vtb_pointer(vtb, at), +@@ -288,7 +288,7 @@ + (void *)sc_vtb_pointer(vtb, at), + len*sizeof(u_int16_t)); + } +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, at + len), + vtb->vtb_size - at - len); +@@ -304,7 +304,7 @@ + if (at + count > vtb->vtb_size) + count = vtb->vtb_size - at; + else { +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + bcopy_io(sc_vtb_pointer(vtb, at), + sc_vtb_pointer(vtb, at + count), +@@ -315,7 +315,7 @@ + (void *)sc_vtb_pointer(vtb, at + count), + (vtb->vtb_size - at - count)*sizeof(u_int16_t)); + } +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (vtb->vtb_type == VTB_FRAMEBUFFER) + fillw_io(attr | c, sc_vtb_pointer(vtb, at), count); + else +diff -ur sys.orig/dev/syscons/syscons.c sys/dev/syscons/syscons.c +--- sys.orig/dev/syscons/syscons.c 2006-03-04 00:41:28 +0000 ++++ sys/dev/syscons/syscons.c 2006-10-11 11:08:26 +0100 +@@ -58,7 +58,7 @@ + #include + + #include +-#if __sparc64__ || __powerpc__ ++#if __sparc__ || __powerpc__ + #include + #else + #include +@@ -491,7 +491,7 @@ + sc_softc_t *sc; + struct tty *tp; + scr_stat *scp; +-#ifndef __sparc64__ ++#ifndef __sparc__ + keyarg_t key; + #endif + int error; +@@ -508,7 +508,7 @@ + tp->t_termios = tp->t_init_in; + /* Use the current setting of the <-- key as default VERASE. */ + /* If the Delete key is preferable, an stty is necessary */ +-#ifndef __sparc64__ ++#ifndef __sparc__ + if (sc->kbd != NULL) { + key.keynum = KEYCODE_BS; + kbd_ioctl(sc->kbd, GIO_KEYMAPENT, (caddr_t)&key); +@@ -564,7 +564,7 @@ + } + else { + sc_vtb_destroy(&scp->vtb); +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_destroy(&scp->scr); + #endif + sc_free_history_buffer(scp, scp->ysize); +@@ -2447,7 +2447,7 @@ + if (sc->old_scp->mode != scp->mode || ISUNKNOWNSC(sc->old_scp)) + #endif + set_mode(scp); +-#ifndef __sparc64__ ++#ifndef __sparc__ + else + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, scp->xsize, scp->ysize, + (void *)sc->adp->va_window, FALSE); +@@ -2724,7 +2724,7 @@ + } + sc->cur_scp = scp; + +-#ifndef __sparc64__ ++#ifndef __sparc__ + /* copy screen to temporary buffer */ + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, scp->xsize, scp->ysize, + (void *)scp->sc->adp->va_window, FALSE); +@@ -3010,7 +3010,7 @@ + } + } + sc_vtb_init(&scp->vtb, VTB_MEMORY, 0, 0, NULL, FALSE); +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, 0, 0, NULL, FALSE); + #endif + scp->xoff = scp->yoff = 0; +@@ -3455,7 +3455,7 @@ + /* setup video hardware for the given mode */ + (*vidsw[scp->sc->adapter]->set_mode)(scp->sc->adp, scp->mode); + scp->rndr->init(scp); +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_init(&scp->scr, VTB_FRAMEBUFFER, scp->xsize, scp->ysize, + (void *)scp->sc->adp->va_window, FALSE); + #endif +diff -ur sys.orig/dev/syscons/syscons.h sys/dev/syscons/syscons.h +--- sys.orig/dev/syscons/syscons.h 2005-10-05 22:48:02 +0100 ++++ sys/dev/syscons/syscons.h 2006-10-11 11:08:26 +0100 +@@ -92,11 +92,11 @@ + + #define DPRINTF(l, p) if (SC_DEBUG_LEVEL >= (l)) printf p + +-#ifndef __sparc64__ ++#ifndef __sparc__ + #define SC_DRIVER_NAME "sc" + #else + /* +- * Use a different driver name on sparc64 so it does not get confused ++ * Use a different driver name on sparc so it does not get confused + * with the system controller devices which are also termed 'sc' in OFW. + */ + #define SC_DRIVER_NAME "syscons" +@@ -269,7 +269,7 @@ + int index; /* index of this vty */ + struct sc_softc *sc; /* pointer to softc */ + struct sc_rndr_sw *rndr; /* renderer */ +-#ifndef __sparc64__ ++#ifndef __sparc__ + sc_vtb_t scr; + #endif + sc_vtb_t vtb; +diff -ur sys.orig/kern/kern_ktr.c sys/kern/kern_ktr.c +--- sys.orig/kern/kern_ktr.c 2005-06-11 00:21:29 +0100 ++++ sys/kern/kern_ktr.c 2006-10-11 11:08:26 +0100 +@@ -51,7 +51,7 @@ + #include + + #include +-#ifdef __sparc64__ ++#ifdef __sparc__ + #include + #endif + +diff -ur sys.orig/kern/subr_param.c sys/kern/subr_param.c +--- sys.orig/kern/subr_param.c 2005-10-17 01:16:54 +0100 ++++ sys/kern/subr_param.c 2006-10-11 11:08:26 +0100 +@@ -51,7 +51,7 @@ + */ + + #ifndef HZ +-# if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc64__) ++# if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc__) + # define HZ 1000 + # else + # define HZ 100 +diff -ur sys.orig/kern/subr_witness.c sys/kern/subr_witness.c +--- sys.orig/kern/subr_witness.c 2006-09-02 06:42:16 +0100 ++++ sys/kern/subr_witness.c 2006-10-11 11:08:26 +0100 +@@ -391,7 +391,7 @@ + #if defined(__i386__) || defined(__amd64__) + { "tlb", &lock_class_mtx_spin }, + #endif +-#ifdef __sparc64__ ++#ifdef __sparc__ + { "ipi", &lock_class_mtx_spin }, + { "rtc_mtx", &lock_class_mtx_spin }, + #endif +diff -ur sys.orig/kern/vfs_subr.c sys/kern/vfs_subr.c +--- sys.orig/kern/vfs_subr.c 2006-09-27 01:36:10 +0100 ++++ sys/kern/vfs_subr.c 2006-10-11 11:08:26 +0100 +@@ -110,7 +110,7 @@ + * build. Without mpsafevm the buffer cache can not run Giant free. + */ + #if defined(__alpha__) || defined(__amd64__) || defined(__i386__) || \ +- defined(__sparc64__) ++ defined(__sparc__) + int mpsafe_vfs = 1; + #else + int mpsafe_vfs; +diff -ur sys.orig/net/if_loop.c sys/net/if_loop.c +--- sys.orig/net/if_loop.c 2006-09-29 05:24:50 +0100 ++++ sys/net/if_loop.c 2006-10-11 11:08:26 +0100 +@@ -289,7 +289,7 @@ + /* Strip away media header */ + if (hlen > 0) { + m_adj(m, hlen); +-#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) ++#if defined(__alpha__) || defined(__ia64__) || defined(__sparc__) + /* The alpha doesn't like unaligned data. + * We move data down in the first mbuf */ + if (mtod(m, vm_offset_t) & 3) { +diff -ur sys.orig/pci/if_dc.c sys/pci/if_dc.c +--- sys.orig/pci/if_dc.c 2006-06-21 22:06:07 +0100 ++++ sys/pci/if_dc.c 2006-10-11 11:08:26 +0100 +@@ -134,7 +134,7 @@ + + #include + +-#ifdef __sparc64__ ++#ifdef __sparc__ + #include + #include + #endif +@@ -2027,7 +2027,7 @@ + break; + case DC_TYPE_DM9102: + dc_read_eeprom(sc, (caddr_t)&eaddr, DC_EE_NODEADDR, 3, 0); +-#ifdef __sparc64__ ++#ifdef __sparc__ + /* + * If this is an onboard dc(4) the station address read from + * the EEPROM is all zero and we have to get it from the fcode. +diff -ur sys.orig/sys/bus_dma.h sys/sys/bus_dma.h +--- sys.orig/sys/bus_dma.h 2005-03-15 14:57:29 +0000 ++++ sys/sys/bus_dma.h 2006-10-11 11:08:26 +0100 +@@ -216,7 +216,7 @@ + * for the sparc64 arch contains the equivalent + * declarations. + */ +-#if !defined(__sparc64__) ++#if !(defined(__sparc__) && defined(__arch64__)) + + /* + * Allocate a handle for mapping from kva/uva/physical +@@ -293,6 +293,6 @@ + _bus_dmamap_unload(dmat, dmamap); \ + } while (0) + +-#endif /* __sparc64__ */ ++#endif /* __sparc__ && __arch64__ */ + + #endif /* _BUS_DMA_H_ */ +diff -ur sys.orig/sys/linker.h sys/sys/linker.h +--- sys.orig/sys/linker.h 2005-12-30 22:13:58 +0000 ++++ sys/sys/linker.h 2006-10-11 11:08:26 +0100 +@@ -192,7 +192,7 @@ + #define MODINFOMD_ESYM 0x0004 /* end of symbols */ + #define MODINFOMD_DYNAMIC 0x0005 /* _DYNAMIC pointer */ + /* These values are MD on these two platforms */ +-#if !defined(__sparc64__) && !defined(__powerpc__) ++#if !defined(__sparc__) && !defined(__powerpc__) + #define MODINFOMD_ENVP 0x0006 /* envp[] */ + #define MODINFOMD_HOWTO 0x0007 /* boothowto */ + #define MODINFOMD_KERNEND 0x0008 /* kernend */ +diff -ur sys.orig/sys/param.h sys/sys/param.h +--- sys.orig/sys/param.h 2006-09-15 20:27:40 +0100 ++++ sys/sys/param.h 2006-10-11 11:08:26 +0100 +@@ -300,7 +300,7 @@ + * Constraints: PAGE_SIZE <= MAXALLOCSAVE <= 2 ** (MINBUCKET + 14), and + * MAXALLOCSIZE must be a power of two. + */ +-#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) ++#if defined(__alpha__) || defined(__ia64__) || defined(__sparc__) + #define MINBUCKET 5 /* 5 => min allocation of 32 bytes */ + #else + #define MINBUCKET 4 /* 4 => min allocation of 16 bytes */ +diff -ur sys.orig/sys/user.h sys/sys/user.h +--- sys.orig/sys/user.h 2006-06-24 00:41:05 +0100 ++++ sys/sys/user.h 2006-10-11 11:08:26 +0100 +@@ -100,7 +100,7 @@ + #ifdef __powerpc__ + #define KINFO_PROC_SIZE 768 + #endif +-#ifdef __sparc64__ ++#if defined __sparc__ && defined __arch64__ + #define KINFO_PROC_SIZE 1088 + #endif + #ifndef KINFO_PROC_SIZE diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-gentoo.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-gentoo.patch new file mode 100644 index 0000000..c4246c6 --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-gentoo.patch @@ -0,0 +1,34 @@ +diff -ur sys/conf/kern.mk sys-gentoo/conf/kern.mk +--- sys/conf/kern.mk 2005-03-16 18:54:36 +0000 ++++ sys-gentoo/conf/kern.mk 2005-07-21 11:08:39 +0000 +@@ -12,7 +12,7 @@ + .else + CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ + -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ +- -fformat-extensions -std=c99 ++ -std=c99 + .endif + # + # The following flags are next up for working on: +@@ -28,7 +28,7 @@ + # cache tag lines) + # + .if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" +-CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 \ ++CFLAGS+= -mpreferred-stack-boundary=2 \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 + INLINE_LIMIT?= 8000 + .endif +diff -ur sys/dev/aic7xxx/aicasm/Makefile sys-gentoo/dev/aic7xxx/aicasm/Makefile +--- sys/dev/aic7xxx/aicasm/Makefile 2005-02-13 07:23:32 +0000 ++++ sys-gentoo/dev/aic7xxx/aicasm/Makefile 2005-07-21 11:08:20 +0000 +@@ -14,7 +14,7 @@ + SRCS= ${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS} + CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g} + DPADD= ${LIBL} +-LDADD= -ll ++LDADD= -lfl + + # Correct path for kernel builds + # Don't rely on the kernel's .depend file +Only in sys-gentoo/dev/aic7xxx/aicasm: Makefile.orig diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-7.0_pre200704.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-7.0_pre200704.ebuild new file mode 100644 index 0000000..eba4183 --- /dev/null +++ b/sys-freebsd/freebsd-sources/freebsd-sources-7.0_pre200704.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-6.2.ebuild,v 1.1 2007/01/15 21:40:03 drizzt Exp $ + +inherit bsdmk freebsd flag-o-matic + +DESCRIPTION="FreeBSD kernel sources" +SLOT="${PVR}" +KEYWORDS=" ~x86-fbsd" + +IUSE="symlink" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2" + +RDEPEND=">=sys-freebsd/freebsd-mk-defs-7.0_pre" +DEPEND="" + +RESTRICT="strip binchecks" + +S="${WORKDIR}/sys" + +MY_PVR="${PVR}" + +[[ ${MY_PVR} == "${RV}" ]] && MY_PVR="${MY_PVR}-r0" + +src_unpack() { + unpack ${A} + cd "${S}" + + # This replaces the gentoover patch, it doesn't need reapply every time. + sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \ + -e 's:^BRANCH=.*:BRANCH="Gentoo":' \ + -e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \ + "${S}/conf/newvers.sh" + + #epatch "${FILESDIR}/${PN}-gentoo.patch" + epatch "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch" + epatch "${FILESDIR}/${PN}-6.0-asm.patch" + #epatch "${FILESDIR}/${PN}-6.0-werror.patch" + #epatch "${FILESDIR}/${PN}-6.2-gcc41.patch" + #epatch "${FILESDIR}/${PN}-6.2-sparc64.patch" + epatch "${FILESDIR}/${PN}-6.1-ntfs.patch" + + # Remove -Werror + sed -i -e 's/-Werror//' "${S}"/conf/{kmod,kern.pre}.mk + + # Disable SSP for the kernel + grep -Zlr -- -ffreestanding "${S}" | xargs -0 sed -i -e \ + "s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" + + # Filter some FreeBSD-gcc only CFLAGS + fgrep -Zlr -- -mno-align-long-strings "${S}" | xargs -0 sed -i -e \ + 's/-mno-align-long-strings//g' + sed -i -e 's/-fformat-extensions//' "${S}"/conf/kern.mk + + # Use -lfl instead of -ll for flex + sed -i -e 's/LDADD= -ll/LDADD= -lfl/' "${S}"/dev/aic7xxx/aicasm/Makefile + + # Remove the need of __FreeBSD_cc_version + sed -i -e 's/__FreeBSD_cc_version >= 300001 &&//' "${S}"/sys/sys/cdefs.h + + # FIXME GCC 4.1 fixes + sed -i -e '/^static devclass_t ucom_devclass;$/d' "${S}"/dev/usb/ufoma.c +} + +src_compile() { + : +} + +src_install() { + insinto "/usr/src/sys-${MY_PVR}" + doins -r "${S}/"* +} + +pkg_postinst() { + if [[ ! -L "${ROOT}/usr/src/sys" ]]; then + einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${MY_PVR}..." + ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \ + eerror "Couldn't create ${ROOT}/usr/src/sys symlink." + # just in case... + [[ -L ""${ROOT}/usr/src/sys-${RV}"" ]] && rm "${ROOT}/usr/src/sys-${RV}" + ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \ + eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." + elif use symlink; then + einfo "Updating /usr/src/sys symlink to sys-${MY_PVR}..." + rm "${ROOT}/usr/src/sys" "${ROOT}/usr/src/sys-${RV}" || \ + eerror "Couldn't remove previous symlinks, please fix manually." + ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys" || \ + eerror "Couldn't create ${ROOT}/usr/src/sys symlink." + ln -sf "sys-${MY_PVR}" "${ROOT}/usr/src/sys-${RV}" || \ + eerror "Couldn't create ${ROOT}/usr/src/sys-${RV} symlink." + fi + + if use sparc-fbsd ; then + ewarn "WARNING: kldload currently causes kernel panics" + ewarn "on sparc64. This is probably a gcc-4.1 issue, but" + ewarn "we need gcc-4.1 to compile the kernel correctly :/" + ewarn "Please compile all modules you need into the kernel" + fi +} diff --git a/sys-freebsd/freebsd-sources/metadata.xml b/sys-freebsd/freebsd-sources/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-sources/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-ubin/ChangeLog b/sys-freebsd/freebsd-ubin/ChangeLog new file mode 100644 index 0000000..0ec53a5 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/ChangeLog @@ -0,0 +1,321 @@ +# ChangeLog for sys-freebsd/freebsd-ubin +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.44 2007/01/15 21:40:38 drizzt Exp $ + +*freebsd-ubin-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -freebsd-ubin-6.2_rc2.ebuild, +freebsd-ubin-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -files/SA-06-02-ee.patch, -files/freebsd-ubin-6.1-rpcgen-gcc41.patch, + -freebsd-ubin-6.1.ebuild, -freebsd-ubin-6.1-r1.ebuild: + Remove 6.1 ebuild. + + 05 Jan 2007; Diego Pettenò + freebsd-ubin-6.2_rc2.ebuild: + Convert to use elog. + + 03 Jan 2007; Diego Pettenò + freebsd-ubin-6.2_rc2.ebuild: + Remove tftp directory, use tftp-hpa instead. + + 29 Dec 2006; Diego Pettenò + freebsd-ubin-6.2_rc2.ebuild: + Depend on a newer enough version of freebsd-lib. + +*freebsd-ubin-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-ubin-6.2_beta3.ebuild, -freebsd-ubin-6.2_rc1.ebuild, + +freebsd-ubin-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 24 Nov 2006; Diego Pettenò + files/freebsd-ubin-setXid.patch: + Fix setXid patch, thanks to yngwin on freenode for reporting. + +*freebsd-ubin-6.2_rc1 (19 Nov 2006) + + 19 Nov 2006; Diego Pettenò + +freebsd-ubin-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-ubin-6.2_beta2.ebuild, -freebsd-ubin-6.2_beta2-r1.ebuild: + Remove 6.2_beta2. + + 12 Nov 2006; Diego Pettenò + freebsd-ubin-6.2_beta3.ebuild: + Make this depend on libc with of the same release, so that it does not get + built before freebsd-lib (and thus fail in 6.1 -> 6.2 upgrade). + +*freebsd-ubin-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-ubin-6.2_beta3.ebuild: + Bump to 6.2_beta3. + +*freebsd-ubin-6.2_beta2-r1 (27 Oct 2006) +*freebsd-ubin-6.1-r1 (27 Oct 2006) + + 27 Oct 2006; Diego Pettenò + +freebsd-ubin-6.1-r1.ebuild, +freebsd-ubin-6.2_beta2-r1.ebuild: + Revision bump removing the whois command, now provided by any of the whois + packages in portage supporting eselect-whois. + + 26 Oct 2006; Roy Marples + freebsd-ubin-6.2_beta2.ebuild: + Rebuild login.conf.db after installing a new cap_mkdb, #152856. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-ubin-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + +files/freebsd-ubin-6.2-sparc64.patch, freebsd-ubin-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + + 09 Oct 2006; Javier Villavicencio + freebsd-ubin-6.1.ebuild, freebsd-ubin-6.2_beta1.ebuild, + freebsd-ubin-6.2_beta2.ebuild: + Tiny fix for whereis(1) to work with our (sys-apps/man) manpath. + + 05 Oct 2006; Diego Pettenò + freebsd-ubin-6.1.ebuild, freebsd-ubin-6.2_beta2.ebuild: + Add a build useflag that uses a downloaded tarball of sys rather than + symlinking it. + +*freebsd-ubin-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-ubin-6.2_beta2.ebuild: + Version 6.2_beta2. + + 22 Sep 2006; Diego Pettenò + freebsd-ubin-6.2_beta1.ebuild: + Block csup, as it's already provided by this ebuild. + + 22 Sep 2006; Diego Pettenò + +files/freebsd-ubin-6.2-rpcgen-gcc4.1.patch, + freebsd-ubin-6.2_beta1.ebuild: + Add new patch for rpcgen that fix it properly. + +*freebsd-ubin-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-ubin-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 19 Sep 2006; Javier Villavicencio + freebsd-ubin-6.1.ebuild: + Move also /usr/bin/tty to /bin. + + 16 Sep 2006; Javier Villavicencio + freebsd-ubin-6.1.ebuild: + Move touch to /bin. + + 14 Sep 2006; Diego Pettenò + freebsd-ubin-6.1.ebuild: + Move also true and false to /bin. + + 13 Sep 2006; Diego Pettenò + +files/freebsd-ubin-6.1-rpcgen-gcc41.patch, freebsd-ubin-6.1.ebuild: + Add patch to let rpcgen generate GCC 4.1-compatible code. + + 12 Sep 2006; Diego Pettenò + freebsd-ubin-6.1.ebuild: + Also move uname to /bin. + + 12 Sep 2006; Diego Pettenò + freebsd-ubin-6.1.ebuild: + Don't build and install c99 and c89, leave them to GCC. + + 11 Sep 2006; Diego Pettenò + freebsd-ubin-6.1.ebuild: + Also move mkfifo in /bin. + + 10 Sep 2006; Diego Pettenò + freebsd-ubin-6.1.ebuild: + Move awk and sed in /bin to be available during boot process. + + 27 Jul 2006; Diego Pettenò + -freebsd-ubin-6.0-r1.ebuild: + Remove 6.0 version. + + 30 May 2006; Diego Pettenò + +files/freebsd-ubin-6.1-gcc41.patch, freebsd-ubin-6.1.ebuild: + Add patch to build with GCC 4.1. + +*freebsd-ubin-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-ubin-6.1_rc2.ebuild, +freebsd-ubin-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-ubin-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-ubin-6.1_rc1.ebuild, +freebsd-ubin-6.1_rc2.ebuild: + Update to 6.1_rc2. + +*freebsd-ubin-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-ubin-6.1_rc1.ebuild: + Update to 6.1_rc1. + + 23 Apr 2006; Diego Pettenò + files/locate-updatedb-cron: + Fix typo in updatedb cron file. + + 20 Apr 2006; Diego Pettenò + freebsd-ubin-6.0-r1.ebuild: + Drop dependency on freebsd-headers. + + 09 Apr 2006; Diego Pettenò + freebsd-ubin-6.0-r1.ebuild: + Add dependency over freebsd-lib as that has to be rebuilt as first in the + emerge system call. + + 03 Apr 2006; Diego Pettenò + +files/freebsd-ubin-6.0-kdump-ioctl.patch, freebsd-ubin-6.0-r1.ebuild: + Add patch that makes mkioctl only look into the original includes, so that + it doesn't get confused when Xorg is installed. + + 03 Apr 2006; Diego Pettenò + freebsd-ubin-6.0-r1.ebuild: + Don't let cronbase being a build-time dependency, too. + + 03 Apr 2006; Diego Pettenò + freebsd-ubin-6.0-r1.ebuild: + Actually depend only on cronbase, let the user decide about installing a + cron daemon or not. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-ubin-bsdcmp.patch, -files/freebsd-ubin-fixmakefiles.patch, + -files/freebsd-ubin-flex.patch, +files/locate-updatedb-cron, + freebsd-ubin-6.0-r1.ebuild: + Drop outdated files and add a cron file for locate.updatedb rather than + using the periodic script. + +*freebsd-ubin-6.0-r1 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-ubin-6.0-fixmakefiles.patch, +files/SA-06-02-ee.patch, + +files/freebsd-ubin-6.0-bsdcmp.patch, +files/freebsd-ubin-bsdcmp.patch, + +files/freebsd-ubin-fixmakefiles.patch, +files/freebsd-ubin-flex.patch, + +files/freebsd-ubin-lint-stdarg.patch, +files/freebsd-ubin-setXid.patch, + +files/login.pamd, +files/passwd.pamd, +files/su.pamd, +metadata.xml, + +freebsd-ubin-6.0-r1.ebuild: + Import into portage. + + 28 Feb 2006; Diego Pettenò ChangeLog: + Symlink sys directory instead of patching everything in makefiles. Should + fix bug #124444. + + 23 Feb 2006; Diego Pettenò ChangeLog: + Add missing security patch. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Drop also opieaccess and fbtab. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add locate periodic file. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Also phones. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Move /etc/remote to being provided by freebsd-ubin. + + 25 Aug 2005; Diego Pettenò + +files/freebsd-ubin-bsdcmp.patch, +files/freebsd-ubin-fixmakefiles.patch, + +files/freebsd-ubin-flex.patch, +files/freebsd-ubin-lint-stdarg.patch, + +files/freebsd-ubin-setXid.patch, +files/login.pamd, +files/passwd.pamd, + +files/su.pamd, +freebsd-ubin-5.4-r3.ebuild: + Moved to sys-freebsd. + + 18 Aug 2005; Diego Pettenò + freebsd-ubin-5.4-r3.ebuild: + Updated to reflect bsdmk/freebsd eclasses changes. + + 13 Aug 2005; Diego Pettenò + freebsd-ubin-5.4-r3.ebuild: + Fixed typo. + +*freebsd-ubin-5.4-r3 (08 Aug 2005) + + 08 Aug 2005; Diego Pettenò + -freebsd-ubin-5.4-r2.ebuild, +freebsd-ubin-5.4-r3.ebuild: + Restore make and mkdep from here. + + 30 Jul 2005; Diego Pettenò + freebsd-ubin-5.4-r2.ebuild: + Fixed wrong slot. + + 29 Jul 2005; Diego Pettenò + freebsd-ubin-5.4-r2.ebuild: + Adapt to recent bsdmk changes. + + 19 Jun 2005; Diego Pettenò + freebsd-ubin-5.4-r1.ebuild: + Don't compile and install telnet as we don't support it from here. + + 16 Jun 2005; Diego Pettenò + freebsd-ubin-5.4-r1.ebuild: + Removed a few more subtargets: tar file vacation nc ftp, as they have their + own ebuilds. + + 16 Jun 2005; Diego Pettenò + freebsd-ubin-5.4-r1.ebuild: + tar is moved to app-arch/bsdtar package. + + 08 Jun 2005; Diego Pettenò + -files/freebsd-ubin-minimal.patch, freebsd-ubin-5.4-r1.ebuild: + Made freebsd-ubin use dummy_mk instead of minimal patch. + +*freebsd-ubin-5.4-r1 (23 May 2005) + + 23 May 2005; Diego Pettenò +files/login.pamd, + +files/passwd.pamd, +files/rsh.pamd, +files/su.pamd, + -freebsd-ubin-5.4.ebuild, +freebsd-ubin-5.4-r1.ebuild: + New revision which installs pamd files. Added dependency on virtual/pam. + Using http://84.33.1.46/~drizzt/stages/. + +*freebsd-ubin-5.4_rc3 (03 May 2005) + + 03 May 2005; Diego + +files/freebsd-ubin-fixmakefiles.patch, + +files/freebsd-ubin-lint-stdarg.patch, +files/freebsd-ubin-minimal.patch, + +files/freebsd-ubin-setXid.patch, +freebsd-ubin-5.4_rc3.ebuild: + Added new 5.4_rc3 with patches to build fine on 5.4 profile. + +*freebsd-ubin-5.3.20050301 (31 Mar 2005) + + 31 Mar 2005; Otavio R. Piske + +files/freebsd-ubin-5.3-nocom_err.patch, freebsd-ubin-5.3.20050301.ebuild, + -freebsd-ubin-5.3_rc1.ebuild: + New ebuild based on updated sources and support for new use flags + +*freebsd-ubin-5.2.1-r1 (07 Oct 2004) + + 07 Oct 2004; Otavio Piske + +files/freebsd-ubin-5.2.1-nocmp.patch, +freebsd-ubin-5.2.1-r1.ebuild: + This new ebuild avoids compilation/installation of cmp, which should be + provided by diffutils + + 30 Sep 2004; Aaron Walker freebsd-ubin-5.2.1.ebuild: + Removed duplicate inherit. + + 15 Sep 2004; Otavio Piske freebsd-ubin-5.2.1.ebuild: + Initial release + +*freebsd-ubin-5.2.1.ebuild (15 Sep 2004) diff --git a/sys-freebsd/freebsd-ubin/Manifest b/sys-freebsd/freebsd-ubin/Manifest new file mode 100644 index 0000000..1b826d9 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/Manifest @@ -0,0 +1,22 @@ +AUX freebsd-ubin-6.0-bsdcmp.patch 413 RMD160 e8f9d8f9c873077d7113af6a1efd642a3ee7d12f SHA1 7aaa405cb0291ee95e973c001eac79a8bdb60223 SHA256 a0a99a602538d95ddae2fc4b823150ea58862def87c8196806a379233e3ddb2c +AUX freebsd-ubin-6.0-fixmakefiles.patch 1457 RMD160 9fed268f43c4b8949f734900cb18d3e66a639a3d SHA1 2abad53b6e3783a9c175cf15a686868c532cad08 SHA256 318406fa003c5188163e0dac551d4cc5fed7653cc3ff0f6baa64f23572de6d7b +AUX freebsd-ubin-6.0-kdump-ioctl.patch 1111 RMD160 d0cc816e7835b236c94c79a4ee2c45938d5246ff SHA1 9c4d8dde1fafd247980bb1367104ef89cc0adb98 SHA256 71f41de71568dd819e39c871dd5e570141f243dbabb23d855505c38bec4e9de9 +AUX freebsd-ubin-6.1-gcc41.patch 1004 RMD160 1d3bfda88ff72196c2fb22c49c89821b9da487fb SHA1 c9b8e8dee1f7bc06c988c88f9f7ef8c4921daa31 SHA256 3bcdb76b2c5f4a370a24fdde0aa258a66d66a146f5124ff37b7e89b93b203422 +AUX freebsd-ubin-6.2-rpcgen-gcc4.1.patch 4451 RMD160 4b284ae72f58b7f057c2c501815fd9fb76e355b8 SHA1 69b9018f1558d7c2b4c027e533b6f7e063382778 SHA256 63455b81c40b015fe7b9a8f8ac8ca6c341a805b76315e9c538da7e4bd0bb9e7c +AUX freebsd-ubin-6.2-sparc64.patch 3400 RMD160 dcdb07b371fb693d589a1f6bb0e24a0da188a93a SHA1 f2bf7d5fd67d1572177a4d8338b4c9f86c27153a SHA256 e3069b3a16371a1a54d51d618682e552308f612abfe961ad387463884598c9b3 +AUX freebsd-ubin-lint-stdarg.patch 792 RMD160 673ce804ebd887121160da5d1993787334099903 SHA1 948ade4052f3ec1865ee782116495a508bf70183 SHA256 ec86f4c77b7c57f9f1651bb5f38641d198123594e770cc31d77d6775fd851bd6 +AUX freebsd-ubin-setXid.patch 3723 RMD160 f08790ad10346a69c7e84df111ec1219862298da SHA1 cff080269398d3b5ef5c990ac51e294cd9dc1f8d SHA256 961ac8dcd9efa4f1aab18f56b26c6210d1d5bf441410aae392160e7c0242d16d +AUX locate-updatedb-cron 94 RMD160 2dc29c647124053fda6aff801d4f3a6950ba4645 SHA1 7c53ec741dc424b6883bef2723ef0c1616c2d3aa SHA256 ef062eb2e780b6c323a904c0e1cf8fc911954d05a0194033b37419003f64f14c +AUX login.pamd 421 RMD160 a8beb0b6d838049404a1c9459f96593153a3843c SHA1 325e2faaaacd7cb397b580d4b4131c50709e8ca2 SHA256 986aad109b31d055c52b55fd04be1a8f434da4b355e1a84b7d8b666b7a63fcb6 +AUX passwd.pamd 360 RMD160 345f4755bd209234ea7a742dbfcef7f57b70a76d SHA1 1d79568553aec699784ba9e9c22de732073eaac7 SHA256 ff964fd309462cac711422be051122f8a60b570da9b13756e9012b18b1864f79 +AUX su.pamd 420 RMD160 9888acbac2c2c79b64ec274cc7d96b13b86d8ad8 SHA1 80fb667062953c4232d98d9c9bc8bc5185eab06b SHA256 efe3a5efafd7e97e9305f4d24f2b4aacb44f65b261ca54bca1306b918b82cb08 +DIST freebsd-bin-7.0_pre200704.tar.bz2 407110 RMD160 7be1020156ef0e50ef72171b0ff1c2ae8a62cadf SHA1 4be9fb5d24368d09f64c01e0cec782046582a09b SHA256 f02e5a35a0ab24213e215c5ba016fe66c2c1bf003ba356a66d65e15caee936dd +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-include-7.0_pre200704.tar.bz2 136471 RMD160 65f3af47b48b415744176505322aef401b1fb2d4 SHA1 12b0440ddba7bedb61172c46590c363c75b3046f SHA256 70d5705a0da01320f00ccc450e5241b01351307df603257f59e600b7980e99a0 +DIST freebsd-lib-7.0_pre200704.tar.bz2 2853461 RMD160 8384a200f7d61c5953ccd8299e2e40373ae970ed SHA1 33d80fef5909ef584646c4c5a2733576224c4cc6 SHA256 56b586b58b7b29ea748151cc8377a5bede8047dffdbb1b8d12888acdfd67e105 +DIST freebsd-sys-7.0_pre200704.tar.bz2 20940473 RMD160 eee64418bd658056fa61d8f3344c2d95f21acd81 SHA1 2f8c7aa5636a2961e603b454b930b51585e6c98f SHA256 49fc2d930f2c01425610811a2e8c143131ce63c112b8f4a26574da7bf7ffdeba +DIST freebsd-ubin-7.0_pre200704.tar.bz2 1822151 RMD160 b47eac7cc9871ff927a5307e4ed95627f208b73b SHA1 9ea9fe9360821621288a6447890300b07af034ef SHA256 caef71398ce6d0f9d36fdbf88639692e921c76fb8c0581bb66452598a7912e10 +EBUILD freebsd-ubin-7.0_pre200704.ebuild 3491 RMD160 c5bebfd5aae4efef2658c113f8dd78f5ee883955 SHA1 44bdb2d1b4697ca5a23c11ff30b365d7e385209b SHA256 59b0ebc5770a68b443fe22806d8bcd44828e9e1fcc9c30b327557c430c74df36 +MISC ChangeLog 11347 RMD160 c1fb2aab9602ab9e7445cf8c9f71f7000f1997c9 SHA1 a25cd8e97cd3e0c1fc346b62c8daf9e5dd737e65 SHA256 16394619f6735078f0015224384fb8b6d53959e8955cb04b38528a367c7f73ed +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch new file mode 100644 index 0000000..1a85529 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-bsdcmp.patch @@ -0,0 +1,13 @@ +Index: fbsd-6.0/usr.bin/cmp/Makefile +=================================================================== +--- fbsd-6.0.orig/usr.bin/cmp/Makefile ++++ fbsd-6.0/usr.bin/cmp/Makefile +@@ -1,7 +1,7 @@ + # @(#)Makefile 8.1 (Berkeley) 6/6/93 + # $FreeBSD: src/usr.bin/cmp/Makefile,v 1.6.14.1 2005/09/17 11:33:41 brian Exp $ + +-PROG= cmp ++PROG= bsdcmp + SRCS= cmp.c link.c misc.c regular.c special.c + + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch new file mode 100644 index 0000000..b135a82 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-fixmakefiles.patch @@ -0,0 +1,35 @@ +Index: usr.bin/calendar/Makefile +=================================================================== +--- usr.bin/calendar/Makefile.orig ++++ usr.bin/calendar/Makefile +@@ -10,6 +10,7 @@ FR_LINKS= fr_FR.ISO8859-15 + TEXTMODE?= 444 + + beforeinstall: ++ ${INSTALL} -d ${DESTDIR}${SHAREDIR}/calendar + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ + ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar + .for lang in ${INTER} +Index: usr.bin/ee/Makefile +=================================================================== +--- usr.bin/ee/Makefile.orig ++++ usr.bin/ee/Makefile +@@ -12,12 +12,12 @@ LDADD= -lncurses + NLS= en_US.US-ASCII fr_FR.ISO8859-1 de_DE.ISO8859-1 pl_PL.ISO8859-2 \ + uk_UA.KOI8-U ru_RU.KOI8-R + +-NLSLINKS_en_US.US-ASCII= en_US.ISO8859-1 en_US.ISO8859-15 +-NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \ +- fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 fr_CH.ISO8859-15 \ +- fr_FR.ISO8859-15 +-NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \ +- de_CH.ISO8859-15 de_DE.ISO8859-15 ++#NLSLINKS_en_US.US-ASCII= en_US.ISO8859-1 en_US.ISO8859-15 ++#NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \ ++# fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 fr_CH.ISO8859-15 \ ++# fr_FR.ISO8859-15 ++#NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \ ++# de_CH.ISO8859-15 de_DE.ISO8859-15 + + NLSSRCFILES=ee.msg + .for lang in ${NLS} diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch new file mode 100644 index 0000000..a89cf52 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.0-kdump-ioctl.patch @@ -0,0 +1,28 @@ +By default the mkioctl program that generates code for kdump does look for +ioctls in the whole /usr/include tree, but this does break when xorg is merged. +This patch allows to look for include files only in the source tree. + +Index: fbsd-6/usr.bin/kdump/Makefile +=================================================================== +--- fbsd-6.orig/usr.bin/kdump/Makefile ++++ fbsd-6/usr.bin/kdump/Makefile +@@ -10,6 +10,6 @@ CFLAGS+= -I${.CURDIR}/../ktrace -I${.CUR + CLEANFILES= ioctl.c + + ioctl.c: mkioctls +- sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/mkioctls ${.CURDIR}/../../include > ${.TARGET} + + .include +Index: fbsd-6/usr.bin/truss/Makefile +=================================================================== +--- fbsd-6.orig/usr.bin/truss/Makefile ++++ fbsd-6/usr.bin/truss/Makefile +@@ -29,6 +29,6 @@ syscalls.h: syscalls.master + ${.CURDIR}/i386.conf + + ioctl.c: ${.CURDIR}/../kdump/mkioctls +- sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET} ++ sh ${.CURDIR}/../kdump/mkioctls ${.CURDIR}/../../include > ${.TARGET} + + .include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.1-gcc41.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.1-gcc41.patch new file mode 100644 index 0000000..00d7a9e --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.1-gcc41.patch @@ -0,0 +1,35 @@ +Index: fbsd-6.1/usr.bin/window/wwgets.c +=================================================================== +--- fbsd-6.1.orig/usr.bin/window/wwgets.c ++++ fbsd-6.1/usr.bin/window/wwgets.c +@@ -43,6 +43,8 @@ static char rcsid[] = + #include "ww.h" + #include "char.h" + ++static void rub(); ++ + wwgets(buf, n, w) + char *buf; + int n; +@@ -51,7 +53,6 @@ register struct ww *w; + register char *p = buf; + register int c; + char uc = w->ww_unctrl; +- static void rub(); + + w->ww_unctrl = 0; + for (;;) { +Index: fbsd-6.1/usr.bin/xlint/xlint/xlint.c +=================================================================== +--- fbsd-6.1.orig/usr.bin/xlint/xlint/xlint.c ++++ fbsd-6.1/usr.bin/xlint/xlint/xlint.c +@@ -402,7 +402,8 @@ main(int argc, char *argv[]) + break; + + case 'p': +- appcstrg(&lcflags, "-Wtraditional -Wno-system-headers"); ++ appcstrg(&lcflags, "-Wtraditional"); ++ appcstrg(&lcflags, "-Wno-system-headers"); + appcstrg(&l1flags, "-p"); + appcstrg(&l2flags, "-p"); + if (*deflibs != NULL) { diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-rpcgen-gcc4.1.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-rpcgen-gcc4.1.patch new file mode 100644 index 0000000..fffd69e --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-rpcgen-gcc4.1.patch @@ -0,0 +1,131 @@ +Index: fbsd-6.2/usr.bin/rpcgen/rpc_hout.c +=================================================================== +--- fbsd-6.2.orig/usr.bin/rpcgen/rpc_hout.c ++++ fbsd-6.2/usr.bin/rpcgen/rpc_hout.c +@@ -50,7 +50,7 @@ void storexdrfuncdecl( char *, int ); + static void pconstdef( definition * ); + static void pstructdef( definition * ); + static void puniondef( definition * ); +-static void pprogramdef( definition *, int ); ++static void pprogramdef( definition *, int, int ); + static void pstructdef( definition * ); + static void penumdef( definition * ); + static void ptypedef( definition * ); +@@ -64,7 +64,7 @@ void pdeclaration( char *, declaration * + * Print the C-version of an xdr definition + */ + void +-print_datadef(definition *def, int headeronly) ++print_datadef(definition *def, int headeronly, int nomain) + { + + if (def->def_kind == DEF_PROGRAM) /* handle data only */ +@@ -87,7 +87,7 @@ print_datadef(definition *def, int heade + ptypedef(def); + break; + case DEF_PROGRAM: +- pprogramdef(def, headeronly); ++ pprogramdef(def, headeronly, nomain); + break; + case DEF_CONST: + pconstdef(def); +@@ -103,12 +103,12 @@ print_datadef(definition *def, int heade + + + void +-print_funcdef(definition *def, int headeronly) ++print_funcdef(definition *def, int headeronly, int nomain) + { + switch (def->def_kind) { + case DEF_PROGRAM: + f_print(fout, "\n"); +- pprogramdef(def, headeronly); ++ pprogramdef(def, headeronly, nomain); + break; + default: + break; +@@ -313,7 +313,7 @@ pdispatch(char * name, char *vers, int m + } + + static void +-pprogramdef(definition *def, int headeronly) ++pprogramdef(definition *def, int headeronly, int nomain) + { + version_list *vers; + proc_list *proc; +@@ -341,7 +341,7 @@ pprogramdef(definition *def, int headero + + if(!Cflag){ + ext = "extern "; +- if (headeronly) { ++ if (headeronly && nomain) { + f_print(fout, "%s", ext); + pdispatch(def->def_name, vers->vers_num, 2); + } +@@ -372,7 +372,7 @@ pprogramdef(definition *def, int headero + ext = "extern "; + } + +- if (headeronly) { ++ if (headeronly && nomain) { + f_print(fout, "%s", ext); + pdispatch(def->def_name, vers->vers_num, + i); +Index: fbsd-6.2/usr.bin/rpcgen/rpc_main.c +=================================================================== +--- fbsd-6.2.orig/usr.bin/rpcgen/rpc_main.c ++++ fbsd-6.2/usr.bin/rpcgen/rpc_main.c +@@ -61,7 +61,7 @@ extern int write_sample_clnt( definition + extern void write_sample_clnt_main( void ); + extern void add_sample_msg( void ); + static void c_output( char *, char *, int, char * ); +-static void h_output( char *, char *, int, char *, int ); ++static void h_output( char *, char *, int, char *, int, int ); + static void l_output( char *, char *, int, char * ); + static void t_output( char *, char *, int, char * ); + static void clnt_output( char *, char *, int, char * ); +@@ -173,7 +173,7 @@ main(argc, argv) + c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); + } else if (cmd.hflag) { + h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile, +- cmd.hflag); ++ cmd.hflag, cmd.nflag); + } else if (cmd.lflag) { + l_output(cmd.infile, "-DRPC_CLNT", DONT_EXTEND, cmd.outfile); + } else if (cmd.sflag || cmd.mflag || (cmd.nflag)) { +@@ -193,7 +193,7 @@ main(argc, argv) + /* the rescans are required, since cpp may effect input */ + c_output(cmd.infile, "-DRPC_XDR", EXTEND, "_xdr.c"); + reinitialize(); +- h_output(cmd.infile, "-DRPC_HDR", EXTEND, ".h", cmd.hflag); ++ h_output(cmd.infile, "-DRPC_HDR", EXTEND, ".h", cmd.hflag, cmd.nflag); + reinitialize(); + l_output(cmd.infile, "-DRPC_CLNT", EXTEND, "_clnt.c"); + reinitialize(); +@@ -515,7 +515,7 @@ char *generate_guard(pathname) + + + static void +-h_output(char *infile, char *define, int extend, char *outfile, int headeronly) ++h_output(char *infile, char *define, int extend, char *outfile, int headeronly, int nomain) + { + definition *def; + char *outfilename; +@@ -555,7 +555,7 @@ h_output(char *infile, char *define, int + + /* print data definitions */ + while ( (def = get_definition()) ) { +- print_datadef(def, headeronly); ++ print_datadef(def, headeronly, nomain); + } + + /* +@@ -564,7 +564,7 @@ h_output(char *infile, char *define, int + * arguments for functions + */ + for (l = defined; l != NULL; l = l->next) { +- print_funcdef(l->val, headeronly); ++ print_funcdef(l->val, headeronly, nomain); + } + /* Now print all xdr func declarations */ + if (xdrfunc_head != NULL){ diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-sparc64.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-sparc64.patch new file mode 100644 index 0000000..c7a5f83 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-6.2-sparc64.patch @@ -0,0 +1,92 @@ +FreeBSD only works on Sparc64 and freeBSD code relies on the __sparc64__ define. +gcc only defines __sparc64__ if -mcpu is not used. +gcc-4 defaults to using -mcpu=ultrasparc on FreeBSD. + +This causes us a problem. Infact, FreeBSD developers sent gcc a patch to always +define __sparc64__ when using -mcpu=ultrasparc, but this was rejected by most +people including NetBSD developers. + +The correct solution is to use __sparc__. +If platform detection is required, or the code is obviously 64 bit then we can +use the __arch64__ define as well. +This combination should be supported by all gcc versions:) + +diff -ur usr.bin.orig/getconf/progenv.gperf usr.bin/getconf/progenv.gperf +--- usr.bin.orig/getconf/progenv.gperf 2005-02-18 21:53:05 +0000 ++++ usr.bin/getconf/progenv.gperf 2006-10-10 09:51:19 +0100 +@@ -30,7 +30,7 @@ + * be updated. (We cheat here and define the supported environments + * statically.) + */ +-#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) ++#if defined(__alpha__) || (defined(__sparc__) && defined(__arch64)) || defined(__amd64__) + #define have_LP64_OFF64 NULL + #endif + +diff -ur usr.bin.orig/gprof/gprof.h usr.bin/gprof/gprof.h +--- usr.bin.orig/gprof/gprof.h 2004-10-03 19:22:35 +0100 ++++ usr.bin/gprof/gprof.h 2006-10-10 09:50:07 +0100 +@@ -59,7 +59,7 @@ + #if __powerpc__ + # include "powerpc.h" + #endif +-#if __sparc64__ ++#if __sparc__ && __arch64__ + # include "sparc64.h" + #endif + +diff -ur usr.bin.orig/truss/extern.h usr.bin/truss/extern.h +--- usr.bin.orig/truss/extern.h 2005-03-27 13:53:25 +0100 ++++ usr.bin/truss/extern.h 2006-10-10 09:52:05 +0100 +@@ -54,7 +54,7 @@ + extern void ia64_syscall_entry(struct trussinfo *, int); + extern long ia64_syscall_exit(struct trussinfo *, int); + #endif +-#ifdef __sparc64__ ++#if defined(__sparc__) && defined(__arch64__) + extern void sparc64_syscall_entry(struct trussinfo *, int); + extern long sparc64_syscall_exit(struct trussinfo *, int); + #endif +diff -ur usr.bin.orig/truss/main.c usr.bin/truss/main.c +--- usr.bin.orig/truss/main.c 2006-06-09 22:08:51 +0100 ++++ usr.bin/truss/main.c 2006-10-10 09:53:10 +0100 +@@ -99,7 +99,7 @@ + #ifdef __ia64__ + { "FreeBSD ELF64", ia64_syscall_entry, ia64_syscall_exit }, + #endif +-#ifdef __sparc64__ ++#if defined(__sparc__) && defined(__arch64__) + { "FreeBSD ELF64", sparc64_syscall_entry, sparc64_syscall_exit }, + #endif + { 0, 0, 0 }, +diff -ur usr.bin.orig/xlint/common/param.h usr.bin/xlint/common/param.h +--- usr.bin.orig/xlint/common/param.h 2002-07-19 16:19:23 +0100 ++++ usr.bin/xlint/common/param.h 2006-10-10 09:53:59 +0100 +@@ -69,7 +69,7 @@ + /* + * And the sparc64 long double code generation is broken. + */ +-#if !defined(__sparc64__) ++#if !(defined(__sparc__) && defined(__arch64__)) + typedef long double ldbl_t; + #else + typedef double ldbl_t; +diff -ur usr.bin.orig/xlint/lint1/param.h usr.bin/xlint/lint1/param.h +--- usr.bin.orig/xlint/lint1/param.h 2004-05-14 14:44:36 +0100 ++++ usr.bin/xlint/lint1/param.h 2006-10-10 09:55:06 +0100 +@@ -83,12 +83,12 @@ + #elif __powerpc__ + #define PTRDIFF_IS_LONG 0 + #define SIZEOF_IS_ULONG 0 ++#elif defined(__sparc__) && defined(__arch64__) ++#define PTRDIFF_IS_LONG 1 ++#define SIZEOF_IS_ULONG 1 + #elif __sparc__ + #define PTRDIFF_IS_LONG 0 + #define SIZEOF_IS_ULONG 0 +-#elif __sparc64__ +-#define PTRDIFF_IS_LONG 1 +-#define SIZEOF_IS_ULONG 1 + #elif __vax__ + #define PTRDIFF_IS_LONG 0 + #define SIZEOF_IS_ULONG 0 diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch new file mode 100644 index 0000000..9774724 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-lint-stdarg.patch @@ -0,0 +1,24 @@ +diff -ur usr.bin.orig/xlint/llib/llib-lposix usr.bin/xlint/llib/llib-lposix +--- usr.bin.orig/xlint/llib/llib-lposix 2005-04-29 17:30:03 +0000 ++++ usr.bin/xlint/llib/llib-lposix 2005-05-03 14:12:26 +0000 +@@ -42,7 +42,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff -ur usr.bin.orig/xlint/llib/llib-lstdc usr.bin/xlint/llib/llib-lstdc +--- usr.bin.orig/xlint/llib/llib-lstdc 2005-04-29 17:30:03 +0000 ++++ usr.bin/xlint/llib/llib-lstdc 2005-05-03 14:12:35 +0000 +@@ -44,7 +44,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch new file mode 100644 index 0000000..631ee4f --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/freebsd-ubin-setXid.patch @@ -0,0 +1,129 @@ +diff -ur usr.bin.orig/at/Makefile usr.bin.setXid/at/Makefile +--- usr.bin.orig/at/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/at/Makefile Thu Apr 7 21:21:02 2005 +@@ -15,6 +15,8 @@ + BINMODE= 4555 + CLEANFILES+= at.1 + ++LDFLAGS+=-Wl,-z,now ++ + at.1: at.man + @${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \ + sed -e \ +diff -ur usr.bin.orig/chpass/Makefile usr.bin.setXid/chpass/Makefile +--- usr.bin.orig/chpass/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/chpass/Makefile Thu Apr 7 21:22:40 2005 +@@ -15,6 +15,8 @@ + #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE + CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I. + ++LDFLAGS+=-Wl,-z,now ++ + DPADD= ${LIBCRYPT} ${LIBUTIL} + LDADD= -lcrypt -lutil + .if !defined(NO_NIS) +diff -ur usr.bin.orig/fstat/Makefile usr.bin.setXid/fstat/Makefile +--- usr.bin.orig/fstat/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/fstat/Makefile Thu Apr 7 21:24:35 2005 +@@ -9,4 +9,6 @@ + BINMODE=2555 + WARNS?= 6 + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/lock/Makefile usr.bin.setXid/lock/Makefile +--- usr.bin.orig/lock/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/lock/Makefile Thu Apr 7 21:24:45 2005 +@@ -7,4 +7,6 @@ + DPADD= ${LIBCRYPT} + LDADD= -lcrypt + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/login/Makefile usr.bin.setXid/login/Makefile +--- usr.bin.orig/login/Makefile Thu Apr 7 20:52:57 2005 ++++ usr.bin.setXid/login/Makefile Thu Apr 7 21:24:55 2005 +@@ -13,4 +13,6 @@ + INSTALLFLAGS=-fschg + .endif + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/netstat/Makefile usr.bin.setXid/netstat/Makefile +--- usr.bin.orig/netstat/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/netstat/Makefile Thu Apr 7 21:25:08 2005 +@@ -14,4 +14,6 @@ + DPADD= ${LIBKVM} ${LIBIPX} ${LIBNETGRAPH} ${LIBUTIL} + LDADD= -lkvm -lipx -lnetgraph -lutil + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/opieinfo/Makefile usr.bin.setXid/opieinfo/Makefile +--- usr.bin.orig/opieinfo/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/opieinfo/Makefile Thu Apr 7 21:25:20 2005 +@@ -11,6 +11,8 @@ + DPADD= ${LIBOPIE} ${LIBMD} + LDADD= -lopie -lmd + ++LDFLAGS+=-Wl,-z,now ++ + BINOWN= root + BINMODE=4555 + INSTALLFLAGS=-fschg +diff -ur usr.bin.orig/opiepasswd/Makefile usr.bin.setXid/opiepasswd/Makefile +--- usr.bin.orig/opiepasswd/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/opiepasswd/Makefile Thu Apr 7 21:25:29 2005 +@@ -11,6 +11,8 @@ + DPADD= ${LIBOPIE} ${LIBMD} + LDADD= -lopie -lmd + ++LDFLAGS+=-Wl,-z,now ++ + BINOWN= root + BINMODE=4555 + INSTALLFLAGS=-fschg +diff -ur usr.bin.orig/passwd/Makefile usr.bin.setXid/passwd/Makefile +--- usr.bin.orig/passwd/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/passwd/Makefile Thu Apr 7 21:25:37 2005 +@@ -10,6 +10,8 @@ + MLINKS = passwd.1 yppasswd.1 + WARNS ?= 4 + ++LDFLAGS+=-Wl,-z,now ++ + beforeinstall: + .for i in passwd yppasswd + [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ +--- usr.bin.orig/su/Makefile Thu Apr 7 20:52:58 2005 ++++ usr.bin.setXid/su/Makefile Thu Apr 7 21:26:00 2005 +@@ -10,4 +10,6 @@ + BINMODE=4555 + INSTALLFLAGS=-fschg + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/wall/Makefile usr.bin.setXid/wall/Makefile +--- usr.bin.orig/wall/Makefile Thu Apr 7 20:52:59 2005 ++++ usr.bin.setXid/wall/Makefile Thu Apr 7 21:26:07 2005 +@@ -5,4 +5,6 @@ + BINGRP= tty + BINMODE=2555 + ++LDFLAGS+=-Wl,-z,now ++ + .include +diff -ur usr.bin.orig/write/Makefile usr.bin.setXid/write/Makefile +--- usr.bin.orig/write/Makefile Thu Apr 7 20:52:59 2005 ++++ usr.bin.setXid/write/Makefile Thu Apr 7 21:26:13 2005 +@@ -4,4 +4,6 @@ + BINMODE=2555 + BINGRP= tty + ++LDFLAGS+=-Wl,-z,now ++ + .include diff --git a/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron b/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron new file mode 100644 index 0000000..c9a80aa --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron @@ -0,0 +1,6 @@ +#! /bin/sh + +if [ -x /usr/libexec/locate.updatedb ] +then + nice /usr/libexec/locate.updatedb +fi diff --git a/sys-freebsd/freebsd-ubin/files/login.pamd b/sys-freebsd/freebsd-ubin/files/login.pamd new file mode 100644 index 0000000..859fb67 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/login.pamd @@ -0,0 +1,20 @@ +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/files/login.pamd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# +# PAM configuration for the "login" service +# + +# auth +auth required pam_nologin.so no_warn +auth sufficient pam_self.so no_warn +auth include system + +# account +account requisite pam_securetty.so +account include system + +# session +session include system + +# password +password include system diff --git a/sys-freebsd/freebsd-ubin/files/passwd.pamd b/sys-freebsd/freebsd-ubin/files/passwd.pamd new file mode 100644 index 0000000..4d3955f --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/passwd.pamd @@ -0,0 +1,11 @@ +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/files/passwd.pamd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# +# PAM configuration for the "passwd" service +# + +# passwd(1) does not use the auth, account or session services. + +# password +#password requisite pam_passwdqc.so enforce=users +password required pam_unix.so no_warn try_first_pass nullok diff --git a/sys-freebsd/freebsd-ubin/files/su.pamd b/sys-freebsd/freebsd-ubin/files/su.pamd new file mode 100644 index 0000000..17feb0d --- /dev/null +++ b/sys-freebsd/freebsd-ubin/files/su.pamd @@ -0,0 +1,17 @@ +# +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/files/su.pamd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# +# PAM configuration for the "su" service +# + +# auth +auth sufficient pam_rootok.so no_warn +auth sufficient pam_self.so no_warn +auth requisite pam_group.so no_warn group=wheel root_only fail_safe +auth include system + +# account +account include system + +# session +session required pam_permit.so diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-7.0_pre200704.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-7.0_pre200704.ebuild new file mode 100644 index 0000000..2ac74a0 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-7.0_pre200704.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-6.2.ebuild,v 1.1 2007/01/15 21:40:38 drizzt Exp $ + +inherit bsdmk freebsd flag-o-matic pam + +DESCRIPTION="FreeBSD's base system source for /usr/bin" +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" + +IUSE="atm bluetooth ssl usb nls ipv6 kerberos nis build" + +SRC_URI="http://84.33.1.46/~drizzt/stages/${UBIN}.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/${ETC}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${BIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${INCLUDE}.tar.bz2 + build? ( http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2 )" + +RDEPEND=">=sys-freebsd/freebsd-lib-6.2_rc2 + ssl? ( dev-libs/openssl ) + kerberos? ( virtual/krb5 ) + sys-libs/zlib + virtual/pam + !dev-util/csup" + +DEPEND="${RDEPEND} + sys-devel/flex + !build? ( =sys-freebsd/freebsd-sources-${RV}* ) + =sys-freebsd/freebsd-mk-defs-${RV}*" + +RDEPEND="${RDEPEND} + sys-process/cronbase" + +S="${WORKDIR}/usr.bin" + +pkg_setup() { + use nls || mymakeopts="${mymakeopts} NO_NLS= " + use atm || mymakeopts="${mymakeopts} NO_ATM= " + use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= " + use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= " + use usb || mymakeopts="${mymakeopts} NO_USB= " + use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " + use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " + use nis || mymakeopts="${mymakeopts} NO_NIS= " + + mymakeopts="${mymakeopts} NO_SENDMAIL= " +} + +# List of patches to apply +PATCHES="${FILESDIR}/${PN}-6.0-bsdcmp.patch + ${FILESDIR}/${PN}-6.0-fixmakefiles.patch + ${FILESDIR}/${PN}-setXid.patch + ${FILESDIR}/${PN}-lint-stdarg.patch + ${FILESDIR}/${PN}-6.0-kdump-ioctl.patch + ${FILESDIR}/${PN}-6.2-sparc64.patch" + +# Here we remove some sources we don't need because they are already +# provided by portage's packages or similar. In order: +# - Archiving tools, provided by their own ebuilds +# - ncurses stuff +# - less stuff +# - bind utils +# - rsh stuff +# and the rest are misc utils we already provide somewhere else. +REMOVE_SUBDIRS="bzip2 bzip2recover gzip tar + tput tset + less lessecho lesskey + dig nslookup nsupdate host + rsh rlogin rusers rwho ruptime + compile_et lex vi smbutil file vacation nc ftp telnet + c99 c89 + whois tftp" + +src_unpack() { + freebsd_src_unpack + + use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" + + # Rename manpage for renamed cmp + mv ${S}/cmp/cmp.1 ${S}/cmp/bsdcmp.1 + # Fix whereis(1) manpath search. + sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h" +} + +src_install() { + freebsd_src_install + + dodir /bin + for bin in awk sed mkfifo uname true false touch tty; do + mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed" + dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed" + done + + for pamdfile in login passwd su; do + newpamd "${FILESDIR}/${pamdfile}.pamd" ${pamdfile} + done + + cd "${WORKDIR}/etc" + insinto /etc + doins remote phones opieaccess fbtab + + exeinto /etc/cron.daily + newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb +} + +pkg_postinst() { + # We need to ensure that login.conf.db is up-to-date. + if [[ -e ${ROOT}etc/login.conf ]] ; then + einfo "Updating ${ROOT}etc/login.conf.db" + ${ROOT}usr/bin/cap_mkdb -f ${ROOT}etc/login.conf ${ROOT}etc/login.conf + elog "Remember to run cap_mkdb /etc/login.conf after making changes to it" + fi +} diff --git a/sys-freebsd/freebsd-ubin/metadata.xml b/sys-freebsd/freebsd-ubin/metadata.xml new file mode 100644 index 0000000..ecedda4 --- /dev/null +++ b/sys-freebsd/freebsd-ubin/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-freebsd/freebsd-usbin/ChangeLog b/sys-freebsd/freebsd-usbin/ChangeLog new file mode 100644 index 0000000..8c96fe4 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/ChangeLog @@ -0,0 +1,364 @@ +# 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.44 2007/04/06 14:47:17 uberlord Exp $ + +*freebsd-usbin-6.2-r1 (06 Apr 2007) + + 06 Apr 2007; Roy Marples 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 + freebsd-usbin-6.2.ebuild: + Add deps to baselayout on stage1 creation. + + 28 Feb 2007; Roy Marples freebsd-usbin-6.2.ebuild: + Install mount_smbfs and friends so we can mount samba shares. + + 23 Feb 2007; Roy Marples files/moused.initd, + files/nfsmount.initd, files/powerd.initd, files/rarpd.initd, + files/syscons.initd, files/syslogd.initd: + Don't use bashisms in init scripts. + + 16 Jan 2007; Timothy Redaelli + +files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch: + Oops, I still need this patch + +*freebsd-usbin-6.2 (15 Jan 2007) + + 15 Jan 2007; Timothy Redaelli + -files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch, + -freebsd-usbin-6.2_rc2.ebuild, +freebsd-usbin-6.2.ebuild: + Bump to 6.2 and remove old version. + + 05 Jan 2007; Diego Pettenò + -files/SA-06-15-ypserv.patch, -files/freebsd-usbin-nowrap.patch, + -freebsd-usbin-6.1-r1.ebuild: + Remove 6.1 ebuild. + + 03 Jan 2007; Diego Pettenò + +files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch, + freebsd-usbin-6.2_rc2.ebuild: + Add patch to build with the NetBSD version of libedit; and add libedit as a + dependency. + +*freebsd-usbin-6.2_rc2 (29 Dec 2006) + + 29 Dec 2006; Diego Pettenò + -freebsd-usbin-6.2_beta3.ebuild, -freebsd-usbin-6.2_rc1.ebuild, + +freebsd-usbin-6.2_rc2.ebuild: + Bump to rc2 and remove older versions. + + 07 Dec 2006; Roy Marples files/rpcbind.initd: + rpcbind init script now uses start-stop-daemon. + + 21 Nov 2006; Diego Pettenò + freebsd-usbin-6.2_rc1.ebuild: + Remove freebsd-update program, it's not something you should use on + Gentoo/FreeBSD. + + 20 Nov 2006; Diego Pettenò files/rarpd.initd: + Make the init script use foregroupd mode and create a pidfile to better + identify the correct process to stop. + + 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) + + 19 Nov 2006; Diego Pettenò + +freebsd-usbin-6.2_rc1.ebuild: + Version bump to 6.2-RC1. + + 18 Nov 2006; Diego Pettenò + -freebsd-usbin-6.2_beta2.ebuild: + Remove 6.2_beta2. + +*freebsd-usbin-6.2_beta3 (01 Nov 2006) + + 01 Nov 2006; Diego Pettenò + +freebsd-usbin-6.2_beta3.ebuild: + Bump to 6.2_beta3. + + 26 Oct 2006; Roy Marples + freebsd-usbin-6.2_beta2.ebuild: + Create /etc/{passwd,pwd.db,spwd.db} from /etc/master.passwd + if any do not exist, #152856. + + 19 Oct 2006; Diego Pettenò ChangeLog: + Remove 6.2_beta1 ebuild. + + 19 Oct 2006; Diego Pettenò + -freebsd-usbin-6.2_beta1.ebuild: + Remove 6.2_beta1 ebuild. + + 17 Oct 2006; Roy Marples + freebsd-usbin-6.2_beta2.ebuild: + Added ~sparc-fbsd keyword. + + 12 Oct 2006; Roy Marples files/powerd.confd: + Don't annoy laptop users too much, default powerd to maximum in AC_MODE. + + 05 Oct 2006; Diego Pettenò + freebsd-usbin-6.1-r1.ebuild, freebsd-usbin-6.2_beta2.ebuild: + Add a build useflag that uses a downloaded tarball of sys rather than + symlinking it. + + 05 Oct 2006; Diego Pettenò + freebsd-usbin-6.2_beta2.ebuild: + Use the system headers to build, or openbsm fails. + +*freebsd-usbin-6.2_beta2 (05 Oct 2006) + + 05 Oct 2006; Diego Pettenò + +freebsd-usbin-6.2_beta2.ebuild: + Version 6.2_beta2. + + 04 Oct 2006; Diego Pettenò + freebsd-usbin-6.1-r1.ebuild, freebsd-usbin-6.2_beta1.ebuild: + Remove netgraph useflag, thanks to Francisco Javier in bug #150083. + + 03 Oct 2006; Roy Marples files/moused.confd, + files/moused.initd, files/powerd.initd, files/rpcbind.initd, + files/syscons.initd, files/syslogd.initd: + Tarted up the init scripts. + moused can now be optionally multiplexed like the net scripts. + + 01 Oct 2006; Javier Villavicencio + +files/freebsd-usbin-adduser.patch, freebsd-usbin-6.1-r1.ebuild, + freebsd-usbin-6.2_beta1.ebuild: + Added patch to fix adduser paths, by Chris White in bug #149763. + + 22 Sep 2006; Diego Pettenò + freebsd-usbin-6.2_beta1.ebuild: + Drop unneeded security patch, fix patch name for GCC 4.1 patch. + +*freebsd-usbin-6.2_beta1 (21 Sep 2006) + + 21 Sep 2006; Diego Pettenò + +freebsd-usbin-6.2_beta1.ebuild: + Add 6.2_beta1 ebuilds. + + 14 Sep 2006; Diego Pettenò +files/syscons.confd, + +files/syscons.initd, freebsd-usbin-6.1-r1.ebuild: + Move syscons script and configuration out of baselayout and in here. + + 27 Jul 2006; Diego Pettenò + -freebsd-usbin-6.0-r3.ebuild: + Remove 6.0 version. + +*freebsd-usbin-6.1-r1 (01 Jun 2006) +*freebsd-usbin-6.0-r3 (01 Jun 2006) + + 01 Jun 2006; Diego Pettenò + +files/SA-06-15-ypserv.patch, -freebsd-usbin-6.0-r2.ebuild, + +freebsd-usbin-6.0-r3.ebuild, -freebsd-usbin-6.1.ebuild, + +freebsd-usbin-6.1-r1.ebuild: + Revision bumps to fix security issue SA-06:15. + + 30 May 2006; Diego Pettenò + +files/freebsd-usbin-6.1-gcc41.patch, freebsd-usbin-6.1.ebuild: + Add patch to build with GCC 4.1. + +*freebsd-usbin-6.1 (09 May 2006) + + 09 May 2006; Diego Pettenò + -freebsd-usbin-6.1_rc2.ebuild, +freebsd-usbin-6.1.ebuild: + Update to 6.1-RELEASE. + +*freebsd-usbin-6.1_rc2 (02 May 2006) + + 02 May 2006; Diego Pettenò + -freebsd-usbin-6.1_rc1.ebuild, +freebsd-usbin-6.1_rc2.ebuild: + Update to 6.1_rc2. + + 01 May 2006; Diego Pettenò + files/freebsd-usbin-6.0-fixmakefiles.patch, + +files/freebsd-usbin-6.1-nowrap.patch, freebsd-usbin-6.0-r2.ebuild, + freebsd-usbin-6.1_rc1.ebuild: + Shorten the fixmakefiles patch so that it applies to both 6.0 and 6.1. + Update nowrap patch from Robert Sebastian Gerus. Create /usr/bin directory. + Remove from 6.1_rc1 hostapd_cli and wpa_cli, remove amd (am-utils package + will provide that), block am-utils from 6.0. + +*freebsd-usbin-6.1_rc1 (01 May 2006) + + 01 May 2006; Diego Pettenò + +freebsd-usbin-6.1_rc1.ebuild: + Update to 6.1_rc1. + +*freebsd-usbin-6.0-r2 (22 Apr 2006) + + 22 Apr 2006; Diego Pettenò + -freebsd-usbin-6.0-r1.ebuild, +freebsd-usbin-6.0-r2.ebuild: + Drop zic, now provided by timezone-data. + + 20 Apr 2006; Diego Pettenò + freebsd-usbin-6.0-r1.ebuild: + Drop dependency on freebsd-headers. + +*freebsd-usbin-6.0-r1 (14 Apr 2006) + + 14 Apr 2006; Diego Pettenò +files/powerd.confd, + +files/powerd.initd, -freebsd-usbin-6.0.ebuild, + +freebsd-usbin-6.0-r1.ebuild: + Add powerd's init script based on the one contributed by Stefano Takekawa in + bug #129933. + + 13 Apr 2006; Diego Pettenò + freebsd-usbin-6.0.ebuild: + Touch files needed to run syslog, bug #129685. + + 02 Apr 2006; Diego Pettenò + -files/freebsd-usbin-5.3-r1-makefile-docpaths.patch, + -files/freebsd-usbin-fixmakefiles.patch, -files/freebsd-usbin-flex.patch, + freebsd-usbin-6.0.ebuild: + Drop old files and remove lpr, if needed cups can be rather used. + +*freebsd-usbin-6.0 (01 Apr 2006) + + 01 Apr 2006; Diego Pettenò + +files/freebsd-usbin-5.3-r1-makefile-docpaths.patch, + +files/freebsd-usbin-6.0-fixmakefiles.patch, + +files/freebsd-usbin-fixmakefiles.patch, +files/freebsd-usbin-flex.patch, + +files/freebsd-usbin-nowrap.patch, +files/moused.confd, + +files/moused.initd, +files/nfs.confd, +files/nfs.initd, + +files/nfsmount.initd, +files/pw.conf, +files/rpcbind.initd, + +files/syslogd.initd, +metadata.xml, +freebsd-usbin-6.0.ebuild: + Import into portage. + + 28 Feb 2006; Diego Pettenò ChangeLog: + Symlink sys directory instead of patching everything in makefiles. + + 20 Feb 2006; Diego Pettenò ChangeLog: + Fix deprecated stuff to use NO_* syntax. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Also install hosts.lpd. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add also usbd configuration file, printcap if lpr is requested, and + bluetooth configuration if requested. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Build cron jobs for periodic call here instead that in baselayout. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Add periodic files. + + 13 Feb 2006; Diego Pettenò ChangeLog: + Install configuration files here instead than in baselayout. Install isdn + configuration files only if isdn is set. + + 12 Feb 2006; Diego Pettenò ChangeLog: + Drop wpa_supplicant and hostapd, take the one from portage on user's request. + + 01 Nov 2005; Diego Pettenò ChangeLog: + Remove pf support, as freebsd-pf will provide it. + + 25 Aug 2005; Diego Pettenò + +files/freebsd-usbin-5.3-r1-makefile-docpaths.patch, + +files/freebsd-usbin-fixmakefiles.patch, +files/freebsd-usbin-flex.patch, + +files/freebsd-usbin-nowrap.patch, +files/moused.confd, + +files/moused.initd, +files/nfs.confd, +files/nfs.initd, + +files/nfsmount.initd, +files/rpcbind.initd, +files/syslogd.initd, + +freebsd-usbin-5.4-r2.ebuild: + Moved to sys-freebsd. + + 29 Jul 2005; Diego Pettenò + freebsd-usbin-5.4-r2.ebuild: + Adapt to recent bsdmk changes. + + 09 Jul 2005; Diego Pettenò + -files/freebsd-usbin-5.3_rc1-arlcontrol-makefile.patch, + -files/freebsd-usbin-5.3_rc1-dconschat-makefile.patch, + -files/freebsd-usbin-5.3_rc1-fwcontrol-makefile.patch, + -files/freebsd-usbin-5.3_rc1-ipftest-makefile.patch, + -files/freebsd-usbin-5.3_rc1-ipresend-makefile.patch, + -files/freebsd-usbin-5.3_rc1-ipsend-makefile.patch, + -files/freebsd-usbin-5.3_rc1-iptest-makefile.patch, + -files/freebsd-usbin-5.3_rc1-mailwrapper-makefile.patch, + -files/freebsd-usbin-5.3_rc1-makefileinc.patch, + -files/freebsd-usbin-5.3_rc1-mlxcontrol-makefile.patch, + -files/freebsd-usbin-5.3_rc1-ndiscvt-makefile.patch, + -files/freebsd-usbin-5.3_rc1-nologin-makefile.patch, + -files/freebsd-usbin-5.3_rc1-pciconf-makefile.patch, + -files/freebsd-usbin-5.3_rc1-pcvt_keycap-makefile.patch, + -files/freebsd-usbin-5.3_rc1-pnpinfo-makefile.patch, + -files/freebsd-usbin-5.3_rc1-raycontrol-makefile.patch, + -files/freebsd-usbin-5.3_rc1-rpc.ypxfrd-makefile.patch, + -files/freebsd-usbin-5.3_rc1-setkey-makefile.patch, + -files/freebsd-usbin-5.3_rc1-sicontrol-makefile.patch, + -files/freebsd-usbin-5.3_rc1-sysinstall-makefile.patch, + -files/freebsd-usbin-5.3_rc1-yppush-makefile.patch, + -files/freebsd-usbin-5.3_rc1-ypserv-makefile.patch, + -files/freebsd-usbin-cron-gentoo-location.patch, -metadata.xml, + -freebsd-usbin-5.3.ebuild, -freebsd-usbin-5.3-r1.ebuild, + -freebsd-usbin-5.3.20050301.ebuild, -freebsd-usbin-5.4.ebuild, + -freebsd-usbin-5.4-r1.ebuild: + Removed old 5.3 and obsolete 5.4 versions. Removed metadata (it's in overlay + :P). + + 16 Jun 2005; Diego Pettenò +files/inetd.initd, + +files/moused.confd, +files/moused.initd, +files/syslogd.initd, + freebsd-usbin-5.4-r2.ebuild: + Cleaned up tarball needed, dependencies and provided virtuals. Removed a lot + of subtargets we don't need or we use from some other ebuild. Added initd + and confd where present for syslogd inetd and moused (moved here from + baselayout). + + 10 Jun 2005; Diego Pettenò + freebsd-usbin-5.4-r2.ebuild: + Remove tcpdump, will be maintained on its own as usual. + + 08 Jun 2005; Diego Pettenò + -files/freebsd-usbin-minimal.patch, -files/freebsd-usbin-nontp.patch, + -files/freebsd-usbin-nosnmp.patch, freebsd-usbin-5.4.ebuild, + freebsd-usbin-5.4-r1.ebuild, freebsd-usbin-5.4-r2.ebuild: + Removed minimal, nosnmp and nontp patches, now using dummy_mk which avoids + using patches. + +*freebsd-usbin-5.4-r2 (04 Jun 2005) + + 04 Jun 2005; Diego Pettenò + +files/freebsd-usbin-nosnmp.patch, +freebsd-usbin-5.4-r2.ebuild: + Removed bsnmpd as it's now installed on its own. + +*freebsd-usbin-5.4-r1 (26 May 2005) + + 26 May 2005; Diego Pettenò +files/nfs.confd, + +files/nfs.initd, +files/nfsmount.initd, +files/rpcbind.initd, + +freebsd-usbin-5.4-r1.ebuild: + New revision: this time installs nfs and rpcbind init.d files, so you can + use nfs with locking support. + + 26 May 2005; Diego Pettenò + +files/freebsd-usbin-nontp.patch, freebsd-usbin-5.4.ebuild: + Added patch to avoid installing ntp, net-misc/ntp will be compilable soon, + in the mean time OpenNTPd should do. + +*freebsd-usbin-5.3.20050301 (30 Mar 2005) + + 30 Mar 2005; Otavio R. Piske + +files/freebsd-usbin-5.3-r1-makefile-docpaths.patch, + +files/freebsd-usbin-cron-gentoo-location.patch, + +freebsd-usbin-5.3.20050301.ebuild: + Added a new ebuild based on updated FreeBSD sources and with support for + various USE flags (Thanks to Diego Petteno for + the patch) + + 06 Oct 2004; Otavio Piske + -freebsd-usbin-5.2.1.ebuild: + Removed version 5.2.1 since had bugs. Default now is 5.2.1-r1 + +*freebsd-usbin-5.2.1-r1 (29 Sep 2004) + + 29 Sep 2004; Aaron Walker + freebsd-usbin-5.2.1-r1.ebuild: + replace_flags should be called in src_compile. + + 15 Sep 2004; Otavio Piske freebsd-usbin-5.2.1.ebuild: + Initial release + +*freebsd-usbin-5.2.1.ebuild (15 Sep 2004) diff --git a/sys-freebsd/freebsd-usbin/Manifest b/sys-freebsd/freebsd-usbin/Manifest new file mode 100644 index 0000000..f598781 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/Manifest @@ -0,0 +1,32 @@ +AUX freebsd-usbin-6.0-fixmakefiles.patch 691 RMD160 247fdda9f51068dece3098d1ef01df0e30da7c65 SHA1 77a29d98fe51c2b848d663a150326baec5e718cc SHA256 d94f8d091ec7eaf75c264ee351b1b6c590297cb99f0c603c5e75672bb6c6c069 +AUX freebsd-usbin-6.1-gcc41.patch 544 RMD160 99030add2a168b2adfa24b415a19f0529cf0878a SHA1 f54c353cb38e0c695220391cf1b693d81cf9aa78 SHA256 9ace54518de8f66ad9533b4313a048f89ca357b6a0fa23d0bc07485932430e9b +AUX freebsd-usbin-6.1-nowrap.patch 1256 RMD160 2356f3fc63a6d27b399e7ec7f2d8637fa519712d SHA1 7dab1d79f05f732d589f81bdb7d9b8a7ac4a6ffb SHA256 e1413acbf003be3fa3a73f8fa0bdf79caa99885192622c79b034345d600b92f8 +AUX freebsd-usbin-6.2_rc2-libedit-netbsd.patch 552 RMD160 71f2acb0c53f1e027b19d9b35f94e502ecbc3d7e SHA1 b8d28fbebe44a0904e8550f38f3ebd2cb7ed0d7b SHA256 1d09fe1ed65aebbb1e48f10231a5da9342ef850a7a13afdaee971e7e70d0d57a +AUX freebsd-usbin-7.0-nowrap.patch 1189 RMD160 13c63f33f39bb21982315dd16dd749f3b344cbea SHA1 c43bdb702ab15d5f6f933bb1183193ec1c127fca SHA256 1cca900dad6a8db6f17dc350a572d11d0a29b2752e64e5005707bf8830ba3fff +AUX freebsd-usbin-adduser.patch 428 RMD160 fecedb0bad9f29e9f0d889b2fce0edeb9a954d0b SHA1 3407974fcd42701d1587684f14547b5e02b6b342 SHA256 2e91737ffefd3b7ce3b55da4ce98eb0425961bba2d4a7c4e7c7ffabc1d38f2af +AUX moused.confd 827 RMD160 a9d0822aa3894caed9efa9df93ef25ec6ec6fb8e SHA1 e09f3f44ee29fa75a1ce6fbe9cdbfe503eaa11d6 SHA256 7c15a534c0b10a553848b13e1fccd27fad1684ddc1b252133269257e864d769e +AUX moused.initd 1783 RMD160 46241b5cf795ad06460e4053f8a76726af70c665 SHA1 02b5c22b7c35439a4c59ddadfd5bb7910cf3cdff SHA256 84f2d221ce16f5ffce43170fdcf86675dae79a776e1f2abf3b1b490b585f6d0e +AUX nfs.confd 589 RMD160 6ba14cb8218bf7ea16eb6274885dc92e1a84803c SHA1 6f3e0701c3a5bbaaa341f1744ddddb2ff755d30d SHA256 642ff72e941722b6c235bb4a8c4f8bbb9444866559e65b55032e0206d9a970a5 +AUX nfs.initd 6037 RMD160 e3cc0632fc4b7501d5d31b4173d7c93e95bf7e79 SHA1 32efac163b088adb225ac82ecf7a06f36c003e7e SHA256 ba24e9a1e08a92b9f0f8056a4569bb506bbf91cda6abdb30725f6a404acd0730 +AUX nfsmount.initd 1596 RMD160 8f47abac7148ad8c35fe314dad6ae2fdffc73cb3 SHA1 5a839e1b4f135619ec1b6c614e9a1cf8d018f0d6 SHA256 0cea497d66d41d093792f8bb2590c45b6b8f965cef9c148b835b362f2a172cbe +AUX powerd.confd 368 RMD160 4273367b5b1956080d70c300f071ccb7aa614672 SHA1 6cbebc62910ff2d45079f8430d2494ebd7293546 SHA256 989e31b98daacb3d6ecddf8788ee496f3c100d549e7a210e387f03d69c3c8e98 +AUX powerd.initd 774 RMD160 650b7f09be40db75e03c086bc70491c2ce18c40d SHA1 89186f3894357b466d438d7b7b23b7f1228058d6 SHA256 2ee95ad25206716b6043407c6fbb412513fcbd0893d7f2faf2c927c55990fb03 +AUX pw.conf 179 RMD160 b40103a1c85c1b5e24ad60da82741ee744e46cb8 SHA1 f08952bb60e7c85e676900b277ed51face945a0e SHA256 0aa508e3911a80ccd1dc5005ec6f2e86e7c4fc5c99ca127f4d7e479d133c69ef +AUX rarpd.confd 269 RMD160 de16adb7bd4a7e2deea75fb6ba4d717582e376cf SHA1 b15f515e61c64bac9f7b2cb9a39d50a833649b21 SHA256 aa45f3085267be17d6549e05c5fbe21c4035b41c620023d76e38537fc82594cb +AUX rarpd.initd 866 RMD160 edec84e9a30b0ec729515da6b31428eb0cfee23e SHA1 5e9e352319b3309ede30f96b3416a211647cab35 SHA256 3484f19992ae773a43ffad50477072c3bd288fea5f9a5c22a98c323129df49f7 +AUX rpcbind.initd 716 RMD160 86d0b4b9e1ce8013777624375ddd012b8a86f02d SHA1 9769382e6bb7f3faed5d5c3086ee532896c68f5b SHA256 2f14334ba584acd31306060bd134c0eccd3afa24c61531f93f884ad70a9ee96a +AUX syscons.confd 464 RMD160 c9673b5f9f92443a6afb7276db0f0e163044ac4d SHA1 5b753c59b3b09ee648dafb763fbdc348c9d68e7e SHA256 7e566edb81fef49b662ad6b84dd0bf4657d5f05efe9791a515b1013ce02e44ee +AUX syscons.initd 1709 RMD160 b50db11f6a22b2de368ff6b661630754df6783a7 SHA1 e972b55ec7bbd0d9263c6c61a3f2672a11e33c15 SHA256 1f47620f615478dd23c2f3ba8873b1b4f677d3f0e7d0226a17ed5131a7f0b54a +AUX syslogd.initd 571 RMD160 915d4efbd2bac506c162a3fb8c08efc3a97082b7 SHA1 a3200b5973fb0e474fcc9f93709324162a03b679 SHA256 3f0f242197be7c59f36edffd36918935189d17ca7d8f5c2de6238c7a7f52d005 +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-include-7.0_pre200704.tar.bz2 136471 RMD160 65f3af47b48b415744176505322aef401b1fb2d4 SHA1 12b0440ddba7bedb61172c46590c363c75b3046f SHA256 70d5705a0da01320f00ccc450e5241b01351307df603257f59e600b7980e99a0 +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-ubin-7.0_pre200704.tar.bz2 1822151 RMD160 b47eac7cc9871ff927a5307e4ed95627f208b73b SHA1 9ea9fe9360821621288a6447890300b07af034ef SHA256 caef71398ce6d0f9d36fdbf88639692e921c76fb8c0581bb66452598a7912e10 +DIST freebsd-usbin-7.0_pre200704.tar.bz2 2622893 RMD160 66de2753ab0d1044b6c123fec26103560f5eabe2 SHA1 df76dd7604328da83b8b6e1a38b3ef58a3818af8 SHA256 1188d92fc11809efba8384f0ee96dd09efcee7dc968df7a1782b5a586fcc5bc8 +EBUILD freebsd-usbin-7.0_pre200704.ebuild 5448 RMD160 feb2972f44ff06957b311a8f5ebe160f144d99c1 SHA1 2784a627df203caef36ba7fb3299435d0062e6ca SHA256 c420d638bde15bbf6afab901e864d7fe393fff8623252cc2cb2b707678da5994 +MISC ChangeLog 14292 RMD160 d2522c3a454af76091fd92d767c029a35a69756d SHA1 8c5cb9bd2a751db233c89cbd0efa34bd46ee2f50 SHA256 7ab278123bf3b34d3ff75827097a7136e5625b4b4166951b7715026f8506db5d +MISC metadata.xml 156 RMD160 60b5820a08275f307e5bd936d78f5afd1f141086 SHA1 d9d9d4f2b5afc58339ea3e562fca490156935f1f SHA256 30ab515d6ac492d3d6c36ac3c675511742c2149e56a6b3228c8d22ab8edb3ff7 diff --git a/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.0-fixmakefiles.patch b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.0-fixmakefiles.patch new file mode 100644 index 0000000..1b1af6d --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.0-fixmakefiles.patch @@ -0,0 +1,24 @@ +Index: usr.sbin/pcvt/Misc/Doc/Makefile +=================================================================== +--- usr.sbin/pcvt/Misc/Doc/Makefile.orig ++++ usr.sbin/pcvt/Misc/Doc/Makefile +@@ -4,6 +4,6 @@ NO_OBJ= + FILES= Acknowledgements Bibliography CharGen \ + Charsets EscapeSequences Keyboard.HP Keyboard.VT \ + NotesAndHints +-FILESDIR= ${BINDIR}/Doc ++FILESDIR= ${DOCDIR}/Doc + + .include +Index: usr.sbin/pcvt/Misc/Makefile +=================================================================== +--- usr.sbin/pcvt/Misc/Makefile.orig ++++ usr.sbin/pcvt/Misc/Makefile +@@ -2,6 +2,7 @@ + + NO_OBJ= + FILES= README.FIRST ++FILESDIR= ${DOCDIR}/pcvt + SUBDIR= Doc Etc + + .include "Makefile.inc" diff --git a/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-gcc41.patch b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-gcc41.patch new file mode 100644 index 0000000..fc48b18 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-gcc41.patch @@ -0,0 +1,18 @@ +Index: fbsd-6.1/usr.sbin/IPXrouted/trace.c +=================================================================== +--- fbsd-6.1.orig/usr.sbin/IPXrouted/trace.c ++++ fbsd-6.1/usr.sbin/IPXrouted/trace.c +@@ -66,12 +66,12 @@ int tracing = 0; + + void dumpif(FILE *fd, struct interface *ifp); + void dumptrace(FILE *fd, char *dir, struct ifdebug *ifd); ++static int iftraceinit(); + + void + traceinit(ifp) + register struct interface *ifp; + { +- static int iftraceinit(); + + if (iftraceinit(ifp, &ifp->int_input) && + iftraceinit(ifp, &ifp->int_output)) diff --git a/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-nowrap.patch b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-nowrap.patch new file mode 100644 index 0000000..175b0c8 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.1-nowrap.patch @@ -0,0 +1,48 @@ +diff -ur usr.sbin.orig/rpcbind/Makefile usr.sbin/rpcbind/Makefile +--- usr.sbin.orig/rpcbind/Makefile 2006-03-15 07:44:28 +0000 ++++ usr.sbin/rpcbind/Makefile 2006-04-19 17:37:18 +0000 +@@ -13,13 +13,19 @@ + rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c \ + rpc_generic.c + +-CFLAGS+= -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP ++CFLAGS+= -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP ++ ++DPADD= ${LIBUTIL} ++LDADD= -lutil ++ ++.if !defined(NO_WRAP) ++CFLAGS+= -DLIBWRAP ++DPADD+= ${LIBWRAP} ++LDADD+= -lwrap ++.endif + + .if !defined(NO_INET6) + CFLAGS+= -DINET6 + .endif + +-DPADD= ${LIBWRAP} ${LIBUTIL} +-LDADD= -lwrap -lutil +- + .include +diff -ur usr.sbin.orig/ypserv/Makefile usr.sbin/ypserv/Makefile +--- usr.sbin.orig/ypserv/Makefile 2004-10-18 21:42:15 +0000 ++++ usr.sbin/ypserv/Makefile 2006-04-19 17:31:23 +0000 +@@ -8,10 +8,13 @@ + SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \ + ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c + +-CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I. ++CFLAGS+= -DDB_CACHE -I. + +-DPADD= ${LIBWRAP} +-LDADD= -lwrap ++.if !defined(NO_WRAP) ++CFLAGS+= -DTCP_WRAPPER ++DPADD+= ${LIBWRAP} ++LDADD+= -lwrap ++.endif + + CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h + +Only in usr.sbin/ypserv: Makefile.orig diff --git a/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch new file mode 100644 index 0000000..fe8a807 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-6.2_rc2-libedit-netbsd.patch @@ -0,0 +1,13 @@ +Index: fbsd-6.2rc2/usr.sbin/cdcontrol/cdcontrol.c +=================================================================== +--- fbsd-6.2rc2.orig/usr.sbin/cdcontrol/cdcontrol.c ++++ fbsd-6.2rc2/usr.sbin/cdcontrol/cdcontrol.c +@@ -1130,7 +1130,7 @@ input (int *cmd) + el = el_init("cdcontrol", stdin, stdout, + stderr); + hist = history_init(); +- history(hist, &he, H_EVENT, 100); ++ history(hist, &he, H_SETSIZE, 100); + el_set(el, EL_HIST, history, hist); + el_set(el, EL_EDITOR, "emacs"); + el_set(el, EL_PROMPT, cdcontrol_prompt); diff --git a/sys-freebsd/freebsd-usbin/files/freebsd-usbin-7.0-nowrap.patch b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-7.0-nowrap.patch new file mode 100644 index 0000000..17442ee --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-7.0-nowrap.patch @@ -0,0 +1,45 @@ +diff -ur usr.sbin.orig/rpcbind/Makefile usr.sbin/rpcbind/Makefile +--- usr.sbin.orig/rpcbind/Makefile 2007-04-21 12:02:30 +0000 ++++ usr.sbin/rpcbind/Makefile 2007-04-21 12:05:32 +0000 +@@ -8,13 +8,20 @@ + SRCS= check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \ + rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c + +-CFLAGS+= -DPORTMAP -DLIBWRAP ++CFLAGS+= -DPORTMAP + + .if ${MK_INET6_SUPPORT} != "no" + CFLAGS+= -DINET6 + .endif + +-DPADD= ${LIBWRAP} ${LIBUTIL} +-LDADD= -lwrap -lutil ++DPADD= ${LIBUTIL} ++LDADD= -lutil ++ ++.if !defined(NO_WRAP) ++CFLAGS+= -DTCP_WRAPPER ++DPADD+= ${LIBWRAP} ++LDADD+= -lwrap ++.endif ++ + + .include +diff -ur usr.sbin.orig/ypserv/Makefile usr.sbin/ypserv/Makefile +--- usr.sbin.orig/ypserv/Makefile 2007-04-21 12:02:31 +0000 ++++ usr.sbin/ypserv/Makefile 2007-04-21 12:06:53 +0000 +@@ -8,10 +8,13 @@ + SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \ + ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c + +-CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I. ++CFLAGS+= -DDB_CACHE -I. + ++.if !defined(NO_WRAP) ++CFLAGS+= -DTCP_WRAPPER + DPADD= ${LIBWRAP} + LDADD= -lwrap ++.endif + + CLEANFILES= yp_svc.c ypxfr_clnt.c yp.h + diff --git a/sys-freebsd/freebsd-usbin/files/freebsd-usbin-adduser.patch b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-adduser.patch new file mode 100644 index 0000000..39177b4 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/freebsd-usbin-adduser.patch @@ -0,0 +1,20 @@ +--- usr.sbin/adduser/adduser.sh.old 2006-10-01 13:41:16 +0000 ++++ usr.sbin/adduser/adduser.sh 2006-10-01 13:41:38 +0000 +@@ -809,7 +809,7 @@ + NOHOME="/nonexistent" + NOLOGIN="nologin" + NOLOGIN_PATH="/usr/sbin/nologin" +-GREPCMD="/usr/bin/grep" ++GREPCMD="/bin/grep" + DATECMD="/bin/date" + + # Set default values +@@ -823,7 +823,7 @@ + uhome= + upass= + ushell= +-udotdir=/usr/share/skel ++udotdir=/etc/skel + ugroups= + uexpire= + upwexpire= diff --git a/sys-freebsd/freebsd-usbin/files/moused.confd b/sys-freebsd/freebsd-usbin/files/moused.confd new file mode 100644 index 0000000..fea968b --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/moused.confd @@ -0,0 +1,20 @@ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/moused.confd,v 1.2 2006/10/03 14:43:39 uberlord Exp $ + +# See the moused man page for available settings. + +# Set to your mouse device psm[0-9] for PS/2 ports, ums[0-9] for USB ports +# Leave blank to try to autodetect it +MOUSED_DEVICE="" + +# Any additional flags requires +MOUSED_FLAGS="" + +# If 0xd0-0xd3 default range is occupied in your language code table, specify +# alternative range start like MOUSECHAR_START="3", see vidcontrol(1) +MOUSECHAR_START="" + +# You can also multiplex the init script for each device like so +# ln -s moused /etc/init.d/moused.ums0 +# This enables you to have a config file per mouse (forces MOUSED_DEVICE +# to ums0 in this case) and control each mouse. +# devd can also start and stop these mice, which laptop users will find handy. diff --git a/sys-freebsd/freebsd-usbin/files/moused.initd b/sys-freebsd/freebsd-usbin/files/moused.initd new file mode 100644 index 0000000..3ac9a34 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/moused.initd @@ -0,0 +1,66 @@ +#!/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/moused.initd,v 1.3 2007/02/23 14:03:08 uberlord Exp $ + +MOUSED_NAME=${SVCNAME##*.} +if [ -n "${MOUSED_NAME}" ] && [ ${MOUSED_NAME} != "moused" ] ; then + MOUSED_DEVICE=/dev/"${MOUSED_NAME}" + MOUSED_PIDFILE=/var/run/moused-"${MOUSED_NAME}".pid +else + MOUSED_NAME= + MOUSED_PIDFILE=/var/run/moused.pid +fi + +depend() { + need localmount +} + +start() { + ebegin "Starting the Console Mouse Daemon" "${MOUSED_NAME}" + + if [ -z ${MOUSED_DEVICE} ] ; then + for x in /dev/psm[0-9]* /dev/ums[0-9]* ; do + if [ -e "${x}" ] && \ + [ ! -e /var/run/moused-$(basename "${x}").pid ] ; then + MOUSED_DEVICE=${x} + eindent + einfo "Using mouse on ${MOUSED_DEVICE}" + eoutdent + break + fi + done + fi + + if [ -z "${MOUSED_DEVICE}" ] ; then + eend 1 "No device specified in" "/etc/conf.d/${SVCNAME}" \ + "and no mouse detected" + return 1 + fi + + local opts="${MOUSED_FLAGS} -p ${MOUSED_DEVICE}" + start-stop-daemon --start --quiet --exec /usr/sbin/moused \ + --pidfile "${MOUSED_PIDFILE}" \ + -- ${opts} -I "${MOUSED_PIDFILE}" + local retval=$? + + [ -n "${MOUSE_CHAR_START}" ] && MOUSE_CHAR_START="-M ${MOUSE_CHAR_START}" + local ttyv= + for ttyv in /dev/ttyv* ; do + vidcontrol < "${ttyv}" ${MOUSE_CHAR_START} -m on || retval=1 + done + + eend ${retval} "Failed to start moused" +} + +stop() { + ebegin "Stopping the Console Mouse Daemon" "${MOUSED_NAME}" + # Don't specify the binary as >1 instance of moused may be running + # which is perfectly valid as we can be multiplexed. + start-stop-daemon --stop --exec /usr/sbin/moused \ + --pidfile "${MOUSED_PIDFILE}" + eend $? "Failed to stop moused" +} + +# vim: set ts=4 : + diff --git a/sys-freebsd/freebsd-usbin/files/nfs.confd b/sys-freebsd/freebsd-usbin/files/nfs.confd new file mode 100644 index 0000000..80ace9c --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/nfs.confd @@ -0,0 +1,24 @@ +# /etc/conf.d/nfs +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/nfs.confd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ + +# Config file for /etc/init.d/nfs + +# If you wish to set the port numbers for lockd, +# please see /etc/sysctl.conf + +# Number of servers to be started up by default +RPCNFSDCOUNT=8 + +# Options to pass to rpc.mountd +# ex. RPCMOUNTDOPTS="-p 32767 +RPCMOUNTDOPTS="" + +# Options to pass to rpc.statd +# ex. RPCSTATDOPTS="-p 32765 -o 32766" +RPCSTATDOPTS="" + +# Options to pass to rpc.idmapd +RPCIDMAPDOPTS="" + +# Timeout (in seconds) for exportfs +EXPORTFSTIMEOUT=30 diff --git a/sys-freebsd/freebsd-usbin/files/nfs.initd b/sys-freebsd/freebsd-usbin/files/nfs.initd new file mode 100755 index 0000000..d99017f --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/nfs.initd @@ -0,0 +1,209 @@ +#!/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.2 2007/04/06 14:47:17 uberlord Exp $ + +#--------------------------------------------------------------------------- +# This script starts/stops the following +# rpc.statd if necessary (also checked by init.d/nfsmount) +# rpc.rquotad if exists (from quota package) +# rpc.nfsd +# rpc.mountd +#--------------------------------------------------------------------------- + +# NB: Config is in /etc/conf.d/nfs + +opts="reload" + +# This variable is used for controlling whether or not to run exportfs -ua; +# see stop() for more information +restarting=no + +# The binary locations +exportfs=/usr/sbin/exportfs +statd=/usr/sbin/rpc.statd +idmapd=/usr/sbin/rpc.idmapd +rquotad=/usr/sbin/rpc.rquotad +nfsd=/usr/sbin/rpc.nfsd +mountd=/usr/sbin/rpc.mountd + +depend() { + use ypbind net + need rpcbind + after quota +} + +start_idmapd() { + [ ! -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 + ebegin "Mounting RPC pipefs" + mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs + eend $? + fi + fi + + ebegin "Starting idmapd" + ${idmapd} ${RPCIDMAPDOPTS} + eend $? +} + +stop_idmapd() { + [ ! -x ${idmapd} ] && return 0 + + ebegin "Stopping idmapd" + start-stop-daemon --stop --quiet --exec ${idmapd} + ret=$? + eend ${ret} + + 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 + eend $? + fi + fi + + return ${ret} +} + +start_statd() { + # Don't start rpc.statd if already started by init.d/nfsmount + killall -0 rpc.statd 2>/dev/null && return 0 + ebegin "Starting NFS statd" + start-stop-daemon --start --quiet --exec \ + $statd -- $RPCSTATDOPTS 1>&2 + eend $? "Error starting NFS statd" +} + +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 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 + eend $? "Error stopping NFS statd" +} + +waitfor_exportfs() { + local pid=$1 + ( sleep ${EXPORTFSTIMEOUT:-30}; kill -9 $pid 2>/dev/null ) & + wait $1 +} + +start() { + # Make sure nfs support is loaded in the kernel #64709 + if [ -e /proc/modules ] ; then + modprobe nfsd &> /dev/null + fi + + # This is the new "kernel 2.6 way" to handle the exports file + 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" + fi + fi + # now that nfsd is mounted inside /proc, we can safely start mountd later + + start_idmapd + start_statd + + # 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 2>/dev/null; then + ebegin "Exporting NFS directories" + $exportfs -r 1>&2 & + waitfor_exportfs $! + eend $? "Error exporting NFS directories" + fi + + if [ -x "${rquotad}" ]; then + ebegin "Starting NFS rquotad" + start-stop-daemon --start --quiet --exec \ + $rquotad -- $RPCRQUOTADOPTS 1>&2 + eend $? "Error starting NFS rquotad" + fi + + ebegin "Starting NFS daemon" + start-stop-daemon --start --quiet --exec \ + $nfsd -- $RPCNFSDCOUNT 1>&2 + eend $? "Error starting NFS daemon" + + # Start mountd + ebegin "Starting NFS mountd" + start-stop-daemon --start --quiet --exec \ + $mountd -- $RPCMOUNTDOPTS 1>&2 + eend $? "Error starting NFS mountd" +} + +stop() { + # Don't check NFSSERVER variable since it might have changed, + # instead use --oknodo to smooth things over + ebegin "Stopping NFS mountd" + start-stop-daemon --stop --quiet --oknodo \ + --exec $mountd 1>&2 + eend $? "Error stopping NFS mountd" + + # nfsd sets its process name to [nfsd] so don't look for $nfsd + ebegin "Stopping NFS daemon" + start-stop-daemon --stop --quiet --oknodo \ + --name nfsd --user root --signal 2 1>&2 + eend $? "Error stopping NFS daemon" + + if [ -x $rquotad ]; then + ebegin "Stopping NFS rquotad" + start-stop-daemon --stop --quiet --oknodo \ + --exec $rquotad 1>&2 + eend $? "Error stopping NFS rquotad" + fi + + # When restarting the NFS server, running "exportfs -ua" probably + # isn't what the user wants. Running it causes all entries listed + # in xtab to be removed from the kernel export tables, and the + # xtab file is cleared. This effectively shuts down all NFS + # activity, leaving all clients holding stale NFS filehandles, + # *even* when the NFS server has restarted. + # + # That's what you would want if you were shutting down the NFS + # server for good, or for a long period of time, but not when the + # NFS server will be running again in short order. In this case, + # 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 -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 + # shutdown process can continue. + $exportfs -ua 1>&2 & + waitfor_exportfs $! + eend $? "Error unexporting NFS directories" + fi + + stop_statd + stop_idmapd +} + +reload() { + # 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. + ebegin "Reloading /etc/exports" + $exportfs -r 1>&2 & + waitfor_exportfs $! + eend $? "Error exporting NFS directories" +} + +restart() { + # See long comment in stop() regarding "restarting" and exportfs -ua + restarting=yes + svc_stop + svc_start +} diff --git a/sys-freebsd/freebsd-usbin/files/nfsmount.initd b/sys-freebsd/freebsd-usbin/files/nfsmount.initd new file mode 100755 index 0000000..9208804 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/nfsmount.initd @@ -0,0 +1,63 @@ +#!/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.3 2007/04/06 14:47:17 uberlord Exp $ + +depend() { + need net rpcbind + use ypbind +} + +start_statd() { + # Don't start rpc.statd if already started by init.d/nfs + killall -0 rpc.statd 2>/dev/null && return 0 + ebegin "Starting NFS statd" + rpc.statd + eend $? "Error starting NFS statd" +} + +stop_statd() { + # Don't stop rpc.statd if it's in use by init.d/nfs + killall -0 nfsd 2>/dev/null && return 0 + # Make sure it's actually running + killall -0 rpc.statd 2>/dev/null || return 0 + # Okay, all tests passed, stop rpc.statd + ebegin "Stopping NFS statd" + killall rpc.statd + eend $? "Error stopping NFS statd" +} + +start_lockd() { + # Don't start rpc.lockd if already started by init.d/nfs + killall -0 rpc.lockd 2>/dev/null && return 0 + ebegin "Starting NFS lockd" + rpc.lockd + eend $? "Error starting NFS lockd" +} + +stop_lockd() { + # Don't stop rpc.lockd if it's in use by init.d/nfs + killall -0 nfsd 2>/dev/null && return 0 + # Make sure it's actually running + killall -0 rpc.lockd 2>/dev/null || return 0 + # Okay, all tests passed, stop rpc.lockd + ebegin "Stopping NFS lockd" + killall rpc.lockd + eend $? "Error stopping NFS lockd" +} + +start() { + start_statd + start_lockd + ebegin "Mounting NFS filesystems" + mount -a -t nfs + eend $? "Error mounting NFS filesystems" +} + +stop() { + ebegin "Unmounting NFS filesystems" + umount -a -t nfs + eend $? "Error unmounting NFS filesystems" + stop_statd + stop_lockd +} diff --git a/sys-freebsd/freebsd-usbin/files/powerd.confd b/sys-freebsd/freebsd-usbin/files/powerd.confd new file mode 100644 index 0000000..793e68b --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/powerd.confd @@ -0,0 +1,14 @@ +# 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/powerd.confd,v 1.2 2006/10/12 14:59:48 uberlord Exp $ + +# Mode allowed: maximum, minimum, adaptive +# Default unless specified is adaptive + +AC_MODE="maximum" + +#BATTERY_MODE="minimum" + +POWERD_OPTS="" + + diff --git a/sys-freebsd/freebsd-usbin/files/powerd.initd b/sys-freebsd/freebsd-usbin/files/powerd.initd new file mode 100755 index 0000000..c99adf8 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/powerd.initd @@ -0,0 +1,27 @@ +#!/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/powerd.initd,v 1.3 2007/02/23 14:03:08 uberlord Exp $ + +depend() { + need localmount +} + +start() { + local args= + [ -n "${BATTERY_MODE}" ] && args="${args} -b ${BATTERY_MODE}" + [ -n "${AC_MODE}" ] && args="${args} -a ${AC_MODE}" + + ebegin "Starting Power Control Daemon" + start-stop-daemon --start --exec /usr/sbin/powerd \ + --pidfile /var/run/powerd.pid \ + -- ${args} ${POWERD_OPTS} + eend $? "Failed to start powerd" +} + +stop() { + ebegin "Stopping Power Control Daemon" + start-stop-daemon --stop --exec /usr/sbin/powerd \ + --pidfile /var/run/powerd.pid + eend $? "Failed to stop powerd" +} diff --git a/sys-freebsd/freebsd-usbin/files/pw.conf b/sys-freebsd/freebsd-usbin/files/pw.conf new file mode 100644 index 0000000..29a246f --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/pw.conf @@ -0,0 +1,5 @@ +# Change this to Gentoo's Default, instead of FreeBSD's default of +# /usr/share/skel, so that bash and other packages installs the files on the +# right place. +skeleton /etc/skel + diff --git a/sys-freebsd/freebsd-usbin/files/rarpd.confd b/sys-freebsd/freebsd-usbin/files/rarpd.confd new file mode 100644 index 0000000..63c7fac --- /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 0000000..f5b21c8 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/rarpd.initd @@ -0,0 +1,35 @@ +#!/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.3 2007/02/23 14:03:08 uberlord 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 --background \ + --pidfile /var/run/rarpd.pid --make-pidfile \ + --exec /usr/sbin/rarpd -- -f ${rarpd_opts} + eend $? +} + +stop() { + ebegin "Stopping reverse ARP daemon" + start-stop-daemon --stop --pidfile /var/run/rarpd.pid \ + --exec /usr/sbin/rarpd -- ${rarpd_opts} + eend $? +} diff --git a/sys-freebsd/freebsd-usbin/files/rpcbind.initd b/sys-freebsd/freebsd-usbin/files/rpcbind.initd new file mode 100755 index 0000000..69451f1 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/rpcbind.initd @@ -0,0 +1,30 @@ +#!/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/rpcbind.initd,v 1.3 2006/12/07 18:00:15 uberlord Exp $ + +depend() { + need localmount + use net + before inetd + before xinetd +} + +start() { + ebegin "Starting rpcbind" + start-stop-daemon --start --exec /usr/sbin/rpcbind + local ret=$? + eend ${ret} + + # without, if a service depending on portmap is started too fast, + # connecting to portmap will fail -- azarah + # doing that for rpcbind, too -- flameeyes + sleep 1 + return ${ret} +} + +stop() { + ebegin "Stopping rpcbind" + start-stop-daemon --stop --exec /usr/sbin/rpcbind + eend $? +} diff --git a/sys-freebsd/freebsd-usbin/files/syscons.confd b/sys-freebsd/freebsd-usbin/files/syscons.confd new file mode 100644 index 0000000..a6d7cd4 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/syscons.confd @@ -0,0 +1,14 @@ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/syscons.confd,v 1.1 2006/09/14 17:03:27 flameeyes Exp $ +# Example syscons config file. This is the place to set things like keymap, etc. + +# Set the keymap to "uk.iso". +#KEYMAP="uk.iso" + +# Set the keyboard rate to 250ms delay, and 34 repeat rate. +#KEYRATE="250.34" + +# Change the behaviour of F-unction keys (see kbdcontrol(1)). +#KEYCHANGE="10 'ssh myhost'" + +# See vidcontrol(1) -t +#BLANKTIME="off" diff --git a/sys-freebsd/freebsd-usbin/files/syscons.initd b/sys-freebsd/freebsd-usbin/files/syscons.initd new file mode 100755 index 0000000..320b870 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/syscons.initd @@ -0,0 +1,78 @@ +#!/sbin/runscript +# 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/files/syscons.initd,v 1.3 2007/02/23 14:03:08 uberlord Exp $ + +depend() { + need localmount +} + +start() { + ebegin "Configuring system console" + + if [ -n "${MODE}" ] ; then + einfo "Setting mode to ${MODE}" + vidcontrol "${MODE}" + eend $? + fi + + # XXX: This should handle serial consoles. + + # Set the keymap. + if [ -n "${KEYMAP}" ]; then + einfo "Setting keymap to" "${KEYMAP}" + kbdcontrol -l ${KEYMAP} < /dev/console + fi + + if [ -n "${KEYRATE}" ]; then + einfo "Setting keyrate to" "${KEYRATE}" + kbdcontrol -r ${KEYRATE} < /dev/console + fi + + if [ -n "${KEYCHANGE}" ]; then + einfo "Changing function keys..." + eval set -- "${KEYCHANGE}" + eindent + while [ $# -gt 0 ] ; do + veinfo "F$1 -> \`$2'" + kbdcontrol -f "$1" "$2" < /dev/console + shift ; shift + done + eoutdent + fi + + if [ -n "${CURSOR}" ]; then + einfo "Setting cursor" + vidcontrol -c ${CURSOR} + fi + + einfo "Setting custom fonts..." + # Nothing to see here, move along... + for v in FONT8x16 FONT8x14 FONT8x8; do + f=$(eval \$"${v}") + if [ -n "${f}" ]; then + vidcontrol -f ${v##FONT} ${f} + fi + done + + if [ -n "${BLANKTIME}" ]; then + einfo "Setting blanktime" + vidcontrol -t ${BLANKTIME} + fi + + if [ -n "${SAVER}" ]; then + for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do + kldunload ${i} + done + kldstat -v | grep -q _saver || kldload ${SAVER}_saver + fi + + if [ -n "${KBDFLAGS}" ]; then + einfo "Setting keyboard flags for all screens" + for ttyv in /dev/ttyv*; do + kbdcontrol ${KBDFLAGS} <${ttyv} &>${ttyv} + done + fi + + eend 0 +} diff --git a/sys-freebsd/freebsd-usbin/files/syslogd.initd b/sys-freebsd/freebsd-usbin/files/syslogd.initd new file mode 100755 index 0000000..0cb314e --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/syslogd.initd @@ -0,0 +1,25 @@ +#!/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/syslogd.initd,v 1.3 2007/02/23 14:03:08 uberlord Exp $ + +depend() { + provide logger + need localmount +} + +start() { + ebegin "Starting System Logger" + start-stop-daemon --start --quiet --exec /usr/sbin/syslogd \ + -- ${SYSLOGD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping System Logger" + start-stop-daemon --stop --quiet --pidfile /var/run/syslog.pid + eend $? +} + + + diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-7.0_pre200704.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-7.0_pre200704.ebuild new file mode 100644 index 0000000..9bbd53a --- /dev/null +++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-7.0_pre200704.ebuild @@ -0,0 +1,176 @@ +# 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="http://84.33.1.46/~drizzt/stages/${P}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${CONTRIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${UBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${LIB}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${SBIN}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${ETC}.tar.bz2 + nis? ( http://84.33.1.46/~drizzt/stages/${LIBEXEC}.tar.bz2 ) + build? ( http://84.33.1.46/~drizzt/stages/${SYS}.tar.bz2 + http://84.33.1.46/~drizzt/stages/${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}-7.0-nowrap.patch + ${FILESDIR}/${PN}-adduser.patch" + +REMOVE_SUBDIRS=" + named named-checkzone named-checkconf rndc rndc-confgen + dnssec-keygen dnssec-signzone + tcpdchk tcpdmatch + sendmail praliases editmap mailstats makemap + sade 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} < + + +bsd + diff --git a/sys-freebsd/metadata.xml b/sys-freebsd/metadata.xml new file mode 100644 index 0000000..5876b0a --- /dev/null +++ b/sys-freebsd/metadata.xml @@ -0,0 +1,11 @@ + + + + + Ebuilds for the Gentoo/FreeBSD base system software. + + + Ebuild per il software di sistema base di Gentoo/FreeBSD. + + + -- cgit v1.2.3-65-gdbad