From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sys-apps/9base/9base-6-r1.ebuild | 50 ++ sys-apps/9base/Manifest | 1 + sys-apps/9base/metadata.xml | 8 + sys-apps/accountsservice/Manifest | 2 + .../accountsservice/accountsservice-0.6.39.ebuild | 59 ++ .../accountsservice/accountsservice-0.6.40.ebuild | 58 ++ ...ccountsservice-0.6.35-gentoo-system-users.patch | 51 ++ sys-apps/accountsservice/metadata.xml | 9 + sys-apps/ack/Manifest | 1 + sys-apps/ack/ack-2.14.ebuild | 28 + sys-apps/ack/files/ack-2.14-gentoo.patch | 22 + sys-apps/ack/metadata.xml | 11 + sys-apps/acl/Manifest | 4 + sys-apps/acl/acl-2.2.49-r1.ebuild | 62 ++ sys-apps/acl/acl-2.2.49.ebuild | 64 ++ sys-apps/acl/acl-2.2.51.ebuild | 63 ++ sys-apps/acl/acl-2.2.52-r1.ebuild | 59 ++ sys-apps/acl/acl-2.2.52.ebuild | 49 ++ sys-apps/acl/files/acl-2.2.49-quote-strchr.patch | 25 + sys-apps/acl/files/acl-2.2.51-config-shell.patch | 53 ++ sys-apps/acl/metadata.xml | 13 + sys-apps/adjtime/Manifest | 1 + sys-apps/adjtime/adjtime-0.4-r2.ebuild | 43 + sys-apps/adjtime/metadata.xml | 9 + sys-apps/agedu/Manifest | 2 + sys-apps/agedu/agedu-20141024.10297.ebuild | 34 + sys-apps/agedu/agedu-20150422.3922.ebuild | 34 + .../agedu/files/agedu-r9671-fix-automagic.patch | 44 + sys-apps/agedu/metadata.xml | 8 + sys-apps/aix-miscutils/Manifest | 1 + .../aix-miscutils/aix-miscutils-0.1.1671.ebuild | 16 + sys-apps/aix-miscutils/metadata.xml | 8 + sys-apps/apmd/Manifest | 2 + sys-apps/apmd/apmd-3.2.2_p14.ebuild | 79 ++ sys-apps/apmd/files/apmd.confd | 4 + sys-apps/apmd/files/apmd.rc6 | 29 + sys-apps/apmd/metadata.xml | 5 + sys-apps/apparmor-utils/Manifest | 2 + .../apparmor-utils/apparmor-utils-2.8.3.ebuild | 52 ++ .../apparmor-utils/apparmor-utils-2.8.4.ebuild | 52 ++ sys-apps/apparmor-utils/metadata.xml | 11 + sys-apps/apparmor/Manifest | 2 + sys-apps/apparmor/apparmor-2.8.3.ebuild | 46 ++ sys-apps/apparmor/apparmor-2.8.4.ebuild | 46 ++ .../apparmor/files/apparmor-2.8.2-makefile.patch | 34 + sys-apps/apparmor/files/apparmor-init | 92 +++ sys-apps/apparmor/metadata.xml | 11 + sys-apps/apply-default-acl/Manifest | 1 + .../apply-default-acl-0.0.4.ebuild | 22 + sys-apps/apply-default-acl/metadata.xml | 15 + sys-apps/arrayprobe/Manifest | 1 + sys-apps/arrayprobe/arrayprobe-2.0-r2.ebuild | 22 + sys-apps/arrayprobe/files/2.0-ida_headers.patch | 647 +++++++++++++++ sys-apps/arrayprobe/files/2.0-malloc-strlen.patch | 20 + sys-apps/arrayprobe/metadata.xml | 9 + sys-apps/attr/Manifest | 2 + sys-apps/attr/attr-2.4.46-r2.ebuild | 54 ++ sys-apps/attr/attr-2.4.47-r1.ebuild | 69 ++ sys-apps/attr/attr-2.4.47-r2.ebuild | 69 ++ sys-apps/attr/files/attr-2.4.44-gettext.patch | 63 ++ sys-apps/attr/files/attr-2.4.46-config-shell.patch | 53 ++ .../attr/files/attr-2.4.46-generic-syscalls.patch | 180 +++++ sys-apps/attr/metadata.xml | 5 + sys-apps/audio-entropyd/Manifest | 1 + .../audio-entropyd/audio-entropyd-2.0.3-r1.ebuild | 38 + .../audio-entropyd/audio-entropyd-2.0.3.ebuild | 37 + .../files/audio-entropyd-2.0.1-ldflags.patch | 13 + .../files/audio-entropyd-2.0.1-uclibc.patch | 27 + .../audio-entropyd/files/audio-entropyd.conf-2 | 13 + .../audio-entropyd/files/audio-entropyd.init-2 | 27 + .../audio-entropyd/files/audio-entropyd.service | 8 + sys-apps/audio-entropyd/metadata.xml | 9 + sys-apps/baobab/Manifest | 2 + sys-apps/baobab/baobab-3.14.1.ebuild | 40 + sys-apps/baobab/baobab-3.16.1.ebuild | 40 + sys-apps/baobab/metadata.xml | 5 + sys-apps/bar/Manifest | 1 + sys-apps/bar/bar-1.11.1.ebuild | 49 ++ sys-apps/bar/metadata.xml | 8 + sys-apps/baselayout-java/Manifest | 1 + .../baselayout-java/baselayout-java-0.1.0.ebuild | 28 + sys-apps/baselayout-java/metadata.xml | 7 + sys-apps/baselayout-prefix/Manifest | 4 + .../baselayout-prefix-1.12.14-r1.ebuild | 148 ++++ .../baselayout-prefix-1.12.14.ebuild | 182 +++++ .../baselayout-prefix-1.12.5-r11.ebuild | 180 +++++ .../baselayout-prefix-2.2-r3.ebuild | 96 +++ .../baselayout-prefix-2.2-r4.ebuild | 84 ++ .../files/baselayout-1.12.5-aix.patch | 110 +++ .../files/baselayout-1.12.5-darwin-kvm.patch | 22 + .../files/baselayout-1.12.5-gnulib.patch | 78 ++ .../baselayout-1.12.5-prefix-chaining-bash.patch | 18 + ...baselayout-1.12.5-prefix-chaining-eprefix.patch | 25 + ...selayout-1.12.5-prefix-chaining-pkgconfig.patch | 16 + .../baselayout-1.12.5-prefix-chaining-prompt.patch | 58 ++ ...selayout-1.12.5-prefix-chaining-recursion.patch | 33 + .../files/baselayout-1.12.5-prefix-chaining.patch | 83 ++ .../baselayout-1.12.5-prefix-no-consoletype.patch | 11 + .../files/baselayout-1.12.5-prefix-pidof.patch | 11 + .../files/baselayout-1.12.5-prefix-sh.patch | 226 ++++++ .../files/baselayout-1.12.5-prefix-src.patch | 102 +++ .../files/baselayout-1.12.5-prefix.patch | 409 ++++++++++ .../files/baselayout-1.12.5-solaris.patch | 66 ++ .../files/baselayout-1.12.5-strsep.patch | 42 + .../files/baselayout-1.12.5-termios_h.patch | 30 + .../files/einfo-1.0.4-termcap-check.patch | 83 ++ sys-apps/baselayout-prefix/metadata.xml | 10 + sys-apps/baselayout/Manifest | 1 + sys-apps/baselayout/baselayout-2.2.ebuild | 234 ++++++ sys-apps/baselayout/metadata.xml | 5 + sys-apps/biosdevname/Manifest | 4 + sys-apps/biosdevname/biosdevname-0.3.11-r1.ebuild | 40 + sys-apps/biosdevname/biosdevname-0.4.0.ebuild | 40 + sys-apps/biosdevname/biosdevname-0.4.1.ebuild | 42 + sys-apps/biosdevname/biosdevname-0.6.1.ebuild | 25 + sys-apps/biosdevname/metadata.xml | 14 + sys-apps/biosdisk/Manifest | 1 + sys-apps/biosdisk/biosdisk-0_p20100611-r1.ebuild | 46 ++ sys-apps/biosdisk/metadata.xml | 14 + sys-apps/bleachbit/Manifest | 3 + sys-apps/bleachbit/bleachbit-1.2.ebuild | 65 ++ sys-apps/bleachbit/bleachbit-1.4.ebuild | 65 ++ sys-apps/bleachbit/bleachbit-1.9.1.ebuild | 65 ++ sys-apps/bleachbit/metadata.xml | 12 + sys-apps/busybox/Manifest | 8 + sys-apps/busybox/busybox-1.20.2.ebuild | 291 +++++++ sys-apps/busybox/busybox-1.21.0.ebuild | 299 +++++++ sys-apps/busybox/busybox-1.21.1.ebuild | 299 +++++++ sys-apps/busybox/busybox-1.22.0.ebuild | 299 +++++++ sys-apps/busybox/busybox-1.22.1-r1.ebuild | 300 +++++++ sys-apps/busybox/busybox-1.22.1.ebuild | 299 +++++++ sys-apps/busybox/busybox-1.23.0-r1.ebuild | 302 +++++++ sys-apps/busybox/busybox-1.23.1-r1.ebuild | 303 +++++++ sys-apps/busybox/busybox-1.23.1.ebuild | 302 +++++++ sys-apps/busybox/busybox-1.23.2.ebuild | 305 +++++++ sys-apps/busybox/busybox-9999.ebuild | 303 +++++++ sys-apps/busybox/files/busybox-1.19.0-bb.patch | 22 + .../files/busybox-1.20.0-udhcpc6-ipv6.patch | 33 + .../files/busybox-1.20.2-glibc-sys-resource.patch | 109 +++ .../files/busybox-1.20.2-selinux-pkg-config.patch | 67 ++ sys-apps/busybox/files/busybox-1.21.0-mdev.patch | 35 + .../busybox/files/busybox-1.21.0-platform.patch | 24 + sys-apps/busybox/files/busybox-1.21.0-xz.patch | 84 ++ ...ox-1.21.1-trylink-only-prefix-libs-with-l.patch | 51 ++ sys-apps/busybox/files/busybox-1.22.0-find.patch | 40 + sys-apps/busybox/files/busybox-1.22.0-grep.patch | 80 ++ .../busybox/files/busybox-1.22.0-lineedit.patch | 12 + sys-apps/busybox/files/busybox-1.22.0-ntpd.patch | 11 + sys-apps/busybox/files/busybox-1.22.1-ash.patch | 11 + sys-apps/busybox/files/busybox-1.22.1-date.patch | 30 + sys-apps/busybox/files/busybox-1.22.1-iplink.patch | 19 + sys-apps/busybox/files/busybox-1.22.1-lzop.patch | 66 ++ sys-apps/busybox/files/busybox-1.22.1-nc.patch | 15 + .../busybox/files/busybox-1.22.1-zcat-no-ext.patch | 64 ++ .../files/busybox-1.23.1-modprobe-small.patch | 166 ++++ .../files/busybox-1.23.1-trylink-flags.patch | 39 + sys-apps/busybox/files/ginit.c | 124 +++ sys-apps/busybox/files/klogd.confd | 9 + sys-apps/busybox/files/klogd.initd | 12 + sys-apps/busybox/files/mdev-start.sh | 125 +++ sys-apps/busybox/files/mdev.initd | 53 ++ sys-apps/busybox/files/mdev.rc | 9 + sys-apps/busybox/files/mdev.rc.1 | 98 +++ sys-apps/busybox/files/mdev/dvbdev | 18 + sys-apps/busybox/files/mdev/ide_links | 23 + sys-apps/busybox/files/mdev/usbdev | 62 ++ sys-apps/busybox/files/mdev/usbdisk_link | 34 + sys-apps/busybox/files/ntpd.confd | 6 + sys-apps/busybox/files/ntpd.initd | 13 + sys-apps/busybox/files/syslogd.confd | 9 + sys-apps/busybox/files/syslogd.initd | 13 + sys-apps/busybox/files/watchdog.confd | 9 + sys-apps/busybox/files/watchdog.initd | 8 + sys-apps/busybox/metadata.xml | 16 + sys-apps/byld/Manifest | 1 + sys-apps/byld/byld-1.0.3.ebuild | 27 + sys-apps/byld/metadata.xml | 8 + sys-apps/cciss_vol_status/Manifest | 4 + .../cciss_vol_status/cciss_vol_status-1.03.ebuild | 18 + .../cciss_vol_status-1.09-r1.ebuild | 22 + .../cciss_vol_status/cciss_vol_status-1.09.ebuild | 20 + .../cciss_vol_status/cciss_vol_status-1.10.ebuild | 22 + .../cciss_vol_status/cciss_vol_status-1.11.ebuild | 22 + .../cciss_vol_status/files/1.06-strlen-typo.patch | 12 + .../cciss_vol_status/files/cciss_vol_status.cron | 21 + sys-apps/cciss_vol_status/metadata.xml | 12 + sys-apps/ccs-tools/Manifest | 1 + .../ccs-tools/ccs-tools-1.8.3_p20130214.ebuild | 62 ++ .../files/ccs-tools-1.8.3_p20130214-warnings.patch | 22 + sys-apps/ccs-tools/metadata.xml | 10 + sys-apps/checkpolicy/Manifest | 3 + sys-apps/checkpolicy/checkpolicy-2.2.ebuild | 47 ++ sys-apps/checkpolicy/checkpolicy-2.3.ebuild | 51 ++ sys-apps/checkpolicy/checkpolicy-2.4.ebuild | 51 ++ sys-apps/checkpolicy/checkpolicy-9999.ebuild | 58 ++ sys-apps/checkpolicy/metadata.xml | 6 + sys-apps/checkservice/Manifest | 1 + sys-apps/checkservice/checkservice-1.2.0.ebuild | 50 ++ sys-apps/checkservice/metadata.xml | 7 + sys-apps/chname/Manifest | 1 + sys-apps/chname/chname-1.0-r1.ebuild | 30 + sys-apps/chname/metadata.xml | 11 + sys-apps/cinit/Manifest | 1 + sys-apps/cinit/cinit-0.2.1.ebuild | 38 + sys-apps/cinit/metadata.xml | 8 + sys-apps/clrngd/Manifest | 1 + sys-apps/clrngd/clrngd-1.0.3.ebuild | 27 + sys-apps/clrngd/files/clrngd-conf.d | 9 + sys-apps/clrngd/files/clrngd-init.d | 19 + sys-apps/clrngd/metadata.xml | 7 + sys-apps/cobalt-panel-utils/Manifest | 1 + .../cobalt-panel-utils-1.0.2.ebuild | 45 ++ sys-apps/cobalt-panel-utils/metadata.xml | 11 + sys-apps/collectl/Manifest | 4 + sys-apps/collectl/collectl-3.7.3.ebuild | 35 + sys-apps/collectl/collectl-3.7.4.ebuild | 37 + sys-apps/collectl/collectl-4.0.0.ebuild | 37 + sys-apps/collectl/collectl-4.0.2.ebuild | 37 + sys-apps/collectl/files/collectl.initd-2 | 16 + sys-apps/collectl/metadata.xml | 8 + sys-apps/conspy/Manifest | 2 + sys-apps/conspy/conspy-1.10.ebuild | 35 + sys-apps/conspy/conspy-1.8.ebuild | 27 + sys-apps/conspy/metadata.xml | 5 + sys-apps/coreutils/Manifest | 15 + sys-apps/coreutils/coreutils-8.20.ebuild | 177 +++++ sys-apps/coreutils/coreutils-8.21.ebuild | 180 +++++ sys-apps/coreutils/coreutils-8.22-r1.ebuild | 170 ++++ sys-apps/coreutils/coreutils-8.22.ebuild | 178 +++++ sys-apps/coreutils/coreutils-8.23.ebuild | 176 ++++ sys-apps/coreutils/coreutils-8.24.ebuild | 176 ++++ sys-apps/coreutils/metadata.xml | 11 + sys-apps/cpint/Manifest | 2 + sys-apps/cpint/cpint-1.1.6.ebuild | 28 + sys-apps/cpint/cpint-2.5.3.ebuild | 32 + sys-apps/cpint/files/cpint-2.5.3-build.patch | 73 ++ sys-apps/cpint/files/cpint-2.5.3-kernel.patch | 43 + sys-apps/cpint/files/cpint-2.5.3-prototypes.patch | 43 + sys-apps/cpint/metadata.xml | 6 + sys-apps/cpuid/Manifest | 3 + sys-apps/cpuid/cpuid-20130610.ebuild | 31 + sys-apps/cpuid/cpuid-20140123.ebuild | 31 + sys-apps/cpuid/cpuid-20150606.ebuild | 31 + sys-apps/cpuid/files/cpuid-20110305-Makefile.patch | 30 + sys-apps/cpuid/files/cpuid-20110305-fPIC.patch | 24 + sys-apps/cpuid/files/cpuid-20150606-Makefile.patch | 21 + sys-apps/cpuid/metadata.xml | 12 + sys-apps/cracklib-words/Manifest | 1 + .../cracklib-words/cracklib-words-20080507.ebuild | 29 + sys-apps/cracklib-words/metadata.xml | 8 + sys-apps/cv/Manifest | 1 + sys-apps/cv/cv-0.4.1.ebuild | 34 + sys-apps/cv/metadata.xml | 11 + sys-apps/daemonize/Manifest | 3 + sys-apps/daemonize/daemonize-1.7.4.ebuild | 28 + sys-apps/daemonize/daemonize-1.7.5.ebuild | 28 + sys-apps/daemonize/daemonize-1.7.6.ebuild | 28 + sys-apps/daemonize/metadata.xml | 13 + sys-apps/darwin-miscutils/Manifest | 17 + .../darwin-miscutils/darwin-miscutils-10.ebuild | 156 ++++ .../darwin-miscutils/darwin-miscutils-4-r1.ebuild | 106 +++ .../darwin-miscutils/darwin-miscutils-5-r1.ebuild | 141 ++++ .../darwin-miscutils/darwin-miscutils-6-r1.ebuild | 140 ++++ .../darwin-miscutils/darwin-miscutils-7.ebuild | 139 ++++ .../darwin-miscutils/darwin-miscutils-8.ebuild | 133 ++++ .../darwin-miscutils/darwin-miscutils-9.ebuild | 130 +++ .../files/darwin-miscutils-5-error.patch | 14 + .../files/darwin-miscutils-5-stdlib.patch | 20 + .../files/darwin-miscutils-5-w.patch | 10 + .../files/darwin-miscutils-6-w64.patch | 17 + sys-apps/darwin-miscutils/metadata.xml | 5 + sys-apps/dbus/Manifest | 3 + sys-apps/dbus/dbus-1.8.16.ebuild | 248 ++++++ sys-apps/dbus/dbus-1.8.18.ebuild | 252 ++++++ sys-apps/dbus/dbus-1.8.20.ebuild | 252 ++++++ sys-apps/dbus/files/80-dbus | 13 + sys-apps/dbus/files/dbus.initd | 50 ++ sys-apps/dbus/metadata.xml | 14 + sys-apps/dcfldd/Manifest | 1 + sys-apps/dcfldd/dcfldd-1.3.4.1.ebuild | 26 + sys-apps/dcfldd/metadata.xml | 8 + sys-apps/dchroot/Manifest | 1 + sys-apps/dchroot/dchroot-0.12.1.ebuild | 36 + sys-apps/dchroot/metadata.xml | 7 + sys-apps/debianutils/Manifest | 4 + sys-apps/debianutils/debianutils-4.3.2.ebuild | 44 + sys-apps/debianutils/debianutils-4.3.3.ebuild | 44 + sys-apps/debianutils/debianutils-4.3.4.ebuild | 44 + sys-apps/debianutils/debianutils-4.4.ebuild | 44 + .../files/debianutils-3.4.2-no-bs-namespace.patch | 30 + sys-apps/debianutils/metadata.xml | 5 + sys-apps/diffutils/Manifest | 1 + sys-apps/diffutils/diffutils-3.3.ebuild | 49 ++ sys-apps/diffutils/metadata.xml | 5 + sys-apps/dmapi/Manifest | 1 + sys-apps/dmapi/dmapi-2.2.12-r1.ebuild | 48 ++ sys-apps/dmapi/dmapi-2.2.12.ebuild | 42 + sys-apps/dmapi/metadata.xml | 5 + sys-apps/dmidecode/Manifest | 1 + sys-apps/dmidecode/dmidecode-2.12-r1.ebuild | 44 + .../files/2.12-supported-smbios-version.patch | 55 ++ sys-apps/dmidecode/metadata.xml | 5 + sys-apps/dmtcp/Manifest | 1 + sys-apps/dmtcp/dmtcp-1.2.6.ebuild | 62 ++ sys-apps/dmtcp/files/dmtcp-1.2.1-gcc46.patch | 21 + sys-apps/dmtcp/metadata.xml | 12 + sys-apps/dnotify/Manifest | 1 + sys-apps/dnotify/dnotify-0.18.0.ebuild | 33 + .../dnotify/files/dnotify-0.18.0-glibc-212.patch | 12 + sys-apps/dnotify/files/dnotify-0.18.0-nls.patch | 10 + sys-apps/dnotify/metadata.xml | 5 + sys-apps/dog/Manifest | 1 + sys-apps/dog/dog-1.7-r4.ebuild | 43 + sys-apps/dog/files/1.7-manpage-touchup.patch | 18 + sys-apps/dog/files/dog-1.7-64bit-goodness.patch | 33 + sys-apps/dog/files/dog-1.7-check-ctime.diff | 53 ++ sys-apps/dog/files/dog-1.7-strfry.patch | 13 + sys-apps/dog/metadata.xml | 5 + sys-apps/dstat/Manifest | 2 + sys-apps/dstat/dstat-0.6.9-r1.ebuild | 44 + sys-apps/dstat/dstat-0.7.2-r1.ebuild | 48 ++ .../dstat/files/dstat-0.6.9-CVE-2009-3894.patch | 15 + sys-apps/dstat/metadata.xml | 20 + sys-apps/dtc/Manifest | 3 + sys-apps/dtc/dtc-1.3.0-r1.ebuild | 52 ++ sys-apps/dtc/dtc-1.3.0.ebuild | 46 ++ sys-apps/dtc/dtc-1.4.0.ebuild | 52 ++ sys-apps/dtc/dtc-1.4.1-r1.ebuild | 52 ++ sys-apps/dtc/dtc-1.4.1.ebuild | 49 ++ sys-apps/dtc/dtc-9999.ebuild | 49 ++ sys-apps/dtc/files/dtc-1.3.0-fdtdump.patch | 118 +++ sys-apps/dtc/files/dtc-1.4.1-echo-n.patch | 95 +++ sys-apps/dtc/files/dtc-1.4.1-missing-syms.patch | 30 + sys-apps/dtc/metadata.xml | 8 + sys-apps/ed/Manifest | 3 + sys-apps/ed/ed-1.10.ebuild | 30 + sys-apps/ed/ed-1.11.ebuild | 31 + sys-apps/ed/ed-1.12.ebuild | 31 + sys-apps/ed/files/ed-1.5-build.patch | 32 + sys-apps/ed/metadata.xml | 5 + sys-apps/edac-utils/Manifest | 1 + sys-apps/edac-utils/edac-utils-0.18.ebuild | 43 + sys-apps/edac-utils/metadata.xml | 11 + sys-apps/elfix/Manifest | 2 + sys-apps/elfix/elfix-0.8.4.ebuild | 38 + sys-apps/elfix/elfix-0.9.0-r1.ebuild | 45 ++ .../elfix-0.9.0-backport-fix-paxmark_sh.patch | 57 ++ .../elfix-0.9.0-backport-fix-revdep-pax.patch | 25 + sys-apps/elfix/metadata.xml | 13 + sys-apps/entropy-server/Manifest | 1 + sys-apps/entropy-server/entropy-server-254.ebuild | 36 + sys-apps/entropy-server/metadata.xml | 12 + sys-apps/entropy/Manifest | 1 + sys-apps/entropy/entropy-254.ebuild | 112 +++ sys-apps/entropy/metadata.xml | 11 + sys-apps/epoch/Manifest | 8 + sys-apps/epoch/epoch-1.0.1.ebuild | 74 ++ sys-apps/epoch/epoch-1.0.ebuild | 74 ++ sys-apps/epoch/epoch-1.0_rc1.ebuild | 74 ++ sys-apps/epoch/epoch-1.0_rc2.ebuild | 74 ++ sys-apps/epoch/epoch-1.1.1.ebuild | 74 ++ sys-apps/epoch/epoch-1.2.0.ebuild | 74 ++ sys-apps/epoch/epoch-1.2.1.ebuild | 74 ++ sys-apps/epoch/epoch-1.2.2.ebuild | 74 ++ sys-apps/epoch/epoch-9999.ebuild | 74 ++ sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch | 10 + sys-apps/epoch/files/epoch-1.0_rc1-epoch.conf | 77 ++ .../epoch/files/epoch-1.0_rc1-fix-CFLAGS.patch | 11 + sys-apps/epoch/metadata.xml | 27 + sys-apps/etckeeper/Manifest | 3 + sys-apps/etckeeper/etckeeper-1.11-r1.ebuild | 75 ++ sys-apps/etckeeper/etckeeper-1.18.1.ebuild | 75 ++ sys-apps/etckeeper/etckeeper-1.18.ebuild | 75 ++ sys-apps/etckeeper/files/99etckeeper | 1 + sys-apps/etckeeper/files/bashrc | 4 + sys-apps/etckeeper/files/bashrc-r1 | 4 + .../etckeeper/files/etckeeper-1.11-gentoo.patch | 64 ++ .../etckeeper/files/etckeeper-1.18-gentoo.patch | 86 ++ sys-apps/etckeeper/metadata.xml | 22 + sys-apps/ethtool/Manifest | 12 + sys-apps/ethtool/ethtool-2.6.39.ebuild | 14 + sys-apps/ethtool/ethtool-3.0.ebuild | 14 + sys-apps/ethtool/ethtool-3.10.ebuild | 15 + sys-apps/ethtool/ethtool-3.12.1.ebuild | 15 + sys-apps/ethtool/ethtool-3.13.ebuild | 15 + sys-apps/ethtool/ethtool-3.14.ebuild | 15 + sys-apps/ethtool/ethtool-3.15.ebuild | 15 + sys-apps/ethtool/ethtool-3.16.ebuild | 15 + sys-apps/ethtool/ethtool-3.18.ebuild | 15 + sys-apps/ethtool/ethtool-3.4.2.ebuild | 14 + sys-apps/ethtool/ethtool-3.8.ebuild | 15 + sys-apps/ethtool/ethtool-4.0.ebuild | 15 + sys-apps/ethtool/metadata.xml | 16 + sys-apps/fakechroot/Manifest | 1 + sys-apps/fakechroot/fakechroot-2.17.2.ebuild | 27 + sys-apps/fakechroot/metadata.xml | 9 + sys-apps/fakeroot-ng/Manifest | 3 + sys-apps/fakeroot-ng/fakeroot-ng-0.17.ebuild | 22 + sys-apps/fakeroot-ng/fakeroot-ng-0.18-r1.ebuild | 22 + sys-apps/fakeroot-ng/fakeroot-ng-0.18.ebuild | 18 + .../fakeroot-ng/files/fakeroot-ng-gcc-4.8.2.patch | 10 + sys-apps/fakeroot-ng/metadata.xml | 12 + sys-apps/fakeroot/Manifest | 4 + sys-apps/fakeroot/fakeroot-1.18.4.ebuild | 38 + sys-apps/fakeroot/fakeroot-1.19.ebuild | 37 + sys-apps/fakeroot/fakeroot-1.20.2.ebuild | 38 + sys-apps/fakeroot/fakeroot-1.20.ebuild | 38 + .../fakeroot/files/fakeroot-1.18.4-no-acl_h.patch | 35 + .../fakeroot/files/fakeroot-1.19-no-acl_h.patch | 37 + sys-apps/fakeroot/metadata.xml | 5 + sys-apps/fbset/Manifest | 1 + sys-apps/fbset/fbset-2.1.ebuild | 36 + sys-apps/fbset/files/fbset-2.1-build.patch | 21 + sys-apps/fbset/metadata.xml | 5 + sys-apps/file/Manifest | 3 + sys-apps/file/file-5.22-r1.ebuild | 105 +++ sys-apps/file/file-5.22.ebuild | 105 +++ sys-apps/file/file-5.23.ebuild | 105 +++ sys-apps/file/file-5.24.ebuild | 105 +++ sys-apps/file/file-9999.ebuild | 105 +++ sys-apps/file/metadata.xml | 8 + sys-apps/findutils/Manifest | 3 + .../files/findutils-4.4.2-gnulib-date-x32.patch | 26 + .../findutils/files/findutils-4.4.2-selinux.diff | 464 +++++++++++ .../files/findutils-4.5.14-test-bashisms.patch | 66 ++ sys-apps/findutils/findutils-4.4.2-r1.ebuild | 54 ++ sys-apps/findutils/findutils-4.4.2-r2.ebuild | 56 ++ sys-apps/findutils/findutils-4.5.12.ebuild | 50 ++ sys-apps/findutils/findutils-4.5.14-r1.ebuild | 56 ++ sys-apps/findutils/findutils-4.5.14.ebuild | 50 ++ sys-apps/findutils/metadata.xml | 8 + sys-apps/flashrom/Manifest | 3 + sys-apps/flashrom/flashrom-0.9.6.1.ebuild | 99 +++ sys-apps/flashrom/flashrom-0.9.7.ebuild | 114 +++ sys-apps/flashrom/flashrom-0.9.8.ebuild | 128 +++ sys-apps/flashrom/flashrom-9999.ebuild | 128 +++ sys-apps/flashrom/metadata.xml | 60 ++ sys-apps/flock/Manifest | 1 + sys-apps/flock/flock-2.19.ebuild | 20 + sys-apps/flock/metadata.xml | 5 + sys-apps/fwcrv/Manifest | 1 + sys-apps/fwcrv/files/fwcrv-0.1.0-endian.patch | 47 ++ sys-apps/fwcrv/fwcrv-0.1.0.ebuild | 30 + sys-apps/fwcrv/metadata.xml | 5 + sys-apps/fwts/Manifest | 2 + sys-apps/fwts/fwts-14.12.00.ebuild | 49 ++ sys-apps/fwts/fwts-15.03.01.ebuild | 45 ++ sys-apps/fwts/metadata.xml | 11 + sys-apps/fxload/Manifest | 1 + sys-apps/fxload/fxload-20081013-r1.ebuild | 36 + sys-apps/fxload/metadata.xml | 11 + sys-apps/gawk/Manifest | 4 + sys-apps/gawk/files/filefuncs/Makefile | 57 ++ sys-apps/gawk/files/filefuncs/filefuncs.c | 485 +++++++++++ sys-apps/gawk/files/gawk-4.1.0-ports.patch | 189 +++++ .../files/gawk-4.1.3-bsd_configure_readline.patch | 63 ++ sys-apps/gawk/gawk-3.1.8.ebuild | 78 ++ sys-apps/gawk/gawk-4.0.2.ebuild | 74 ++ sys-apps/gawk/gawk-4.1.2.ebuild | 74 ++ sys-apps/gawk/gawk-4.1.3.ebuild | 77 ++ sys-apps/gawk/metadata.xml | 8 + sys-apps/gentoo-functions/Manifest | 5 + .../gentoo-functions/gentoo-functions-0.10.ebuild | 31 + .../gentoo-functions/gentoo-functions-0.7.ebuild | 26 + .../gentoo-functions/gentoo-functions-0.8.ebuild | 34 + .../gentoo-functions/gentoo-functions-0.9.ebuild | 30 + .../gentoo-functions/gentoo-functions-9999.ebuild | 31 + sys-apps/gentoo-functions/metadata.xml | 20 + sys-apps/gentoo-systemd-integration/Manifest | 2 + .../gentoo-systemd-integration-2.ebuild | 28 + .../gentoo-systemd-integration-4.ebuild | 30 + .../gentoo-systemd-integration-9999.ebuild | 44 + sys-apps/gentoo-systemd-integration/metadata.xml | 11 + sys-apps/gnome-disk-utility/Manifest | 2 + ...me-disk-utility-3.10.0-kill-gsd-automagic.patch | 46 ++ ...-disk-utility-3.10.0-raise-gsd-dependency.patch | 35 + .../gnome-disk-utility-3.14.0.ebuild | 56 ++ .../gnome-disk-utility-3.16.2.ebuild | 56 ++ sys-apps/gnome-disk-utility/metadata.xml | 9 + sys-apps/gpet/Manifest | 1 + sys-apps/gpet/gpet-0.4.ebuild | 23 + sys-apps/gpet/metadata.xml | 10 + sys-apps/gptfdisk/Manifest | 2 + sys-apps/gptfdisk/gptfdisk-0.8.10.ebuild | 47 ++ sys-apps/gptfdisk/gptfdisk-1.0.0.ebuild | 47 ++ sys-apps/gptfdisk/metadata.xml | 15 + sys-apps/gradm/Manifest | 3 + sys-apps/gradm/files/respect-gentoo-env-r2.patch | 42 + sys-apps/gradm/files/respect-gentoo-env-r3.patch | 42 + sys-apps/gradm/gradm-3.1.201506081912.ebuild | 48 ++ sys-apps/gradm/gradm-3.1.201507041117.ebuild | 48 ++ sys-apps/gradm/gradm-3.1.201507191652.ebuild | 48 ++ sys-apps/gradm/metadata.xml | 9 + sys-apps/grep/Manifest | 2 + sys-apps/grep/grep-2.21-r1.ebuild | 54 ++ sys-apps/grep/metadata.xml | 8 + sys-apps/groff/Manifest | 3 + .../files/groff-1.19.2-man-unicode-dashes.patch | 24 + .../groff/files/groff-1.22.2-parallel-mom.patch | 96 +++ .../groff/files/groff-1.22.3-parallel-mom.patch | 11 + sys-apps/groff/groff-1.22.2.ebuild | 90 +++ sys-apps/groff/groff-1.22.3.ebuild | 78 ++ sys-apps/groff/metadata.xml | 5 + sys-apps/gscanbus/Manifest | 1 + sys-apps/gscanbus/gscanbus-0.8.ebuild | 21 + sys-apps/gscanbus/metadata.xml | 8 + sys-apps/gsmartcontrol/Manifest | 1 + sys-apps/gsmartcontrol/gsmartcontrol-0.8.7.ebuild | 41 + sys-apps/gsmartcontrol/metadata.xml | 12 + sys-apps/hardened-shadow/Manifest | 1 + .../hardened-shadow/hardened-shadow-0.9.2.ebuild | 36 + sys-apps/hardened-shadow/metadata.xml | 11 + sys-apps/haveged/Manifest | 3 + sys-apps/haveged/files/haveged-conf.d | 10 + sys-apps/haveged/files/haveged-init.d.2 | 16 + sys-apps/haveged/files/haveged-init.d.3 | 17 + sys-apps/haveged/files/haveged.conf | 7 + sys-apps/haveged/files/service.gentoo | 12 + sys-apps/haveged/haveged-1.5.ebuild | 33 + sys-apps/haveged/haveged-1.7a-r1.ebuild | 41 + sys-apps/haveged/haveged-1.7a.ebuild | 39 + sys-apps/haveged/haveged-1.9.1.ebuild | 44 + sys-apps/haveged/metadata.xml | 9 + sys-apps/hbaapi/Manifest | 2 + sys-apps/hbaapi/files/hba.conf | 43 + sys-apps/hbaapi/files/hbaapi-2.2-qa.patch | 37 + sys-apps/hbaapi/hbaapi-2.2.ebuild | 47 ++ sys-apps/hbaapi/metadata.xml | 8 + sys-apps/hdparm/Manifest | 4 + sys-apps/hdparm/files/hdparm-conf.d.3 | 26 + sys-apps/hdparm/files/hdparm-init-8 | 61 ++ sys-apps/hdparm/hdparm-9.39.ebuild | 40 + sys-apps/hdparm/hdparm-9.45.ebuild | 41 + sys-apps/hdparm/hdparm-9.47.ebuild | 41 + sys-apps/hdparm/hdparm-9.48.ebuild | 41 + sys-apps/hdparm/metadata.xml | 8 + sys-apps/heirloom-tools/Manifest | 1 + .../heirloom-tools/heirloom-tools-070715.ebuild | 42 + sys-apps/heirloom-tools/metadata.xml | 8 + sys-apps/help2man/Manifest | 3 + .../files/help2man-1.36.4-respect-LDFLAGS.patch | 11 + .../help2man/files/help2man-1.38.4-linguas.patch | 53 ++ .../help2man/files/help2man-1.46.1-linguas.patch | 67 ++ sys-apps/help2man/help2man-1.45.1.ebuild | 31 + sys-apps/help2man/help2man-1.46.6.ebuild | 33 + sys-apps/help2man/help2man-1.47.1.ebuild | 33 + sys-apps/help2man/metadata.xml | 5 + sys-apps/hexdump-esr/Manifest | 1 + sys-apps/hexdump-esr/hexdump-esr-1.8.ebuild | 37 + sys-apps/hexdump-esr/metadata.xml | 7 + sys-apps/hotplug2stdout/Manifest | 1 + .../hotplug2stdout/hotplug2stdout-1.2.1.ebuild | 20 + sys-apps/hotplug2stdout/metadata.xml | 8 + sys-apps/hprofile/Manifest | 3 + sys-apps/hprofile/hprofile-3.0.6.ebuild | 19 + sys-apps/hprofile/hprofile-3.1.1.ebuild | 19 + sys-apps/hprofile/hprofile-3.2.2.ebuild | 19 + sys-apps/hprofile/metadata.xml | 8 + sys-apps/hwdata-gentoo/Manifest | 1 + sys-apps/hwdata-gentoo/files/0.4-openchrome.patch | 22 + sys-apps/hwdata-gentoo/hwdata-gentoo-0.4.ebuild | 41 + sys-apps/hwdata-gentoo/metadata.xml | 9 + sys-apps/hwdata-redhat/Manifest | 1 + .../files/hwdata-redhat-0.217-python-3.patch | 13 + sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild | 39 + sys-apps/hwdata-redhat/metadata.xml | 8 + sys-apps/hwids/Manifest | 8 + sys-apps/hwids/hwids-20141010.ebuild | 65 ++ sys-apps/hwids/hwids-20141110.ebuild | 65 ++ sys-apps/hwids/hwids-20141214.ebuild | 65 ++ sys-apps/hwids/hwids-20150107.ebuild | 65 ++ sys-apps/hwids/hwids-20150129.ebuild | 65 ++ sys-apps/hwids/hwids-20150417.ebuild | 65 ++ sys-apps/hwids/hwids-20150421-r1.ebuild | 73 ++ sys-apps/hwids/hwids-20150421.ebuild | 65 ++ sys-apps/hwids/hwids-20150717-r1.ebuild | 73 ++ sys-apps/hwids/hwids-20150717.ebuild | 65 ++ sys-apps/hwids/hwids-99999999.ebuild | 73 ++ sys-apps/hwids/metadata.xml | 23 + sys-apps/hwinfo/Manifest | 3 + sys-apps/hwinfo/hwinfo-19.1.ebuild | 57 ++ sys-apps/hwinfo/hwinfo-20.0.ebuild | 62 ++ sys-apps/hwinfo/hwinfo-21.4.ebuild | 64 ++ sys-apps/hwinfo/metadata.xml | 8 + sys-apps/hwloc/Manifest | 7 + sys-apps/hwloc/files/hwloc-1.8.1-gl.patch | 11 + ...er-topology-fix-lstopo-path-after-install.patch | 26 + sys-apps/hwloc/hwloc-1.10.0-r2.ebuild | 77 ++ sys-apps/hwloc/hwloc-1.10.0.ebuild | 72 ++ sys-apps/hwloc/hwloc-1.10.1-r1.ebuild | 72 ++ sys-apps/hwloc/hwloc-1.6.1.ebuild | 52 ++ sys-apps/hwloc/hwloc-1.6.2.ebuild | 56 ++ sys-apps/hwloc/hwloc-1.7.2.ebuild | 72 ++ sys-apps/hwloc/hwloc-1.8.1.ebuild | 73 ++ sys-apps/hwloc/hwloc-1.9.ebuild | 73 ++ sys-apps/hwloc/metadata.xml | 21 + sys-apps/hwsetup/Manifest | 1 + sys-apps/hwsetup/files/1.2-3-fastprobe.patch | 74 ++ sys-apps/hwsetup/files/1.2-7-dyn_blacklist.patch | 62 ++ sys-apps/hwsetup/files/1.2-7-gentoo.patch | 20 + sys-apps/hwsetup/files/1.2-7-openchrome.patch | 11 + sys-apps/hwsetup/files/1.2-strip.patch | 11 + sys-apps/hwsetup/hwsetup-1.2-r3.ebuild | 70 ++ sys-apps/hwsetup/metadata.xml | 5 + sys-apps/i2c-tools/Manifest | 2 + .../i2c-tools/files/i2c-tools-3.1.1-python-3.patch | 129 +++ sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild | 61 ++ sys-apps/i2c-tools/i2c-tools-3.1.1-r1.ebuild | 60 ++ sys-apps/i2c-tools/metadata.xml | 5 + sys-apps/ibm-powerpc-utils-papr/Manifest | 2 + .../ibm-powerpc-utils-papr-1.1.0-remove-doc.patch | 14 + ...erpc-utils-papr-1.1.0-removeinitandvscsis.patch | 23 + ...erpc-utils-papr-1.1.6-removeinitandvscsis.patch | 27 + sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis | 69 ++ .../ibm-powerpc-utils-papr-1.1.0.ebuild | 46 ++ .../ibm-powerpc-utils-papr-1.1.6.ebuild | 37 + sys-apps/ibm-powerpc-utils-papr/metadata.xml | 5 + sys-apps/ibm-powerpc-utils/Manifest | 5 + .../files/ibm-powerpc-utils-1.1.0-remove-doc.patch | 23 + .../ibm-powerpc-utils-1.1.0.ebuild | 38 + .../ibm-powerpc-utils-1.2.12.ebuild | 30 + .../ibm-powerpc-utils-1.2.2.ebuild | 32 + .../ibm-powerpc-utils-1.2.25.ebuild | 30 + .../ibm-powerpc-utils-1.2.26.ebuild | 30 + sys-apps/ibm-powerpc-utils/metadata.xml | 11 + sys-apps/idle3-tools/Manifest | 1 + sys-apps/idle3-tools/idle3-tools-0.9.1.ebuild | 23 + sys-apps/idle3-tools/metadata.xml | 17 + sys-apps/ifd-gempc/Manifest | 1 + sys-apps/ifd-gempc/files/reader.conf | 11 + sys-apps/ifd-gempc/ifd-gempc-1.0.6.ebuild | 52 ++ sys-apps/ifd-gempc/metadata.xml | 9 + sys-apps/ifplugd/Manifest | 1 + .../ifplugd/files/ifplugd-0.28-interface.patch | 13 + sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff | 12 + sys-apps/ifplugd/files/ifplugd-0.28-noip.patch | 21 + .../ifplugd/files/ifplugd-0.28-strictalias.patch | 63 ++ sys-apps/ifplugd/files/ifplugd.action | 55 ++ sys-apps/ifplugd/ifplugd-0.28-r9.ebuild | 71 ++ sys-apps/ifplugd/metadata.xml | 8 + sys-apps/input-utils/Manifest | 2 + .../input-utils-0.0.1-protocol-mismatch-fix.patch | 22 + .../files/input-utils-0.0.1_pre20081014.patch | 116 +++ .../input-utils-0.0.1_pre20081014.ebuild | 35 + sys-apps/input-utils/input-utils-1.1.ebuild | 37 + sys-apps/input-utils/metadata.xml | 19 + sys-apps/install-xattr/Manifest | 2 + sys-apps/install-xattr/install-xattr-0.4.ebuild | 45 ++ sys-apps/install-xattr/install-xattr-0.5.ebuild | 45 ++ sys-apps/install-xattr/install-xattr-9999.ebuild | 45 ++ sys-apps/install-xattr/metadata.xml | 9 + .../intel-performance-counter-monitor/Manifest | 1 + .../intel-performance-counter-monitor-2.8.ebuild | 50 ++ .../intel-performance-counter-monitor/metadata.xml | 10 + sys-apps/inxi/Manifest | 2 + sys-apps/inxi/inxi-2.2.14.ebuild | 39 + sys-apps/inxi/inxi-2.2.19.ebuild | 39 + sys-apps/inxi/metadata.xml | 8 + sys-apps/iotools/Manifest | 2 + sys-apps/iotools/files/iotools-1.4-cpuid-pic.patch | 22 + sys-apps/iotools/files/iotools-1.4-ldflags.patch | 13 + sys-apps/iotools/iotools-1.4.ebuild | 52 ++ sys-apps/iotools/iotools-1.5.ebuild | 54 ++ sys-apps/iotools/metadata.xml | 10 + sys-apps/ipmitool/Manifest | 5 + .../ipmitool/files/ipmitool-1.8.9-ipmievd.confd | 23 + .../ipmitool/files/ipmitool-1.8.9-ipmievd.initd | 25 + sys-apps/ipmitool/ipmitool-1.8.11-r1.ebuild | 76 ++ sys-apps/ipmitool/ipmitool-1.8.11.ebuild | 60 ++ sys-apps/ipmitool/ipmitool-1.8.14-r1.ebuild | 82 ++ sys-apps/ipmitool/ipmitool-1.8.14.ebuild | 81 ++ sys-apps/ipmitool/metadata.xml | 13 + sys-apps/ipmiutil/Manifest | 4 + sys-apps/ipmiutil/files/ipmiutil-2.9.3-flags.patch | 20 + .../ipmiutil/files/ipmiutil-2.9.3-tmpdir.patch | 11 + sys-apps/ipmiutil/ipmiutil-2.7.7.ebuild | 34 + sys-apps/ipmiutil/ipmiutil-2.8.2.ebuild | 36 + sys-apps/ipmiutil/ipmiutil-2.8.5.ebuild | 34 + sys-apps/ipmiutil/ipmiutil-2.9.3.ebuild | 38 + sys-apps/ipmiutil/metadata.xml | 8 + sys-apps/iproute2/Manifest | 8 + .../iproute2/files/iproute2-2.6.26-ldflags.patch | 15 + .../iproute2/files/iproute2-2.6.29.1-flush.patch | 224 ++++++ .../iproute2/files/iproute2-2.6.29.1-hfsc.patch | 885 +++++++++++++++++++++ .../files/iproute2-2.6.35-cached-routes.patch | 34 + .../files/iproute2-2.6.35-no-iptables.patch | 15 + .../iproute2/files/iproute2-2.6.35-no-ipv6.patch | 27 + .../iproute2/files/iproute2-2.6.35-xtables.patch | 30 + .../files/iproute2-2.6.38-parallel-build.patch | 40 + sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch | 48 ++ .../iproute2/files/iproute2-3.1.0-no-ipv6.patch | 41 + .../iproute2/files/iproute2-3.10.0-no-ipv6.patch | 41 + .../iproute2/files/iproute2-3.6.0-pkg-config.patch | 67 ++ sys-apps/iproute2/files/iproute2-3.7.0-clang.patch | 72 ++ sys-apps/iproute2/files/iproute2-3.7.0-man7.patch | 55 ++ .../files/iproute2-3.8.0-old-mount-libc.patch | 38 + .../iproute2-4.0.0-tc-show-buffer-overflow.patch | 62 ++ sys-apps/iproute2/iproute2-2.6.38.ebuild | 90 +++ sys-apps/iproute2/iproute2-3.17.0.ebuild | 124 +++ sys-apps/iproute2/iproute2-3.19.0.ebuild | 124 +++ sys-apps/iproute2/iproute2-3.3.0.ebuild | 105 +++ sys-apps/iproute2/iproute2-3.8.0.ebuild | 117 +++ sys-apps/iproute2/iproute2-4.0.0-r2.ebuild | 129 +++ sys-apps/iproute2/iproute2-4.1.0.ebuild | 129 +++ sys-apps/iproute2/iproute2-4.1.1.ebuild | 131 +++ sys-apps/iproute2/iproute2-9999.ebuild | 128 +++ sys-apps/iproute2/metadata.xml | 10 + sys-apps/irqbalance/Manifest | 6 + .../irqbalance/files/irqbalance-0.56-build.patch | 16 + sys-apps/irqbalance/files/irqbalance.1 | 64 ++ sys-apps/irqbalance/files/irqbalance.confd | 15 + sys-apps/irqbalance/files/irqbalance.confd-1 | 19 + sys-apps/irqbalance/files/irqbalance.init-0.55-r2 | 21 + sys-apps/irqbalance/files/irqbalance.init.2 | 12 + sys-apps/irqbalance/files/irqbalance.init.3 | 28 + sys-apps/irqbalance/files/irqbalance.service | 11 + sys-apps/irqbalance/irqbalance-0.56.ebuild | 39 + sys-apps/irqbalance/irqbalance-1.0.4.ebuild | 35 + sys-apps/irqbalance/irqbalance-1.0.5-r1.ebuild | 40 + sys-apps/irqbalance/irqbalance-1.0.6.ebuild | 40 + sys-apps/irqbalance/irqbalance-1.0.7-r1.ebuild | 49 ++ sys-apps/irqbalance/irqbalance-1.0.7.ebuild | 44 + sys-apps/irqbalance/irqbalance-1.0.9.ebuild | 49 ++ sys-apps/irqbalance/metadata.xml | 12 + sys-apps/isapnptools/Manifest | 1 + sys-apps/isapnptools/files/isapnp.rc | 26 + .../isapnptools/files/isapnptools-1.26-gcc.patch | 41 + .../files/isapnptools-1.27-include.patch | 10 + sys-apps/isapnptools/isapnptools-1.27.ebuild | 33 + sys-apps/isapnptools/metadata.xml | 5 + sys-apps/kbd/Manifest | 4 + sys-apps/kbd/files/kbd-1.15.5-loadkeys-parse.patch | 90 +++ sys-apps/kbd/files/kbd-2.0.0-tests.patch | 34 + sys-apps/kbd/files/kbd-2.0.1-big_endian.patch | 27 + sys-apps/kbd/files/kbd-2.0.1-stdarg.patch | 43 + sys-apps/kbd/kbd-1.15.5-r1.ebuild | 50 ++ sys-apps/kbd/kbd-2.0.1-r1.ebuild | 64 ++ sys-apps/kbd/kbd-2.0.1.ebuild | 55 ++ sys-apps/kbd/kbd-2.0.2.ebuild | 62 ++ sys-apps/kbd/kbd-2.0.3.ebuild | 62 ++ sys-apps/kbd/kbd-9999.ebuild | 62 ++ sys-apps/kbd/metadata.xml | 5 + sys-apps/kexec-tools/Manifest | 3 + sys-apps/kexec-tools/files/90_kexec | 9 + sys-apps/kexec-tools/files/README.Gentoo | 33 + .../files/kexec-tools-2.0.0-respect-LDFLAGS.patch | 11 + .../kexec-tools-2.0.4-disable-kexec-test.patch | 17 + .../files/kexec-tools-2.0.4-out-of-source.patch | 24 + .../files/kexec-tools-2.0.9-hardened.patch | 16 + sys-apps/kexec-tools/files/kexec.conf | 16 + sys-apps/kexec-tools/files/kexec.conf-2.0.4 | 34 + sys-apps/kexec-tools/files/kexec.conf-9999 | 18 + sys-apps/kexec-tools/files/kexec.init-2.0.4 | 144 ++++ sys-apps/kexec-tools/files/kexec.init-2.0.4-r2 | 165 ++++ sys-apps/kexec-tools/files/kexec.init-2.0.4-r3 | 165 ++++ sys-apps/kexec-tools/files/kexec.init-9999 | 165 ++++ sys-apps/kexec-tools/files/kexec.service | 16 + sys-apps/kexec-tools/kexec-tools-2.0.4-r2.ebuild | 73 ++ sys-apps/kexec-tools/kexec-tools-2.0.8.ebuild | 75 ++ sys-apps/kexec-tools/kexec-tools-2.0.9-r1.ebuild | 71 ++ sys-apps/kexec-tools/kexec-tools-2.0.9-r2.ebuild | 71 ++ sys-apps/kexec-tools/kexec-tools-2.0.9.ebuild | 75 ++ sys-apps/kexec-tools/kexec-tools-9999.ebuild | 74 ++ sys-apps/kexec-tools/metadata.xml | 13 + sys-apps/keyutils/Manifest | 3 + .../files/keyutils-1.5.5-makefile-fixup.patch | 27 + sys-apps/keyutils/keyutils-1.5.5.ebuild | 69 ++ sys-apps/keyutils/keyutils-1.5.8.ebuild | 69 ++ sys-apps/keyutils/keyutils-1.5.9-r1.ebuild | 82 ++ sys-apps/keyutils/keyutils-1.5.9.ebuild | 69 ++ sys-apps/keyutils/metadata.xml | 8 + sys-apps/kmod/Manifest | 2 + sys-apps/kmod/files/kmod-static-nodes-r1 | 19 + sys-apps/kmod/kmod-20.ebuild | 190 +++++ sys-apps/kmod/kmod-21.ebuild | 190 +++++ sys-apps/kmod/kmod-9999.ebuild | 190 +++++ sys-apps/kmod/metadata.xml | 13 + sys-apps/lcdsplash/Manifest | 1 + sys-apps/lcdsplash/lcdsplash-0.3.ebuild | 31 + sys-apps/lcdsplash/metadata.xml | 5 + sys-apps/lcdtest/Manifest | 1 + sys-apps/lcdtest/files/1.18-build-system.patch | 62 ++ sys-apps/lcdtest/lcdtest-1.18.ebuild | 61 ++ sys-apps/lcdtest/metadata.xml | 14 + sys-apps/lcdutils/Manifest | 1 + .../lcdutils/files/include-stdlib.h-for-exit.patch | 50 ++ sys-apps/lcdutils/lcdutils-0.2.ebuild | 34 + sys-apps/lcdutils/metadata.xml | 14 + sys-apps/less/Manifest | 6 + sys-apps/less/files/README.Gentoo | 22 + sys-apps/less/files/code2color-0.2.patch | 26 + sys-apps/less/files/less.envd | 2 + sys-apps/less/files/lesspipe.sh | 274 +++++++ sys-apps/less/less-458.ebuild | 56 ++ sys-apps/less/less-476.ebuild | 57 ++ sys-apps/less/less-477.ebuild | 57 ++ sys-apps/less/less-478.ebuild | 57 ++ sys-apps/less/less-479.ebuild | 57 ++ sys-apps/less/metadata.xml | 5 + sys-apps/likwid/Manifest | 1 + sys-apps/likwid/files/likwid-3.1.3-Makefile.patch | 42 + .../likwid/files/likwid-3.1.3-fix-gnustack.patch | 32 + sys-apps/likwid/likwid-3.1.3.ebuild | 67 ++ sys-apps/likwid/metadata.xml | 10 + sys-apps/linux-misc-apps/Manifest | 2 + sys-apps/linux-misc-apps/files/freefall.confd | 6 + sys-apps/linux-misc-apps/files/freefall.initd | 45 ++ sys-apps/linux-misc-apps/files/hpfall.confd | 6 + sys-apps/linux-misc-apps/files/hpfall.initd | 45 ++ .../linux-misc-apps/linux-misc-apps-3.18.ebuild | 165 ++++ .../linux-misc-apps/linux-misc-apps-3.6-r2.ebuild | 185 +++++ sys-apps/linux-misc-apps/metadata.xml | 7 + sys-apps/lkcdutils/Manifest | 4 + .../lkcdutils/files/lkcdutils-6.2.0-build.patch | 24 + sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild | 67 ++ sys-apps/lkcdutils/lkcdutils-6.2.0.ebuild | 35 + sys-apps/lkcdutils/metadata.xml | 11 + sys-apps/lm_sensors/Manifest | 3 + sys-apps/lm_sensors/files/fancontrol-init.d-2 | 23 + sys-apps/lm_sensors/files/fancontrol.service | 9 + sys-apps/lm_sensors/files/lm_sensors-3-init.d | 105 +++ .../lm_sensors-3.3.1-sensors-detect-gentoo.patch | 129 +++ .../lm_sensors-3.3.4-sensors-detect-gentoo.patch | 118 +++ .../lm_sensors-3.3.5-sensors-detect-gentoo.patch | 120 +++ sys-apps/lm_sensors/files/sensord-4-init.d | 22 + sys-apps/lm_sensors/files/sensord-conf.d | 3 + sys-apps/lm_sensors/files/sensord.service | 9 + sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild | 109 +++ sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild | 109 +++ sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild | 109 +++ sys-apps/lm_sensors/metadata.xml | 13 + sys-apps/lmctfy/Manifest | 4 + sys-apps/lmctfy/lmctfy-0.2.0.ebuild | 35 + sys-apps/lmctfy/lmctfy-0.3.0.ebuild | 35 + sys-apps/lmctfy/lmctfy-0.3.1.ebuild | 35 + sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild | 38 + sys-apps/lmctfy/lmctfy-0.5.0.ebuild | 35 + sys-apps/lmctfy/metadata.xml | 11 + sys-apps/lnxhc/Manifest | 1 + sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch | 23 + sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch | 43 + sys-apps/lnxhc/lnxhc-1.2-r1.ebuild | 23 + sys-apps/lnxhc/metadata.xml | 11 + sys-apps/logwatch/Manifest | 3 + sys-apps/logwatch/files/logwatch | 6 + .../files/logwatch-7.4.0-openssh-hpn.patch | 19 + sys-apps/logwatch/logwatch-7.4.0-r1.ebuild | 86 ++ sys-apps/logwatch/logwatch-7.4.0.ebuild | 78 ++ sys-apps/logwatch/logwatch-7.4.0_p170-r1.ebuild | 87 ++ sys-apps/logwatch/logwatch-7.4.1.ebuild | 85 ++ sys-apps/logwatch/metadata.xml | 8 + sys-apps/lomoco/Manifest | 1 + .../files/lomoco-1.0-gentoo-hardware-support.patch | 287 +++++++ .../lomoco/files/lomoco-1.0-updated-udev.patch | 95 +++ sys-apps/lomoco/files/lomoco-pm-utils-r1 | 7 + sys-apps/lomoco/files/lomoco.conf | 9 + sys-apps/lomoco/lomoco-1.0-r9.ebuild | 53 ++ sys-apps/lomoco/metadata.xml | 10 + sys-apps/lsadb/Manifest | 1 + sys-apps/lsadb/files/lsadb-makefile.patch | 10 + sys-apps/lsadb/lsadb-0.1.3.ebuild | 31 + sys-apps/lsadb/metadata.xml | 5 + sys-apps/lsb-release/Manifest | 1 + .../files/lsb-release-1.4-os-release.patch | 10 + sys-apps/lsb-release/lsb-release-1.4-r1.ebuild | 33 + sys-apps/lsb-release/lsb-release-1.4-r2.ebuild | 36 + sys-apps/lsb-release/lsb-release-1.4-r3.ebuild | 39 + sys-apps/lsb-release/lsb-release-1.4.ebuild | 29 + sys-apps/lsb-release/metadata.xml | 22 + sys-apps/lshw/Manifest | 2 + sys-apps/lshw/files/lshw-02.15b-build.patch | 116 +++ sys-apps/lshw/files/lshw-02.16b-gentoo.patch | 161 ++++ sys-apps/lshw/files/lshw-02.17b-fat.patch | 10 + sys-apps/lshw/files/lshw-02.17b-gentoo.patch | 159 ++++ sys-apps/lshw/lshw-02.16b-r2.ebuild | 70 ++ sys-apps/lshw/lshw-02.17b-r1.ebuild | 72 ++ sys-apps/lshw/lshw-02.17b.ebuild | 70 ++ sys-apps/lshw/metadata.xml | 5 + sys-apps/lssbus/Manifest | 1 + sys-apps/lssbus/lssbus-0.1.ebuild | 20 + sys-apps/lssbus/metadata.xml | 12 + sys-apps/magneto-core/Manifest | 1 + sys-apps/magneto-core/magneto-core-254.ebuild | 32 + sys-apps/magneto-core/metadata.xml | 9 + sys-apps/makedev/Manifest | 1 + .../makedev/files/makedev-3.23.1-headers.patch | 12 + sys-apps/makedev/makedev-3.23.1.ebuild | 53 ++ sys-apps/makedev/metadata.xml | 5 + sys-apps/man-db/Manifest | 3 + sys-apps/man-db/files/man-db.cron | 10 + sys-apps/man-db/man-db-2.6.6.ebuild | 81 ++ sys-apps/man-db/man-db-2.6.7.1.ebuild | 81 ++ sys-apps/man-db/man-db-2.7.1.ebuild | 89 +++ sys-apps/man-db/metadata.xml | 5 + sys-apps/man-pages-posix/Manifest | 1 + .../files/man-pages-2.08-updates.patch | 11 + .../man-pages-posix/man-pages-posix-2013a.ebuild | 33 + sys-apps/man-pages-posix/metadata.xml | 5 + sys-apps/man-pages/Manifest | 11 + sys-apps/man-pages/man-pages-3.75.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.77.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.78.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.79.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.80.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.81.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.82.ebuild | 52 ++ sys-apps/man-pages/man-pages-3.83.ebuild | 52 ++ sys-apps/man-pages/man-pages-4.00.ebuild | 54 ++ sys-apps/man-pages/man-pages-4.01.ebuild | 54 ++ sys-apps/man-pages/metadata.xml | 5 + sys-apps/man/Manifest | 1 + sys-apps/man/files/makewhatis.cron | 5 + sys-apps/man/files/man-1.5m2-apropos.patch | 16 + sys-apps/man/files/man-1.6-cross-compile.patch | 61 ++ .../files/man-1.6c-cut-duplicate-manpaths.patch | 83 ++ sys-apps/man/files/man-1.6e-headers.patch | 13 + .../man-1.6f-makewhatis-compression-cleanup.patch | 69 ++ .../files/man-1.6f-man2html-compression-2.patch | 61 ++ sys-apps/man/files/man-1.6f-parallel-build.patch | 78 ++ sys-apps/man/files/man-1.6f-so-search-2.patch | 34 + sys-apps/man/files/man-1.6f-unicode.patch | 28 + sys-apps/man/files/man-1.6g-compress.patch | 17 + sys-apps/man/files/man-1.6g-echo-escape.patch | 15 + sys-apps/man/files/man-1.6g-fbsd.patch | 15 + sys-apps/man/files/man-1.6g-xz.patch | 53 ++ sys-apps/man/man-1.6g-r1.ebuild | 129 +++ sys-apps/man/man-1.6g.ebuild | 128 +++ sys-apps/man/metadata.xml | 5 + sys-apps/mawk/Manifest | 5 + sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch | 13 + sys-apps/mawk/mawk-1.3.4_p20100625.ebuild | 32 + sys-apps/mawk/mawk-1.3.4_p20131226.ebuild | 43 + sys-apps/mawk/mawk-1.3.4_p20140914.ebuild | 43 + sys-apps/mawk/mawk-1.3.4_p20141027.ebuild | 43 + sys-apps/mawk/mawk-1.3.4_p20141206.ebuild | 43 + sys-apps/mawk/metadata.xml | 5 + sys-apps/memtest86+/Manifest | 4 + sys-apps/memtest86+/files/39_memtest86+ | 33 + .../memtest86+/files/make-memtest86+-boot-floppy | 111 +++ .../memtest86+/files/make-memtest86+-boot-floppy.1 | 39 + .../files/memtest86+-1.70-gnu_hash.patch | 11 + .../files/memtest86+-2.01-hardcoded_cc.patch | 30 + .../files/memtest86+-4.00-hardcoded_cc.patch | 30 + .../files/memtest86+-4.20-hardcoded_cc.patch | 30 + .../memtest86+/files/memtest86+-5.01-gcc-473.patch | 54 ++ .../files/memtest86+-5.01-hardcoded_cc.patch | 16 + sys-apps/memtest86+/memtest86+-2.01.ebuild | 56 ++ sys-apps/memtest86+/memtest86+-4.00.ebuild | 75 ++ sys-apps/memtest86+/memtest86+-4.20-r1.ebuild | 88 ++ sys-apps/memtest86+/memtest86+-4.20-r2.ebuild | 74 ++ sys-apps/memtest86+/memtest86+-5.01-r1.ebuild | 76 ++ sys-apps/memtest86+/memtest86+-5.01.ebuild | 90 +++ sys-apps/memtest86+/metadata.xml | 9 + sys-apps/memtest86/Manifest | 3 + sys-apps/memtest86/files/39_memtest86 | 18 + sys-apps/memtest86/files/memtest86-3.2-solar.patch | 27 + .../memtest86/files/memtest86-3.3-funky-test.patch | 15 + .../memtest86/files/memtest86-3.3-gnu-hash.patch | 12 + sys-apps/memtest86/files/memtest86-4.0-build.patch | 41 + .../files/memtest86-4.3.3-build-nopie.patch | 47 ++ .../memtest86/files/memtest86-4.3.3-build.patch | 43 + sys-apps/memtest86/memtest86-3.3.ebuild | 55 ++ sys-apps/memtest86/memtest86-4.3.6.ebuild | 65 ++ sys-apps/memtest86/memtest86-4.3.7.ebuild | 65 ++ sys-apps/memtest86/metadata.xml | 8 + sys-apps/memtester/Manifest | 2 + sys-apps/memtester/memtester-4.2.2.ebuild | 28 + sys-apps/memtester/memtester-4.3.0.ebuild | 28 + sys-apps/memtester/metadata.xml | 5 + sys-apps/metadata.xml | 45 ++ sys-apps/microcode-ctl/Manifest | 3 + sys-apps/microcode-ctl/files/microcode_ctl.conf.d | 11 + sys-apps/microcode-ctl/files/microcode_ctl.rc | 25 + sys-apps/microcode-ctl/files/microcode_ctl.rc-r1 | 25 + sys-apps/microcode-ctl/metadata.xml | 5 + sys-apps/microcode-ctl/microcode-ctl-1.23.ebuild | 51 ++ sys-apps/microcode-ctl/microcode-ctl-1.27.ebuild | 51 ++ sys-apps/microcode-ctl/microcode-ctl-1.28.ebuild | 51 ++ sys-apps/microcode-data/Manifest | 4 + .../microcode-data/files/intel-microcode2ucode.c | 163 ++++ sys-apps/microcode-data/metadata.xml | 5 + .../microcode-data/microcode-data-20140430.ebuild | 45 ++ .../microcode-data/microcode-data-20140624.ebuild | 45 ++ .../microcode-data/microcode-data-20140913.ebuild | 45 ++ .../microcode-data/microcode-data-20150121.ebuild | 45 ++ sys-apps/minised/Manifest | 2 + sys-apps/minised/metadata.xml | 6 + sys-apps/minised/minised-1.13.ebuild | 24 + sys-apps/minised/minised-1.14.ebuild | 19 + sys-apps/miscfiles/Manifest | 5 + .../miscfiles/files/miscfiles-1.3-Makefile.diff | 18 + sys-apps/miscfiles/metadata.xml | 5 + sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild | 53 ++ sys-apps/miscfiles/miscfiles-1.5-r1.ebuild | 62 ++ sys-apps/miscfiles/miscfiles-1.5.ebuild | 62 ++ sys-apps/mlocate/Manifest | 1 + sys-apps/mlocate/files/mlocate-cron.conf | 9 + sys-apps/mlocate/files/mlocate.cron-r2 | 48 ++ sys-apps/mlocate/files/updatedb.conf | 17 + sys-apps/mlocate/metadata.xml | 9 + sys-apps/mlocate/mlocate-0.26-r1.ebuild | 63 ++ sys-apps/modutils/Manifest | 1 + .../modutils/files/modutils-2.4.27-alias.patch | 86 ++ sys-apps/modutils/files/modutils-2.4.27-flex.patch | 37 + sys-apps/modutils/files/modutils-2.4.27-gcc.patch | 280 +++++++ .../files/modutils-2.4.27-no-nested-function.patch | 43 + sys-apps/modutils/metadata.xml | 5 + sys-apps/modutils/modutils-2.4.27-r1.ebuild | 40 + sys-apps/more/Manifest | 1 + sys-apps/more/files/more-2.12r-freebsd.patch | 65 ++ sys-apps/more/metadata.xml | 7 + sys-apps/more/more-2.12r.ebuild | 62 ++ sys-apps/moreutils/Manifest | 7 + .../moreutils/files/moreutils-0.47-dtd-path.patch | 99 +++ sys-apps/moreutils/metadata.xml | 15 + sys-apps/moreutils/moreutils-0.50.ebuild | 61 ++ sys-apps/moreutils/moreutils-0.51.ebuild | 58 ++ sys-apps/moreutils/moreutils-0.52.ebuild | 58 ++ sys-apps/moreutils/moreutils-0.53.ebuild | 58 ++ sys-apps/moreutils/moreutils-0.54.ebuild | 56 ++ sys-apps/moreutils/moreutils-0.55.ebuild | 56 ++ sys-apps/moreutils/moreutils-0.56.ebuild | 56 ++ sys-apps/most/Manifest | 1 + .../files/most-5.0.0a-donot-hardcode-path.patch | 33 + .../files/most-5.0.0a-no-explicit-termcap.patch | 216 +++++ sys-apps/most/metadata.xml | 5 + sys-apps/most/most-5.0.0a-r1.ebuild | 36 + sys-apps/mount-gtk/Manifest | 1 + .../mount-gtk/files/mount-gtk-1.4.2-c++11.patch | 31 + sys-apps/mount-gtk/metadata.xml | 12 + sys-apps/mount-gtk/mount-gtk-1.4.2.ebuild | 37 + sys-apps/mouseemu/Manifest | 2 + sys-apps/mouseemu/files/mouseemu-0.12-fix.diff | 48 ++ sys-apps/mouseemu/files/mouseemu-0.13-fix.patch | 14 + sys-apps/mouseemu/files/mouseemu-0.15-build.patch | 9 + sys-apps/mouseemu/metadata.xml | 5 + sys-apps/mouseemu/mouseemu-0.12.ebuild | 41 + sys-apps/mouseemu/mouseemu-0.15.ebuild | 42 + sys-apps/msr-tools/Manifest | 2 + sys-apps/msr-tools/metadata.xml | 7 + sys-apps/msr-tools/msr-tools-1.2.ebuild | 32 + sys-apps/mtree/Manifest | 2 + sys-apps/mtree/files/mtree-1.5-gcc4.patch | 29 + sys-apps/mtree/files/mtree-2007.4+glibc-2.8.patch | 25 + sys-apps/mtree/metadata.xml | 5 + sys-apps/mtree/mtree-1.0.1.ebuild | 28 + sys-apps/mtree/mtree-1.0.ebuild | 27 + sys-apps/nawk/Manifest | 1 + .../nawk/files/nawk-20121220-parallel-build.patch | 61 ++ sys-apps/nawk/metadata.xml | 9 + sys-apps/nawk/nawk-20121220-r2.ebuild | 50 ++ sys-apps/nca/Manifest | 1 + sys-apps/nca/files/ncad.initd | 16 + sys-apps/nca/metadata.xml | 16 + sys-apps/nca/nca-0.9.0.ebuild | 42 + sys-apps/net-tools/Manifest | 5 + sys-apps/net-tools/metadata.xml | 8 + .../net-tools-1.60_p20130513023548-r1.ebuild | 95 +++ .../net-tools-1.60_p20130513023548-r2.ebuild | 95 +++ .../net-tools-1.60_p20130513023548.ebuild | 95 +++ .../net-tools-1.60_p20141019041918-r1.ebuild | 95 +++ .../net-tools-1.60_p20141019041918.ebuild | 95 +++ sys-apps/net-tools/net-tools-9999.ebuild | 69 ++ sys-apps/netboot-base/Manifest | 1 + sys-apps/netboot-base/metadata.xml | 5 + sys-apps/netboot-base/netboot-base-20050110.ebuild | 46 ++ sys-apps/netkit-base/Manifest | 1 + .../files/003_all_netkit-base-0.17-gcc4.patch | 11 + .../004_all_netkit-base-0.17-misc-fixes.patch | 54 ++ .../files/005_all_netkit-base-0.17-no-rpc.patch | 26 + sys-apps/netkit-base/files/inetd.rc6 | 24 + sys-apps/netkit-base/metadata.xml | 5 + sys-apps/netkit-base/netkit-base-0.17-r9.ebuild | 43 + sys-apps/netloc/Manifest | 1 + sys-apps/netloc/metadata.xml | 8 + sys-apps/netloc/netloc-0.5.ebuild | 29 + sys-apps/netplug/Manifest | 1 + .../files/netplug-1.2.9-ignore-wireless.patch | 37 + .../netplug/files/netplug-1.2.9-remove-nest.patch | 187 +++++ sys-apps/netplug/files/netplug-2 | 43 + sys-apps/netplug/metadata.xml | 11 + sys-apps/netplug/netplug-1.2.9.2-r1.ebuild | 64 ++ sys-apps/newrelic-sysmond/Manifest | 1 + .../newrelic-sysmond/files/newrelic-sysmond.rc | 24 + sys-apps/newrelic-sysmond/metadata.xml | 8 + .../newrelic-sysmond-1.1.2.124.ebuild | 57 ++ sys-apps/noexec/Manifest | 1 + sys-apps/noexec/metadata.xml | 10 + sys-apps/noexec/noexec-1.1.0.ebuild | 19 + sys-apps/openrc/Manifest | 10 + sys-apps/openrc/files/openrc-0.8.3-ccwgroup.patch | 57 ++ .../files/openrc-0.8.3-deprecation_warning.patch | 33 + sys-apps/openrc/files/openrc-9999-msg-style.patch | 81 ++ sys-apps/openrc/files/openrc-9999-pause.patch | 29 + sys-apps/openrc/files/openrc.logrotate | 4 + sys-apps/openrc/files/start-stop-daemon.pam | 2 + sys-apps/openrc/metadata.xml | 11 + sys-apps/openrc/openrc-0.13.11.ebuild | 332 ++++++++ sys-apps/openrc/openrc-0.14.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.15.1.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.15.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.16.1.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.16.2.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.16.3.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.16.4.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.16.ebuild | 337 ++++++++ sys-apps/openrc/openrc-0.17.ebuild | 337 ++++++++ sys-apps/openrc/openrc-9999.ebuild | 337 ++++++++ sys-apps/pacman/Manifest | 2 + sys-apps/pacman/files/pacman-4.0.0-gpgme.patch | 45 ++ sys-apps/pacman/metadata.xml | 11 + sys-apps/pacman/pacman-4.0.1.ebuild | 83 ++ sys-apps/pacman/pacman-4.0.3-r1.ebuild | 87 ++ sys-apps/pacman/pacman-4.0.3.ebuild | 83 ++ sys-apps/paludis/Manifest | 4 + .../files/paludis-2.0.0-fix-format-security.patch | 66 ++ ...udis-2.2.0-check-IUSE_EFFECTIVE-in-EAPI-5.patch | 88 ++ .../paludis-2.2.0-filter-EBUILD_PHASE_FUNC.patch | 22 + .../paludis-2.2.0-filter-IUSE_EFFECTIVE.patch | 31 + .../files/paludis-2.2.0-fix-MERGE_TYPE.patch | 81 ++ .../files/paludis-2.2.0-fix-PWD-handling.patch | 30 + sys-apps/paludis/metadata.xml | 18 + sys-apps/paludis/paludis-1.4.2-r1.ebuild | 157 ++++ sys-apps/paludis/paludis-2.0.0.ebuild | 161 ++++ sys-apps/paludis/paludis-2.2.0-r2.ebuild | 169 ++++ sys-apps/paludis/paludis-2.2.0.ebuild | 159 ++++ sys-apps/paludis/paludis-2.4.0.ebuild | 162 ++++ sys-apps/paludis/paludis-9999.ebuild | 165 ++++ sys-apps/paxctl/Manifest | 3 + sys-apps/paxctl/metadata.xml | 9 + sys-apps/paxctl/paxctl-0.7-r2.ebuild | 38 + sys-apps/paxctl/paxctl-0.8.ebuild | 38 + sys-apps/paxctl/paxctl-0.9.ebuild | 38 + sys-apps/paxctld/Manifest | 1 + sys-apps/paxctld/metadata.xml | 9 + sys-apps/paxctld/paxctld-1.0.ebuild | 27 + sys-apps/pciutils/Manifest | 4 + sys-apps/pciutils/files/conf.d-pciparm | 28 + sys-apps/pciutils/files/init.d-pciparm | 80 ++ .../pciutils/files/pciutils-3.1.9-static-pc.patch | 13 + sys-apps/pciutils/metadata.xml | 10 + sys-apps/pciutils/pciutils-3.2.0.ebuild | 84 ++ sys-apps/pciutils/pciutils-3.2.1.ebuild | 84 ++ sys-apps/pciutils/pciutils-3.3.0-r2.ebuild | 108 +++ sys-apps/pciutils/pciutils-3.3.1.ebuild | 108 +++ sys-apps/pcmciautils/Manifest | 2 + sys-apps/pcmciautils/metadata.xml | 8 + sys-apps/pcmciautils/pcmciautils-018_p8-r1.ebuild | 73 ++ sys-apps/pcmciautils/pcmciautils-018_p8.ebuild | 73 ++ sys-apps/pcsc-lite/Manifest | 3 + sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules | 7 + .../files/pcsc-lite-1.8.11-nopolkit.patch | 35 + .../files/pcsc-lite-1.8.11-polkit-pcscd.patch | 20 + sys-apps/pcsc-lite/files/pcscd-init.5 | 23 + sys-apps/pcsc-lite/files/pcscd-init.6 | 23 + sys-apps/pcsc-lite/files/pcscd-init.7 | 23 + sys-apps/pcsc-lite/metadata.xml | 29 + sys-apps/pcsc-lite/pcsc-lite-1.8.12-r1.ebuild | 106 +++ sys-apps/pcsc-lite/pcsc-lite-1.8.13-r1.ebuild | 106 +++ sys-apps/pcsc-lite/pcsc-lite-1.8.13.ebuild | 106 +++ sys-apps/pcsc-lite/pcsc-lite-1.8.8-r1.ebuild | 93 +++ sys-apps/pcsc-slb-rf72-drv/Manifest | 1 + .../files/pcsc-slb-rf72-drv-1.1.0-build-new.patch | 24 + .../files/pcsc-slb-rf72-drv-1.1.0-build.patch | 24 + sys-apps/pcsc-slb-rf72-drv/files/reader.conf | 11 + sys-apps/pcsc-slb-rf72-drv/metadata.xml | 5 + .../pcsc-slb-rf72-drv-1.1.0-r1.ebuild | 65 ++ .../pcsc-slb-rf72-drv-1.1.0-r2.ebuild | 66 ++ sys-apps/pcsc-tools/Manifest | 2 + sys-apps/pcsc-tools/files/smartcard.cron | 15 + sys-apps/pcsc-tools/metadata.xml | 10 + sys-apps/pcsc-tools/pcsc-tools-1.4.22.ebuild | 65 ++ sys-apps/pcsc-tools/pcsc-tools-1.4.23.ebuild | 65 ++ sys-apps/pkgcore/Manifest | 1 + sys-apps/pkgcore/metadata.xml | 15 + sys-apps/pkgcore/pkgcore-0.9.1.ebuild | 83 ++ sys-apps/pkgcore/pkgcore-9999.ebuild | 75 ++ sys-apps/pmount-gui/Manifest | 1 + sys-apps/pmount-gui/metadata.xml | 5 + .../pmount-gui/pmount-gui-0_pre20130806.ebuild | 38 + sys-apps/pmount/Manifest | 1 + .../pmount-0.9.19-testsuite-missing-dir.patch | 43 + .../files/pmount-0.9.99_alpha-locale-regex.patch | 22 + sys-apps/pmount/files/pmount.bash-completion | 94 +++ sys-apps/pmount/metadata.xml | 8 + sys-apps/pmount/pmount-0.9.99_alpha-r3.ebuild | 83 ++ sys-apps/pmount/pmount-0.9.99_alpha-r5.ebuild | 86 ++ sys-apps/policycoreutils/Manifest | 8 + ...tils-pp-add-roletype-statements-for-both-.patch | 61 ++ .../files/0010-remove-sesandbox-support.patch | 9 + ...20-disable-autodetection-of-pam-and-audit.patch | 108 +++ ...030-make-inotify-check-use-flag-triggered.patch | 14 + .../0040-reverse-access-check-in-run_init.patch | 12 + ...ttempt-fails-with-gentoo-sandbox-approach.patch | 11 + .../files/0110-build-mcstrans-bug-472912.patch | 64 ++ ...ailure-for-mcscolor-for-CONTEXT__CONTAINS.patch | 11 + sys-apps/policycoreutils/metadata.xml | 24 + .../policycoreutils-2.2.5-r4.ebuild | 156 ++++ .../policycoreutils/policycoreutils-2.3-r3.ebuild | 154 ++++ .../policycoreutils/policycoreutils-2.4-r1.ebuild | 159 ++++ .../policycoreutils/policycoreutils-2.4.ebuild | 147 ++++ .../policycoreutils/policycoreutils-9999.ebuild | 191 +++++ sys-apps/portage/Manifest | 4 + sys-apps/portage/files/README.RESCUE | 2 + sys-apps/portage/metadata.xml | 20 + sys-apps/portage/portage-2.2.14.ebuild | 352 ++++++++ sys-apps/portage/portage-2.2.18.ebuild | 352 ++++++++ sys-apps/portage/portage-2.2.20.ebuild | 365 +++++++++ sys-apps/portage/portage-2.2.8-r2.ebuild | 574 +++++++++++++ sys-apps/portage/portage-9999.ebuild | 243 ++++++ sys-apps/powerpc-utils/Manifest | 3 + sys-apps/powerpc-utils/metadata.xml | 5 + .../powerpc-utils/powerpc-utils-1.1.3.18-r2.ebuild | 53 ++ sys-apps/prctl/Manifest | 1 + sys-apps/prctl/metadata.xml | 8 + sys-apps/prctl/prctl-1.5.ebuild | 28 + .../files/prefix-chain-wrapper.in | 78 ++ sys-apps/prefix-chain-utils/files/startprefix.in | 38 + sys-apps/prefix-chain-utils/metadata.xml | 5 + .../prefix-chain-utils-0.2-r5.ebuild | 57 ++ sys-apps/preload/Manifest | 1 + sys-apps/preload/files/00-patch-configure.diff | 15 + ...rly-restart-of-forking-readahead-children.patch | 64 ++ .../0002-Create-short-overlapping-io-bursts.patch | 29 + .../files/0003-Fix-wait_for_children-loop.patch | 27 + sys-apps/preload/files/02-patch-preload_conf.diff | 21 + .../preload/files/02-patch-preload_sysconfig.diff | 39 + .../preload-0.6.4-use-help2man-as-usual.patch | 31 + .../preload-0.6.4-use-make-dependencies.patch | 21 + sys-apps/preload/files/preload-0.6.4.init.in | 50 ++ sys-apps/preload/files/preload-0.6.4.init.in-r1 | 66 ++ sys-apps/preload/files/preload-0.6.4.init.in-r2 | 66 ++ sys-apps/preload/metadata.xml | 11 + sys-apps/preload/preload-0.6.4-r3.ebuild | 64 ++ sys-apps/proot/Manifest | 5 + .../proot/files/proot-2.3.1-lib-paths-fix.patch | 19 + sys-apps/proot/files/proot-3.2.1-makefile.patch | 11 + sys-apps/proot/files/proot-3.2.2-build-care.patch | 20 + sys-apps/proot/files/proot-4.0.1-argv.patch | 125 +++ sys-apps/proot/metadata.xml | 24 + sys-apps/proot/proot-3.2.2-r1.ebuild | 73 ++ sys-apps/proot/proot-4.0.1.ebuild | 68 ++ sys-apps/proot/proot-4.0.3.ebuild | 69 ++ sys-apps/proot/proot-5.0.0.ebuild | 69 ++ sys-apps/proot/proot-5.1.0.ebuild | 69 ++ sys-apps/pv/Manifest | 1 + sys-apps/pv/metadata.xml | 11 + sys-apps/pv/pv-1.6.0-r1.ebuild | 52 ++ sys-apps/pv/pv-1.6.0.ebuild | 44 + sys-apps/pyrenamer/Manifest | 1 + sys-apps/pyrenamer/metadata.xml | 11 + sys-apps/pyrenamer/pyrenamer-0.6.0-r2.ebuild | 33 + sys-apps/qcontrol/Manifest | 2 + sys-apps/qcontrol/files/0.4.2-Makefile.patch | 22 + sys-apps/qcontrol/files/conf.d | 5 + sys-apps/qcontrol/files/init.d | 74 ++ sys-apps/qcontrol/metadata.xml | 9 + sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild | 62 ++ sys-apps/qdiskusage/Manifest | 1 + sys-apps/qdiskusage/metadata.xml | 8 + sys-apps/qdiskusage/qdiskusage-1.0.4.ebuild | 31 + sys-apps/qingy/Manifest | 4 + sys-apps/qingy/files/50qingy-gentoo.el | 7 + sys-apps/qingy/files/qingy-1.0.0-tinfo.patch | 42 + sys-apps/qingy/files/qingy-logrotate | 6 + sys-apps/qingy/files/qingy_at.service | 21 + sys-apps/qingy/metadata.xml | 13 + sys-apps/qingy/qingy-1.0.0-r1.ebuild | 132 +++ sys-apps/qingy/qingy-1.0.0-r2.ebuild | 134 ++++ sys-apps/qingy/qingy-1.0.0.ebuild | 125 +++ sys-apps/raidutils/Manifest | 2 + .../raidutils/files/raidutils-0.0.6-gcc45.patch | 14 + sys-apps/raidutils/metadata.xml | 14 + sys-apps/raidutils/raidutils-0.0.6-r2.ebuild | 41 + sys-apps/razercfg/Manifest | 8 + sys-apps/razercfg/files/razerd.init.d | 26 + sys-apps/razercfg/files/razerd.init.d-r1 | 26 + sys-apps/razercfg/files/razerd.init.d-r2 | 26 + sys-apps/razercfg/metadata.xml | 22 + sys-apps/razercfg/razercfg-0.23.ebuild | 56 ++ sys-apps/razercfg/razercfg-0.24.ebuild | 62 ++ sys-apps/razercfg/razercfg-0.25.ebuild | 56 ++ sys-apps/razercfg/razercfg-0.26.ebuild | 71 ++ sys-apps/razercfg/razercfg-0.29.ebuild | 72 ++ sys-apps/razercfg/razercfg-0.30.ebuild | 74 ++ sys-apps/razercfg/razercfg-0.31.ebuild | 74 ++ sys-apps/razercfg/razercfg-0.32.ebuild | 74 ++ sys-apps/readahead-list/Manifest | 1 + .../readahead-list/files/conf.d-readahead-list | 16 + .../readahead-list/files/init.d-readahead-list | 23 + .../files/init.d-readahead-list-early | 23 + .../readahead-list-1.20060421.1016-gcc-4.3.patch | 10 + sys-apps/readahead-list/metadata.xml | 9 + .../readahead-list-1.20060421.1016-r1.ebuild | 59 ++ .../readahead-list-1.20060421.1016.ebuild | 61 ++ sys-apps/rename/Manifest | 1 + sys-apps/rename/files/rename-1.3-build.patch | 11 + sys-apps/rename/files/rename-1.3-gcc44.patch | 16 + sys-apps/rename/files/rename-1.3-rename.patch | 95 +++ sys-apps/rename/metadata.xml | 5 + sys-apps/rename/rename-1.3-r1.ebuild | 38 + sys-apps/rename/rename-1.3.ebuild | 38 + sys-apps/renameutils/Manifest | 1 + .../files/renameutils-0.12.0-autopoint.patch | 12 + .../files/renameutils-0.12.0-typo.patch | 13 + .../files/renameutils-0.9.0-destdir.patch | 29 + sys-apps/renameutils/metadata.xml | 7 + sys-apps/renameutils/renameutils-0.12.0.ebuild | 29 + sys-apps/rescan-scsi-bus/Manifest | 3 + ...-scsi-bus-1.25-support-sysfs-only-systems.patch | 14 + sys-apps/rescan-scsi-bus/metadata.xml | 8 + .../rescan-scsi-bus/rescan-scsi-bus-1.29.ebuild | 41 + .../rescan-scsi-bus/rescan-scsi-bus-1.56.ebuild | 41 + .../rescan-scsi-bus/rescan-scsi-bus-1.57-r1.ebuild | 36 + .../rescan-scsi-bus/rescan-scsi-bus-1.57.ebuild | 35 + sys-apps/restartd/Manifest | 1 + sys-apps/restartd/metadata.xml | 7 + sys-apps/restartd/restartd-0.2.2.ebuild | 30 + sys-apps/rigo-daemon/Manifest | 1 + sys-apps/rigo-daemon/metadata.xml | 11 + sys-apps/rigo-daemon/rigo-daemon-254.ebuild | 44 + sys-apps/rkflashtool/Manifest | 1 + .../files/rkflashtool-5.1-missing-version.h | 5 + sys-apps/rkflashtool/metadata.xml | 11 + sys-apps/rkflashtool/rkflashtool-5.1.ebuild | 34 + sys-apps/rng-tools/Manifest | 2 + .../rng-tools/files/fix-textrels-on-PIC-x86.patch | 71 ++ .../rng-tools-5-fix-textrels-on-PIC-x86.patch | 100 +++ sys-apps/rng-tools/files/rngd-confd-4.1 | 22 + sys-apps/rng-tools/files/rngd-initd-4.1 | 29 + sys-apps/rng-tools/files/rngd-initd-r1-4.1 | 20 + sys-apps/rng-tools/files/rngd.service | 8 + sys-apps/rng-tools/files/test-for-argp.patch | 43 + sys-apps/rng-tools/metadata.xml | 18 + sys-apps/rng-tools/rng-tools-4-r7.ebuild | 36 + sys-apps/rng-tools/rng-tools-5.ebuild | 38 + sys-apps/roccat-tools/Manifest | 2 + sys-apps/roccat-tools/files/README.gentoo | 17 + sys-apps/roccat-tools/metadata.xml | 18 + sys-apps/roccat-tools/roccat-tools-3.4.0.ebuild | 92 +++ sys-apps/roccat-tools/roccat-tools-3.5.0-r1.ebuild | 101 +++ sys-apps/roccat-tools/roccat-tools-3.5.0.ebuild | 92 +++ sys-apps/rsbac-admin/Manifest | 3 + sys-apps/rsbac-admin/files/nsswitch.conf | 24 + sys-apps/rsbac-admin/files/rklogd | 32 + sys-apps/rsbac-admin/files/rsbac.conf | 8 + sys-apps/rsbac-admin/metadata.xml | 15 + sys-apps/rsbac-admin/rsbac-admin-1.4.6-r1.ebuild | 71 ++ sys-apps/rsbac-admin/rsbac-admin-1.4.6.ebuild | 69 ++ sys-apps/rsbac-admin/rsbac-admin-1.4.7.ebuild | 71 ++ sys-apps/rsbac-admin/rsbac-admin-1.4.8.ebuild | 71 ++ sys-apps/s390-tools/Manifest | 4 + .../s390-tools/files/s390-tools-1.13.0-build.patch | 153 ++++ .../s390-tools/files/s390-tools-1.13.0-larl.patch | 67 ++ .../s390-tools/files/s390-tools-1.16.0-build.patch | 153 ++++ .../s390-tools/files/s390-tools-1.23.1-build.patch | 153 ++++ .../s390-tools/files/s390-tools-1.9.0-build.patch | 156 ++++ sys-apps/s390-tools/metadata.xml | 19 + sys-apps/s390-tools/s390-tools-1.17.0.ebuild | 54 ++ sys-apps/s390-tools/s390-tools-1.23.1.ebuild | 54 ++ sys-apps/s6/Manifest | 1 + sys-apps/s6/metadata.xml | 12 + sys-apps/s6/s6-2.1.3.0.ebuild | 67 ++ sys-apps/salinfo/Manifest | 1 + sys-apps/salinfo/files/salinfo-1.2-build.patch | 47 ++ sys-apps/salinfo/metadata.xml | 5 + sys-apps/salinfo/salinfo-1.2.ebuild | 29 + sys-apps/sandbox/Manifest | 5 + .../0001-libsandbox-handle-more-at-functions.patch | 42 + sys-apps/sandbox/files/09sandbox | 1 + .../files/sandbox-1.6-disable-pthread.patch | 37 + .../files/sandbox-1.6-disable-qa-static.patch | 13 + .../files/sandbox-2.6-check-empty-paths-at.patch | 201 +++++ sys-apps/sandbox/files/sandbox-2.6-desktop.patch | 30 + sys-apps/sandbox/files/sandbox-2.6-gcc-5.patch | 13 + sys-apps/sandbox/files/sandbox-2.6-log-var.patch | 51 ++ sys-apps/sandbox/files/sandbox-2.6-no-pch.patch | 29 + .../sandbox/files/sandbox-2.6-open-nofollow.patch | 54 ++ .../files/sandbox-2.6-static-close-fd.patch | 93 +++ .../sandbox/files/sandbox-2.6-trace-hppa.patch | 27 + sys-apps/sandbox/metadata.xml | 11 + sys-apps/sandbox/sandbox-1.6-r2.ebuild | 104 +++ sys-apps/sandbox/sandbox-2.3-r1.ebuild | 103 +++ sys-apps/sandbox/sandbox-2.4.ebuild | 100 +++ sys-apps/sandbox/sandbox-2.5.ebuild | 117 +++ sys-apps/sandbox/sandbox-2.6-r1.ebuild | 131 +++ sys-apps/sdparm/Manifest | 3 + sys-apps/sdparm/metadata.xml | 8 + sys-apps/sdparm/sdparm-1.07.ebuild | 27 + sys-apps/sdparm/sdparm-1.08-r1.ebuild | 35 + sys-apps/sdparm/sdparm-1.09.ebuild | 35 + sys-apps/secilc/metadata.xml | 12 + sys-apps/secilc/secilc-9999.ebuild | 45 ++ sys-apps/sed/Manifest | 2 + sys-apps/sed/files/sed-4.1.5-alloca.patch | 14 + ...omplete-sequences-as-if-they-were-invalid.patch | 45 ++ sys-apps/sed/metadata.xml | 5 + sys-apps/sed/sed-4.2.1-r1.ebuild | 68 ++ sys-apps/sed/sed-4.2.2.ebuild | 70 ++ sys-apps/servicelog/Manifest | 3 + sys-apps/servicelog/metadata.xml | 8 + sys-apps/servicelog/servicelog-1.0.1.ebuild | 32 + sys-apps/servicelog/servicelog-1.1.11.ebuild | 32 + sys-apps/servicelog/servicelog-1.1.13.ebuild | 32 + sys-apps/setserial/Manifest | 1 + sys-apps/setserial/files/serial-2.17-r4 | 23 + .../setserial/files/setserial-2.17-build.patch | 11 + .../setserial/files/setserial-2.17-hayes-esp.patch | 15 + .../setserial/files/setserial-2.17-headers.patch | 12 + .../files/setserial-2.17-manpage-updates.patch | 36 + .../setserial/files/setserial-2.17-spelling.patch | 7 + sys-apps/setserial/metadata.xml | 5 + sys-apps/setserial/setserial-2.17-r4.ebuild | 45 ++ sys-apps/sg3_utils/Manifest | 2 + .../sg3_utils/files/sg3_utils-1.26-stdint.patch | 31 + sys-apps/sg3_utils/metadata.xml | 5 + sys-apps/sg3_utils/sg3_utils-1.40.ebuild | 44 + sys-apps/sg3_utils/sg3_utils-1.41.ebuild | 44 + sys-apps/shadow/Manifest | 2 + sys-apps/shadow/files/default/useradd | 7 + sys-apps/shadow/files/login_defs_pam.sed | 24 + sys-apps/shadow/files/pam.d-include/passwd | 8 + sys-apps/shadow/files/pam.d-include/shadow | 8 + sys-apps/shadow/files/securetty | 36 + .../files/shadow-4.1.3-dots-in-usernames.patch | 10 + .../files/shadow-4.2.1-cross-size-checks.patch | 41 + sys-apps/shadow/metadata.xml | 12 + sys-apps/shadow/shadow-4.1.5.1-r1.ebuild | 195 +++++ sys-apps/shadow/shadow-4.2.1-r1.ebuild | 211 +++++ sys-apps/shadow/shadow-4.2.1.ebuild | 196 +++++ sys-apps/smartmontools/Manifest | 2 + sys-apps/smartmontools/files/smartd-r1.rc | 29 + sys-apps/smartmontools/files/smartd.confd | 4 + sys-apps/smartmontools/metadata.xml | 11 + sys-apps/smartmontools/smartmontools-6.3.ebuild | 66 ++ sys-apps/smartmontools/smartmontools-6.4.ebuild | 66 ++ sys-apps/smartmontools/smartmontools-9999.ebuild | 62 ++ sys-apps/sparc-utils/Manifest | 2 + sys-apps/sparc-utils/files/audioctl.init | 23 + sys-apps/sparc-utils/metadata.xml | 13 + sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild | 76 ++ sys-apps/spu-tools/Manifest | 2 + sys-apps/spu-tools/metadata.xml | 10 + sys-apps/spu-tools/spu-tools-2.2.80_p95.ebuild | 28 + sys-apps/spu-tools/spu-tools-2.3.0.135.ebuild | 28 + sys-apps/stroke/Manifest | 1 + sys-apps/stroke/metadata.xml | 13 + sys-apps/stroke/stroke-0.1.3.ebuild | 16 + sys-apps/superiotool/Manifest | 1 + sys-apps/superiotool/files/make-tarball.sh | 34 + sys-apps/superiotool/metadata.xml | 14 + sys-apps/superiotool/superiotool-6637.ebuild | 48 ++ sys-apps/superiotool/superiotool-99999999.ebuild | 48 ++ sys-apps/syscriptor/Manifest | 1 + sys-apps/syscriptor/metadata.xml | 8 + sys-apps/syscriptor/syscriptor-1.5.15.ebuild | 19 + sys-apps/syslog-notify/Manifest | 1 + sys-apps/syslog-notify/metadata.xml | 11 + sys-apps/syslog-notify/syslog-notify-0.2.ebuild | 41 + sys-apps/systemd-readahead/Manifest | 1 + sys-apps/systemd-readahead/metadata.xml | 8 + .../systemd-readahead/systemd-readahead-216.ebuild | 161 ++++ sys-apps/systemd-sysv-utils/Manifest | 5 + sys-apps/systemd-sysv-utils/metadata.xml | 8 + .../systemd-sysv-utils-208.ebuild | 34 + .../systemd-sysv-utils-212.ebuild | 35 + .../systemd-sysv-utils-215.ebuild | 35 + .../systemd-sysv-utils-216.ebuild | 35 + .../systemd-sysv-utils-217.ebuild | 35 + sys-apps/systemd-ui/Manifest | 1 + .../systemd-ui/files/systemd-ui-3-vala-0.24.patch | 35 + sys-apps/systemd-ui/metadata.xml | 8 + sys-apps/systemd-ui/systemd-ui-3.ebuild | 48 ++ sys-apps/systemd-ui/systemd-ui-9999.ebuild | 60 ++ sys-apps/systemd/Manifest | 11 + ...k-for-__BYTE_ORDER-__BIG_ENDIAN-when-chec.patch | 116 +++ ...icitly-include-endian.h-wherever-we-want-.patch | 53 ++ ...e-MD-from-block-device-ownership-event-lo.patch | 54 ++ sys-apps/systemd/files/216-lz4-build.patch | 19 + .../systemd/files/216-tmpfiles-setup-dev.patch | 21 + .../systemd/files/217-systemd-consoled.service.in | 15 + .../files/218-Dont-enable-audit-by-default.patch | 30 + .../224-0001-networkd-fix-neworkd-crash.patch | 28 + sys-apps/systemd/files/compile-unifont.py | 119 +++ sys-apps/systemd/metadata.xml | 35 + sys-apps/systemd/systemd-216-r3.ebuild | 496 ++++++++++++ sys-apps/systemd/systemd-218-r3.ebuild | 460 +++++++++++ sys-apps/systemd/systemd-219_p112.ebuild | 473 +++++++++++ sys-apps/systemd/systemd-220-r2.ebuild | 494 ++++++++++++ sys-apps/systemd/systemd-221.ebuild | 489 ++++++++++++ sys-apps/systemd/systemd-222-r1.ebuild | 480 +++++++++++ sys-apps/systemd/systemd-222.ebuild | 482 +++++++++++ sys-apps/systemd/systemd-224-r1.ebuild | 479 +++++++++++ sys-apps/systemd/systemd-224.ebuild | 476 +++++++++++ sys-apps/systemd/systemd-9999.ebuild | 476 +++++++++++ sys-apps/sysvinit/Manifest | 1 + sys-apps/sysvinit/files/inittab-2.87 | 58 ++ sys-apps/sysvinit/files/reboot.sh | 11 + sys-apps/sysvinit/files/shutdown.sh | 13 + sys-apps/sysvinit/files/sysvinit-2.86-kexec.patch | 142 ++++ .../files/sysvinit-2.86-shutdown-single.patch | 36 + .../sysvinit/files/sysvinit-2.88-makefile.patch | 60 ++ .../sysvinit/files/sysvinit-2.88-selinux.patch | 38 + .../sysvinit/files/sysvinit-2.88-shutdown-h.patch | 65 ++ sys-apps/sysvinit/metadata.xml | 5 + sys-apps/sysvinit/sysvinit-2.88-r4.ebuild | 104 +++ sys-apps/sysvinit/sysvinit-2.88-r5.ebuild | 106 +++ sys-apps/sysvinit/sysvinit-2.88-r6.ebuild | 113 +++ sys-apps/sysvinit/sysvinit-2.88-r7.ebuild | 118 +++ sys-apps/tcp-wrappers/Manifest | 2 + sys-apps/tcp-wrappers/files/hosts.allow.example | 17 + .../files/tcp-wrappers-7.6-headers.patch | 295 +++++++ .../files/tcp-wrappers-7.6-redhat-bug11881.patch | 35 + sys-apps/tcp-wrappers/metadata.xml | 11 + .../tcp-wrappers/tcp-wrappers-7.6.22-r1.ebuild | 98 +++ sys-apps/texinfo/Manifest | 3 + .../files/texinfo-4.13-accentenc-test.patch | 17 + sys-apps/texinfo/files/texinfo-4.13-docbook.patch | 66 ++ .../files/texinfo-4.13-texi2dvi-regexp-range.patch | 23 + sys-apps/texinfo/files/texinfo-4.13-tinfo.patch | 24 + sys-apps/texinfo/files/texinfo-4.13-xz.patch | 130 +++ sys-apps/texinfo/metadata.xml | 5 + sys-apps/texinfo/texinfo-4.13-r2.ebuild | 58 ++ sys-apps/texinfo/texinfo-5.2.ebuild | 41 + sys-apps/texinfo/texinfo-6.0.ebuild | 41 + sys-apps/the_silver_searcher/Manifest | 1 + sys-apps/the_silver_searcher/metadata.xml | 15 + .../the_silver_searcher-0.29.1.ebuild | 40 + sys-apps/timer_entropyd/Manifest | 1 + .../files/timer_entropyd-0.1-syslog.patch | 28 + .../timer_entropyd/files/timer_entropyd.initd.1 | 14 + sys-apps/timer_entropyd/metadata.xml | 15 + sys-apps/timer_entropyd/timer_entropyd-0.2.ebuild | 43 + sys-apps/tomoyo-tools/Manifest | 1 + .../tomoyo-tools-2.2.0_p20120414-gentoo.patch | 14 + .../tomoyo-tools-2.2.0_p20120414-ldflags.patch | 17 + .../tomoyo-tools-2.3.0_p20110929-gentoo.patch | 16 + ...moyo-tools-2.3.0_p20120414-flags-parallel.patch | 82 ++ ...moyo-tools-2.4.0_p20110929-flags-parallel.patch | 87 ++ ...moyo-tools-2.5.0_p20120414-flags-parallel.patch | 87 ++ ...moyo-tools-2.5.0_p20130214-flags-parallel.patch | 87 ++ .../tomoyo-tools-2.5.0_p20130214-warnings.patch | 22 + sys-apps/tomoyo-tools/metadata.xml | 10 + .../tomoyo-tools-2.5.0_p20130214.ebuild | 68 ++ sys-apps/toybox/Manifest | 7 + sys-apps/toybox/metadata.xml | 8 + sys-apps/toybox/toybox-0.4.7.ebuild | 37 + sys-apps/toybox/toybox-0.4.8.ebuild | 37 + sys-apps/toybox/toybox-0.4.9-r1.ebuild | 50 ++ sys-apps/toybox/toybox-0.4.9.ebuild | 37 + sys-apps/toybox/toybox-0.5.0.ebuild | 58 ++ sys-apps/toybox/toybox-0.5.1.ebuild | 58 ++ sys-apps/toybox/toybox-0.5.2.ebuild | 58 ++ sys-apps/toybox/toybox-0.6.0.ebuild | 60 ++ sys-apps/toybox/toybox-9999.ebuild | 58 ++ sys-apps/tuned/Manifest | 3 + sys-apps/tuned/files/tuned.initd | 17 + sys-apps/tuned/metadata.xml | 12 + sys-apps/tuned/tuned-2.4.1.ebuild | 45 ++ sys-apps/tuned/tuned-2.5.0.ebuild | 45 ++ sys-apps/tuned/tuned-2.5.1.ebuild | 45 ++ sys-apps/turbotail/Manifest | 1 + sys-apps/turbotail/metadata.xml | 5 + sys-apps/turbotail/turbotail-0.3-r1.ebuild | 39 + sys-apps/turbotail/turbotail-0.3.ebuild | 35 + sys-apps/tuxonice-userui/Manifest | 2 + .../files/tuxonice-userui-1.0-Makefiles.patch | 45 ++ .../files/tuxonice-userui-1.0-libpng15.patch | 88 ++ .../files/tuxonice-userui-1.1-freetype-2.5.patch | 38 + sys-apps/tuxonice-userui/metadata.xml | 12 + .../tuxonice-userui/tuxonice-userui-1.1-r2.ebuild | 70 ++ sys-apps/uam/Manifest | 3 + sys-apps/uam/metadata.xml | 21 + sys-apps/uam/uam-0.3.1.ebuild | 45 ++ sys-apps/uam/uam-0.3.2.ebuild | 45 ++ sys-apps/uam/uam-0.3.ebuild | 51 ++ sys-apps/uam/uam-9999.ebuild | 57 ++ sys-apps/ucspi-proxy/Manifest | 3 + sys-apps/ucspi-proxy/metadata.xml | 9 + sys-apps/ucspi-proxy/ucspi-proxy-0.97.ebuild | 30 + sys-apps/ucspi-proxy/ucspi-proxy-0.98.ebuild | 37 + sys-apps/ucspi-proxy/ucspi-proxy-0.99.ebuild | 32 + sys-apps/ucspi-ssl/Manifest | 1 + sys-apps/ucspi-ssl/metadata.xml | 13 + sys-apps/ucspi-ssl/ucspi-ssl-0.94-r1.ebuild | 53 ++ sys-apps/ucspi-tcp/Manifest | 5 + sys-apps/ucspi-tcp/files/0.88-ar-ranlib.patch | 27 + sys-apps/ucspi-tcp/files/0.88-bigendian.patch | 18 + sys-apps/ucspi-tcp/files/0.88-errno.patch | 13 + sys-apps/ucspi-tcp/files/0.88-exit.patch | 10 + .../ucspi-tcp/files/0.88-large-responses.patch | 26 + sys-apps/ucspi-tcp/files/0.88-protos-ipv6.patch | 89 +++ sys-apps/ucspi-tcp/files/0.88-protos-no-ipv6.patch | 36 + sys-apps/ucspi-tcp/files/0.88-protos-rblspp.patch | 11 + sys-apps/ucspi-tcp/files/0.88-protos.patch | 544 +++++++++++++ .../0.88-rblsmtpd-ignore-on-RELAYCLIENT.patch | 25 + sys-apps/ucspi-tcp/files/0.88-tcprules.patch | 16 + sys-apps/ucspi-tcp/files/0.88-uint-headers.patch | 133 ++++ sys-apps/ucspi-tcp/files/tcprules-Makefile | 11 + sys-apps/ucspi-tcp/metadata.xml | 13 + sys-apps/ucspi-tcp/ucspi-tcp-0.88-r17.ebuild | 91 +++ sys-apps/ucspi-tcp/ucspi-tcp-0.88-r18.ebuild | 75 ++ sys-apps/ucspi-unix/Manifest | 1 + .../files/ucspi-unix-0.36-fix-parallel-build.patch | 19 + .../ucspi-unix-0.36-include-sys_socket.h.patch | 11 + .../ucspi-unix/files/ucspi-unix-gentoo-head.patch | 33 + sys-apps/ucspi-unix/metadata.xml | 9 + sys-apps/ucspi-unix/ucspi-unix-0.36-r2.ebuild | 35 + sys-apps/ucspi-unix/ucspi-unix-0.36-r3.ebuild | 37 + sys-apps/ucspi-unix/ucspi-unix-0.36-r4.ebuild | 38 + sys-apps/udevil/Manifest | 3 + .../udevil/files/udevil-0.4.1-automake-1.13.patch | 11 + sys-apps/udevil/files/udevil-0.4.1-flags.patch | 46 ++ sys-apps/udevil/files/udevil-0.4.3-flags.patch | 46 ++ sys-apps/udevil/files/udevil-0.4.4-stat.patch | 11 + sys-apps/udevil/metadata.xml | 16 + sys-apps/udevil/udevil-0.4.1.ebuild | 71 ++ sys-apps/udevil/udevil-0.4.3.ebuild | 71 ++ sys-apps/udevil/udevil-0.4.4-r1.ebuild | 73 ++ sys-apps/udevil/udevil-0.4.4.ebuild | 72 ++ sys-apps/uevt/Manifest | 1 + .../uevt-2.3-support_for_more_than_one_CPU.patch | 220 +++++ sys-apps/uevt/files/uevt-2.3-vala-0.24.patch | 13 + sys-apps/uevt/metadata.xml | 5 + sys-apps/uevt/uevt-2.3-r1.ebuild | 53 ++ sys-apps/ultracopier/Manifest | 1 + sys-apps/ultracopier/metadata.xml | 10 + sys-apps/ultracopier/ultracopier-0.2.0.16.ebuild | 40 + sys-apps/unscd/Manifest | 2 + sys-apps/unscd/files/unscd-tmpfiles.conf | 1 + sys-apps/unscd/files/unscd.initd | 40 + sys-apps/unscd/files/unscd.initd-r1 | 16 + sys-apps/unscd/files/unscd.service | 18 + sys-apps/unscd/metadata.xml | 5 + sys-apps/unscd/unscd-0.51.ebuild | 35 + sys-apps/unscd/unscd-0.52-r2.ebuild | 37 + sys-apps/usb_modeswitch/Manifest | 10 + sys-apps/usb_modeswitch/metadata.xml | 12 + .../usb_modeswitch-1.2.7_p20130807.ebuild | 59 ++ .../usb_modeswitch-2.1.0_p20140129.ebuild | 63 ++ .../usb_modeswitch-2.1.1_p20140327.ebuild | 63 ++ .../usb_modeswitch-2.2.0_p20140529.ebuild | 63 ++ .../usb_modeswitch-2.2.3_p20150627.ebuild | 63 ++ sys-apps/usbmon/Manifest | 1 + sys-apps/usbmon/metadata.xml | 7 + sys-apps/usbmon/usbmon-6-r1.ebuild | 32 + sys-apps/usbredir/Manifest | 6 + sys-apps/usbredir/metadata.xml | 6 + sys-apps/usbredir/usbredir-0.4.3.ebuild | 33 + sys-apps/usbredir/usbredir-0.4.4.ebuild | 34 + sys-apps/usbredir/usbredir-0.5.1.ebuild | 36 + sys-apps/usbredir/usbredir-0.5.ebuild | 36 + sys-apps/usbredir/usbredir-0.6.ebuild | 36 + sys-apps/usbredir/usbredir-0.7.ebuild | 36 + sys-apps/usbredir/usbredir-9999.ebuild | 38 + sys-apps/usbutils/Manifest | 2 + sys-apps/usbutils/files/usbutils-006-stdint.patch | 32 + sys-apps/usbutils/metadata.xml | 5 + sys-apps/usbutils/usbutils-007.ebuild | 55 ++ sys-apps/usbutils/usbutils-008-r1.ebuild | 50 ++ sys-apps/usbutils/usbutils-008.ebuild | 52 ++ sys-apps/usermode-utilities/Manifest | 1 + ...sermode-utilities-20070815-humfsify-owner.patch | 12 + .../files/usermode-utilities-20070815-rollup.patch | 101 +++ sys-apps/usermode-utilities/metadata.xml | 10 + .../usermode-utilities-20070815-r3.ebuild | 40 + sys-apps/utempter/Manifest | 1 + .../utempter/files/utempter-0.5.5.6-build.patch | 11 + .../utempter/files/utempter-0.5.5.6-no_utmpx.patch | 38 + .../utempter-0.5.5.6-soname-makefile-fix.patch | 22 + sys-apps/utempter/metadata.xml | 6 + sys-apps/utempter/utempter-0.5.5.6.ebuild | 57 ++ sys-apps/util-linux/Manifest | 7 + sys-apps/util-linux/files/crypto-loop.confd | 9 + sys-apps/util-linux/files/crypto-loop.initd | 70 ++ .../files/util-linux-2.24-fix-fdisk-on-alpha.patch | 13 + .../files/util-linux-2.24-last-tests.patch | 86 ++ .../files/util-linux-2.24-skip-last-tests.patch | 41 + .../files/util-linux-2.25-parallel-setarch.patch | 33 + .../files/util-linux-2.25.1-blkid-probe-fix.patch | 43 + ...util-linux-2.25.2-runuser-bash-completion.patch | 33 + sys-apps/util-linux/metadata.xml | 20 + sys-apps/util-linux/util-linux-2.24.1-r2.ebuild | 147 ++++ sys-apps/util-linux/util-linux-2.24.1-r3.ebuild | 174 ++++ sys-apps/util-linux/util-linux-2.24.2.ebuild | 177 +++++ sys-apps/util-linux/util-linux-2.25.1-r1.ebuild | 174 ++++ sys-apps/util-linux/util-linux-2.25.1.ebuild | 173 ++++ sys-apps/util-linux/util-linux-2.25.2-r1.ebuild | 177 +++++ sys-apps/util-linux/util-linux-2.25.2-r2.ebuild | 183 +++++ sys-apps/util-linux/util-linux-2.25.2.ebuild | 174 ++++ sys-apps/util-linux/util-linux-2.26.1-r1.ebuild | 178 +++++ sys-apps/util-linux/util-linux-2.26.1.ebuild | 177 +++++ sys-apps/util-linux/util-linux-2.26.2.ebuild | 182 +++++ sys-apps/util-linux/util-linux-2.26.ebuild | 177 +++++ sys-apps/util-linux/util-linux-9999.ebuild | 182 +++++ sys-apps/v86d/Manifest | 1 + sys-apps/v86d/metadata.xml | 10 + sys-apps/v86d/v86d-0.1.10.ebuild | 57 ++ sys-apps/vbetool/Manifest | 1 + sys-apps/vbetool/files/vbetool-1.0-build.patch | 18 + sys-apps/vbetool/metadata.xml | 8 + sys-apps/vbetool/vbetool-1.1.ebuild | 31 + sys-apps/watchdog/Manifest | 2 + sys-apps/watchdog/files/watchdog-conf.d | 6 + sys-apps/watchdog/files/watchdog-init.d | 48 ++ sys-apps/watchdog/files/watchdog.service | 10 + sys-apps/watchdog/metadata.xml | 11 + sys-apps/watchdog/watchdog-5.13-r1.ebuild | 38 + sys-apps/watchdog/watchdog-5.14.ebuild | 38 + sys-apps/which/Manifest | 2 + sys-apps/which/metadata.xml | 5 + sys-apps/which/which-2.20-r1.ebuild | 25 + sys-apps/which/which-2.21.ebuild | 25 + sys-apps/x86info/Manifest | 1 + sys-apps/x86info/files/1.21-pic.patch | 15 + sys-apps/x86info/files/x86info-1.24-pic.patch | 33 + .../files/x86info-1.29-parallel-make-cleanup.patch | 13 + sys-apps/x86info/files/x86info-modules.conf-rc | 9 + sys-apps/x86info/metadata.xml | 8 + sys-apps/x86info/x86info-1.30.ebuild | 62 ++ sys-apps/xinetd/Manifest | 1 + sys-apps/xinetd/files/xinetd-2.3.14-DESTDIR.patch | 27 + sys-apps/xinetd/files/xinetd-2.3.14-config.patch | 9 + .../files/xinetd-2.3.14-install-contrib.patch | 24 + sys-apps/xinetd/files/xinetd.confd | 3 + sys-apps/xinetd/files/xinetd.rc6 | 33 + sys-apps/xinetd/files/xinetd.service | 10 + sys-apps/xinetd/metadata.xml | 8 + sys-apps/xinetd/xinetd-2.3.15-r1.ebuild | 54 ++ sys-apps/xmbmon/Manifest | 2 + sys-apps/xmbmon/files/mbmon.confd | 10 + sys-apps/xmbmon/files/mbmon.rc | 20 + sys-apps/xmbmon/files/xmbmon-2.0.5-amd64.patch | 24 + sys-apps/xmbmon/files/xmbmon-2.0.5-loopback.patch | 40 + sys-apps/xmbmon/files/xmbmon-2.0.5-pid.patch | 31 + sys-apps/xmbmon/metadata.xml | 5 + sys-apps/xmbmon/xmbmon-2.0.5-r1.ebuild | 74 ++ sys-apps/yum/Manifest | 1 + sys-apps/yum/metadata.xml | 11 + sys-apps/yum/yum-3.4.3_p20130218-r1.ebuild | 44 + sys-apps/yum/yum-3.4.3_p20130218.ebuild | 43 + sys-apps/zorroutils/Manifest | 1 + .../zorroutils/files/zorroutils-0.04-20021014.diff | 62 ++ sys-apps/zorroutils/files/zorroutils-gentoo.diff | 6 + sys-apps/zorroutils/metadata.xml | 12 + sys-apps/zorroutils/zorroutils-0.04.ebuild | 35 + 1746 files changed, 84152 insertions(+) create mode 100644 sys-apps/9base/9base-6-r1.ebuild create mode 100644 sys-apps/9base/Manifest create mode 100644 sys-apps/9base/metadata.xml create mode 100644 sys-apps/accountsservice/Manifest create mode 100644 sys-apps/accountsservice/accountsservice-0.6.39.ebuild create mode 100644 sys-apps/accountsservice/accountsservice-0.6.40.ebuild create mode 100644 sys-apps/accountsservice/files/accountsservice-0.6.35-gentoo-system-users.patch create mode 100644 sys-apps/accountsservice/metadata.xml create mode 100644 sys-apps/ack/Manifest create mode 100644 sys-apps/ack/ack-2.14.ebuild create mode 100644 sys-apps/ack/files/ack-2.14-gentoo.patch create mode 100644 sys-apps/ack/metadata.xml create mode 100644 sys-apps/acl/Manifest create mode 100644 sys-apps/acl/acl-2.2.49-r1.ebuild create mode 100644 sys-apps/acl/acl-2.2.49.ebuild create mode 100644 sys-apps/acl/acl-2.2.51.ebuild create mode 100644 sys-apps/acl/acl-2.2.52-r1.ebuild create mode 100644 sys-apps/acl/acl-2.2.52.ebuild create mode 100644 sys-apps/acl/files/acl-2.2.49-quote-strchr.patch create mode 100644 sys-apps/acl/files/acl-2.2.51-config-shell.patch create mode 100644 sys-apps/acl/metadata.xml create mode 100644 sys-apps/adjtime/Manifest create mode 100644 sys-apps/adjtime/adjtime-0.4-r2.ebuild create mode 100644 sys-apps/adjtime/metadata.xml create mode 100644 sys-apps/agedu/Manifest create mode 100644 sys-apps/agedu/agedu-20141024.10297.ebuild create mode 100644 sys-apps/agedu/agedu-20150422.3922.ebuild create mode 100644 sys-apps/agedu/files/agedu-r9671-fix-automagic.patch create mode 100644 sys-apps/agedu/metadata.xml create mode 100644 sys-apps/aix-miscutils/Manifest create mode 100644 sys-apps/aix-miscutils/aix-miscutils-0.1.1671.ebuild create mode 100644 sys-apps/aix-miscutils/metadata.xml create mode 100644 sys-apps/apmd/Manifest create mode 100644 sys-apps/apmd/apmd-3.2.2_p14.ebuild create mode 100644 sys-apps/apmd/files/apmd.confd create mode 100644 sys-apps/apmd/files/apmd.rc6 create mode 100644 sys-apps/apmd/metadata.xml create mode 100644 sys-apps/apparmor-utils/Manifest create mode 100644 sys-apps/apparmor-utils/apparmor-utils-2.8.3.ebuild create mode 100644 sys-apps/apparmor-utils/apparmor-utils-2.8.4.ebuild create mode 100644 sys-apps/apparmor-utils/metadata.xml create mode 100644 sys-apps/apparmor/Manifest create mode 100644 sys-apps/apparmor/apparmor-2.8.3.ebuild create mode 100644 sys-apps/apparmor/apparmor-2.8.4.ebuild create mode 100644 sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch create mode 100755 sys-apps/apparmor/files/apparmor-init create mode 100644 sys-apps/apparmor/metadata.xml create mode 100644 sys-apps/apply-default-acl/Manifest create mode 100644 sys-apps/apply-default-acl/apply-default-acl-0.0.4.ebuild create mode 100644 sys-apps/apply-default-acl/metadata.xml create mode 100644 sys-apps/arrayprobe/Manifest create mode 100644 sys-apps/arrayprobe/arrayprobe-2.0-r2.ebuild create mode 100644 sys-apps/arrayprobe/files/2.0-ida_headers.patch create mode 100644 sys-apps/arrayprobe/files/2.0-malloc-strlen.patch create mode 100644 sys-apps/arrayprobe/metadata.xml create mode 100644 sys-apps/attr/Manifest create mode 100644 sys-apps/attr/attr-2.4.46-r2.ebuild create mode 100644 sys-apps/attr/attr-2.4.47-r1.ebuild create mode 100644 sys-apps/attr/attr-2.4.47-r2.ebuild create mode 100644 sys-apps/attr/files/attr-2.4.44-gettext.patch create mode 100644 sys-apps/attr/files/attr-2.4.46-config-shell.patch create mode 100644 sys-apps/attr/files/attr-2.4.46-generic-syscalls.patch create mode 100644 sys-apps/attr/metadata.xml create mode 100644 sys-apps/audio-entropyd/Manifest create mode 100644 sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild create mode 100644 sys-apps/audio-entropyd/audio-entropyd-2.0.3.ebuild create mode 100644 sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch create mode 100644 sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch create mode 100644 sys-apps/audio-entropyd/files/audio-entropyd.conf-2 create mode 100644 sys-apps/audio-entropyd/files/audio-entropyd.init-2 create mode 100644 sys-apps/audio-entropyd/files/audio-entropyd.service create mode 100644 sys-apps/audio-entropyd/metadata.xml create mode 100644 sys-apps/baobab/Manifest create mode 100644 sys-apps/baobab/baobab-3.14.1.ebuild create mode 100644 sys-apps/baobab/baobab-3.16.1.ebuild create mode 100644 sys-apps/baobab/metadata.xml create mode 100644 sys-apps/bar/Manifest create mode 100644 sys-apps/bar/bar-1.11.1.ebuild create mode 100644 sys-apps/bar/metadata.xml create mode 100644 sys-apps/baselayout-java/Manifest create mode 100644 sys-apps/baselayout-java/baselayout-java-0.1.0.ebuild create mode 100644 sys-apps/baselayout-java/metadata.xml create mode 100644 sys-apps/baselayout-prefix/Manifest create mode 100644 sys-apps/baselayout-prefix/baselayout-prefix-1.12.14-r1.ebuild create mode 100644 sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild create mode 100644 sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r11.ebuild create mode 100644 sys-apps/baselayout-prefix/baselayout-prefix-2.2-r3.ebuild create mode 100644 sys-apps/baselayout-prefix/baselayout-prefix-2.2-r4.ebuild create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-aix.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-darwin-kvm.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-gnulib.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-bash.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-eprefix.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-pkgconfig.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-prompt.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-recursion.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-no-consoletype.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-pidof.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-sh.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-src.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-solaris.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-strsep.patch create mode 100644 sys-apps/baselayout-prefix/files/baselayout-1.12.5-termios_h.patch create mode 100644 sys-apps/baselayout-prefix/files/einfo-1.0.4-termcap-check.patch create mode 100644 sys-apps/baselayout-prefix/metadata.xml create mode 100644 sys-apps/baselayout/Manifest create mode 100644 sys-apps/baselayout/baselayout-2.2.ebuild create mode 100644 sys-apps/baselayout/metadata.xml create mode 100644 sys-apps/biosdevname/Manifest create mode 100644 sys-apps/biosdevname/biosdevname-0.3.11-r1.ebuild create mode 100644 sys-apps/biosdevname/biosdevname-0.4.0.ebuild create mode 100644 sys-apps/biosdevname/biosdevname-0.4.1.ebuild create mode 100644 sys-apps/biosdevname/biosdevname-0.6.1.ebuild create mode 100644 sys-apps/biosdevname/metadata.xml create mode 100644 sys-apps/biosdisk/Manifest create mode 100644 sys-apps/biosdisk/biosdisk-0_p20100611-r1.ebuild create mode 100644 sys-apps/biosdisk/metadata.xml create mode 100644 sys-apps/bleachbit/Manifest create mode 100644 sys-apps/bleachbit/bleachbit-1.2.ebuild create mode 100644 sys-apps/bleachbit/bleachbit-1.4.ebuild create mode 100644 sys-apps/bleachbit/bleachbit-1.9.1.ebuild create mode 100644 sys-apps/bleachbit/metadata.xml create mode 100644 sys-apps/busybox/Manifest create mode 100644 sys-apps/busybox/busybox-1.20.2.ebuild create mode 100644 sys-apps/busybox/busybox-1.21.0.ebuild create mode 100644 sys-apps/busybox/busybox-1.21.1.ebuild create mode 100644 sys-apps/busybox/busybox-1.22.0.ebuild create mode 100644 sys-apps/busybox/busybox-1.22.1-r1.ebuild create mode 100644 sys-apps/busybox/busybox-1.22.1.ebuild create mode 100644 sys-apps/busybox/busybox-1.23.0-r1.ebuild create mode 100644 sys-apps/busybox/busybox-1.23.1-r1.ebuild create mode 100644 sys-apps/busybox/busybox-1.23.1.ebuild create mode 100644 sys-apps/busybox/busybox-1.23.2.ebuild create mode 100644 sys-apps/busybox/busybox-9999.ebuild create mode 100644 sys-apps/busybox/files/busybox-1.19.0-bb.patch create mode 100644 sys-apps/busybox/files/busybox-1.20.0-udhcpc6-ipv6.patch create mode 100644 sys-apps/busybox/files/busybox-1.20.2-glibc-sys-resource.patch create mode 100644 sys-apps/busybox/files/busybox-1.20.2-selinux-pkg-config.patch create mode 100644 sys-apps/busybox/files/busybox-1.21.0-mdev.patch create mode 100644 sys-apps/busybox/files/busybox-1.21.0-platform.patch create mode 100644 sys-apps/busybox/files/busybox-1.21.0-xz.patch create mode 100644 sys-apps/busybox/files/busybox-1.21.1-trylink-only-prefix-libs-with-l.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.0-find.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.0-grep.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.0-lineedit.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.0-ntpd.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.1-ash.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.1-date.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.1-iplink.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.1-lzop.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.1-nc.patch create mode 100644 sys-apps/busybox/files/busybox-1.22.1-zcat-no-ext.patch create mode 100644 sys-apps/busybox/files/busybox-1.23.1-modprobe-small.patch create mode 100644 sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch create mode 100644 sys-apps/busybox/files/ginit.c create mode 100644 sys-apps/busybox/files/klogd.confd create mode 100644 sys-apps/busybox/files/klogd.initd create mode 100755 sys-apps/busybox/files/mdev-start.sh create mode 100644 sys-apps/busybox/files/mdev.initd create mode 100755 sys-apps/busybox/files/mdev.rc create mode 100755 sys-apps/busybox/files/mdev.rc.1 create mode 100644 sys-apps/busybox/files/mdev/dvbdev create mode 100644 sys-apps/busybox/files/mdev/ide_links create mode 100644 sys-apps/busybox/files/mdev/usbdev create mode 100644 sys-apps/busybox/files/mdev/usbdisk_link create mode 100644 sys-apps/busybox/files/ntpd.confd create mode 100644 sys-apps/busybox/files/ntpd.initd create mode 100644 sys-apps/busybox/files/syslogd.confd create mode 100644 sys-apps/busybox/files/syslogd.initd create mode 100644 sys-apps/busybox/files/watchdog.confd create mode 100644 sys-apps/busybox/files/watchdog.initd create mode 100644 sys-apps/busybox/metadata.xml create mode 100644 sys-apps/byld/Manifest create mode 100644 sys-apps/byld/byld-1.0.3.ebuild create mode 100644 sys-apps/byld/metadata.xml create mode 100644 sys-apps/cciss_vol_status/Manifest create mode 100644 sys-apps/cciss_vol_status/cciss_vol_status-1.03.ebuild create mode 100644 sys-apps/cciss_vol_status/cciss_vol_status-1.09-r1.ebuild create mode 100644 sys-apps/cciss_vol_status/cciss_vol_status-1.09.ebuild create mode 100644 sys-apps/cciss_vol_status/cciss_vol_status-1.10.ebuild create mode 100644 sys-apps/cciss_vol_status/cciss_vol_status-1.11.ebuild create mode 100644 sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch create mode 100644 sys-apps/cciss_vol_status/files/cciss_vol_status.cron create mode 100644 sys-apps/cciss_vol_status/metadata.xml create mode 100644 sys-apps/ccs-tools/Manifest create mode 100644 sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild create mode 100644 sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch create mode 100644 sys-apps/ccs-tools/metadata.xml create mode 100644 sys-apps/checkpolicy/Manifest create mode 100644 sys-apps/checkpolicy/checkpolicy-2.2.ebuild create mode 100644 sys-apps/checkpolicy/checkpolicy-2.3.ebuild create mode 100644 sys-apps/checkpolicy/checkpolicy-2.4.ebuild create mode 100644 sys-apps/checkpolicy/checkpolicy-9999.ebuild create mode 100644 sys-apps/checkpolicy/metadata.xml create mode 100644 sys-apps/checkservice/Manifest create mode 100644 sys-apps/checkservice/checkservice-1.2.0.ebuild create mode 100644 sys-apps/checkservice/metadata.xml create mode 100644 sys-apps/chname/Manifest create mode 100644 sys-apps/chname/chname-1.0-r1.ebuild create mode 100644 sys-apps/chname/metadata.xml create mode 100644 sys-apps/cinit/Manifest create mode 100644 sys-apps/cinit/cinit-0.2.1.ebuild create mode 100644 sys-apps/cinit/metadata.xml create mode 100644 sys-apps/clrngd/Manifest create mode 100644 sys-apps/clrngd/clrngd-1.0.3.ebuild create mode 100644 sys-apps/clrngd/files/clrngd-conf.d create mode 100644 sys-apps/clrngd/files/clrngd-init.d create mode 100644 sys-apps/clrngd/metadata.xml create mode 100644 sys-apps/cobalt-panel-utils/Manifest create mode 100644 sys-apps/cobalt-panel-utils/cobalt-panel-utils-1.0.2.ebuild create mode 100644 sys-apps/cobalt-panel-utils/metadata.xml create mode 100644 sys-apps/collectl/Manifest create mode 100644 sys-apps/collectl/collectl-3.7.3.ebuild create mode 100644 sys-apps/collectl/collectl-3.7.4.ebuild create mode 100644 sys-apps/collectl/collectl-4.0.0.ebuild create mode 100644 sys-apps/collectl/collectl-4.0.2.ebuild create mode 100755 sys-apps/collectl/files/collectl.initd-2 create mode 100644 sys-apps/collectl/metadata.xml create mode 100644 sys-apps/conspy/Manifest create mode 100644 sys-apps/conspy/conspy-1.10.ebuild create mode 100644 sys-apps/conspy/conspy-1.8.ebuild create mode 100644 sys-apps/conspy/metadata.xml create mode 100644 sys-apps/coreutils/Manifest create mode 100644 sys-apps/coreutils/coreutils-8.20.ebuild create mode 100644 sys-apps/coreutils/coreutils-8.21.ebuild create mode 100644 sys-apps/coreutils/coreutils-8.22-r1.ebuild create mode 100644 sys-apps/coreutils/coreutils-8.22.ebuild create mode 100644 sys-apps/coreutils/coreutils-8.23.ebuild create mode 100644 sys-apps/coreutils/coreutils-8.24.ebuild create mode 100644 sys-apps/coreutils/metadata.xml create mode 100644 sys-apps/cpint/Manifest create mode 100644 sys-apps/cpint/cpint-1.1.6.ebuild create mode 100644 sys-apps/cpint/cpint-2.5.3.ebuild create mode 100644 sys-apps/cpint/files/cpint-2.5.3-build.patch create mode 100644 sys-apps/cpint/files/cpint-2.5.3-kernel.patch create mode 100644 sys-apps/cpint/files/cpint-2.5.3-prototypes.patch create mode 100644 sys-apps/cpint/metadata.xml create mode 100644 sys-apps/cpuid/Manifest create mode 100644 sys-apps/cpuid/cpuid-20130610.ebuild create mode 100644 sys-apps/cpuid/cpuid-20140123.ebuild create mode 100644 sys-apps/cpuid/cpuid-20150606.ebuild create mode 100644 sys-apps/cpuid/files/cpuid-20110305-Makefile.patch create mode 100644 sys-apps/cpuid/files/cpuid-20110305-fPIC.patch create mode 100644 sys-apps/cpuid/files/cpuid-20150606-Makefile.patch create mode 100644 sys-apps/cpuid/metadata.xml create mode 100644 sys-apps/cracklib-words/Manifest create mode 100644 sys-apps/cracklib-words/cracklib-words-20080507.ebuild create mode 100644 sys-apps/cracklib-words/metadata.xml create mode 100644 sys-apps/cv/Manifest create mode 100644 sys-apps/cv/cv-0.4.1.ebuild create mode 100644 sys-apps/cv/metadata.xml create mode 100644 sys-apps/daemonize/Manifest create mode 100644 sys-apps/daemonize/daemonize-1.7.4.ebuild create mode 100644 sys-apps/daemonize/daemonize-1.7.5.ebuild create mode 100644 sys-apps/daemonize/daemonize-1.7.6.ebuild create mode 100644 sys-apps/daemonize/metadata.xml create mode 100644 sys-apps/darwin-miscutils/Manifest create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-7.ebuild create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild create mode 100644 sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild create mode 100644 sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch create mode 100644 sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch create mode 100644 sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch create mode 100644 sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch create mode 100644 sys-apps/darwin-miscutils/metadata.xml create mode 100644 sys-apps/dbus/Manifest create mode 100644 sys-apps/dbus/dbus-1.8.16.ebuild create mode 100644 sys-apps/dbus/dbus-1.8.18.ebuild create mode 100644 sys-apps/dbus/dbus-1.8.20.ebuild create mode 100644 sys-apps/dbus/files/80-dbus create mode 100644 sys-apps/dbus/files/dbus.initd create mode 100644 sys-apps/dbus/metadata.xml create mode 100644 sys-apps/dcfldd/Manifest create mode 100644 sys-apps/dcfldd/dcfldd-1.3.4.1.ebuild create mode 100644 sys-apps/dcfldd/metadata.xml create mode 100644 sys-apps/dchroot/Manifest create mode 100644 sys-apps/dchroot/dchroot-0.12.1.ebuild create mode 100644 sys-apps/dchroot/metadata.xml create mode 100644 sys-apps/debianutils/Manifest create mode 100644 sys-apps/debianutils/debianutils-4.3.2.ebuild create mode 100644 sys-apps/debianutils/debianutils-4.3.3.ebuild create mode 100644 sys-apps/debianutils/debianutils-4.3.4.ebuild create mode 100644 sys-apps/debianutils/debianutils-4.4.ebuild create mode 100644 sys-apps/debianutils/files/debianutils-3.4.2-no-bs-namespace.patch create mode 100644 sys-apps/debianutils/metadata.xml create mode 100644 sys-apps/diffutils/Manifest create mode 100644 sys-apps/diffutils/diffutils-3.3.ebuild create mode 100644 sys-apps/diffutils/metadata.xml create mode 100644 sys-apps/dmapi/Manifest create mode 100644 sys-apps/dmapi/dmapi-2.2.12-r1.ebuild create mode 100644 sys-apps/dmapi/dmapi-2.2.12.ebuild create mode 100644 sys-apps/dmapi/metadata.xml create mode 100644 sys-apps/dmidecode/Manifest create mode 100644 sys-apps/dmidecode/dmidecode-2.12-r1.ebuild create mode 100644 sys-apps/dmidecode/files/2.12-supported-smbios-version.patch create mode 100644 sys-apps/dmidecode/metadata.xml create mode 100644 sys-apps/dmtcp/Manifest create mode 100644 sys-apps/dmtcp/dmtcp-1.2.6.ebuild create mode 100644 sys-apps/dmtcp/files/dmtcp-1.2.1-gcc46.patch create mode 100644 sys-apps/dmtcp/metadata.xml create mode 100644 sys-apps/dnotify/Manifest create mode 100644 sys-apps/dnotify/dnotify-0.18.0.ebuild create mode 100644 sys-apps/dnotify/files/dnotify-0.18.0-glibc-212.patch create mode 100644 sys-apps/dnotify/files/dnotify-0.18.0-nls.patch create mode 100644 sys-apps/dnotify/metadata.xml create mode 100644 sys-apps/dog/Manifest create mode 100644 sys-apps/dog/dog-1.7-r4.ebuild create mode 100644 sys-apps/dog/files/1.7-manpage-touchup.patch create mode 100644 sys-apps/dog/files/dog-1.7-64bit-goodness.patch create mode 100644 sys-apps/dog/files/dog-1.7-check-ctime.diff create mode 100644 sys-apps/dog/files/dog-1.7-strfry.patch create mode 100644 sys-apps/dog/metadata.xml create mode 100644 sys-apps/dstat/Manifest create mode 100644 sys-apps/dstat/dstat-0.6.9-r1.ebuild create mode 100644 sys-apps/dstat/dstat-0.7.2-r1.ebuild create mode 100644 sys-apps/dstat/files/dstat-0.6.9-CVE-2009-3894.patch create mode 100644 sys-apps/dstat/metadata.xml create mode 100644 sys-apps/dtc/Manifest create mode 100644 sys-apps/dtc/dtc-1.3.0-r1.ebuild create mode 100644 sys-apps/dtc/dtc-1.3.0.ebuild create mode 100644 sys-apps/dtc/dtc-1.4.0.ebuild create mode 100644 sys-apps/dtc/dtc-1.4.1-r1.ebuild create mode 100644 sys-apps/dtc/dtc-1.4.1.ebuild create mode 100644 sys-apps/dtc/dtc-9999.ebuild create mode 100644 sys-apps/dtc/files/dtc-1.3.0-fdtdump.patch create mode 100644 sys-apps/dtc/files/dtc-1.4.1-echo-n.patch create mode 100644 sys-apps/dtc/files/dtc-1.4.1-missing-syms.patch create mode 100644 sys-apps/dtc/metadata.xml create mode 100644 sys-apps/ed/Manifest create mode 100644 sys-apps/ed/ed-1.10.ebuild create mode 100644 sys-apps/ed/ed-1.11.ebuild create mode 100644 sys-apps/ed/ed-1.12.ebuild create mode 100644 sys-apps/ed/files/ed-1.5-build.patch create mode 100644 sys-apps/ed/metadata.xml create mode 100644 sys-apps/edac-utils/Manifest create mode 100644 sys-apps/edac-utils/edac-utils-0.18.ebuild create mode 100644 sys-apps/edac-utils/metadata.xml create mode 100644 sys-apps/elfix/Manifest create mode 100644 sys-apps/elfix/elfix-0.8.4.ebuild create mode 100644 sys-apps/elfix/elfix-0.9.0-r1.ebuild create mode 100644 sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch create mode 100644 sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch create mode 100644 sys-apps/elfix/metadata.xml create mode 100644 sys-apps/entropy-server/Manifest create mode 100644 sys-apps/entropy-server/entropy-server-254.ebuild create mode 100644 sys-apps/entropy-server/metadata.xml create mode 100644 sys-apps/entropy/Manifest create mode 100644 sys-apps/entropy/entropy-254.ebuild create mode 100644 sys-apps/entropy/metadata.xml create mode 100644 sys-apps/epoch/Manifest create mode 100644 sys-apps/epoch/epoch-1.0.1.ebuild create mode 100644 sys-apps/epoch/epoch-1.0.ebuild create mode 100644 sys-apps/epoch/epoch-1.0_rc1.ebuild create mode 100644 sys-apps/epoch/epoch-1.0_rc2.ebuild create mode 100644 sys-apps/epoch/epoch-1.1.1.ebuild create mode 100644 sys-apps/epoch/epoch-1.2.0.ebuild create mode 100644 sys-apps/epoch/epoch-1.2.1.ebuild create mode 100644 sys-apps/epoch/epoch-1.2.2.ebuild create mode 100644 sys-apps/epoch/epoch-9999.ebuild create mode 100644 sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch create mode 100644 sys-apps/epoch/files/epoch-1.0_rc1-epoch.conf create mode 100644 sys-apps/epoch/files/epoch-1.0_rc1-fix-CFLAGS.patch create mode 100644 sys-apps/epoch/metadata.xml create mode 100644 sys-apps/etckeeper/Manifest create mode 100644 sys-apps/etckeeper/etckeeper-1.11-r1.ebuild create mode 100644 sys-apps/etckeeper/etckeeper-1.18.1.ebuild create mode 100644 sys-apps/etckeeper/etckeeper-1.18.ebuild create mode 100644 sys-apps/etckeeper/files/99etckeeper create mode 100644 sys-apps/etckeeper/files/bashrc create mode 100644 sys-apps/etckeeper/files/bashrc-r1 create mode 100644 sys-apps/etckeeper/files/etckeeper-1.11-gentoo.patch create mode 100644 sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch create mode 100644 sys-apps/etckeeper/metadata.xml create mode 100644 sys-apps/ethtool/Manifest create mode 100644 sys-apps/ethtool/ethtool-2.6.39.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.0.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.10.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.12.1.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.13.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.14.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.15.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.16.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.18.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.4.2.ebuild create mode 100644 sys-apps/ethtool/ethtool-3.8.ebuild create mode 100644 sys-apps/ethtool/ethtool-4.0.ebuild create mode 100644 sys-apps/ethtool/metadata.xml create mode 100644 sys-apps/fakechroot/Manifest create mode 100644 sys-apps/fakechroot/fakechroot-2.17.2.ebuild create mode 100644 sys-apps/fakechroot/metadata.xml create mode 100644 sys-apps/fakeroot-ng/Manifest create mode 100644 sys-apps/fakeroot-ng/fakeroot-ng-0.17.ebuild create mode 100644 sys-apps/fakeroot-ng/fakeroot-ng-0.18-r1.ebuild create mode 100644 sys-apps/fakeroot-ng/fakeroot-ng-0.18.ebuild create mode 100644 sys-apps/fakeroot-ng/files/fakeroot-ng-gcc-4.8.2.patch create mode 100644 sys-apps/fakeroot-ng/metadata.xml create mode 100644 sys-apps/fakeroot/Manifest create mode 100644 sys-apps/fakeroot/fakeroot-1.18.4.ebuild create mode 100644 sys-apps/fakeroot/fakeroot-1.19.ebuild create mode 100644 sys-apps/fakeroot/fakeroot-1.20.2.ebuild create mode 100644 sys-apps/fakeroot/fakeroot-1.20.ebuild create mode 100644 sys-apps/fakeroot/files/fakeroot-1.18.4-no-acl_h.patch create mode 100644 sys-apps/fakeroot/files/fakeroot-1.19-no-acl_h.patch create mode 100644 sys-apps/fakeroot/metadata.xml create mode 100644 sys-apps/fbset/Manifest create mode 100644 sys-apps/fbset/fbset-2.1.ebuild create mode 100644 sys-apps/fbset/files/fbset-2.1-build.patch create mode 100644 sys-apps/fbset/metadata.xml create mode 100644 sys-apps/file/Manifest create mode 100644 sys-apps/file/file-5.22-r1.ebuild create mode 100644 sys-apps/file/file-5.22.ebuild create mode 100644 sys-apps/file/file-5.23.ebuild create mode 100644 sys-apps/file/file-5.24.ebuild create mode 100644 sys-apps/file/file-9999.ebuild create mode 100644 sys-apps/file/metadata.xml create mode 100644 sys-apps/findutils/Manifest create mode 100644 sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch create mode 100644 sys-apps/findutils/files/findutils-4.4.2-selinux.diff create mode 100644 sys-apps/findutils/files/findutils-4.5.14-test-bashisms.patch create mode 100644 sys-apps/findutils/findutils-4.4.2-r1.ebuild create mode 100644 sys-apps/findutils/findutils-4.4.2-r2.ebuild create mode 100644 sys-apps/findutils/findutils-4.5.12.ebuild create mode 100644 sys-apps/findutils/findutils-4.5.14-r1.ebuild create mode 100644 sys-apps/findutils/findutils-4.5.14.ebuild create mode 100644 sys-apps/findutils/metadata.xml create mode 100644 sys-apps/flashrom/Manifest create mode 100644 sys-apps/flashrom/flashrom-0.9.6.1.ebuild create mode 100644 sys-apps/flashrom/flashrom-0.9.7.ebuild create mode 100644 sys-apps/flashrom/flashrom-0.9.8.ebuild create mode 100644 sys-apps/flashrom/flashrom-9999.ebuild create mode 100644 sys-apps/flashrom/metadata.xml create mode 100644 sys-apps/flock/Manifest create mode 100644 sys-apps/flock/flock-2.19.ebuild create mode 100644 sys-apps/flock/metadata.xml create mode 100644 sys-apps/fwcrv/Manifest create mode 100644 sys-apps/fwcrv/files/fwcrv-0.1.0-endian.patch create mode 100644 sys-apps/fwcrv/fwcrv-0.1.0.ebuild create mode 100644 sys-apps/fwcrv/metadata.xml create mode 100644 sys-apps/fwts/Manifest create mode 100644 sys-apps/fwts/fwts-14.12.00.ebuild create mode 100644 sys-apps/fwts/fwts-15.03.01.ebuild create mode 100644 sys-apps/fwts/metadata.xml create mode 100644 sys-apps/fxload/Manifest create mode 100644 sys-apps/fxload/fxload-20081013-r1.ebuild create mode 100644 sys-apps/fxload/metadata.xml create mode 100644 sys-apps/gawk/Manifest create mode 100644 sys-apps/gawk/files/filefuncs/Makefile create mode 100644 sys-apps/gawk/files/filefuncs/filefuncs.c create mode 100644 sys-apps/gawk/files/gawk-4.1.0-ports.patch create mode 100644 sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch create mode 100644 sys-apps/gawk/gawk-3.1.8.ebuild create mode 100644 sys-apps/gawk/gawk-4.0.2.ebuild create mode 100644 sys-apps/gawk/gawk-4.1.2.ebuild create mode 100644 sys-apps/gawk/gawk-4.1.3.ebuild create mode 100644 sys-apps/gawk/metadata.xml create mode 100644 sys-apps/gentoo-functions/Manifest create mode 100644 sys-apps/gentoo-functions/gentoo-functions-0.10.ebuild create mode 100644 sys-apps/gentoo-functions/gentoo-functions-0.7.ebuild create mode 100644 sys-apps/gentoo-functions/gentoo-functions-0.8.ebuild create mode 100644 sys-apps/gentoo-functions/gentoo-functions-0.9.ebuild create mode 100644 sys-apps/gentoo-functions/gentoo-functions-9999.ebuild create mode 100644 sys-apps/gentoo-functions/metadata.xml create mode 100644 sys-apps/gentoo-systemd-integration/Manifest create mode 100644 sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-2.ebuild create mode 100644 sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-4.ebuild create mode 100644 sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-9999.ebuild create mode 100644 sys-apps/gentoo-systemd-integration/metadata.xml create mode 100644 sys-apps/gnome-disk-utility/Manifest create mode 100644 sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-kill-gsd-automagic.patch create mode 100644 sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-raise-gsd-dependency.patch create mode 100644 sys-apps/gnome-disk-utility/gnome-disk-utility-3.14.0.ebuild create mode 100644 sys-apps/gnome-disk-utility/gnome-disk-utility-3.16.2.ebuild create mode 100644 sys-apps/gnome-disk-utility/metadata.xml create mode 100644 sys-apps/gpet/Manifest create mode 100644 sys-apps/gpet/gpet-0.4.ebuild create mode 100644 sys-apps/gpet/metadata.xml create mode 100644 sys-apps/gptfdisk/Manifest create mode 100644 sys-apps/gptfdisk/gptfdisk-0.8.10.ebuild create mode 100644 sys-apps/gptfdisk/gptfdisk-1.0.0.ebuild create mode 100644 sys-apps/gptfdisk/metadata.xml create mode 100644 sys-apps/gradm/Manifest create mode 100644 sys-apps/gradm/files/respect-gentoo-env-r2.patch create mode 100644 sys-apps/gradm/files/respect-gentoo-env-r3.patch create mode 100644 sys-apps/gradm/gradm-3.1.201506081912.ebuild create mode 100644 sys-apps/gradm/gradm-3.1.201507041117.ebuild create mode 100644 sys-apps/gradm/gradm-3.1.201507191652.ebuild create mode 100644 sys-apps/gradm/metadata.xml create mode 100644 sys-apps/grep/Manifest create mode 100644 sys-apps/grep/grep-2.21-r1.ebuild create mode 100644 sys-apps/grep/metadata.xml create mode 100644 sys-apps/groff/Manifest create mode 100644 sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch create mode 100644 sys-apps/groff/files/groff-1.22.2-parallel-mom.patch create mode 100644 sys-apps/groff/files/groff-1.22.3-parallel-mom.patch create mode 100644 sys-apps/groff/groff-1.22.2.ebuild create mode 100644 sys-apps/groff/groff-1.22.3.ebuild create mode 100644 sys-apps/groff/metadata.xml create mode 100644 sys-apps/gscanbus/Manifest create mode 100644 sys-apps/gscanbus/gscanbus-0.8.ebuild create mode 100644 sys-apps/gscanbus/metadata.xml create mode 100644 sys-apps/gsmartcontrol/Manifest create mode 100644 sys-apps/gsmartcontrol/gsmartcontrol-0.8.7.ebuild create mode 100644 sys-apps/gsmartcontrol/metadata.xml create mode 100644 sys-apps/hardened-shadow/Manifest create mode 100644 sys-apps/hardened-shadow/hardened-shadow-0.9.2.ebuild create mode 100644 sys-apps/hardened-shadow/metadata.xml create mode 100644 sys-apps/haveged/Manifest create mode 100644 sys-apps/haveged/files/haveged-conf.d create mode 100644 sys-apps/haveged/files/haveged-init.d.2 create mode 100644 sys-apps/haveged/files/haveged-init.d.3 create mode 100644 sys-apps/haveged/files/haveged.conf create mode 100644 sys-apps/haveged/files/service.gentoo create mode 100644 sys-apps/haveged/haveged-1.5.ebuild create mode 100644 sys-apps/haveged/haveged-1.7a-r1.ebuild create mode 100644 sys-apps/haveged/haveged-1.7a.ebuild create mode 100644 sys-apps/haveged/haveged-1.9.1.ebuild create mode 100644 sys-apps/haveged/metadata.xml create mode 100644 sys-apps/hbaapi/Manifest create mode 100644 sys-apps/hbaapi/files/hba.conf create mode 100644 sys-apps/hbaapi/files/hbaapi-2.2-qa.patch create mode 100644 sys-apps/hbaapi/hbaapi-2.2.ebuild create mode 100644 sys-apps/hbaapi/metadata.xml create mode 100644 sys-apps/hdparm/Manifest create mode 100644 sys-apps/hdparm/files/hdparm-conf.d.3 create mode 100644 sys-apps/hdparm/files/hdparm-init-8 create mode 100644 sys-apps/hdparm/hdparm-9.39.ebuild create mode 100644 sys-apps/hdparm/hdparm-9.45.ebuild create mode 100644 sys-apps/hdparm/hdparm-9.47.ebuild create mode 100644 sys-apps/hdparm/hdparm-9.48.ebuild create mode 100644 sys-apps/hdparm/metadata.xml create mode 100644 sys-apps/heirloom-tools/Manifest create mode 100644 sys-apps/heirloom-tools/heirloom-tools-070715.ebuild create mode 100644 sys-apps/heirloom-tools/metadata.xml create mode 100644 sys-apps/help2man/Manifest create mode 100644 sys-apps/help2man/files/help2man-1.36.4-respect-LDFLAGS.patch create mode 100644 sys-apps/help2man/files/help2man-1.38.4-linguas.patch create mode 100644 sys-apps/help2man/files/help2man-1.46.1-linguas.patch create mode 100644 sys-apps/help2man/help2man-1.45.1.ebuild create mode 100644 sys-apps/help2man/help2man-1.46.6.ebuild create mode 100644 sys-apps/help2man/help2man-1.47.1.ebuild create mode 100644 sys-apps/help2man/metadata.xml create mode 100644 sys-apps/hexdump-esr/Manifest create mode 100644 sys-apps/hexdump-esr/hexdump-esr-1.8.ebuild create mode 100644 sys-apps/hexdump-esr/metadata.xml create mode 100644 sys-apps/hotplug2stdout/Manifest create mode 100644 sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild create mode 100644 sys-apps/hotplug2stdout/metadata.xml create mode 100644 sys-apps/hprofile/Manifest create mode 100644 sys-apps/hprofile/hprofile-3.0.6.ebuild create mode 100644 sys-apps/hprofile/hprofile-3.1.1.ebuild create mode 100644 sys-apps/hprofile/hprofile-3.2.2.ebuild create mode 100644 sys-apps/hprofile/metadata.xml create mode 100644 sys-apps/hwdata-gentoo/Manifest create mode 100644 sys-apps/hwdata-gentoo/files/0.4-openchrome.patch create mode 100644 sys-apps/hwdata-gentoo/hwdata-gentoo-0.4.ebuild create mode 100644 sys-apps/hwdata-gentoo/metadata.xml create mode 100644 sys-apps/hwdata-redhat/Manifest create mode 100644 sys-apps/hwdata-redhat/files/hwdata-redhat-0.217-python-3.patch create mode 100644 sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild create mode 100644 sys-apps/hwdata-redhat/metadata.xml create mode 100644 sys-apps/hwids/Manifest create mode 100644 sys-apps/hwids/hwids-20141010.ebuild create mode 100644 sys-apps/hwids/hwids-20141110.ebuild create mode 100644 sys-apps/hwids/hwids-20141214.ebuild create mode 100644 sys-apps/hwids/hwids-20150107.ebuild create mode 100644 sys-apps/hwids/hwids-20150129.ebuild create mode 100644 sys-apps/hwids/hwids-20150417.ebuild create mode 100644 sys-apps/hwids/hwids-20150421-r1.ebuild create mode 100644 sys-apps/hwids/hwids-20150421.ebuild create mode 100644 sys-apps/hwids/hwids-20150717-r1.ebuild create mode 100644 sys-apps/hwids/hwids-20150717.ebuild create mode 100644 sys-apps/hwids/hwids-99999999.ebuild create mode 100644 sys-apps/hwids/metadata.xml create mode 100644 sys-apps/hwinfo/Manifest create mode 100644 sys-apps/hwinfo/hwinfo-19.1.ebuild create mode 100644 sys-apps/hwinfo/hwinfo-20.0.ebuild create mode 100644 sys-apps/hwinfo/hwinfo-21.4.ebuild create mode 100644 sys-apps/hwinfo/metadata.xml create mode 100644 sys-apps/hwloc/Manifest create mode 100644 sys-apps/hwloc/files/hwloc-1.8.1-gl.patch create mode 100644 sys-apps/hwloc/files/hwloc-gather-topology-fix-lstopo-path-after-install.patch create mode 100644 sys-apps/hwloc/hwloc-1.10.0-r2.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.10.0.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.10.1-r1.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.6.1.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.6.2.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.7.2.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.8.1.ebuild create mode 100644 sys-apps/hwloc/hwloc-1.9.ebuild create mode 100644 sys-apps/hwloc/metadata.xml create mode 100644 sys-apps/hwsetup/Manifest create mode 100644 sys-apps/hwsetup/files/1.2-3-fastprobe.patch create mode 100644 sys-apps/hwsetup/files/1.2-7-dyn_blacklist.patch create mode 100644 sys-apps/hwsetup/files/1.2-7-gentoo.patch create mode 100644 sys-apps/hwsetup/files/1.2-7-openchrome.patch create mode 100644 sys-apps/hwsetup/files/1.2-strip.patch create mode 100644 sys-apps/hwsetup/hwsetup-1.2-r3.ebuild create mode 100644 sys-apps/hwsetup/metadata.xml create mode 100644 sys-apps/i2c-tools/Manifest create mode 100644 sys-apps/i2c-tools/files/i2c-tools-3.1.1-python-3.patch create mode 100644 sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild create mode 100644 sys-apps/i2c-tools/i2c-tools-3.1.1-r1.ebuild create mode 100644 sys-apps/i2c-tools/metadata.xml create mode 100644 sys-apps/ibm-powerpc-utils-papr/Manifest create mode 100644 sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-remove-doc.patch create mode 100644 sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-removeinitandvscsis.patch create mode 100644 sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.6-removeinitandvscsis.patch create mode 100644 sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis create mode 100644 sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.0.ebuild create mode 100644 sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.6.ebuild create mode 100644 sys-apps/ibm-powerpc-utils-papr/metadata.xml create mode 100644 sys-apps/ibm-powerpc-utils/Manifest create mode 100644 sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.1.0-remove-doc.patch create mode 100644 sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.1.0.ebuild create mode 100644 sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.12.ebuild create mode 100644 sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.2.ebuild create mode 100644 sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.25.ebuild create mode 100644 sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.26.ebuild create mode 100644 sys-apps/ibm-powerpc-utils/metadata.xml create mode 100644 sys-apps/idle3-tools/Manifest create mode 100644 sys-apps/idle3-tools/idle3-tools-0.9.1.ebuild create mode 100644 sys-apps/idle3-tools/metadata.xml create mode 100644 sys-apps/ifd-gempc/Manifest create mode 100644 sys-apps/ifd-gempc/files/reader.conf create mode 100644 sys-apps/ifd-gempc/ifd-gempc-1.0.6.ebuild create mode 100644 sys-apps/ifd-gempc/metadata.xml create mode 100644 sys-apps/ifplugd/Manifest create mode 100644 sys-apps/ifplugd/files/ifplugd-0.28-interface.patch create mode 100644 sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff create mode 100644 sys-apps/ifplugd/files/ifplugd-0.28-noip.patch create mode 100644 sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch create mode 100644 sys-apps/ifplugd/files/ifplugd.action create mode 100644 sys-apps/ifplugd/ifplugd-0.28-r9.ebuild create mode 100644 sys-apps/ifplugd/metadata.xml create mode 100644 sys-apps/input-utils/Manifest create mode 100644 sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch create mode 100644 sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch create mode 100644 sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild create mode 100644 sys-apps/input-utils/input-utils-1.1.ebuild create mode 100644 sys-apps/input-utils/metadata.xml create mode 100644 sys-apps/install-xattr/Manifest create mode 100644 sys-apps/install-xattr/install-xattr-0.4.ebuild create mode 100644 sys-apps/install-xattr/install-xattr-0.5.ebuild create mode 100644 sys-apps/install-xattr/install-xattr-9999.ebuild create mode 100644 sys-apps/install-xattr/metadata.xml create mode 100644 sys-apps/intel-performance-counter-monitor/Manifest create mode 100644 sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.8.ebuild create mode 100644 sys-apps/intel-performance-counter-monitor/metadata.xml create mode 100644 sys-apps/inxi/Manifest create mode 100644 sys-apps/inxi/inxi-2.2.14.ebuild create mode 100644 sys-apps/inxi/inxi-2.2.19.ebuild create mode 100644 sys-apps/inxi/metadata.xml create mode 100644 sys-apps/iotools/Manifest create mode 100644 sys-apps/iotools/files/iotools-1.4-cpuid-pic.patch create mode 100644 sys-apps/iotools/files/iotools-1.4-ldflags.patch create mode 100644 sys-apps/iotools/iotools-1.4.ebuild create mode 100644 sys-apps/iotools/iotools-1.5.ebuild create mode 100644 sys-apps/iotools/metadata.xml create mode 100644 sys-apps/ipmitool/Manifest create mode 100644 sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd create mode 100644 sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd create mode 100644 sys-apps/ipmitool/ipmitool-1.8.11-r1.ebuild create mode 100644 sys-apps/ipmitool/ipmitool-1.8.11.ebuild create mode 100644 sys-apps/ipmitool/ipmitool-1.8.14-r1.ebuild create mode 100644 sys-apps/ipmitool/ipmitool-1.8.14.ebuild create mode 100644 sys-apps/ipmitool/metadata.xml create mode 100644 sys-apps/ipmiutil/Manifest create mode 100644 sys-apps/ipmiutil/files/ipmiutil-2.9.3-flags.patch create mode 100644 sys-apps/ipmiutil/files/ipmiutil-2.9.3-tmpdir.patch create mode 100644 sys-apps/ipmiutil/ipmiutil-2.7.7.ebuild create mode 100644 sys-apps/ipmiutil/ipmiutil-2.8.2.ebuild create mode 100644 sys-apps/ipmiutil/ipmiutil-2.8.5.ebuild create mode 100644 sys-apps/ipmiutil/ipmiutil-2.9.3.ebuild create mode 100644 sys-apps/ipmiutil/metadata.xml create mode 100644 sys-apps/iproute2/Manifest create mode 100644 sys-apps/iproute2/files/iproute2-2.6.26-ldflags.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.29.1-hfsc.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.35-cached-routes.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.35-no-iptables.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.35-xtables.patch create mode 100644 sys-apps/iproute2/files/iproute2-2.6.38-parallel-build.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.1.0-no-ipv6.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.10.0-no-ipv6.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.6.0-pkg-config.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.7.0-clang.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.7.0-man7.patch create mode 100644 sys-apps/iproute2/files/iproute2-3.8.0-old-mount-libc.patch create mode 100644 sys-apps/iproute2/files/iproute2-4.0.0-tc-show-buffer-overflow.patch create mode 100644 sys-apps/iproute2/iproute2-2.6.38.ebuild create mode 100644 sys-apps/iproute2/iproute2-3.17.0.ebuild create mode 100644 sys-apps/iproute2/iproute2-3.19.0.ebuild create mode 100644 sys-apps/iproute2/iproute2-3.3.0.ebuild create mode 100644 sys-apps/iproute2/iproute2-3.8.0.ebuild create mode 100644 sys-apps/iproute2/iproute2-4.0.0-r2.ebuild create mode 100644 sys-apps/iproute2/iproute2-4.1.0.ebuild create mode 100644 sys-apps/iproute2/iproute2-4.1.1.ebuild create mode 100644 sys-apps/iproute2/iproute2-9999.ebuild create mode 100644 sys-apps/iproute2/metadata.xml create mode 100644 sys-apps/irqbalance/Manifest create mode 100644 sys-apps/irqbalance/files/irqbalance-0.56-build.patch create mode 100644 sys-apps/irqbalance/files/irqbalance.1 create mode 100644 sys-apps/irqbalance/files/irqbalance.confd create mode 100644 sys-apps/irqbalance/files/irqbalance.confd-1 create mode 100644 sys-apps/irqbalance/files/irqbalance.init-0.55-r2 create mode 100644 sys-apps/irqbalance/files/irqbalance.init.2 create mode 100644 sys-apps/irqbalance/files/irqbalance.init.3 create mode 100644 sys-apps/irqbalance/files/irqbalance.service create mode 100644 sys-apps/irqbalance/irqbalance-0.56.ebuild create mode 100644 sys-apps/irqbalance/irqbalance-1.0.4.ebuild create mode 100644 sys-apps/irqbalance/irqbalance-1.0.5-r1.ebuild create mode 100644 sys-apps/irqbalance/irqbalance-1.0.6.ebuild create mode 100644 sys-apps/irqbalance/irqbalance-1.0.7-r1.ebuild create mode 100644 sys-apps/irqbalance/irqbalance-1.0.7.ebuild create mode 100644 sys-apps/irqbalance/irqbalance-1.0.9.ebuild create mode 100644 sys-apps/irqbalance/metadata.xml create mode 100644 sys-apps/isapnptools/Manifest create mode 100644 sys-apps/isapnptools/files/isapnp.rc create mode 100644 sys-apps/isapnptools/files/isapnptools-1.26-gcc.patch create mode 100644 sys-apps/isapnptools/files/isapnptools-1.27-include.patch create mode 100644 sys-apps/isapnptools/isapnptools-1.27.ebuild create mode 100644 sys-apps/isapnptools/metadata.xml create mode 100644 sys-apps/kbd/Manifest create mode 100644 sys-apps/kbd/files/kbd-1.15.5-loadkeys-parse.patch create mode 100644 sys-apps/kbd/files/kbd-2.0.0-tests.patch create mode 100644 sys-apps/kbd/files/kbd-2.0.1-big_endian.patch create mode 100644 sys-apps/kbd/files/kbd-2.0.1-stdarg.patch create mode 100644 sys-apps/kbd/kbd-1.15.5-r1.ebuild create mode 100644 sys-apps/kbd/kbd-2.0.1-r1.ebuild create mode 100644 sys-apps/kbd/kbd-2.0.1.ebuild create mode 100644 sys-apps/kbd/kbd-2.0.2.ebuild create mode 100644 sys-apps/kbd/kbd-2.0.3.ebuild create mode 100644 sys-apps/kbd/kbd-9999.ebuild create mode 100644 sys-apps/kbd/metadata.xml create mode 100644 sys-apps/kexec-tools/Manifest create mode 100644 sys-apps/kexec-tools/files/90_kexec create mode 100644 sys-apps/kexec-tools/files/README.Gentoo create mode 100644 sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch create mode 100644 sys-apps/kexec-tools/files/kexec-tools-2.0.4-disable-kexec-test.patch create mode 100644 sys-apps/kexec-tools/files/kexec-tools-2.0.4-out-of-source.patch create mode 100644 sys-apps/kexec-tools/files/kexec-tools-2.0.9-hardened.patch create mode 100644 sys-apps/kexec-tools/files/kexec.conf create mode 100644 sys-apps/kexec-tools/files/kexec.conf-2.0.4 create mode 100644 sys-apps/kexec-tools/files/kexec.conf-9999 create mode 100644 sys-apps/kexec-tools/files/kexec.init-2.0.4 create mode 100644 sys-apps/kexec-tools/files/kexec.init-2.0.4-r2 create mode 100644 sys-apps/kexec-tools/files/kexec.init-2.0.4-r3 create mode 100644 sys-apps/kexec-tools/files/kexec.init-9999 create mode 100644 sys-apps/kexec-tools/files/kexec.service create mode 100644 sys-apps/kexec-tools/kexec-tools-2.0.4-r2.ebuild create mode 100644 sys-apps/kexec-tools/kexec-tools-2.0.8.ebuild create mode 100644 sys-apps/kexec-tools/kexec-tools-2.0.9-r1.ebuild create mode 100644 sys-apps/kexec-tools/kexec-tools-2.0.9-r2.ebuild create mode 100644 sys-apps/kexec-tools/kexec-tools-2.0.9.ebuild create mode 100644 sys-apps/kexec-tools/kexec-tools-9999.ebuild create mode 100644 sys-apps/kexec-tools/metadata.xml create mode 100644 sys-apps/keyutils/Manifest create mode 100644 sys-apps/keyutils/files/keyutils-1.5.5-makefile-fixup.patch create mode 100644 sys-apps/keyutils/keyutils-1.5.5.ebuild create mode 100644 sys-apps/keyutils/keyutils-1.5.8.ebuild create mode 100644 sys-apps/keyutils/keyutils-1.5.9-r1.ebuild create mode 100644 sys-apps/keyutils/keyutils-1.5.9.ebuild create mode 100644 sys-apps/keyutils/metadata.xml create mode 100644 sys-apps/kmod/Manifest create mode 100644 sys-apps/kmod/files/kmod-static-nodes-r1 create mode 100644 sys-apps/kmod/kmod-20.ebuild create mode 100644 sys-apps/kmod/kmod-21.ebuild create mode 100644 sys-apps/kmod/kmod-9999.ebuild create mode 100644 sys-apps/kmod/metadata.xml create mode 100644 sys-apps/lcdsplash/Manifest create mode 100644 sys-apps/lcdsplash/lcdsplash-0.3.ebuild create mode 100644 sys-apps/lcdsplash/metadata.xml create mode 100644 sys-apps/lcdtest/Manifest create mode 100644 sys-apps/lcdtest/files/1.18-build-system.patch create mode 100644 sys-apps/lcdtest/lcdtest-1.18.ebuild create mode 100644 sys-apps/lcdtest/metadata.xml create mode 100644 sys-apps/lcdutils/Manifest create mode 100644 sys-apps/lcdutils/files/include-stdlib.h-for-exit.patch create mode 100644 sys-apps/lcdutils/lcdutils-0.2.ebuild create mode 100644 sys-apps/lcdutils/metadata.xml create mode 100644 sys-apps/less/Manifest create mode 100644 sys-apps/less/files/README.Gentoo create mode 100644 sys-apps/less/files/code2color-0.2.patch create mode 100644 sys-apps/less/files/less.envd create mode 100644 sys-apps/less/files/lesspipe.sh create mode 100644 sys-apps/less/less-458.ebuild create mode 100644 sys-apps/less/less-476.ebuild create mode 100644 sys-apps/less/less-477.ebuild create mode 100644 sys-apps/less/less-478.ebuild create mode 100644 sys-apps/less/less-479.ebuild create mode 100644 sys-apps/less/metadata.xml create mode 100644 sys-apps/likwid/Manifest create mode 100644 sys-apps/likwid/files/likwid-3.1.3-Makefile.patch create mode 100644 sys-apps/likwid/files/likwid-3.1.3-fix-gnustack.patch create mode 100644 sys-apps/likwid/likwid-3.1.3.ebuild create mode 100644 sys-apps/likwid/metadata.xml create mode 100644 sys-apps/linux-misc-apps/Manifest create mode 100644 sys-apps/linux-misc-apps/files/freefall.confd create mode 100644 sys-apps/linux-misc-apps/files/freefall.initd create mode 100644 sys-apps/linux-misc-apps/files/hpfall.confd create mode 100644 sys-apps/linux-misc-apps/files/hpfall.initd create mode 100644 sys-apps/linux-misc-apps/linux-misc-apps-3.18.ebuild create mode 100644 sys-apps/linux-misc-apps/linux-misc-apps-3.6-r2.ebuild create mode 100644 sys-apps/linux-misc-apps/metadata.xml create mode 100644 sys-apps/lkcdutils/Manifest create mode 100644 sys-apps/lkcdutils/files/lkcdutils-6.2.0-build.patch create mode 100644 sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild create mode 100644 sys-apps/lkcdutils/lkcdutils-6.2.0.ebuild create mode 100644 sys-apps/lkcdutils/metadata.xml create mode 100644 sys-apps/lm_sensors/Manifest create mode 100644 sys-apps/lm_sensors/files/fancontrol-init.d-2 create mode 100644 sys-apps/lm_sensors/files/fancontrol.service create mode 100644 sys-apps/lm_sensors/files/lm_sensors-3-init.d create mode 100644 sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch create mode 100644 sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch create mode 100644 sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch create mode 100644 sys-apps/lm_sensors/files/sensord-4-init.d create mode 100644 sys-apps/lm_sensors/files/sensord-conf.d create mode 100644 sys-apps/lm_sensors/files/sensord.service create mode 100644 sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild create mode 100644 sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild create mode 100644 sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild create mode 100644 sys-apps/lm_sensors/metadata.xml create mode 100644 sys-apps/lmctfy/Manifest create mode 100644 sys-apps/lmctfy/lmctfy-0.2.0.ebuild create mode 100644 sys-apps/lmctfy/lmctfy-0.3.0.ebuild create mode 100644 sys-apps/lmctfy/lmctfy-0.3.1.ebuild create mode 100644 sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild create mode 100644 sys-apps/lmctfy/lmctfy-0.5.0.ebuild create mode 100644 sys-apps/lmctfy/metadata.xml create mode 100644 sys-apps/lnxhc/Manifest create mode 100644 sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch create mode 100644 sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch create mode 100644 sys-apps/lnxhc/lnxhc-1.2-r1.ebuild create mode 100644 sys-apps/lnxhc/metadata.xml create mode 100644 sys-apps/logwatch/Manifest create mode 100755 sys-apps/logwatch/files/logwatch create mode 100644 sys-apps/logwatch/files/logwatch-7.4.0-openssh-hpn.patch create mode 100644 sys-apps/logwatch/logwatch-7.4.0-r1.ebuild create mode 100644 sys-apps/logwatch/logwatch-7.4.0.ebuild create mode 100644 sys-apps/logwatch/logwatch-7.4.0_p170-r1.ebuild create mode 100644 sys-apps/logwatch/logwatch-7.4.1.ebuild create mode 100644 sys-apps/logwatch/metadata.xml create mode 100644 sys-apps/lomoco/Manifest create mode 100644 sys-apps/lomoco/files/lomoco-1.0-gentoo-hardware-support.patch create mode 100644 sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch create mode 100644 sys-apps/lomoco/files/lomoco-pm-utils-r1 create mode 100644 sys-apps/lomoco/files/lomoco.conf create mode 100644 sys-apps/lomoco/lomoco-1.0-r9.ebuild create mode 100644 sys-apps/lomoco/metadata.xml create mode 100644 sys-apps/lsadb/Manifest create mode 100644 sys-apps/lsadb/files/lsadb-makefile.patch create mode 100644 sys-apps/lsadb/lsadb-0.1.3.ebuild create mode 100644 sys-apps/lsadb/metadata.xml create mode 100644 sys-apps/lsb-release/Manifest create mode 100644 sys-apps/lsb-release/files/lsb-release-1.4-os-release.patch create mode 100644 sys-apps/lsb-release/lsb-release-1.4-r1.ebuild create mode 100644 sys-apps/lsb-release/lsb-release-1.4-r2.ebuild create mode 100644 sys-apps/lsb-release/lsb-release-1.4-r3.ebuild create mode 100644 sys-apps/lsb-release/lsb-release-1.4.ebuild create mode 100644 sys-apps/lsb-release/metadata.xml create mode 100644 sys-apps/lshw/Manifest create mode 100644 sys-apps/lshw/files/lshw-02.15b-build.patch create mode 100644 sys-apps/lshw/files/lshw-02.16b-gentoo.patch create mode 100644 sys-apps/lshw/files/lshw-02.17b-fat.patch create mode 100644 sys-apps/lshw/files/lshw-02.17b-gentoo.patch create mode 100644 sys-apps/lshw/lshw-02.16b-r2.ebuild create mode 100644 sys-apps/lshw/lshw-02.17b-r1.ebuild create mode 100644 sys-apps/lshw/lshw-02.17b.ebuild create mode 100644 sys-apps/lshw/metadata.xml create mode 100644 sys-apps/lssbus/Manifest create mode 100644 sys-apps/lssbus/lssbus-0.1.ebuild create mode 100644 sys-apps/lssbus/metadata.xml create mode 100644 sys-apps/magneto-core/Manifest create mode 100644 sys-apps/magneto-core/magneto-core-254.ebuild create mode 100644 sys-apps/magneto-core/metadata.xml create mode 100644 sys-apps/makedev/Manifest create mode 100644 sys-apps/makedev/files/makedev-3.23.1-headers.patch create mode 100644 sys-apps/makedev/makedev-3.23.1.ebuild create mode 100644 sys-apps/makedev/metadata.xml create mode 100644 sys-apps/man-db/Manifest create mode 100644 sys-apps/man-db/files/man-db.cron create mode 100644 sys-apps/man-db/man-db-2.6.6.ebuild create mode 100644 sys-apps/man-db/man-db-2.6.7.1.ebuild create mode 100644 sys-apps/man-db/man-db-2.7.1.ebuild create mode 100644 sys-apps/man-db/metadata.xml create mode 100644 sys-apps/man-pages-posix/Manifest create mode 100644 sys-apps/man-pages-posix/files/man-pages-2.08-updates.patch create mode 100644 sys-apps/man-pages-posix/man-pages-posix-2013a.ebuild create mode 100644 sys-apps/man-pages-posix/metadata.xml create mode 100644 sys-apps/man-pages/Manifest create mode 100644 sys-apps/man-pages/man-pages-3.75.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.77.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.78.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.79.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.80.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.81.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.82.ebuild create mode 100644 sys-apps/man-pages/man-pages-3.83.ebuild create mode 100644 sys-apps/man-pages/man-pages-4.00.ebuild create mode 100644 sys-apps/man-pages/man-pages-4.01.ebuild create mode 100644 sys-apps/man-pages/metadata.xml create mode 100644 sys-apps/man/Manifest create mode 100644 sys-apps/man/files/makewhatis.cron create mode 100644 sys-apps/man/files/man-1.5m2-apropos.patch create mode 100644 sys-apps/man/files/man-1.6-cross-compile.patch create mode 100644 sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch create mode 100644 sys-apps/man/files/man-1.6e-headers.patch create mode 100644 sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch create mode 100644 sys-apps/man/files/man-1.6f-man2html-compression-2.patch create mode 100644 sys-apps/man/files/man-1.6f-parallel-build.patch create mode 100644 sys-apps/man/files/man-1.6f-so-search-2.patch create mode 100644 sys-apps/man/files/man-1.6f-unicode.patch create mode 100644 sys-apps/man/files/man-1.6g-compress.patch create mode 100644 sys-apps/man/files/man-1.6g-echo-escape.patch create mode 100644 sys-apps/man/files/man-1.6g-fbsd.patch create mode 100644 sys-apps/man/files/man-1.6g-xz.patch create mode 100644 sys-apps/man/man-1.6g-r1.ebuild create mode 100644 sys-apps/man/man-1.6g.ebuild create mode 100644 sys-apps/man/metadata.xml create mode 100644 sys-apps/mawk/Manifest create mode 100644 sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch create mode 100644 sys-apps/mawk/mawk-1.3.4_p20100625.ebuild create mode 100644 sys-apps/mawk/mawk-1.3.4_p20131226.ebuild create mode 100644 sys-apps/mawk/mawk-1.3.4_p20140914.ebuild create mode 100644 sys-apps/mawk/mawk-1.3.4_p20141027.ebuild create mode 100644 sys-apps/mawk/mawk-1.3.4_p20141206.ebuild create mode 100644 sys-apps/mawk/metadata.xml create mode 100644 sys-apps/memtest86+/Manifest create mode 100644 sys-apps/memtest86+/files/39_memtest86+ create mode 100644 sys-apps/memtest86+/files/make-memtest86+-boot-floppy create mode 100644 sys-apps/memtest86+/files/make-memtest86+-boot-floppy.1 create mode 100644 sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-4.00-hardcoded_cc.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-4.20-hardcoded_cc.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch create mode 100644 sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch create mode 100644 sys-apps/memtest86+/memtest86+-2.01.ebuild create mode 100644 sys-apps/memtest86+/memtest86+-4.00.ebuild create mode 100644 sys-apps/memtest86+/memtest86+-4.20-r1.ebuild create mode 100644 sys-apps/memtest86+/memtest86+-4.20-r2.ebuild create mode 100644 sys-apps/memtest86+/memtest86+-5.01-r1.ebuild create mode 100644 sys-apps/memtest86+/memtest86+-5.01.ebuild create mode 100644 sys-apps/memtest86+/metadata.xml create mode 100644 sys-apps/memtest86/Manifest create mode 100644 sys-apps/memtest86/files/39_memtest86 create mode 100644 sys-apps/memtest86/files/memtest86-3.2-solar.patch create mode 100644 sys-apps/memtest86/files/memtest86-3.3-funky-test.patch create mode 100644 sys-apps/memtest86/files/memtest86-3.3-gnu-hash.patch create mode 100644 sys-apps/memtest86/files/memtest86-4.0-build.patch create mode 100644 sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch create mode 100644 sys-apps/memtest86/files/memtest86-4.3.3-build.patch create mode 100644 sys-apps/memtest86/memtest86-3.3.ebuild create mode 100644 sys-apps/memtest86/memtest86-4.3.6.ebuild create mode 100644 sys-apps/memtest86/memtest86-4.3.7.ebuild create mode 100644 sys-apps/memtest86/metadata.xml create mode 100644 sys-apps/memtester/Manifest create mode 100644 sys-apps/memtester/memtester-4.2.2.ebuild create mode 100644 sys-apps/memtester/memtester-4.3.0.ebuild create mode 100644 sys-apps/memtester/metadata.xml create mode 100644 sys-apps/metadata.xml create mode 100644 sys-apps/microcode-ctl/Manifest create mode 100644 sys-apps/microcode-ctl/files/microcode_ctl.conf.d create mode 100644 sys-apps/microcode-ctl/files/microcode_ctl.rc create mode 100644 sys-apps/microcode-ctl/files/microcode_ctl.rc-r1 create mode 100644 sys-apps/microcode-ctl/metadata.xml create mode 100644 sys-apps/microcode-ctl/microcode-ctl-1.23.ebuild create mode 100644 sys-apps/microcode-ctl/microcode-ctl-1.27.ebuild create mode 100644 sys-apps/microcode-ctl/microcode-ctl-1.28.ebuild create mode 100644 sys-apps/microcode-data/Manifest create mode 100644 sys-apps/microcode-data/files/intel-microcode2ucode.c create mode 100644 sys-apps/microcode-data/metadata.xml create mode 100644 sys-apps/microcode-data/microcode-data-20140430.ebuild create mode 100644 sys-apps/microcode-data/microcode-data-20140624.ebuild create mode 100644 sys-apps/microcode-data/microcode-data-20140913.ebuild create mode 100644 sys-apps/microcode-data/microcode-data-20150121.ebuild create mode 100644 sys-apps/minised/Manifest create mode 100644 sys-apps/minised/metadata.xml create mode 100644 sys-apps/minised/minised-1.13.ebuild create mode 100644 sys-apps/minised/minised-1.14.ebuild create mode 100644 sys-apps/miscfiles/Manifest create mode 100644 sys-apps/miscfiles/files/miscfiles-1.3-Makefile.diff create mode 100644 sys-apps/miscfiles/metadata.xml create mode 100644 sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild create mode 100644 sys-apps/miscfiles/miscfiles-1.5-r1.ebuild create mode 100644 sys-apps/miscfiles/miscfiles-1.5.ebuild create mode 100644 sys-apps/mlocate/Manifest create mode 100644 sys-apps/mlocate/files/mlocate-cron.conf create mode 100644 sys-apps/mlocate/files/mlocate.cron-r2 create mode 100644 sys-apps/mlocate/files/updatedb.conf create mode 100644 sys-apps/mlocate/metadata.xml create mode 100644 sys-apps/mlocate/mlocate-0.26-r1.ebuild create mode 100644 sys-apps/modutils/Manifest create mode 100644 sys-apps/modutils/files/modutils-2.4.27-alias.patch create mode 100644 sys-apps/modutils/files/modutils-2.4.27-flex.patch create mode 100644 sys-apps/modutils/files/modutils-2.4.27-gcc.patch create mode 100644 sys-apps/modutils/files/modutils-2.4.27-no-nested-function.patch create mode 100644 sys-apps/modutils/metadata.xml create mode 100644 sys-apps/modutils/modutils-2.4.27-r1.ebuild create mode 100644 sys-apps/more/Manifest create mode 100644 sys-apps/more/files/more-2.12r-freebsd.patch create mode 100644 sys-apps/more/metadata.xml create mode 100644 sys-apps/more/more-2.12r.ebuild create mode 100644 sys-apps/moreutils/Manifest create mode 100644 sys-apps/moreutils/files/moreutils-0.47-dtd-path.patch create mode 100644 sys-apps/moreutils/metadata.xml create mode 100644 sys-apps/moreutils/moreutils-0.50.ebuild create mode 100644 sys-apps/moreutils/moreutils-0.51.ebuild create mode 100644 sys-apps/moreutils/moreutils-0.52.ebuild create mode 100644 sys-apps/moreutils/moreutils-0.53.ebuild create mode 100644 sys-apps/moreutils/moreutils-0.54.ebuild create mode 100644 sys-apps/moreutils/moreutils-0.55.ebuild create mode 100644 sys-apps/moreutils/moreutils-0.56.ebuild create mode 100644 sys-apps/most/Manifest create mode 100644 sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch create mode 100644 sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch create mode 100644 sys-apps/most/metadata.xml create mode 100644 sys-apps/most/most-5.0.0a-r1.ebuild create mode 100644 sys-apps/mount-gtk/Manifest create mode 100644 sys-apps/mount-gtk/files/mount-gtk-1.4.2-c++11.patch create mode 100644 sys-apps/mount-gtk/metadata.xml create mode 100644 sys-apps/mount-gtk/mount-gtk-1.4.2.ebuild create mode 100644 sys-apps/mouseemu/Manifest create mode 100644 sys-apps/mouseemu/files/mouseemu-0.12-fix.diff create mode 100644 sys-apps/mouseemu/files/mouseemu-0.13-fix.patch create mode 100644 sys-apps/mouseemu/files/mouseemu-0.15-build.patch create mode 100644 sys-apps/mouseemu/metadata.xml create mode 100644 sys-apps/mouseemu/mouseemu-0.12.ebuild create mode 100644 sys-apps/mouseemu/mouseemu-0.15.ebuild create mode 100644 sys-apps/msr-tools/Manifest create mode 100644 sys-apps/msr-tools/metadata.xml create mode 100644 sys-apps/msr-tools/msr-tools-1.2.ebuild create mode 100644 sys-apps/mtree/Manifest create mode 100644 sys-apps/mtree/files/mtree-1.5-gcc4.patch create mode 100644 sys-apps/mtree/files/mtree-2007.4+glibc-2.8.patch create mode 100644 sys-apps/mtree/metadata.xml create mode 100644 sys-apps/mtree/mtree-1.0.1.ebuild create mode 100644 sys-apps/mtree/mtree-1.0.ebuild create mode 100644 sys-apps/nawk/Manifest create mode 100644 sys-apps/nawk/files/nawk-20121220-parallel-build.patch create mode 100644 sys-apps/nawk/metadata.xml create mode 100644 sys-apps/nawk/nawk-20121220-r2.ebuild create mode 100644 sys-apps/nca/Manifest create mode 100644 sys-apps/nca/files/ncad.initd create mode 100644 sys-apps/nca/metadata.xml create mode 100644 sys-apps/nca/nca-0.9.0.ebuild create mode 100644 sys-apps/net-tools/Manifest create mode 100644 sys-apps/net-tools/metadata.xml create mode 100644 sys-apps/net-tools/net-tools-1.60_p20130513023548-r1.ebuild create mode 100644 sys-apps/net-tools/net-tools-1.60_p20130513023548-r2.ebuild create mode 100644 sys-apps/net-tools/net-tools-1.60_p20130513023548.ebuild create mode 100644 sys-apps/net-tools/net-tools-1.60_p20141019041918-r1.ebuild create mode 100644 sys-apps/net-tools/net-tools-1.60_p20141019041918.ebuild create mode 100644 sys-apps/net-tools/net-tools-9999.ebuild create mode 100644 sys-apps/netboot-base/Manifest create mode 100644 sys-apps/netboot-base/metadata.xml create mode 100644 sys-apps/netboot-base/netboot-base-20050110.ebuild create mode 100644 sys-apps/netkit-base/Manifest create mode 100644 sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch create mode 100644 sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch create mode 100644 sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch create mode 100644 sys-apps/netkit-base/files/inetd.rc6 create mode 100644 sys-apps/netkit-base/metadata.xml create mode 100644 sys-apps/netkit-base/netkit-base-0.17-r9.ebuild create mode 100644 sys-apps/netloc/Manifest create mode 100644 sys-apps/netloc/metadata.xml create mode 100644 sys-apps/netloc/netloc-0.5.ebuild create mode 100644 sys-apps/netplug/Manifest create mode 100644 sys-apps/netplug/files/netplug-1.2.9-ignore-wireless.patch create mode 100644 sys-apps/netplug/files/netplug-1.2.9-remove-nest.patch create mode 100755 sys-apps/netplug/files/netplug-2 create mode 100644 sys-apps/netplug/metadata.xml create mode 100644 sys-apps/netplug/netplug-1.2.9.2-r1.ebuild create mode 100644 sys-apps/newrelic-sysmond/Manifest create mode 100644 sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc create mode 100644 sys-apps/newrelic-sysmond/metadata.xml create mode 100644 sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild create mode 100644 sys-apps/noexec/Manifest create mode 100644 sys-apps/noexec/metadata.xml create mode 100644 sys-apps/noexec/noexec-1.1.0.ebuild create mode 100644 sys-apps/openrc/Manifest create mode 100644 sys-apps/openrc/files/openrc-0.8.3-ccwgroup.patch create mode 100644 sys-apps/openrc/files/openrc-0.8.3-deprecation_warning.patch create mode 100644 sys-apps/openrc/files/openrc-9999-msg-style.patch create mode 100644 sys-apps/openrc/files/openrc-9999-pause.patch create mode 100644 sys-apps/openrc/files/openrc.logrotate create mode 100644 sys-apps/openrc/files/start-stop-daemon.pam create mode 100644 sys-apps/openrc/metadata.xml create mode 100644 sys-apps/openrc/openrc-0.13.11.ebuild create mode 100644 sys-apps/openrc/openrc-0.14.ebuild create mode 100644 sys-apps/openrc/openrc-0.15.1.ebuild create mode 100644 sys-apps/openrc/openrc-0.15.ebuild create mode 100644 sys-apps/openrc/openrc-0.16.1.ebuild create mode 100644 sys-apps/openrc/openrc-0.16.2.ebuild create mode 100644 sys-apps/openrc/openrc-0.16.3.ebuild create mode 100644 sys-apps/openrc/openrc-0.16.4.ebuild create mode 100644 sys-apps/openrc/openrc-0.16.ebuild create mode 100644 sys-apps/openrc/openrc-0.17.ebuild create mode 100644 sys-apps/openrc/openrc-9999.ebuild create mode 100644 sys-apps/pacman/Manifest create mode 100644 sys-apps/pacman/files/pacman-4.0.0-gpgme.patch create mode 100644 sys-apps/pacman/metadata.xml create mode 100644 sys-apps/pacman/pacman-4.0.1.ebuild create mode 100644 sys-apps/pacman/pacman-4.0.3-r1.ebuild create mode 100644 sys-apps/pacman/pacman-4.0.3.ebuild create mode 100644 sys-apps/paludis/Manifest create mode 100644 sys-apps/paludis/files/paludis-2.0.0-fix-format-security.patch create mode 100644 sys-apps/paludis/files/paludis-2.2.0-check-IUSE_EFFECTIVE-in-EAPI-5.patch create mode 100644 sys-apps/paludis/files/paludis-2.2.0-filter-EBUILD_PHASE_FUNC.patch create mode 100644 sys-apps/paludis/files/paludis-2.2.0-filter-IUSE_EFFECTIVE.patch create mode 100644 sys-apps/paludis/files/paludis-2.2.0-fix-MERGE_TYPE.patch create mode 100644 sys-apps/paludis/files/paludis-2.2.0-fix-PWD-handling.patch create mode 100644 sys-apps/paludis/metadata.xml create mode 100644 sys-apps/paludis/paludis-1.4.2-r1.ebuild create mode 100644 sys-apps/paludis/paludis-2.0.0.ebuild create mode 100644 sys-apps/paludis/paludis-2.2.0-r2.ebuild create mode 100644 sys-apps/paludis/paludis-2.2.0.ebuild create mode 100644 sys-apps/paludis/paludis-2.4.0.ebuild create mode 100644 sys-apps/paludis/paludis-9999.ebuild create mode 100644 sys-apps/paxctl/Manifest create mode 100644 sys-apps/paxctl/metadata.xml create mode 100644 sys-apps/paxctl/paxctl-0.7-r2.ebuild create mode 100644 sys-apps/paxctl/paxctl-0.8.ebuild create mode 100644 sys-apps/paxctl/paxctl-0.9.ebuild create mode 100644 sys-apps/paxctld/Manifest create mode 100644 sys-apps/paxctld/metadata.xml create mode 100644 sys-apps/paxctld/paxctld-1.0.ebuild create mode 100644 sys-apps/pciutils/Manifest create mode 100644 sys-apps/pciutils/files/conf.d-pciparm create mode 100644 sys-apps/pciutils/files/init.d-pciparm create mode 100644 sys-apps/pciutils/files/pciutils-3.1.9-static-pc.patch create mode 100644 sys-apps/pciutils/metadata.xml create mode 100644 sys-apps/pciutils/pciutils-3.2.0.ebuild create mode 100644 sys-apps/pciutils/pciutils-3.2.1.ebuild create mode 100644 sys-apps/pciutils/pciutils-3.3.0-r2.ebuild create mode 100644 sys-apps/pciutils/pciutils-3.3.1.ebuild create mode 100644 sys-apps/pcmciautils/Manifest create mode 100644 sys-apps/pcmciautils/metadata.xml create mode 100644 sys-apps/pcmciautils/pcmciautils-018_p8-r1.ebuild create mode 100644 sys-apps/pcmciautils/pcmciautils-018_p8.ebuild create mode 100644 sys-apps/pcsc-lite/Manifest create mode 100644 sys-apps/pcsc-lite/files/99-pcscd-hotplug.rules create mode 100644 sys-apps/pcsc-lite/files/pcsc-lite-1.8.11-nopolkit.patch create mode 100644 sys-apps/pcsc-lite/files/pcsc-lite-1.8.11-polkit-pcscd.patch create mode 100644 sys-apps/pcsc-lite/files/pcscd-init.5 create mode 100644 sys-apps/pcsc-lite/files/pcscd-init.6 create mode 100644 sys-apps/pcsc-lite/files/pcscd-init.7 create mode 100644 sys-apps/pcsc-lite/metadata.xml create mode 100644 sys-apps/pcsc-lite/pcsc-lite-1.8.12-r1.ebuild create mode 100644 sys-apps/pcsc-lite/pcsc-lite-1.8.13-r1.ebuild create mode 100644 sys-apps/pcsc-lite/pcsc-lite-1.8.13.ebuild create mode 100644 sys-apps/pcsc-lite/pcsc-lite-1.8.8-r1.ebuild create mode 100644 sys-apps/pcsc-slb-rf72-drv/Manifest create mode 100644 sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-build-new.patch create mode 100644 sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-build.patch create mode 100644 sys-apps/pcsc-slb-rf72-drv/files/reader.conf create mode 100644 sys-apps/pcsc-slb-rf72-drv/metadata.xml create mode 100644 sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r1.ebuild create mode 100644 sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r2.ebuild create mode 100644 sys-apps/pcsc-tools/Manifest create mode 100644 sys-apps/pcsc-tools/files/smartcard.cron create mode 100644 sys-apps/pcsc-tools/metadata.xml create mode 100644 sys-apps/pcsc-tools/pcsc-tools-1.4.22.ebuild create mode 100644 sys-apps/pcsc-tools/pcsc-tools-1.4.23.ebuild create mode 100644 sys-apps/pkgcore/Manifest create mode 100644 sys-apps/pkgcore/metadata.xml create mode 100644 sys-apps/pkgcore/pkgcore-0.9.1.ebuild create mode 100644 sys-apps/pkgcore/pkgcore-9999.ebuild create mode 100644 sys-apps/pmount-gui/Manifest create mode 100644 sys-apps/pmount-gui/metadata.xml create mode 100644 sys-apps/pmount-gui/pmount-gui-0_pre20130806.ebuild create mode 100644 sys-apps/pmount/Manifest create mode 100644 sys-apps/pmount/files/pmount-0.9.19-testsuite-missing-dir.patch create mode 100644 sys-apps/pmount/files/pmount-0.9.99_alpha-locale-regex.patch create mode 100644 sys-apps/pmount/files/pmount.bash-completion create mode 100644 sys-apps/pmount/metadata.xml create mode 100644 sys-apps/pmount/pmount-0.9.99_alpha-r3.ebuild create mode 100644 sys-apps/pmount/pmount-0.9.99_alpha-r5.ebuild create mode 100644 sys-apps/policycoreutils/Manifest create mode 100644 sys-apps/policycoreutils/files/0001-policycoreutils-pp-add-roletype-statements-for-both-.patch create mode 100644 sys-apps/policycoreutils/files/0010-remove-sesandbox-support.patch create mode 100644 sys-apps/policycoreutils/files/0020-disable-autodetection-of-pam-and-audit.patch create mode 100644 sys-apps/policycoreutils/files/0030-make-inotify-check-use-flag-triggered.patch create mode 100644 sys-apps/policycoreutils/files/0040-reverse-access-check-in-run_init.patch create mode 100644 sys-apps/policycoreutils/files/0070-remove-symlink-attempt-fails-with-gentoo-sandbox-approach.patch create mode 100644 sys-apps/policycoreutils/files/0110-build-mcstrans-bug-472912.patch create mode 100644 sys-apps/policycoreutils/files/0120-build-failure-for-mcscolor-for-CONTEXT__CONTAINS.patch create mode 100644 sys-apps/policycoreutils/metadata.xml create mode 100644 sys-apps/policycoreutils/policycoreutils-2.2.5-r4.ebuild create mode 100644 sys-apps/policycoreutils/policycoreutils-2.3-r3.ebuild create mode 100644 sys-apps/policycoreutils/policycoreutils-2.4-r1.ebuild create mode 100644 sys-apps/policycoreutils/policycoreutils-2.4.ebuild create mode 100644 sys-apps/policycoreutils/policycoreutils-9999.ebuild create mode 100644 sys-apps/portage/Manifest create mode 100644 sys-apps/portage/files/README.RESCUE create mode 100644 sys-apps/portage/metadata.xml create mode 100644 sys-apps/portage/portage-2.2.14.ebuild create mode 100644 sys-apps/portage/portage-2.2.18.ebuild create mode 100644 sys-apps/portage/portage-2.2.20.ebuild create mode 100644 sys-apps/portage/portage-2.2.8-r2.ebuild create mode 100644 sys-apps/portage/portage-9999.ebuild create mode 100644 sys-apps/powerpc-utils/Manifest create mode 100644 sys-apps/powerpc-utils/metadata.xml create mode 100644 sys-apps/powerpc-utils/powerpc-utils-1.1.3.18-r2.ebuild create mode 100644 sys-apps/prctl/Manifest create mode 100644 sys-apps/prctl/metadata.xml create mode 100644 sys-apps/prctl/prctl-1.5.ebuild create mode 100644 sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in create mode 100644 sys-apps/prefix-chain-utils/files/startprefix.in create mode 100644 sys-apps/prefix-chain-utils/metadata.xml create mode 100644 sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r5.ebuild create mode 100644 sys-apps/preload/Manifest create mode 100644 sys-apps/preload/files/00-patch-configure.diff create mode 100644 sys-apps/preload/files/0001-Early-restart-of-forking-readahead-children.patch create mode 100644 sys-apps/preload/files/0002-Create-short-overlapping-io-bursts.patch create mode 100644 sys-apps/preload/files/0003-Fix-wait_for_children-loop.patch create mode 100644 sys-apps/preload/files/02-patch-preload_conf.diff create mode 100644 sys-apps/preload/files/02-patch-preload_sysconfig.diff create mode 100644 sys-apps/preload/files/preload-0.6.4-use-help2man-as-usual.patch create mode 100644 sys-apps/preload/files/preload-0.6.4-use-make-dependencies.patch create mode 100644 sys-apps/preload/files/preload-0.6.4.init.in create mode 100755 sys-apps/preload/files/preload-0.6.4.init.in-r1 create mode 100755 sys-apps/preload/files/preload-0.6.4.init.in-r2 create mode 100644 sys-apps/preload/metadata.xml create mode 100644 sys-apps/preload/preload-0.6.4-r3.ebuild create mode 100644 sys-apps/proot/Manifest create mode 100644 sys-apps/proot/files/proot-2.3.1-lib-paths-fix.patch create mode 100644 sys-apps/proot/files/proot-3.2.1-makefile.patch create mode 100644 sys-apps/proot/files/proot-3.2.2-build-care.patch create mode 100644 sys-apps/proot/files/proot-4.0.1-argv.patch create mode 100644 sys-apps/proot/metadata.xml create mode 100644 sys-apps/proot/proot-3.2.2-r1.ebuild create mode 100644 sys-apps/proot/proot-4.0.1.ebuild create mode 100644 sys-apps/proot/proot-4.0.3.ebuild create mode 100644 sys-apps/proot/proot-5.0.0.ebuild create mode 100644 sys-apps/proot/proot-5.1.0.ebuild create mode 100644 sys-apps/pv/Manifest create mode 100644 sys-apps/pv/metadata.xml create mode 100644 sys-apps/pv/pv-1.6.0-r1.ebuild create mode 100644 sys-apps/pv/pv-1.6.0.ebuild create mode 100644 sys-apps/pyrenamer/Manifest create mode 100644 sys-apps/pyrenamer/metadata.xml create mode 100644 sys-apps/pyrenamer/pyrenamer-0.6.0-r2.ebuild create mode 100644 sys-apps/qcontrol/Manifest create mode 100644 sys-apps/qcontrol/files/0.4.2-Makefile.patch create mode 100644 sys-apps/qcontrol/files/conf.d create mode 100644 sys-apps/qcontrol/files/init.d create mode 100644 sys-apps/qcontrol/metadata.xml create mode 100644 sys-apps/qcontrol/qcontrol-0.4.2-r1.ebuild create mode 100644 sys-apps/qdiskusage/Manifest create mode 100644 sys-apps/qdiskusage/metadata.xml create mode 100644 sys-apps/qdiskusage/qdiskusage-1.0.4.ebuild create mode 100644 sys-apps/qingy/Manifest create mode 100644 sys-apps/qingy/files/50qingy-gentoo.el create mode 100644 sys-apps/qingy/files/qingy-1.0.0-tinfo.patch create mode 100644 sys-apps/qingy/files/qingy-logrotate create mode 100644 sys-apps/qingy/files/qingy_at.service create mode 100644 sys-apps/qingy/metadata.xml create mode 100644 sys-apps/qingy/qingy-1.0.0-r1.ebuild create mode 100644 sys-apps/qingy/qingy-1.0.0-r2.ebuild create mode 100644 sys-apps/qingy/qingy-1.0.0.ebuild create mode 100644 sys-apps/raidutils/Manifest create mode 100644 sys-apps/raidutils/files/raidutils-0.0.6-gcc45.patch create mode 100644 sys-apps/raidutils/metadata.xml create mode 100644 sys-apps/raidutils/raidutils-0.0.6-r2.ebuild create mode 100644 sys-apps/razercfg/Manifest create mode 100644 sys-apps/razercfg/files/razerd.init.d create mode 100644 sys-apps/razercfg/files/razerd.init.d-r1 create mode 100644 sys-apps/razercfg/files/razerd.init.d-r2 create mode 100644 sys-apps/razercfg/metadata.xml create mode 100644 sys-apps/razercfg/razercfg-0.23.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.24.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.25.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.26.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.29.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.30.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.31.ebuild create mode 100644 sys-apps/razercfg/razercfg-0.32.ebuild create mode 100644 sys-apps/readahead-list/Manifest create mode 100644 sys-apps/readahead-list/files/conf.d-readahead-list create mode 100644 sys-apps/readahead-list/files/init.d-readahead-list create mode 100644 sys-apps/readahead-list/files/init.d-readahead-list-early create mode 100644 sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch create mode 100644 sys-apps/readahead-list/metadata.xml create mode 100644 sys-apps/readahead-list/readahead-list-1.20060421.1016-r1.ebuild create mode 100644 sys-apps/readahead-list/readahead-list-1.20060421.1016.ebuild create mode 100644 sys-apps/rename/Manifest create mode 100644 sys-apps/rename/files/rename-1.3-build.patch create mode 100644 sys-apps/rename/files/rename-1.3-gcc44.patch create mode 100644 sys-apps/rename/files/rename-1.3-rename.patch create mode 100644 sys-apps/rename/metadata.xml create mode 100644 sys-apps/rename/rename-1.3-r1.ebuild create mode 100644 sys-apps/rename/rename-1.3.ebuild create mode 100644 sys-apps/renameutils/Manifest create mode 100644 sys-apps/renameutils/files/renameutils-0.12.0-autopoint.patch create mode 100644 sys-apps/renameutils/files/renameutils-0.12.0-typo.patch create mode 100644 sys-apps/renameutils/files/renameutils-0.9.0-destdir.patch create mode 100644 sys-apps/renameutils/metadata.xml create mode 100644 sys-apps/renameutils/renameutils-0.12.0.ebuild create mode 100644 sys-apps/rescan-scsi-bus/Manifest create mode 100644 sys-apps/rescan-scsi-bus/files/rescan-scsi-bus-1.25-support-sysfs-only-systems.patch create mode 100644 sys-apps/rescan-scsi-bus/metadata.xml create mode 100644 sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.29.ebuild create mode 100644 sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.56.ebuild create mode 100644 sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.57-r1.ebuild create mode 100644 sys-apps/rescan-scsi-bus/rescan-scsi-bus-1.57.ebuild create mode 100644 sys-apps/restartd/Manifest create mode 100644 sys-apps/restartd/metadata.xml create mode 100644 sys-apps/restartd/restartd-0.2.2.ebuild create mode 100644 sys-apps/rigo-daemon/Manifest create mode 100644 sys-apps/rigo-daemon/metadata.xml create mode 100644 sys-apps/rigo-daemon/rigo-daemon-254.ebuild create mode 100644 sys-apps/rkflashtool/Manifest create mode 100644 sys-apps/rkflashtool/files/rkflashtool-5.1-missing-version.h create mode 100644 sys-apps/rkflashtool/metadata.xml create mode 100644 sys-apps/rkflashtool/rkflashtool-5.1.ebuild create mode 100644 sys-apps/rng-tools/Manifest create mode 100644 sys-apps/rng-tools/files/fix-textrels-on-PIC-x86.patch create mode 100644 sys-apps/rng-tools/files/rng-tools-5-fix-textrels-on-PIC-x86.patch create mode 100644 sys-apps/rng-tools/files/rngd-confd-4.1 create mode 100644 sys-apps/rng-tools/files/rngd-initd-4.1 create mode 100644 sys-apps/rng-tools/files/rngd-initd-r1-4.1 create mode 100644 sys-apps/rng-tools/files/rngd.service create mode 100644 sys-apps/rng-tools/files/test-for-argp.patch create mode 100644 sys-apps/rng-tools/metadata.xml create mode 100644 sys-apps/rng-tools/rng-tools-4-r7.ebuild create mode 100644 sys-apps/rng-tools/rng-tools-5.ebuild create mode 100644 sys-apps/roccat-tools/Manifest create mode 100644 sys-apps/roccat-tools/files/README.gentoo create mode 100644 sys-apps/roccat-tools/metadata.xml create mode 100644 sys-apps/roccat-tools/roccat-tools-3.4.0.ebuild create mode 100644 sys-apps/roccat-tools/roccat-tools-3.5.0-r1.ebuild create mode 100644 sys-apps/roccat-tools/roccat-tools-3.5.0.ebuild create mode 100644 sys-apps/rsbac-admin/Manifest create mode 100644 sys-apps/rsbac-admin/files/nsswitch.conf create mode 100644 sys-apps/rsbac-admin/files/rklogd create mode 100644 sys-apps/rsbac-admin/files/rsbac.conf create mode 100644 sys-apps/rsbac-admin/metadata.xml create mode 100644 sys-apps/rsbac-admin/rsbac-admin-1.4.6-r1.ebuild create mode 100644 sys-apps/rsbac-admin/rsbac-admin-1.4.6.ebuild create mode 100644 sys-apps/rsbac-admin/rsbac-admin-1.4.7.ebuild create mode 100644 sys-apps/rsbac-admin/rsbac-admin-1.4.8.ebuild create mode 100644 sys-apps/s390-tools/Manifest create mode 100644 sys-apps/s390-tools/files/s390-tools-1.13.0-build.patch create mode 100644 sys-apps/s390-tools/files/s390-tools-1.13.0-larl.patch create mode 100644 sys-apps/s390-tools/files/s390-tools-1.16.0-build.patch create mode 100644 sys-apps/s390-tools/files/s390-tools-1.23.1-build.patch create mode 100644 sys-apps/s390-tools/files/s390-tools-1.9.0-build.patch create mode 100644 sys-apps/s390-tools/metadata.xml create mode 100644 sys-apps/s390-tools/s390-tools-1.17.0.ebuild create mode 100644 sys-apps/s390-tools/s390-tools-1.23.1.ebuild create mode 100644 sys-apps/s6/Manifest create mode 100644 sys-apps/s6/metadata.xml create mode 100644 sys-apps/s6/s6-2.1.3.0.ebuild create mode 100644 sys-apps/salinfo/Manifest create mode 100644 sys-apps/salinfo/files/salinfo-1.2-build.patch create mode 100644 sys-apps/salinfo/metadata.xml create mode 100644 sys-apps/salinfo/salinfo-1.2.ebuild create mode 100644 sys-apps/sandbox/Manifest create mode 100644 sys-apps/sandbox/files/0001-libsandbox-handle-more-at-functions.patch create mode 100644 sys-apps/sandbox/files/09sandbox create mode 100644 sys-apps/sandbox/files/sandbox-1.6-disable-pthread.patch create mode 100644 sys-apps/sandbox/files/sandbox-1.6-disable-qa-static.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-check-empty-paths-at.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-desktop.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-gcc-5.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-log-var.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-no-pch.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-open-nofollow.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-static-close-fd.patch create mode 100644 sys-apps/sandbox/files/sandbox-2.6-trace-hppa.patch create mode 100644 sys-apps/sandbox/metadata.xml create mode 100644 sys-apps/sandbox/sandbox-1.6-r2.ebuild create mode 100644 sys-apps/sandbox/sandbox-2.3-r1.ebuild create mode 100644 sys-apps/sandbox/sandbox-2.4.ebuild create mode 100644 sys-apps/sandbox/sandbox-2.5.ebuild create mode 100644 sys-apps/sandbox/sandbox-2.6-r1.ebuild create mode 100644 sys-apps/sdparm/Manifest create mode 100644 sys-apps/sdparm/metadata.xml create mode 100644 sys-apps/sdparm/sdparm-1.07.ebuild create mode 100644 sys-apps/sdparm/sdparm-1.08-r1.ebuild create mode 100644 sys-apps/sdparm/sdparm-1.09.ebuild create mode 100644 sys-apps/secilc/metadata.xml create mode 100644 sys-apps/secilc/secilc-9999.ebuild create mode 100644 sys-apps/sed/Manifest create mode 100644 sys-apps/sed/files/sed-4.1.5-alloca.patch create mode 100644 sys-apps/sed/files/sed-4.2.1-handle-incomplete-sequences-as-if-they-were-invalid.patch create mode 100644 sys-apps/sed/metadata.xml create mode 100644 sys-apps/sed/sed-4.2.1-r1.ebuild create mode 100644 sys-apps/sed/sed-4.2.2.ebuild create mode 100644 sys-apps/servicelog/Manifest create mode 100644 sys-apps/servicelog/metadata.xml create mode 100644 sys-apps/servicelog/servicelog-1.0.1.ebuild create mode 100644 sys-apps/servicelog/servicelog-1.1.11.ebuild create mode 100644 sys-apps/servicelog/servicelog-1.1.13.ebuild create mode 100644 sys-apps/setserial/Manifest create mode 100755 sys-apps/setserial/files/serial-2.17-r4 create mode 100644 sys-apps/setserial/files/setserial-2.17-build.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-hayes-esp.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-headers.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-manpage-updates.patch create mode 100644 sys-apps/setserial/files/setserial-2.17-spelling.patch create mode 100644 sys-apps/setserial/metadata.xml create mode 100644 sys-apps/setserial/setserial-2.17-r4.ebuild create mode 100644 sys-apps/sg3_utils/Manifest create mode 100644 sys-apps/sg3_utils/files/sg3_utils-1.26-stdint.patch create mode 100644 sys-apps/sg3_utils/metadata.xml create mode 100644 sys-apps/sg3_utils/sg3_utils-1.40.ebuild create mode 100644 sys-apps/sg3_utils/sg3_utils-1.41.ebuild create mode 100644 sys-apps/shadow/Manifest create mode 100644 sys-apps/shadow/files/default/useradd create mode 100644 sys-apps/shadow/files/login_defs_pam.sed create mode 100644 sys-apps/shadow/files/pam.d-include/passwd create mode 100644 sys-apps/shadow/files/pam.d-include/shadow create mode 100644 sys-apps/shadow/files/securetty create mode 100644 sys-apps/shadow/files/shadow-4.1.3-dots-in-usernames.patch create mode 100644 sys-apps/shadow/files/shadow-4.2.1-cross-size-checks.patch create mode 100644 sys-apps/shadow/metadata.xml create mode 100644 sys-apps/shadow/shadow-4.1.5.1-r1.ebuild create mode 100644 sys-apps/shadow/shadow-4.2.1-r1.ebuild create mode 100644 sys-apps/shadow/shadow-4.2.1.ebuild create mode 100644 sys-apps/smartmontools/Manifest create mode 100644 sys-apps/smartmontools/files/smartd-r1.rc create mode 100644 sys-apps/smartmontools/files/smartd.confd create mode 100644 sys-apps/smartmontools/metadata.xml create mode 100644 sys-apps/smartmontools/smartmontools-6.3.ebuild create mode 100644 sys-apps/smartmontools/smartmontools-6.4.ebuild create mode 100644 sys-apps/smartmontools/smartmontools-9999.ebuild create mode 100644 sys-apps/sparc-utils/Manifest create mode 100644 sys-apps/sparc-utils/files/audioctl.init create mode 100644 sys-apps/sparc-utils/metadata.xml create mode 100644 sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild create mode 100644 sys-apps/spu-tools/Manifest create mode 100644 sys-apps/spu-tools/metadata.xml create mode 100644 sys-apps/spu-tools/spu-tools-2.2.80_p95.ebuild create mode 100644 sys-apps/spu-tools/spu-tools-2.3.0.135.ebuild create mode 100644 sys-apps/stroke/Manifest create mode 100644 sys-apps/stroke/metadata.xml create mode 100644 sys-apps/stroke/stroke-0.1.3.ebuild create mode 100644 sys-apps/superiotool/Manifest create mode 100755 sys-apps/superiotool/files/make-tarball.sh create mode 100644 sys-apps/superiotool/metadata.xml create mode 100644 sys-apps/superiotool/superiotool-6637.ebuild create mode 100644 sys-apps/superiotool/superiotool-99999999.ebuild create mode 100644 sys-apps/syscriptor/Manifest create mode 100644 sys-apps/syscriptor/metadata.xml create mode 100644 sys-apps/syscriptor/syscriptor-1.5.15.ebuild create mode 100644 sys-apps/syslog-notify/Manifest create mode 100644 sys-apps/syslog-notify/metadata.xml create mode 100644 sys-apps/syslog-notify/syslog-notify-0.2.ebuild create mode 100644 sys-apps/systemd-readahead/Manifest create mode 100644 sys-apps/systemd-readahead/metadata.xml create mode 100644 sys-apps/systemd-readahead/systemd-readahead-216.ebuild create mode 100644 sys-apps/systemd-sysv-utils/Manifest create mode 100644 sys-apps/systemd-sysv-utils/metadata.xml create mode 100644 sys-apps/systemd-sysv-utils/systemd-sysv-utils-208.ebuild create mode 100644 sys-apps/systemd-sysv-utils/systemd-sysv-utils-212.ebuild create mode 100644 sys-apps/systemd-sysv-utils/systemd-sysv-utils-215.ebuild create mode 100644 sys-apps/systemd-sysv-utils/systemd-sysv-utils-216.ebuild create mode 100644 sys-apps/systemd-sysv-utils/systemd-sysv-utils-217.ebuild create mode 100644 sys-apps/systemd-ui/Manifest create mode 100644 sys-apps/systemd-ui/files/systemd-ui-3-vala-0.24.patch create mode 100644 sys-apps/systemd-ui/metadata.xml create mode 100644 sys-apps/systemd-ui/systemd-ui-3.ebuild create mode 100644 sys-apps/systemd-ui/systemd-ui-9999.ebuild create mode 100644 sys-apps/systemd/Manifest create mode 100644 sys-apps/systemd/files/215-0001-always-check-for-__BYTE_ORDER-__BIG_ENDIAN-when-chec.patch create mode 100644 sys-apps/systemd/files/215-0002-endian-explicitly-include-endian.h-wherever-we-want-.patch create mode 100644 sys-apps/systemd/files/215-0003-udev-exclude-MD-from-block-device-ownership-event-lo.patch create mode 100644 sys-apps/systemd/files/216-lz4-build.patch create mode 100644 sys-apps/systemd/files/216-tmpfiles-setup-dev.patch create mode 100644 sys-apps/systemd/files/217-systemd-consoled.service.in create mode 100644 sys-apps/systemd/files/218-Dont-enable-audit-by-default.patch create mode 100644 sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch create mode 100644 sys-apps/systemd/files/compile-unifont.py create mode 100644 sys-apps/systemd/metadata.xml create mode 100644 sys-apps/systemd/systemd-216-r3.ebuild create mode 100644 sys-apps/systemd/systemd-218-r3.ebuild create mode 100644 sys-apps/systemd/systemd-219_p112.ebuild create mode 100644 sys-apps/systemd/systemd-220-r2.ebuild create mode 100644 sys-apps/systemd/systemd-221.ebuild create mode 100644 sys-apps/systemd/systemd-222-r1.ebuild create mode 100644 sys-apps/systemd/systemd-222.ebuild create mode 100644 sys-apps/systemd/systemd-224-r1.ebuild create mode 100644 sys-apps/systemd/systemd-224.ebuild create mode 100644 sys-apps/systemd/systemd-9999.ebuild create mode 100644 sys-apps/sysvinit/Manifest create mode 100644 sys-apps/sysvinit/files/inittab-2.87 create mode 100755 sys-apps/sysvinit/files/reboot.sh create mode 100755 sys-apps/sysvinit/files/shutdown.sh create mode 100644 sys-apps/sysvinit/files/sysvinit-2.86-kexec.patch create mode 100644 sys-apps/sysvinit/files/sysvinit-2.86-shutdown-single.patch create mode 100644 sys-apps/sysvinit/files/sysvinit-2.88-makefile.patch create mode 100644 sys-apps/sysvinit/files/sysvinit-2.88-selinux.patch create mode 100644 sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch create mode 100644 sys-apps/sysvinit/metadata.xml create mode 100644 sys-apps/sysvinit/sysvinit-2.88-r4.ebuild create mode 100644 sys-apps/sysvinit/sysvinit-2.88-r5.ebuild create mode 100644 sys-apps/sysvinit/sysvinit-2.88-r6.ebuild create mode 100644 sys-apps/sysvinit/sysvinit-2.88-r7.ebuild create mode 100644 sys-apps/tcp-wrappers/Manifest create mode 100644 sys-apps/tcp-wrappers/files/hosts.allow.example create mode 100644 sys-apps/tcp-wrappers/files/tcp-wrappers-7.6-headers.patch create mode 100644 sys-apps/tcp-wrappers/files/tcp-wrappers-7.6-redhat-bug11881.patch create mode 100644 sys-apps/tcp-wrappers/metadata.xml create mode 100644 sys-apps/tcp-wrappers/tcp-wrappers-7.6.22-r1.ebuild create mode 100644 sys-apps/texinfo/Manifest create mode 100644 sys-apps/texinfo/files/texinfo-4.13-accentenc-test.patch create mode 100644 sys-apps/texinfo/files/texinfo-4.13-docbook.patch create mode 100644 sys-apps/texinfo/files/texinfo-4.13-texi2dvi-regexp-range.patch create mode 100644 sys-apps/texinfo/files/texinfo-4.13-tinfo.patch create mode 100644 sys-apps/texinfo/files/texinfo-4.13-xz.patch create mode 100644 sys-apps/texinfo/metadata.xml create mode 100644 sys-apps/texinfo/texinfo-4.13-r2.ebuild create mode 100644 sys-apps/texinfo/texinfo-5.2.ebuild create mode 100644 sys-apps/texinfo/texinfo-6.0.ebuild create mode 100644 sys-apps/the_silver_searcher/Manifest create mode 100644 sys-apps/the_silver_searcher/metadata.xml create mode 100644 sys-apps/the_silver_searcher/the_silver_searcher-0.29.1.ebuild create mode 100644 sys-apps/timer_entropyd/Manifest create mode 100644 sys-apps/timer_entropyd/files/timer_entropyd-0.1-syslog.patch create mode 100644 sys-apps/timer_entropyd/files/timer_entropyd.initd.1 create mode 100644 sys-apps/timer_entropyd/metadata.xml create mode 100644 sys-apps/timer_entropyd/timer_entropyd-0.2.ebuild create mode 100644 sys-apps/tomoyo-tools/Manifest create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.2.0_p20120414-gentoo.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.2.0_p20120414-ldflags.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.3.0_p20110929-gentoo.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.3.0_p20120414-flags-parallel.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.4.0_p20110929-flags-parallel.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20120414-flags-parallel.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-flags-parallel.patch create mode 100644 sys-apps/tomoyo-tools/files/tomoyo-tools-2.5.0_p20130214-warnings.patch create mode 100644 sys-apps/tomoyo-tools/metadata.xml create mode 100644 sys-apps/tomoyo-tools/tomoyo-tools-2.5.0_p20130214.ebuild create mode 100644 sys-apps/toybox/Manifest create mode 100644 sys-apps/toybox/metadata.xml create mode 100644 sys-apps/toybox/toybox-0.4.7.ebuild create mode 100644 sys-apps/toybox/toybox-0.4.8.ebuild create mode 100644 sys-apps/toybox/toybox-0.4.9-r1.ebuild create mode 100644 sys-apps/toybox/toybox-0.4.9.ebuild create mode 100644 sys-apps/toybox/toybox-0.5.0.ebuild create mode 100644 sys-apps/toybox/toybox-0.5.1.ebuild create mode 100644 sys-apps/toybox/toybox-0.5.2.ebuild create mode 100644 sys-apps/toybox/toybox-0.6.0.ebuild create mode 100644 sys-apps/toybox/toybox-9999.ebuild create mode 100644 sys-apps/tuned/Manifest create mode 100644 sys-apps/tuned/files/tuned.initd create mode 100644 sys-apps/tuned/metadata.xml create mode 100644 sys-apps/tuned/tuned-2.4.1.ebuild create mode 100644 sys-apps/tuned/tuned-2.5.0.ebuild create mode 100644 sys-apps/tuned/tuned-2.5.1.ebuild create mode 100644 sys-apps/turbotail/Manifest create mode 100644 sys-apps/turbotail/metadata.xml create mode 100644 sys-apps/turbotail/turbotail-0.3-r1.ebuild create mode 100644 sys-apps/turbotail/turbotail-0.3.ebuild create mode 100644 sys-apps/tuxonice-userui/Manifest create mode 100644 sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-Makefiles.patch create mode 100644 sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-libpng15.patch create mode 100644 sys-apps/tuxonice-userui/files/tuxonice-userui-1.1-freetype-2.5.patch create mode 100644 sys-apps/tuxonice-userui/metadata.xml create mode 100644 sys-apps/tuxonice-userui/tuxonice-userui-1.1-r2.ebuild create mode 100644 sys-apps/uam/Manifest create mode 100644 sys-apps/uam/metadata.xml create mode 100644 sys-apps/uam/uam-0.3.1.ebuild create mode 100644 sys-apps/uam/uam-0.3.2.ebuild create mode 100644 sys-apps/uam/uam-0.3.ebuild create mode 100644 sys-apps/uam/uam-9999.ebuild create mode 100644 sys-apps/ucspi-proxy/Manifest create mode 100644 sys-apps/ucspi-proxy/metadata.xml create mode 100644 sys-apps/ucspi-proxy/ucspi-proxy-0.97.ebuild create mode 100644 sys-apps/ucspi-proxy/ucspi-proxy-0.98.ebuild create mode 100644 sys-apps/ucspi-proxy/ucspi-proxy-0.99.ebuild create mode 100644 sys-apps/ucspi-ssl/Manifest create mode 100644 sys-apps/ucspi-ssl/metadata.xml create mode 100644 sys-apps/ucspi-ssl/ucspi-ssl-0.94-r1.ebuild create mode 100644 sys-apps/ucspi-tcp/Manifest create mode 100644 sys-apps/ucspi-tcp/files/0.88-ar-ranlib.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-bigendian.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-errno.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-exit.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-large-responses.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-protos-ipv6.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-protos-no-ipv6.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-protos-rblspp.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-protos.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-rblsmtpd-ignore-on-RELAYCLIENT.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-tcprules.patch create mode 100644 sys-apps/ucspi-tcp/files/0.88-uint-headers.patch create mode 100644 sys-apps/ucspi-tcp/files/tcprules-Makefile create mode 100644 sys-apps/ucspi-tcp/metadata.xml create mode 100644 sys-apps/ucspi-tcp/ucspi-tcp-0.88-r17.ebuild create mode 100644 sys-apps/ucspi-tcp/ucspi-tcp-0.88-r18.ebuild create mode 100644 sys-apps/ucspi-unix/Manifest create mode 100644 sys-apps/ucspi-unix/files/ucspi-unix-0.36-fix-parallel-build.patch create mode 100644 sys-apps/ucspi-unix/files/ucspi-unix-0.36-include-sys_socket.h.patch create mode 100644 sys-apps/ucspi-unix/files/ucspi-unix-gentoo-head.patch create mode 100644 sys-apps/ucspi-unix/metadata.xml create mode 100644 sys-apps/ucspi-unix/ucspi-unix-0.36-r2.ebuild create mode 100644 sys-apps/ucspi-unix/ucspi-unix-0.36-r3.ebuild create mode 100644 sys-apps/ucspi-unix/ucspi-unix-0.36-r4.ebuild create mode 100644 sys-apps/udevil/Manifest create mode 100644 sys-apps/udevil/files/udevil-0.4.1-automake-1.13.patch create mode 100644 sys-apps/udevil/files/udevil-0.4.1-flags.patch create mode 100644 sys-apps/udevil/files/udevil-0.4.3-flags.patch create mode 100644 sys-apps/udevil/files/udevil-0.4.4-stat.patch create mode 100644 sys-apps/udevil/metadata.xml create mode 100644 sys-apps/udevil/udevil-0.4.1.ebuild create mode 100644 sys-apps/udevil/udevil-0.4.3.ebuild create mode 100644 sys-apps/udevil/udevil-0.4.4-r1.ebuild create mode 100644 sys-apps/udevil/udevil-0.4.4.ebuild create mode 100644 sys-apps/uevt/Manifest create mode 100644 sys-apps/uevt/files/uevt-2.3-support_for_more_than_one_CPU.patch create mode 100644 sys-apps/uevt/files/uevt-2.3-vala-0.24.patch create mode 100644 sys-apps/uevt/metadata.xml create mode 100644 sys-apps/uevt/uevt-2.3-r1.ebuild create mode 100644 sys-apps/ultracopier/Manifest create mode 100644 sys-apps/ultracopier/metadata.xml create mode 100644 sys-apps/ultracopier/ultracopier-0.2.0.16.ebuild create mode 100644 sys-apps/unscd/Manifest create mode 100644 sys-apps/unscd/files/unscd-tmpfiles.conf create mode 100755 sys-apps/unscd/files/unscd.initd create mode 100644 sys-apps/unscd/files/unscd.initd-r1 create mode 100644 sys-apps/unscd/files/unscd.service create mode 100644 sys-apps/unscd/metadata.xml create mode 100644 sys-apps/unscd/unscd-0.51.ebuild create mode 100644 sys-apps/unscd/unscd-0.52-r2.ebuild create mode 100644 sys-apps/usb_modeswitch/Manifest create mode 100644 sys-apps/usb_modeswitch/metadata.xml create mode 100644 sys-apps/usb_modeswitch/usb_modeswitch-1.2.7_p20130807.ebuild create mode 100644 sys-apps/usb_modeswitch/usb_modeswitch-2.1.0_p20140129.ebuild create mode 100644 sys-apps/usb_modeswitch/usb_modeswitch-2.1.1_p20140327.ebuild create mode 100644 sys-apps/usb_modeswitch/usb_modeswitch-2.2.0_p20140529.ebuild create mode 100644 sys-apps/usb_modeswitch/usb_modeswitch-2.2.3_p20150627.ebuild create mode 100644 sys-apps/usbmon/Manifest create mode 100644 sys-apps/usbmon/metadata.xml create mode 100644 sys-apps/usbmon/usbmon-6-r1.ebuild create mode 100644 sys-apps/usbredir/Manifest create mode 100644 sys-apps/usbredir/metadata.xml create mode 100644 sys-apps/usbredir/usbredir-0.4.3.ebuild create mode 100644 sys-apps/usbredir/usbredir-0.4.4.ebuild create mode 100644 sys-apps/usbredir/usbredir-0.5.1.ebuild create mode 100644 sys-apps/usbredir/usbredir-0.5.ebuild create mode 100644 sys-apps/usbredir/usbredir-0.6.ebuild create mode 100644 sys-apps/usbredir/usbredir-0.7.ebuild create mode 100644 sys-apps/usbredir/usbredir-9999.ebuild create mode 100644 sys-apps/usbutils/Manifest create mode 100644 sys-apps/usbutils/files/usbutils-006-stdint.patch create mode 100644 sys-apps/usbutils/metadata.xml create mode 100644 sys-apps/usbutils/usbutils-007.ebuild create mode 100644 sys-apps/usbutils/usbutils-008-r1.ebuild create mode 100644 sys-apps/usbutils/usbutils-008.ebuild create mode 100644 sys-apps/usermode-utilities/Manifest create mode 100644 sys-apps/usermode-utilities/files/usermode-utilities-20070815-humfsify-owner.patch create mode 100644 sys-apps/usermode-utilities/files/usermode-utilities-20070815-rollup.patch create mode 100644 sys-apps/usermode-utilities/metadata.xml create mode 100644 sys-apps/usermode-utilities/usermode-utilities-20070815-r3.ebuild create mode 100644 sys-apps/utempter/Manifest create mode 100644 sys-apps/utempter/files/utempter-0.5.5.6-build.patch create mode 100644 sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch create mode 100644 sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch create mode 100644 sys-apps/utempter/metadata.xml create mode 100644 sys-apps/utempter/utempter-0.5.5.6.ebuild create mode 100644 sys-apps/util-linux/Manifest create mode 100644 sys-apps/util-linux/files/crypto-loop.confd create mode 100755 sys-apps/util-linux/files/crypto-loop.initd create mode 100644 sys-apps/util-linux/files/util-linux-2.24-fix-fdisk-on-alpha.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.24-last-tests.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.24-skip-last-tests.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.25-parallel-setarch.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.25.1-blkid-probe-fix.patch create mode 100644 sys-apps/util-linux/files/util-linux-2.25.2-runuser-bash-completion.patch create mode 100644 sys-apps/util-linux/metadata.xml create mode 100644 sys-apps/util-linux/util-linux-2.24.1-r2.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.24.1-r3.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.24.2.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.25.1-r1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.25.1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.25.2-r1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.25.2-r2.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.25.2.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.26.1-r1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.26.1.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.26.2.ebuild create mode 100644 sys-apps/util-linux/util-linux-2.26.ebuild create mode 100644 sys-apps/util-linux/util-linux-9999.ebuild create mode 100644 sys-apps/v86d/Manifest create mode 100644 sys-apps/v86d/metadata.xml create mode 100644 sys-apps/v86d/v86d-0.1.10.ebuild create mode 100644 sys-apps/vbetool/Manifest create mode 100644 sys-apps/vbetool/files/vbetool-1.0-build.patch create mode 100644 sys-apps/vbetool/metadata.xml create mode 100644 sys-apps/vbetool/vbetool-1.1.ebuild create mode 100644 sys-apps/watchdog/Manifest create mode 100644 sys-apps/watchdog/files/watchdog-conf.d create mode 100644 sys-apps/watchdog/files/watchdog-init.d create mode 100644 sys-apps/watchdog/files/watchdog.service create mode 100644 sys-apps/watchdog/metadata.xml create mode 100644 sys-apps/watchdog/watchdog-5.13-r1.ebuild create mode 100644 sys-apps/watchdog/watchdog-5.14.ebuild create mode 100644 sys-apps/which/Manifest create mode 100644 sys-apps/which/metadata.xml create mode 100644 sys-apps/which/which-2.20-r1.ebuild create mode 100644 sys-apps/which/which-2.21.ebuild create mode 100644 sys-apps/x86info/Manifest create mode 100644 sys-apps/x86info/files/1.21-pic.patch create mode 100644 sys-apps/x86info/files/x86info-1.24-pic.patch create mode 100644 sys-apps/x86info/files/x86info-1.29-parallel-make-cleanup.patch create mode 100644 sys-apps/x86info/files/x86info-modules.conf-rc create mode 100644 sys-apps/x86info/metadata.xml create mode 100644 sys-apps/x86info/x86info-1.30.ebuild create mode 100644 sys-apps/xinetd/Manifest create mode 100644 sys-apps/xinetd/files/xinetd-2.3.14-DESTDIR.patch create mode 100644 sys-apps/xinetd/files/xinetd-2.3.14-config.patch create mode 100644 sys-apps/xinetd/files/xinetd-2.3.14-install-contrib.patch create mode 100644 sys-apps/xinetd/files/xinetd.confd create mode 100644 sys-apps/xinetd/files/xinetd.rc6 create mode 100644 sys-apps/xinetd/files/xinetd.service create mode 100644 sys-apps/xinetd/metadata.xml create mode 100644 sys-apps/xinetd/xinetd-2.3.15-r1.ebuild create mode 100644 sys-apps/xmbmon/Manifest create mode 100644 sys-apps/xmbmon/files/mbmon.confd create mode 100644 sys-apps/xmbmon/files/mbmon.rc create mode 100644 sys-apps/xmbmon/files/xmbmon-2.0.5-amd64.patch create mode 100644 sys-apps/xmbmon/files/xmbmon-2.0.5-loopback.patch create mode 100644 sys-apps/xmbmon/files/xmbmon-2.0.5-pid.patch create mode 100644 sys-apps/xmbmon/metadata.xml create mode 100644 sys-apps/xmbmon/xmbmon-2.0.5-r1.ebuild create mode 100644 sys-apps/yum/Manifest create mode 100644 sys-apps/yum/metadata.xml create mode 100644 sys-apps/yum/yum-3.4.3_p20130218-r1.ebuild create mode 100644 sys-apps/yum/yum-3.4.3_p20130218.ebuild create mode 100644 sys-apps/zorroutils/Manifest create mode 100644 sys-apps/zorroutils/files/zorroutils-0.04-20021014.diff create mode 100644 sys-apps/zorroutils/files/zorroutils-gentoo.diff create mode 100644 sys-apps/zorroutils/metadata.xml create mode 100644 sys-apps/zorroutils/zorroutils-0.04.ebuild (limited to 'sys-apps') diff --git a/sys-apps/9base/9base-6-r1.ebuild b/sys-apps/9base/9base-6-r1.ebuild new file mode 100644 index 000000000000..a305aceab3cc --- /dev/null +++ b/sys-apps/9base/9base-6-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="A port of various original Plan 9 tools for Unix, based on plan9port" +HOMEPAGE="http://tools.suckless.org/9base" +SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz" + +LICENSE="9base MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +MAKEOPTS="${MAKEOPTS} -j1" + +pkg_setup() { + local _objtype=386 + [[ $(tc-arch) == "amd64" ]] && _objtype=x86_64 + [[ $(tc-arch) == "ppc" ]] && _objtype=ppc + + my9baseopts=( + PREFIX=/usr/plan9 + OBJTYPE=${_objtype} + AR="$(tc-getAR) rc" + CC="$(tc-getCC)" + DESTDIR="${D}" + ) +} + +src_prepare() { + sed -i -e '/strip/d' std.mk {diff,sam}/Makefile || die + + # http://lists.suckless.org/dev/1006/4639.html + sed -i -e '/-static/d' config.mk || die +} + +src_compile() { + emake "${my9baseopts[@]}" +} + +src_install() { + emake "${my9baseopts[@]}" install + dodoc README + + # We don't compress to keep support for plan9's man + docompress -x /usr/plan9/share/man +} diff --git a/sys-apps/9base/Manifest b/sys-apps/9base/Manifest new file mode 100644 index 000000000000..3772a3448c20 --- /dev/null +++ b/sys-apps/9base/Manifest @@ -0,0 +1 @@ +DIST 9base-6.tar.gz 1045868 SHA256 2997480eb5b4cf3092c0896483cd2de625158bf51c501aea2dc5cf74176d6de9 SHA512 38108a94118b56c6f3982e692beb1068c52f9aecd74447d6b552b77fae5e365eab72b4781bdf07d9696ac89d54371c1cae8cc0363de510b53988302acef50dba WHIRLPOOL 364afe8a9eabb42e215f1520751e737ab418d084aafbc83df57e823662d5237bae0f7c2904257073dac382c7c3116d46bb958b7d56bdee493ad9f6b12e147a71 diff --git a/sys-apps/9base/metadata.xml b/sys-apps/9base/metadata.xml new file mode 100644 index 000000000000..c2d865517c00 --- /dev/null +++ b/sys-apps/9base/metadata.xml @@ -0,0 +1,8 @@ + + + + + ssuominen@gentoo.org + Samuli Suominen + + diff --git a/sys-apps/accountsservice/Manifest b/sys-apps/accountsservice/Manifest new file mode 100644 index 000000000000..3ee491ffddcc --- /dev/null +++ b/sys-apps/accountsservice/Manifest @@ -0,0 +1,2 @@ +DIST accountsservice-0.6.39.tar.xz 367648 SHA256 f938a3d517ddd44c7605b49f11028198071906e0fde96f22c7e16d1eb275335d SHA512 b72f2edf95b7df5b38c75fbe4be2581384f7ff3631248a9fd2a523a13638e2c9c8933f195b8991a7138a556786531258b00878dc1a68863b616d2d2a17cbcf33 WHIRLPOOL 34b199ea220a8a34743ded82fba37b1ce90f7aafc9b7c1eb5988ef772d5d1f4d5283267327370d5a26966cc5370549323ffd2a9645bead9700b1a53dd5afe9bf +DIST accountsservice-0.6.40.tar.xz 367772 SHA256 f04f756600cbab558671658ab8e77212de2a000c07bc0469e7b51541871fcb2b SHA512 da12a97ca9a2eb69d978fd3b5f46e8dd2e2f3e6f57db027e0b8c8c583c715d45f105c9ddcd1a2a1c4a2f4bfce672431e601a7cd0f063b31675fd6f13b6cb4ef8 WHIRLPOOL 3a12f5e5e68f3b21ec1347a9e1677b8eee10818ced138e35a3b1f61d8814a6af5ad50aed352a0fcbec819d8271c46c8db2e93ea0c7ccbbb5672f0f7e7e4786be diff --git a/sys-apps/accountsservice/accountsservice-0.6.39.ebuild b/sys-apps/accountsservice/accountsservice-0.6.39.ebuild new file mode 100644 index 000000000000..1230504b639c --- /dev/null +++ b/sys-apps/accountsservice/accountsservice-0.6.39.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit eutils gnome2 systemd + +DESCRIPTION="D-Bus interfaces for querying and manipulating user account information" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/AccountsService/" +SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~sparc x86" + +IUSE="doc +introspection selinux systemd" + +CDEPEND=" + >=dev-libs/glib-2.37.3:2 + sys-auth/polkit + introspection? ( >=dev-libs/gobject-introspection-0.9.12 ) + systemd? ( >=sys-apps/systemd-186:0= ) + !systemd? ( sys-auth/consolekit ) +" +DEPEND="${CDEPEND} + dev-libs/libxslt + dev-util/gdbus-codegen + >=dev-util/gtk-doc-am-1.15 + >=dev-util/intltool-0.40 + sys-devel/gettext + virtual/pkgconfig + doc? ( + app-text/docbook-xml-dtd:4.1.2 + app-text/xmlto ) +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-accountsd ) +" + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.6.35-gentoo-system-users.patch" + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --disable-more-warnings \ + --localstatedir="${EPREFIX}"/var \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --enable-admin-group="wheel" \ + $(use_enable doc docbook-docs) \ + $(use_enable introspection) \ + $(use_enable systemd) \ + $(systemd_with_unitdir) +} diff --git a/sys-apps/accountsservice/accountsservice-0.6.40.ebuild b/sys-apps/accountsservice/accountsservice-0.6.40.ebuild new file mode 100644 index 000000000000..e995953183e9 --- /dev/null +++ b/sys-apps/accountsservice/accountsservice-0.6.40.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit eutils gnome2 systemd + +DESCRIPTION="D-Bus interfaces for querying and manipulating user account information" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/AccountsService/" +SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~sparc x86" + +IUSE="doc +introspection selinux systemd" + +CDEPEND=" + >=dev-libs/glib-2.37.3:2 + sys-auth/polkit + introspection? ( >=dev-libs/gobject-introspection-0.9.12 ) + systemd? ( >=sys-apps/systemd-186:0= ) + !systemd? ( sys-auth/consolekit ) +" +DEPEND="${CDEPEND} + dev-libs/libxslt + dev-util/gdbus-codegen + >=dev-util/gtk-doc-am-1.15 + >=dev-util/intltool-0.40 + sys-devel/gettext + virtual/pkgconfig + doc? ( + app-text/docbook-xml-dtd:4.1.2 + app-text/xmlto ) +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-accountsd ) +" + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.6.35-gentoo-system-users.patch" + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --disable-more-warnings \ + --localstatedir="${EPREFIX}"/var \ + --enable-admin-group="wheel" \ + $(use_enable doc docbook-docs) \ + $(use_enable introspection) \ + $(use_enable systemd) \ + $(systemd_with_unitdir) +} diff --git a/sys-apps/accountsservice/files/accountsservice-0.6.35-gentoo-system-users.patch b/sys-apps/accountsservice/files/accountsservice-0.6.35-gentoo-system-users.patch new file mode 100644 index 000000000000..9868e26ea39c --- /dev/null +++ b/sys-apps/accountsservice/files/accountsservice-0.6.35-gentoo-system-users.patch @@ -0,0 +1,51 @@ +--- src/user-classify.c.old 2013-12-04 20:29:48.944454769 +0100 ++++ src/user-classify.c 2013-12-04 20:32:59.728283477 +0100 +@@ -55,6 +55,48 @@ + "at", + "gdm", + "gnome-initial-setup" ++ /* Additional Gentoo system users with non-trivial login shell */ ++ "amanda", ++ "backuppc", ++ "drqueue", ++ "firebird", ++ "flexlm", ++ "foldingathome", ++ "geneweb", ++ "git", ++ "gnump3d", ++ "hacluster", ++ "hg", ++ "hsqldb", ++ "infinote", ++ "foldingathome", ++ "geneweb", ++ "git", ++ "gnump3d", ++ "hacluster", ++ "hg", ++ "hsqldb", ++ "infinote", ++ "jffnms", ++ "klive", ++ "mailman", ++ "mpd", ++ "mythtv", ++ "nagios", ++ "nx", ++ "oneadmin", ++ "openvpn", ++ "p2p", ++ "phxd", ++ "resin", ++ "rplayd", ++ "scponly", ++ "secoff", ++ "tinyproxy", ++ "ttrssd", ++ "vboxguest", ++ "vdr", ++ "vdradmin", + }; + + #define PATH_NOLOGIN "/sbin/nologin" diff --git a/sys-apps/accountsservice/metadata.xml b/sys-apps/accountsservice/metadata.xml new file mode 100644 index 000000000000..863d6473f89d --- /dev/null +++ b/sys-apps/accountsservice/metadata.xml @@ -0,0 +1,9 @@ + + + + gnome + + Use sys-apps/systemd instead of + sys-auth/consolekit for session tracking + + diff --git a/sys-apps/ack/Manifest b/sys-apps/ack/Manifest new file mode 100644 index 000000000000..43b5fd98122f --- /dev/null +++ b/sys-apps/ack/Manifest @@ -0,0 +1 @@ +DIST ack-2.14.tar.gz 222479 SHA256 8549a833efec158dc85bc6334b3a384ae5a389896942eab9a58c6e630c181b3f SHA512 64af6490947e4dcc9e9a28c28db5750df7bec4098e3e8a9d940be5f6b99fe0169c091d390480eb95cf7704f24c745bd6c93b8cfd8de7cab75c11c313184666b4 WHIRLPOOL 1ff77ca6d4bbd65e5330de5bd9dd9ea67de8c2fe799078115315e4fd9b90ea59d58230f476579da999e2e4040537b50d7bbc166e49f877dae36c95971af6de67 diff --git a/sys-apps/ack/ack-2.14.ebuild b/sys-apps/ack/ack-2.14.ebuild new file mode 100644 index 000000000000..1bf49df3b616 --- /dev/null +++ b/sys-apps/ack/ack-2.14.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +MODULE_AUTHOR=PETDANCE +inherit perl-module + +DESCRIPTION="ack is a tool like grep, aimed at programmers with large trees of heterogeneous source code" +HOMEPAGE="http://betterthangrep.com/ ${HOMEPAGE}" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos" +IUSE="test" + +RDEPEND=">=dev-perl/File-Next-1.100.0" +DEPEND="${RDEPEND}" + +SRC_TEST=do +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_test() { + # Tests fail when run in parallel and if dev-perl/IO-Tty is installed + # which enables interactive tests that need to read from stdin. If IO-Tty + # is not installed the related tests are skipped. + MAKEOPTS+=" -j1" perl-module_src_test +} diff --git a/sys-apps/ack/files/ack-2.14-gentoo.patch b/sys-apps/ack/files/ack-2.14-gentoo.patch new file mode 100644 index 000000000000..80f0747deef9 --- /dev/null +++ b/sys-apps/ack/files/ack-2.14-gentoo.patch @@ -0,0 +1,22 @@ +--- ack-2.14/ConfigDefault.pm ++++ ack-2.14/ConfigDefault.pm +@@ -252,6 +252,9 @@ + # http://en.wikipedia.org/wiki/Fortran + --type-add=fortran:ext:f,f77,f90,f95,f03,for,ftn,fpp + ++# Gentoo http://www.gentoo.org/ ++--type-add=gentoo:ext:ebuild,eclass ++ + # Go + # http://golang.org/ + --type-add=go:ext:go +--- ack-2.14/t/ack-filetypes.t ++++ ack-2.14/t/ack-filetypes.t +@@ -26,6 +26,7 @@ + elisp + erlang + fortran ++gentoo + go + groovy + haskell diff --git a/sys-apps/ack/metadata.xml b/sys-apps/ack/metadata.xml new file mode 100644 index 000000000000..3373cf89e6bb --- /dev/null +++ b/sys-apps/ack/metadata.xml @@ -0,0 +1,11 @@ + + + + + radhermit@gentoo.org + Tim Harder + + + ack + + diff --git a/sys-apps/acl/Manifest b/sys-apps/acl/Manifest new file mode 100644 index 000000000000..8a8caa8247fd --- /dev/null +++ b/sys-apps/acl/Manifest @@ -0,0 +1,4 @@ +DIST acl-2.2.42-CITI_NFS4_ALL-2.dif 97276 SHA256 10c930e4c6d147d03ad6dc67e38663522fd277525c149d932a8279e2cbe1b95e +DIST acl-2.2.49.src.tar.gz 362743 SHA256 b9c7f4752e4ef4930a62fa5aa0d7efe1cba2b5a3a2d6ee2b45c0a70c72b7e5d5 SHA512 c65b1ca18c16e434f1ff5b196908d1c39d62399740826a4a9b3ef0e6ba5cc4fced838b4a844ccffc5cb26554c4755b2f4e0fd69c9045d692f9019972ce3f7f0b WHIRLPOOL 028f373f334700896b8c455f41a9f83dc6da82a6454da9da81a98e05f5f058ee88d0b1487f97e9d5b7c204a97ed125fc331bdcce6cb454ddbfbe9eeb6de0a55c +DIST acl-2.2.51.src.tar.gz 385378 SHA256 06854521cf5d396801af7e54b9636680edf8064355e51c07657ec7442a185225 SHA512 32b0c7f5aff27b1a0278dea2cc7aacf03f791c5bd7e9ae520bf29516bf3e52969c0a7ce9af3c2fa95b222cc70d4e19da167d008dcdf0fb46bda86cd584c96d98 WHIRLPOOL 0c41e39008c0bbb254d3ca29dc597e888d0a76820d8f78246ae06448ea5fdf9d25b54c112d86137420007641d23e172c67402d05acdc34af5b6b387b32c290a2 +DIST acl-2.2.52.src.tar.gz 386604 SHA256 179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23 SHA512 59973199d371cd0b2368e95bc829a1b47f04e808a174fefba4c6854e766158bd19a71d9dbcc8d6fdc1573a1f971cdda39c453f7fa243bce02c1ab97c6e7c72e7 WHIRLPOOL 19bcc46e56ce0226e084bb6f86e411b09418d53f094f478afd60c3c568cf2066d9f0352a4da20f6f41d6e08c13412a182a7306aa3fbe2a248d1f6388856f63a2 diff --git a/sys-apps/acl/acl-2.2.49-r1.ebuild b/sys-apps/acl/acl-2.2.49-r1.ebuild new file mode 100644 index 000000000000..cb399072efe1 --- /dev/null +++ b/sys-apps/acl/acl-2.2.49-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="access control list utilities, libraries and headers" +HOMEPAGE="http://savannah.nongnu.org/projects/acl" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz + nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="nfs nls static-libs" + +RDEPEND=">=sys-apps/attr-2.4 + nfs? ( net-libs/libnfsidmap )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + if use nfs ; then + cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die + sed -i \ + -e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \ + acl-2.2.42-CITI_NFS4_ALL-2.dif || die + epatch acl-2.2.42-CITI_NFS4_ALL-2.dif + fi + epatch "${FILESDIR}"/${P}-quote-strchr.patch + sed -i \ + -e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \ + configure # hack PATH with AC_PATH_PROG + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die "failed to update builddefs" + strip-linguas po +} + +src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +src_install() { + emake DIST_ROOT="${D}" install install-dev install-lib || die + use static-libs || find "${D}" -name '*.la' -delete + + # move shared libs to / + gen_usr_ldscript -a acl +} diff --git a/sys-apps/acl/acl-2.2.49.ebuild b/sys-apps/acl/acl-2.2.49.ebuild new file mode 100644 index 000000000000..243dd1cdae59 --- /dev/null +++ b/sys-apps/acl/acl-2.2.49.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="access control list utilities, libraries and headers" +HOMEPAGE="http://savannah.nongnu.org/projects/acl" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz + nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux" +IUSE="nfs nls" + +RDEPEND=">=sys-apps/attr-2.4 + nfs? ( net-libs/libnfsidmap )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${P}.src.tar.gz + cd "${S}" + if use nfs ; then + cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die + sed -i \ + -e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \ + acl-2.2.42-CITI_NFS4_ALL-2.dif || die + epatch acl-2.2.42-CITI_NFS4_ALL-2.dif + fi + epatch "${FILESDIR}"/${P}-quote-strchr.patch + sed -i \ + -e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \ + configure # hack PATH with AC_PATH_PROG + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die "failed to update builddefs" + strip-linguas po +} + +src_compile() { + use prefix || EPREFIX= + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin + + emake || die +} + +src_install() { + emake DIST_ROOT="${D}" install install-dev install-lib || die + prepalldocs + + # move shared libs to / + gen_usr_ldscript -a acl +} diff --git a/sys-apps/acl/acl-2.2.51.ebuild b/sys-apps/acl/acl-2.2.51.ebuild new file mode 100644 index 000000000000..81e6130d9486 --- /dev/null +++ b/sys-apps/acl/acl-2.2.51.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="access control list utilities, libraries and headers" +HOMEPAGE="http://savannah.nongnu.org/projects/acl" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz + nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="nfs nls static-libs" + +RDEPEND=">=sys-apps/attr-2.4 + nfs? ( net-libs/libnfsidmap )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + if use nfs ; then + cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die + sed -i \ + -e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \ + acl-2.2.42-CITI_NFS4_ALL-2.dif || die + epatch acl-2.2.42-CITI_NFS4_ALL-2.dif + fi + epatch "${FILESDIR}"/${PN}-2.2.49-quote-strchr.patch + epatch "${FILESDIR}"/${PN}-2.2.51-config-shell.patch #365397 + sed -i \ + -e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \ + configure # hack PATH with AC_PATH_PROG + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die "failed to update builddefs" + strip-linguas po +} + +src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +src_install() { + emake DIST_ROOT="${D}" install install-dev install-lib || die + use static-libs || find "${D}" -name '*.la' -delete + + # move shared libs to / + gen_usr_ldscript -a acl +} diff --git a/sys-apps/acl/acl-2.2.52-r1.ebuild b/sys-apps/acl/acl-2.2.52-r1.ebuild new file mode 100644 index 000000000000..00869bfbaa8c --- /dev/null +++ b/sys-apps/acl/acl-2.2.52-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs multilib-minimal + +DESCRIPTION="access control list utilities, libraries and headers" +HOMEPAGE="http://savannah.nongnu.org/projects/acl" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="nls static-libs" + +RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20140406-r2 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die + strip-linguas po + + # same as https://savannah.nongnu.org/bugs/index.php?39736 + multilib_copy_sources +} + +multilib_src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +multilib_src_install() { + emake DIST_ROOT="${D}" install install-dev install-lib + + # move shared libs to / + multilib_is_native_abi && gen_usr_ldscript -a acl +} + +multilib_src_install_all() { + use static-libs || prune_libtool_files --all +} diff --git a/sys-apps/acl/acl-2.2.52.ebuild b/sys-apps/acl/acl-2.2.52.ebuild new file mode 100644 index 000000000000..ccb800c9d82f --- /dev/null +++ b/sys-apps/acl/acl-2.2.52.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="access control list utilities, libraries and headers" +HOMEPAGE="http://savannah.nongnu.org/projects/acl" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="nls static-libs" + +RDEPEND=">=sys-apps/attr-2.4" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die + strip-linguas po +} + +src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +src_install() { + emake DIST_ROOT="${D}" install install-dev install-lib || die + use static-libs || find "${ED}" -name '*.la' -delete + + # move shared libs to / + gen_usr_ldscript -a acl +} diff --git a/sys-apps/acl/files/acl-2.2.49-quote-strchr.patch b/sys-apps/acl/files/acl-2.2.49-quote-strchr.patch new file mode 100644 index 000000000000..d2510da24eea --- /dev/null +++ b/sys-apps/acl/files/acl-2.2.49-quote-strchr.patch @@ -0,0 +1,25 @@ +From 7565e4fcb9209782ed02f3caff246cf5ea816674 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Fri, 8 Jan 2010 21:28:31 -0500 +Subject: [PATCH] quote: pull in string.h for strchr prototype + +Signed-off-by: Mike Frysinger +--- + libmisc/quote.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/libmisc/quote.c b/libmisc/quote.c +index f98c887..bf8f9eb 100644 +--- a/libmisc/quote.c ++++ b/libmisc/quote.c +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + #include "misc.h" + + const char *quote(const char *str, const char *quote_chars) +-- +1.6.6 + diff --git a/sys-apps/acl/files/acl-2.2.51-config-shell.patch b/sys-apps/acl/files/acl-2.2.51-config-shell.patch new file mode 100644 index 000000000000..78b3f0f641db --- /dev/null +++ b/sys-apps/acl/files/acl-2.2.51-config-shell.patch @@ -0,0 +1,53 @@ +https://bugs.gentoo.org/365397 + +From 10bfb16245ec4b55c1f5b6dc5554913bc9b13c9c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 16 May 2011 01:59:52 -0400 +Subject: [PATCH] use SHELL from configure + +If /bin/sh is not a functional enough shell, configure will select a +SHELL of /bin/bash or better. But the current build helpers always +hardcode /bin/sh, so if libtool itself configures itself for /bin/bash, +things will fail when it attempts to do: + SHELL = /bin/sh + LIBTOOL = $(SHELL) .../libtool + ... + eval: 1: base_compile+= -pipe: not found + ... + +So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let +configure find a good value for us. + +Signed-off-by: Mike Frysinger +--- + include/builddefs.in | 1 + + include/buildmacros | 1 - + 2 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/builddefs.in b/include/builddefs.in +index d054a56..434ce95 100644 +--- a/include/builddefs.in ++++ b/include/builddefs.in +@@ -46,6 +46,7 @@ MAKE = @make@ + ECHO = @echo@ + SORT = @sort@ + LN_S = @LN_S@ ++SHELL = @SHELL@ + LIBTOOL = @LIBTOOL@ + MAKEDEPEND = @makedepend@ + +diff --git a/include/buildmacros b/include/buildmacros +index ab89182..8efb32e 100644 +--- a/include/buildmacros ++++ b/include/buildmacros +@@ -42,7 +42,6 @@ OBJECTS = $(ASFILES:.s=.o) \ + + INSTALL = $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP) + +-SHELL = /bin/sh + IMAGES_DIR = $(TOPDIR)/all-images + DIST_DIR = $(TOPDIR)/dist + +-- +1.7.5.rc3 + diff --git a/sys-apps/acl/metadata.xml b/sys-apps/acl/metadata.xml new file mode 100644 index 000000000000..2dc91f5bf1de --- /dev/null +++ b/sys-apps/acl/metadata.xml @@ -0,0 +1,13 @@ + + + +base-system + + + add support for NFS acls + + + + cpe:/a:xfs:acl + + diff --git a/sys-apps/adjtime/Manifest b/sys-apps/adjtime/Manifest new file mode 100644 index 000000000000..94fb0fd12a3a --- /dev/null +++ b/sys-apps/adjtime/Manifest @@ -0,0 +1 @@ +DIST adjtime.zip 2805 SHA256 64d0ffe0510ce727c3ead8bbc1e3c923a463253b375579b31040815cb6014800 SHA512 cc0f16ca19fea240300f9e0a9eddcefa07cb21f59fe4da8e7132dc75ec26ecaf7036ee6d282f8a488005b40077931e1cadc5634095aa0ff402f375bc0e83a1c0 WHIRLPOOL be5bec263c81fbbf97fb90dbe2df8351181a3c42dba00759700d71798dea93327731cc0647049781cdc0177bb943ae6b457299fe9cf32d4b77d6c88776216e16 diff --git a/sys-apps/adjtime/adjtime-0.4-r2.ebuild b/sys-apps/adjtime/adjtime-0.4-r2.ebuild new file mode 100644 index 000000000000..a723741cb411 --- /dev/null +++ b/sys-apps/adjtime/adjtime-0.4-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A perl script to adjust the clock tick of the hardware clock on the system board" +HOMEPAGE="http://groups.yahoo.com/group/LinkStation_General/" +SRC_URI="http://www.gentoogeek.org/files/${PN}.zip" + +LICENSE="all-rights-reserved" #441922 +SLOT="0" +KEYWORDS="ppc" +RESTRICT="mirror bindist" + +DEPEND="app-arch/unzip" +RDEPEND="dev-lang/perl + >=net-misc/ntp-4.2" + +S="${WORKDIR}" + +src_prepare() { + sed -i -e 's:/usr/sbin/tickadj:/usr/bin/tickadj:' adjtime.pl || die +} + +src_install() { + dosbin adjtime.pl +} + +pkg_postinst() { + ewarn "There have been issues with running adjtime as an init script" + ewarn "(the shell environment for perl is dorked up). The suggested" + ewarn "method is to use ntp-date rather than ntpd at startup, and" + ewarn "add the following two lines to local.start instead:" + ewarn + ewarn "/usr/bin/perl /usr/sbin/adjtime.pl -v -s ntp_host -i 60" + ewarn + ewarn "/etc/init.d/ntpd start" + ewarn + ewarn "replacing ntp_host with your preferred ntp server. Remember," + ewarn "since adjtime uses ntp-date, ntpd must be stopped (or not yet" + ewarn "started) prior to running the adjtime script." +} diff --git a/sys-apps/adjtime/metadata.xml b/sys-apps/adjtime/metadata.xml new file mode 100644 index 000000000000..316fde480cf2 --- /dev/null +++ b/sys-apps/adjtime/metadata.xml @@ -0,0 +1,9 @@ + + + +ppc +A perl script to adjust the tick on the Kurobox and + LinkStation hardware clock (required to keep an accurate clock). + Should work on most hardware platforms. + + diff --git a/sys-apps/agedu/Manifest b/sys-apps/agedu/Manifest new file mode 100644 index 000000000000..84b6b426f987 --- /dev/null +++ b/sys-apps/agedu/Manifest @@ -0,0 +1,2 @@ +DIST agedu-20141024.r10297.tar.gz 164175 SHA256 2760df3b2e37ec0a472a1630fcd53f61443e76ddb7daabb907ada77d3a580ce0 SHA512 1fe2344b5542f9c2b316ef294e25364590384723c0d56f1fcf1d1518d18dcb34daa1ba35bc23be5cb0723e0d2e278e05d21852e075bc656b6df51d94b8c3a08d WHIRLPOOL 0f59bd5f7d652f429788677fed2cf6e223223a227533434719be6aab5638b2d082989274656b2ef41adc754884fe7aa2f89447114e2dd17e51dbd8fb2ceb0597 +DIST agedu-20150422.3922.tar.gz 164771 SHA256 4314c8f991bb6a9bf8d0792737be4f51141a87627ad867f515e07d8b7f0922eb SHA512 77833c369e4647b00eebe671152345b2a4adc01b40fe1f51f1d8f9e1258b11b55dc3441997aa135ecfe5f36598afbb6566108caa1178a94f5a34d9b7904f14f4 WHIRLPOOL 7b84a775bd4af3c3b59039af880bcdb0363ffbf4f40e49396659d21ba5bab14865bae84c1b1890341a34ed1bf48c7a5d383053ec904ccf9e67e39c485c03f625 diff --git a/sys-apps/agedu/agedu-20141024.10297.ebuild b/sys-apps/agedu/agedu-20141024.10297.ebuild new file mode 100644 index 000000000000..f1aca36a19e8 --- /dev/null +++ b/sys-apps/agedu/agedu-20141024.10297.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils versionator + +MY_COMP=( $(get_all_version_components) ) +MY_P="${PN}-${MY_COMP[0]}.r${MY_COMP[2]}" + +DESCRIPTION="A utility for tracking down wasted disk space" +HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/agedu/" +SRC_URI="http://www.chiark.greenend.org.uk/~sgtatham/${PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc ipv6" + +DEPEND="doc? ( app-doc/halibut )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-r9671-fix-automagic.patch" + eautoreconf +} + +src_configure() { + econf --enable-ipv4 \ + $(use_enable doc halibut) \ + $(use_enable ipv6) +} diff --git a/sys-apps/agedu/agedu-20150422.3922.ebuild b/sys-apps/agedu/agedu-20150422.3922.ebuild new file mode 100644 index 000000000000..a9472ed6e8d0 --- /dev/null +++ b/sys-apps/agedu/agedu-20150422.3922.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils versionator + +MY_COMP=( $(get_all_version_components) ) +MY_P="${PN}-${MY_COMP[0]}.${MY_COMP[2]}" + +DESCRIPTION="A utility for tracking down wasted disk space" +HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/agedu/" +SRC_URI="http://www.chiark.greenend.org.uk/~sgtatham/${PN}/${MY_P}ffe.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}ffe" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc ipv6" + +DEPEND="doc? ( app-doc/halibut )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-r9671-fix-automagic.patch" + eautoreconf +} + +src_configure() { + econf --enable-ipv4 \ + $(use_enable doc halibut) \ + $(use_enable ipv6) +} diff --git a/sys-apps/agedu/files/agedu-r9671-fix-automagic.patch b/sys-apps/agedu/files/agedu-r9671-fix-automagic.patch new file mode 100644 index 000000000000..8e0c6ea2969e --- /dev/null +++ b/sys-apps/agedu/files/agedu-r9671-fix-automagic.patch @@ -0,0 +1,44 @@ +diff -Naur agedu-r9671.orig/configure.ac agedu-r9671/configure.ac +--- agedu-r9671.orig/configure.ac 2012-10-20 21:20:47.000000000 -0400 ++++ agedu-r9671/configure.ac 2012-10-21 15:13:08.000000000 -0400 +@@ -10,8 +10,6 @@ + AC_PROG_CC + AC_PROG_CC_C99 + AC_PROG_INSTALL +-AC_CHECK_PROG([HALIBUT],[halibut],[yes],[no]) +-AM_CONDITIONAL([HAVE_HALIBUT],[test "x$HALIBUT" = "xyes"]) + + # Checks for libraries. + +@@ -43,13 +41,28 @@ + + AC_CHECK_FUNCS([ftruncate fdopendir lstat64 stat64 memchr munmap select socket strcasecmp strchr strcspn strerror strrchr strspn strtoul strtoull connect inet_ntoa inet_addr gethostbyname getaddrinfo]) + ++AC_ARG_ENABLE([halibut], ++ AS_HELP_STRING([--disable-halibut], ++ [disable documentation with halibut (default off)]), ++ [halibut=$enableval],[halibut=no]) ++ ++if test "$halibut" = "no"; then ++ AM_CONDITIONAL([HAVE_HALIBUT],[false]) ++else ++ AC_CHECK_PROG([have_halibut],[halibut],[yes],[no]) ++ if test "$have_halibut" = "no"; then ++ AC_MSG_ERROR([halibut configured but not found]) ++ fi ++ AM_CONDITIONAL([HAVE_HALIBUT],[true]) ++fi ++ + AC_ARG_ENABLE([ipv6], + AS_HELP_STRING([--disable-ipv6], +- [disable IPv6 in the built-in web server]), +- [ipv6=$enableval],[ipv6=$ac_cv_func_getaddrinfo]) ++ [disable IPv6 in the built-in web server (default off)]), ++ [ipv6=$enableval],[ipv6=no]) + AC_ARG_ENABLE([ipv4], + AS_HELP_STRING([--disable-ipv4], +- [disable IPv4 in the built-in web server]), ++ [disable IPv4 in the built-in web server (default on)]), + [ipv4=$enableval],[ipv4=yes]) + if test "$ipv6" = "no"; then + AC_DEFINE([NO_IPV6], [1], [define if IPv6 is disabled at configure time]) diff --git a/sys-apps/agedu/metadata.xml b/sys-apps/agedu/metadata.xml new file mode 100644 index 000000000000..1e7587374fdf --- /dev/null +++ b/sys-apps/agedu/metadata.xml @@ -0,0 +1,8 @@ + + + + + blueness@gentoo.org + Anthony G. Basile + + diff --git a/sys-apps/aix-miscutils/Manifest b/sys-apps/aix-miscutils/Manifest new file mode 100644 index 000000000000..1c1f24999488 --- /dev/null +++ b/sys-apps/aix-miscutils/Manifest @@ -0,0 +1 @@ +DIST aix-miscutils-0.1.1671.tar.bz2 84825 RMD160 8fe6e3d490fb9053c9ee852c319df412b703b1c7 SHA1 5e34f1c9aa50dd2a9c6b5e7f8ba8a8aa0fe09b2b SHA256 3ba79107ddf0ae39263ad864471c438b920ac2845c25e86c546b198450a19304 diff --git a/sys-apps/aix-miscutils/aix-miscutils-0.1.1671.ebuild b/sys-apps/aix-miscutils/aix-miscutils-0.1.1671.ebuild new file mode 100644 index 000000000000..efe805347812 --- /dev/null +++ b/sys-apps/aix-miscutils/aix-miscutils-0.1.1671.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Miscellaneous helpers for AIX (currently just ldd)" +HOMEPAGE="http://www.gentoo.org/proj/en/gentoo-alt/prefix/" +SRC_URI="http://dev.gentoo.org/~haubi/distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc-aix" +IUSE="" + +src_install() { + emake DESTDIR="${D}" install || die +} diff --git a/sys-apps/aix-miscutils/metadata.xml b/sys-apps/aix-miscutils/metadata.xml new file mode 100644 index 000000000000..0a2c0a13150a --- /dev/null +++ b/sys-apps/aix-miscutils/metadata.xml @@ -0,0 +1,8 @@ + + + +prefix + + haubi@gentoo.org + + diff --git a/sys-apps/apmd/Manifest b/sys-apps/apmd/Manifest new file mode 100644 index 000000000000..ccd5df8ac921 --- /dev/null +++ b/sys-apps/apmd/Manifest @@ -0,0 +1,2 @@ +DIST apmd_3.2.2-14.diff.gz 19195 SHA256 7905ff96be93d725544d0040e425c42f9c05580db3c272f11cff75b9aa89d430 SHA512 a3578d0c43950f832fb437a744f8a4c3058c731649decb90f7b42c901b06f4df5f9a75599b4278e15af1c8a30d8043b0d76eb7d2cb67b05bf6bb210d5912a16d WHIRLPOOL 300ef81d426fffa0c3ce944d523245745a9388013672f756d4f298f5e2d0b136d962b6d635d6fc787bdd2aa351097ac682ebe0b9ee41fc32e19c74b69601712b +DIST apmd_3.2.2.orig.tar.gz 72757 SHA256 7f7d9f60b7766b852881d40b8ff91d8e39fccb0d1d913102a5c75a2dbb52332d SHA512 fdc74703e75a700397bb2c907986f0cf0792ee4128d7a7ae08adf090bff0ea595044ba7a935d34929745bb702eb8bfe232e0ee9156efd23a995dc087f1b20bf4 WHIRLPOOL 4fbb0f6d99215ce754686c2748b7ad7bcbe219ddafa190a05f9c345957f7bebd51b04e26e23ec4bdb8c49cba6e89fabbb3dbf631fd4342a5dc4bd1148e4b7b63 diff --git a/sys-apps/apmd/apmd-3.2.2_p14.ebuild b/sys-apps/apmd/apmd-3.2.2_p14.ebuild new file mode 100644 index 000000000000..3313962ac015 --- /dev/null +++ b/sys-apps/apmd/apmd-3.2.2_p14.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs + +MY_PV=${PV%_p*} +MY_P=${PN}_${MY_PV} +PATCHV=${PV#*_p} + +DESCRIPTION="Advanced Power Management Daemon" +HOMEPAGE="http://packages.qa.debian.org/a/apmd.html" +SRC_URI="mirror://debian/pool/main/a/apmd/${MY_P}.orig.tar.gz + mirror://debian/pool/main/a/apmd/${MY_P}-${PATCHV}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86" +IUSE="nls X" + +RDEPEND=">=sys-apps/debianutils-1.16 + >=sys-power/powermgmt-base-1.31 + X? ( x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libSM + x11-libs/libICE + x11-libs/libXt + x11-libs/libXext )" +DEPEND="${RDEPEND} + sys-devel/libtool + virtual/os-headers" + +S=${WORKDIR}/${PN}-${MY_PV}.orig + +src_prepare() { + epatch "${WORKDIR}"/${MY_P}-${PATCHV}.diff + + if ! use X; then + sed -i \ + -e 's:\(EXES=.*\)xapm:\1:' \ + -e 's:\(.*\)\$(LT_INSTALL).*xapm.*$:\1echo:' \ + Makefile || die + fi + + # use system headers and skip on_ac_power + rm -f on_ac_power* + + sed -i \ + -e '/on_ac_power/d' \ + -e 's:-I/usr/src/linux/include -I/usr/X11R6/include::' \ + -e 's:-L/usr/X11R6/lib::' \ + Makefile || die +} + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dodir /usr/sbin + emake DESTDIR="${D}" PREFIX=/usr LIBDIR=/usr/$(get_libdir) install + + keepdir /etc/apm/{event.d,suspend.d,resume.d,other.d,scripts.d} + exeinto /etc/apm + doexe debian/apmd_proxy + dodoc AUTHORS {,apmsleep.}README debian/{changelog,README.Debian} + + doman *.{1,8} + + # note: apmd_proxy.conf is currently disabled and not used, thus + # not installed - liquidx (01 Mar 2004) + + newconfd "${FILESDIR}"/apmd.confd apmd + newinitd "${FILESDIR}"/apmd.rc6 apmd + + use nls || rm -rf "${D}"/usr/share/man/fr +} diff --git a/sys-apps/apmd/files/apmd.confd b/sys-apps/apmd/files/apmd.confd new file mode 100644 index 000000000000..5f371d9083b8 --- /dev/null +++ b/sys-apps/apmd/files/apmd.confd @@ -0,0 +1,4 @@ +# /etc/init.d/apmd: +# $Id$ + +APMD_OPTS="-P /etc/apm/apmd_proxy" diff --git a/sys-apps/apmd/files/apmd.rc6 b/sys-apps/apmd/files/apmd.rc6 new file mode 100644 index 000000000000..bb5e0091b773 --- /dev/null +++ b/sys-apps/apmd/files/apmd.rc6 @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount +} + +checkconfig() { + if [ ! -e /proc/apm ] ; then + eerror "APM support has not been compiled into the kernel" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting apmd" + start-stop-daemon --start --quiet --pidfile /var/run/apmd.pid \ + --startas /usr/sbin/apmd -- ${APMD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping apmd" + start-stop-daemon --stop --quiet --pidfile /var/run/apmd.pid + eend $? +} diff --git a/sys-apps/apmd/metadata.xml b/sys-apps/apmd/metadata.xml new file mode 100644 index 000000000000..4538a68724a6 --- /dev/null +++ b/sys-apps/apmd/metadata.xml @@ -0,0 +1,5 @@ + + + +maintainer-needed@gentoo.org + diff --git a/sys-apps/apparmor-utils/Manifest b/sys-apps/apparmor-utils/Manifest new file mode 100644 index 000000000000..dbf34e84db21 --- /dev/null +++ b/sys-apps/apparmor-utils/Manifest @@ -0,0 +1,2 @@ +DIST apparmor-2.8.3.tar.gz 1534245 SHA256 84c2ca7fb6d170e5bb56270f01c9b78e78a991b9eee7fa53a9e6409ef0845c7e SHA512 c1102206fc93e09865a8cbb239164298af298175d7043efa10ab7227c23e7aef664d38fa3b67e82e2263fba9dbc0567fa659233226633b7e26ac80e2c02c78fb WHIRLPOOL 24ee03843c4cc08e63c4641784bd648f2b85e42b2528e03b3a7d80d5d6b96e1eec5ea9cfdd2d1243dc855c9a05d0661fa3336f8d95b460be3b2bceab51936086 +DIST apparmor-2.8.4.tar.gz 1539923 SHA256 98cb81b2e2e17a8034005d2612ba6c33893486fdf995626f3bb94a4a082371d6 SHA512 d9f15bbfb4cb8428cacc7669099a0ce8acf33cbf309a65fea601f1d23b6e741a403eb4f8d91a8897f1959862f8d2ca8843918e56f511f2230e88476037511177 WHIRLPOOL 0520a5295a1184754c4d4dafe8253f4c0b6c8d0145ee586f0ecdab2d86630b7d08f8fd8ae87658c5663d3410575838b01d8c1ad2faec74271153c0d7a510e35b diff --git a/sys-apps/apparmor-utils/apparmor-utils-2.8.3.ebuild b/sys-apps/apparmor-utils/apparmor-utils-2.8.3.ebuild new file mode 100644 index 000000000000..bbbe5103efa1 --- /dev/null +++ b/sys-apps/apparmor-utils/apparmor-utils-2.8.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit perl-module python-r1 versionator + +DESCRIPTION="Additional userspace utils to assist with AppArmor profile management" +HOMEPAGE="http://apparmor.net/" +SRC_URI="http://launchpad.net/apparmor/$(get_version_component_range 1-2)/${PV}/+download/apparmor-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-lang/perl + ${PYTHON_DEPS}" +RDEPEND="${DEPEND} + ~sys-libs/libapparmor-${PV}[perl] + ~sys-apps/apparmor-${PV} + dev-perl/Locale-gettext + dev-perl/RPC-XML + dev-perl/TermReadKey + virtual/perl-Data-Dumper + virtual/perl-Getopt-Long" + +S=${WORKDIR}/apparmor-${PV}/utils + +src_compile() { + python_export_best + + # launches non-make subprocesses causing "make jobserver unavailable" + # error messages to appear in generated code + emake -j1 +} + +src_install() { + perl_set_version + emake DESTDIR="${D}" PERLDIR="${D}/${VENDOR_LIB}/Immunix" \ + VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install + + install_python() { + "${PYTHON}" "${S}"/python-tools-setup.py install --prefix=/usr \ + --root="${D}" --version="${PV}" + } + + python_foreach_impl install_python + python_replicate_script "${D}"/usr/bin/aa-easyprof +} diff --git a/sys-apps/apparmor-utils/apparmor-utils-2.8.4.ebuild b/sys-apps/apparmor-utils/apparmor-utils-2.8.4.ebuild new file mode 100644 index 000000000000..bbbe5103efa1 --- /dev/null +++ b/sys-apps/apparmor-utils/apparmor-utils-2.8.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit perl-module python-r1 versionator + +DESCRIPTION="Additional userspace utils to assist with AppArmor profile management" +HOMEPAGE="http://apparmor.net/" +SRC_URI="http://launchpad.net/apparmor/$(get_version_component_range 1-2)/${PV}/+download/apparmor-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-lang/perl + ${PYTHON_DEPS}" +RDEPEND="${DEPEND} + ~sys-libs/libapparmor-${PV}[perl] + ~sys-apps/apparmor-${PV} + dev-perl/Locale-gettext + dev-perl/RPC-XML + dev-perl/TermReadKey + virtual/perl-Data-Dumper + virtual/perl-Getopt-Long" + +S=${WORKDIR}/apparmor-${PV}/utils + +src_compile() { + python_export_best + + # launches non-make subprocesses causing "make jobserver unavailable" + # error messages to appear in generated code + emake -j1 +} + +src_install() { + perl_set_version + emake DESTDIR="${D}" PERLDIR="${D}/${VENDOR_LIB}/Immunix" \ + VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install + + install_python() { + "${PYTHON}" "${S}"/python-tools-setup.py install --prefix=/usr \ + --root="${D}" --version="${PV}" + } + + python_foreach_impl install_python + python_replicate_script "${D}"/usr/bin/aa-easyprof +} diff --git a/sys-apps/apparmor-utils/metadata.xml b/sys-apps/apparmor-utils/metadata.xml new file mode 100644 index 000000000000..f60a2bbf973d --- /dev/null +++ b/sys-apps/apparmor-utils/metadata.xml @@ -0,0 +1,11 @@ + + + + hardened + + kensington@gentoo.org + + + apparmor + + diff --git a/sys-apps/apparmor/Manifest b/sys-apps/apparmor/Manifest new file mode 100644 index 000000000000..dbf34e84db21 --- /dev/null +++ b/sys-apps/apparmor/Manifest @@ -0,0 +1,2 @@ +DIST apparmor-2.8.3.tar.gz 1534245 SHA256 84c2ca7fb6d170e5bb56270f01c9b78e78a991b9eee7fa53a9e6409ef0845c7e SHA512 c1102206fc93e09865a8cbb239164298af298175d7043efa10ab7227c23e7aef664d38fa3b67e82e2263fba9dbc0567fa659233226633b7e26ac80e2c02c78fb WHIRLPOOL 24ee03843c4cc08e63c4641784bd648f2b85e42b2528e03b3a7d80d5d6b96e1eec5ea9cfdd2d1243dc855c9a05d0661fa3336f8d95b460be3b2bceab51936086 +DIST apparmor-2.8.4.tar.gz 1539923 SHA256 98cb81b2e2e17a8034005d2612ba6c33893486fdf995626f3bb94a4a082371d6 SHA512 d9f15bbfb4cb8428cacc7669099a0ce8acf33cbf309a65fea601f1d23b6e741a403eb4f8d91a8897f1959862f8d2ca8843918e56f511f2230e88476037511177 WHIRLPOOL 0520a5295a1184754c4d4dafe8253f4c0b6c8d0145ee586f0ecdab2d86630b7d08f8fd8ae87658c5663d3410575838b01d8c1ad2faec74271153c0d7a510e35b diff --git a/sys-apps/apparmor/apparmor-2.8.3.ebuild b/sys-apps/apparmor/apparmor-2.8.3.ebuild new file mode 100644 index 000000000000..010c707ae943 --- /dev/null +++ b/sys-apps/apparmor/apparmor-2.8.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +DESCRIPTION="Userspace utils and init scripts for the AppArmor application security system" +HOMEPAGE="http://apparmor.net/" +SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +DEPEND="dev-lang/perl + sys-devel/bison + sys-devel/flex + doc? ( dev-tex/latex2html )" + +S=${WORKDIR}/apparmor-${PV}/parser + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.8.2-makefile.patch + + # remove warning about missing file that controls features + # we don't currently support + sed -e "/installation problem/ctrue" -i rc.apparmor.functions || die +} + +src_compile() { + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" arch manpages + use doc && emake pdf +} + +src_install() { + default + + dodir /etc/apparmor.d + + newinitd "${FILESDIR}"/${PN}-init ${PN} + + use doc && dodoc techdoc.pdf +} diff --git a/sys-apps/apparmor/apparmor-2.8.4.ebuild b/sys-apps/apparmor/apparmor-2.8.4.ebuild new file mode 100644 index 000000000000..613842763c46 --- /dev/null +++ b/sys-apps/apparmor/apparmor-2.8.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +DESCRIPTION="Userspace utils and init scripts for the AppArmor application security system" +HOMEPAGE="http://apparmor.net/" +SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +DEPEND="dev-lang/perl + sys-devel/bison + sys-devel/flex + doc? ( dev-tex/latex2html )" + +S=${WORKDIR}/apparmor-${PV}/parser + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.8.2-makefile.patch + + # remove warning about missing file that controls features + # we don't currently support + sed -e "/installation problem/ctrue" -i rc.apparmor.functions || die +} + +src_compile() { + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" arch manpages + use doc && emake pdf +} + +src_install() { + default + + dodir /etc/apparmor.d/disable + + newinitd "${FILESDIR}"/${PN}-init ${PN} + + use doc && dodoc techdoc.pdf +} diff --git a/sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch b/sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch new file mode 100644 index 000000000000..0888c15d9121 --- /dev/null +++ b/sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch @@ -0,0 +1,34 @@ +--- Makefile ++++ Makefile +@@ -31,7 +31,7 @@ + CONFDIR=/etc/apparmor + INSTALL_CONFDIR=${DESTDIR}${CONFDIR} + LOCALEDIR=/usr/share/locale +-MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8 subdomain.conf.5 apparmor.vim.5 ++MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8 + + YACC := /usr/bin/bison + YFLAGS := -d +@@ -153,7 +153,7 @@ + ln -s `$(CXX) -print-file-name=libstdc++.a` + + apparmor_parser: $(OBJECTS) $(AAREOBJECTS) +- $(CXX) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \ ++ $(CXX) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \ + ${LEXLIB} $(AAREOBJECTS) $(AARE_LDFLAGS) + + parser_yacc.c parser_yacc.h: parser_yacc.y parser.h +@@ -284,11 +284,9 @@ + .PHONY: install-indep + install-indep: + install -m 755 -d $(INSTALL_CONFDIR) +- install -m 644 subdomain.conf $(INSTALL_CONFDIR) ++ install -m 755 -d ${DESTDIR}/usr/libexec + install -m 644 parser.conf $(INSTALL_CONFDIR) +- install -m 755 -d ${DESTDIR}/var/lib/apparmor +- install -m 755 -d $(APPARMOR_BIN_PREFIX) +- install -m 755 rc.apparmor.functions $(APPARMOR_BIN_PREFIX) ++ install -m 755 rc.apparmor.functions ${DESTDIR}/usr/libexec + $(MAKE) -C po install NAME=${NAME} DESTDIR=${DESTDIR} + $(MAKE) install_manpages DESTDIR=${DESTDIR} + diff --git a/sys-apps/apparmor/files/apparmor-init b/sys-apps/apparmor/files/apparmor-init new file mode 100755 index 000000000000..ffdb6f76cbc6 --- /dev/null +++ b/sys-apps/apparmor/files/apparmor-init @@ -0,0 +1,92 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Load all configured profiles for the AppArmor security module." +description_reload="Reload all profiles" + +extra_started_commands="reload" + +aa_action() { + local arg=$1 + local return + + shift + $* + return=$? + + if [ ${return} -eq 0 ]; then + aa_log_success_msg $arg + else + aa_log_failure_msg arg + fi + + return $return +} + +aa_log_action_start() { + ebegin $1 +} + +aa_log_action_end() { + eend $1 +} + +aa_log_success_msg() { + einfo $1 +} + +aa_log_warning_msg() { + ewarn $1 +} + +aa_log_failure_msg() { + eerror $1 +} + +aa_log_skipped_msg() { + einfo $1 +} + +aa_log_daemon_msg() { + einfo $1 +} + +aa_log_end_msg() { + eend $1 +} + +. /usr/libexec/rc.apparmor.functions + +start() { + ebegin "Starting AppArmor" + eindent + + if ! is_apparmor_loaded ; then + load_module + if [ $? -ne 0 ]; then + eerror "AppArmor kernel support is not present" + eend 1 + return 1 + fi + fi + + parse_profiles load + + eoutdent +} + +stop() { + ebegin "Stopping AppArmor" + eindent + apparmor_stop + eoutdent +} + +reload() { + # todo: split out clean_profiles into its own function upstream + # so we can do parse_profiles reload && clean_profiles + # and do a proper reload instead of restart + apparmor_restart +} diff --git a/sys-apps/apparmor/metadata.xml b/sys-apps/apparmor/metadata.xml new file mode 100644 index 000000000000..f60a2bbf973d --- /dev/null +++ b/sys-apps/apparmor/metadata.xml @@ -0,0 +1,11 @@ + + + + hardened + + kensington@gentoo.org + + + apparmor + + diff --git a/sys-apps/apply-default-acl/Manifest b/sys-apps/apply-default-acl/Manifest new file mode 100644 index 000000000000..cc3ed7ab650b --- /dev/null +++ b/sys-apps/apply-default-acl/Manifest @@ -0,0 +1 @@ +DIST apply-default-acl-0.0.4.tar.gz 99201 SHA256 a9c9a91198f8294aa6ec9c2e43e3bdb6c75e07961306a29a9b13d453d3079680 SHA512 0935ba7608314d55b223803e9b118fc8e785bc92d8235077a1e7534309184934e2558dbc9e39ba45224018cdf1bd7148c471f3ff3b71aab6c1449c377fac3b5d WHIRLPOOL 76718fd814a9e8fd0dd6ead9373babc39b36d1da22cd55b0b20ff3d83489f0bd355964bfe6ffbcf6f3961f318cc462ca658c0660cdedec3f3c201820249f5fd3 diff --git a/sys-apps/apply-default-acl/apply-default-acl-0.0.4.ebuild b/sys-apps/apply-default-acl/apply-default-acl-0.0.4.ebuild new file mode 100644 index 000000000000..2663e98ece83 --- /dev/null +++ b/sys-apps/apply-default-acl/apply-default-acl-0.0.4.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Apply default POSIX ACLs to files and directories" +HOMEPAGE="http://michael.orlitzky.com/code/apply-default-acl.php" +SRC_URI="http://michael.orlitzky.com/code/releases/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND="sys-apps/acl" +RDEPEND="${DEPEND}" + +DOCS=( doc/README ) + +# tests need to be executed on filesystem with ACL support +# skipping them for now +RESTRICT="test" diff --git a/sys-apps/apply-default-acl/metadata.xml b/sys-apps/apply-default-acl/metadata.xml new file mode 100644 index 000000000000..d5e2ea387b89 --- /dev/null +++ b/sys-apps/apply-default-acl/metadata.xml @@ -0,0 +1,15 @@ + + + + + mjo@gentoo.org + Michael Orlitzky + + + + + michael@orlitzky.com + Michael Orlitzky + + + diff --git a/sys-apps/arrayprobe/Manifest b/sys-apps/arrayprobe/Manifest new file mode 100644 index 000000000000..f5eec1d05631 --- /dev/null +++ b/sys-apps/arrayprobe/Manifest @@ -0,0 +1 @@ +DIST arrayprobe-2.0.tar.gz 83831 SHA256 ccb560b5c7e8b378d110cad6e9245884e7e673acfa3c4016ef33acd699f1f4d0 SHA512 4664e20604697edf2f848447419b26ff860dd302b3d3e5aa0f3977855c590b5acbe23c39b684a2ecb1603c86cf7762e86bfc7125421ccad7f322e387c4178870 WHIRLPOOL 56eec2322f806f25e411614e12e9c584208202203f6d070846c73d04c0b379103ad2c45d3a6638a8cf6d66ea51173fbf0dcd91af3b01702a39848bb8a503cd34 diff --git a/sys-apps/arrayprobe/arrayprobe-2.0-r2.ebuild b/sys-apps/arrayprobe/arrayprobe-2.0-r2.ebuild new file mode 100644 index 000000000000..b9af20e37ab4 --- /dev/null +++ b/sys-apps/arrayprobe/arrayprobe-2.0-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils autotools + +DESCRIPTION="CLI utility that reports the status of a HP (Compaq) array controller (both IDA & CCISS supported)" +HOMEPAGE="http://www.strocamp.net/opensource/arrayprobe.php" +SRC_URI="http://www.strocamp.net/opensource/compaq/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ia64 x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}/${PV}-malloc-strlen.patch" + epatch "${FILESDIR}/${PV}-ida_headers.patch" + eautoreconf +} diff --git a/sys-apps/arrayprobe/files/2.0-ida_headers.patch b/sys-apps/arrayprobe/files/2.0-ida_headers.patch new file mode 100644 index 000000000000..fbdb20b87ea6 --- /dev/null +++ b/sys-apps/arrayprobe/files/2.0-ida_headers.patch @@ -0,0 +1,647 @@ +diff -Naur arrayprobe-2.0.old/cciss_events.h arrayprobe-2.0/cciss_events.h +--- arrayprobe-2.0.old/cciss_events.h 2005-12-27 10:51:29.000000000 +0100 ++++ arrayprobe-2.0/cciss_events.h 2010-01-13 15:46:53.000000000 +0100 +@@ -27,8 +27,12 @@ + #define QWORD __u64 + + /* from cciss_cmd.h */ ++#ifndef CISS_MAX_LUN + #define CISS_MAX_LUN 16 ++#endif ++#ifndef CISS_MAX_PHYS_LUN + #define CISS_MAX_PHYS_LUN 1024 ++#endif + + #define CompareEvent(event,par_class,par_subclass,par_detail) \ + ((event.class.class==par_class) && \ +diff -Naur arrayprobe-2.0.old/configure.ac arrayprobe-2.0/configure.ac +--- arrayprobe-2.0.old/configure.ac 2006-01-03 13:58:31.000000000 +0100 ++++ arrayprobe-2.0/configure.ac 2010-01-13 15:42:49.000000000 +0100 +@@ -19,38 +19,6 @@ + dnl Check for compile.h (2.6.x kernels only? + AC_CHECK_HEADERS(linux/compiler.h) + +-dnl Check for kernel sources +-AC_MSG_CHECKING(for kernel sources) +-found_kernel_dir="" +-for kernel_dir in /usr/src/linux /usr/src/linux-2.4 +-do +- if test -d $kernel_dir/drivers/block ; then +- CFLAGS="$CFLAGS -I$kernel_dir/include -I$kernel_dir/drivers/block" +- CPPFLAGS="$CPPFLAGS -I$kernel_dir/include -I$kernel_dir/drivers/block" +- found_kernel_dir="$kernel_dir" +- fi +-done +- +-if test "$found_kernel_dir" != "" ; then +- AC_MSG_RESULT(found $found_kernel_dir ) +-else +- AC_MSG_ERROR(Kernel sources not found) +-fi +- +-dnl Check Headers +-AC_CHECK_HEADERS(ida_ioctl.h ida_cmd.h cpqarray.h,, +- AC_MSG_ERROR(You need to have the complete kernel sources.),[[#include +- #include ]]) +- +-dnl Check version of SmartArray driver +-AC_MSG_CHECKING(SmartArray driver version) +-AC_EGREP_HEADER(blk_cnt, ida_ioctl.h,AC_MSG_RESULT(ok), +- AC_MSG_ERROR(You need to have the SmartArray driver version 1.0.1 or higher installed.)) +- +-dnl Check for CCISS header file +-AC_CHECK_HEADERS(linux/cciss_ioctl.h,, +- AC_MSG_ERROR(You need to have the CCISS driver in the kernel.),[[#include ]]) +- + # Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST + +diff -Naur arrayprobe-2.0.old/cpqarray.h arrayprobe-2.0/cpqarray.h +--- arrayprobe-2.0.old/cpqarray.h 1970-01-01 01:00:00.000000000 +0100 ++++ arrayprobe-2.0/cpqarray.h 2010-01-13 15:40:11.000000000 +0100 +@@ -0,0 +1,126 @@ ++/* ++ * Disk Array driver for Compaq SMART2 Controllers ++ * Copyright 1998 Compaq Computer Corporation ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or ++ * NON INFRINGEMENT. See the GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ++ * ++ * Questions/Comments/Bugfixes to iss_storagedev@hp.com ++ * ++ * If you want to make changes, improve or add functionality to this ++ * driver, you'll probably need the Compaq Array Controller Interface ++ * Specificiation (Document number ECG086/1198) ++ */ ++#ifndef CPQARRAY_H ++#define CPQARRAY_H ++ ++#ifdef __KERNEL__ ++#include ++#include ++#include ++#include ++#endif ++ ++#include "ida_cmd.h" ++ ++#define IO_OK 0 ++#define IO_ERROR 1 ++#define NWD 16 ++#define NWD_SHIFT 4 ++ ++#define IDA_TIMER (5*HZ) ++#define IDA_TIMEOUT (10*HZ) ++ ++#define MISC_NONFATAL_WARN 0x01 ++ ++typedef struct { ++ unsigned blk_size; ++ unsigned nr_blks; ++ unsigned cylinders; ++ unsigned heads; ++ unsigned sectors; ++ int usage_count; ++} drv_info_t; ++ ++#ifdef __KERNEL__ ++ ++struct ctlr_info; ++typedef struct ctlr_info ctlr_info_t; ++ ++struct access_method { ++ void (*submit_command)(ctlr_info_t *h, cmdlist_t *c); ++ void (*set_intr_mask)(ctlr_info_t *h, unsigned long val); ++ unsigned long (*fifo_full)(ctlr_info_t *h); ++ unsigned long (*intr_pending)(ctlr_info_t *h); ++ unsigned long (*command_completed)(ctlr_info_t *h); ++}; ++ ++struct board_type { ++ __u32 board_id; ++ char *product_name; ++ struct access_method *access; ++}; ++ ++struct ctlr_info { ++ int ctlr; ++ char devname[8]; ++ __u32 log_drv_map; ++ __u32 drv_assign_map; ++ __u32 drv_spare_map; ++ __u32 mp_failed_drv_map; ++ ++ char firm_rev[4]; ++ int ctlr_sig; ++ ++ int log_drives; ++ int phys_drives; ++ ++ struct pci_dev *pci_dev; /* NULL if EISA */ ++ __u32 board_id; ++ char *product_name; ++ ++ void __iomem *vaddr; ++ unsigned long paddr; ++ unsigned long io_mem_addr; ++ unsigned long io_mem_length; ++ int intr; ++ int usage_count; ++ drv_info_t drv[NWD]; ++ struct proc_dir_entry *proc; ++ ++ struct access_method access; ++ ++ cmdlist_t *reqQ; ++ cmdlist_t *cmpQ; ++ cmdlist_t *cmd_pool; ++ dma_addr_t cmd_pool_dhandle; ++ unsigned long *cmd_pool_bits; ++ struct request_queue *queue; ++ spinlock_t lock; ++ ++ unsigned int Qdepth; ++ unsigned int maxQsinceinit; ++ ++ unsigned int nr_requests; ++ unsigned int nr_allocs; ++ unsigned int nr_frees; ++ struct timer_list timer; ++ unsigned int misc_tflags; ++}; ++ ++#define IDA_LOCK(i) (&hba[i]->lock) ++ ++#endif ++ ++#endif /* CPQARRAY_H */ +diff -Naur arrayprobe-2.0.old/ida_cmd.h arrayprobe-2.0/ida_cmd.h +--- arrayprobe-2.0.old/ida_cmd.h 1970-01-01 01:00:00.000000000 +0100 ++++ arrayprobe-2.0/ida_cmd.h 2010-01-13 15:40:29.000000000 +0100 +@@ -0,0 +1,349 @@ ++/* ++ * Disk Array driver for Compaq SMART2 Controllers ++ * Copyright 1998 Compaq Computer Corporation ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or ++ * NON INFRINGEMENT. See the GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ++ * ++ * Questions/Comments/Bugfixes to iss_storagedev@hp.com ++ * ++ */ ++#ifndef ARRAYCMD_H ++#define ARRAYCMD_H ++ ++/*#include */ ++#if 0 ++#include ++#endif ++ ++/* for the Smart Array 42XX cards */ ++#define S42XX_REQUEST_PORT_OFFSET 0x40 ++#define S42XX_REPLY_INTR_MASK_OFFSET 0x34 ++#define S42XX_REPLY_PORT_OFFSET 0x44 ++#define S42XX_INTR_STATUS 0x30 ++ ++#define S42XX_INTR_OFF 0x08 ++#define S42XX_INTR_PENDING 0x08 ++ ++#define COMMAND_FIFO 0x04 ++#define COMMAND_COMPLETE_FIFO 0x08 ++#define INTR_MASK 0x0C ++#define INTR_STATUS 0x10 ++#define INTR_PENDING 0x14 ++ ++#define FIFO_NOT_EMPTY 0x01 ++#define FIFO_NOT_FULL 0x02 ++ ++#define BIG_PROBLEM 0x40 ++#define LOG_NOT_CONF 2 ++ ++#pragma pack(1) ++typedef struct { ++ __u32 size; ++ __u32 addr; ++} sg_t; ++ ++#define RCODE_NONFATAL 0x02 ++#define RCODE_FATAL 0x04 ++#define RCODE_INVREQ 0x10 ++typedef struct { ++ __u16 next; ++ __u8 cmd; ++ __u8 rcode; ++ __u32 blk; ++ __u16 blk_cnt; ++ __u8 sg_cnt; ++ __u8 reserved; ++} rhdr_t; ++ ++#define SG_MAX 32 ++typedef struct { ++ rhdr_t hdr; ++ sg_t sg[SG_MAX]; ++ __u32 bp; ++} rblk_t; ++ ++typedef struct { ++ __u8 unit; ++ __u8 prio; ++ __u16 size; ++} chdr_t; ++ ++#define CMD_RWREQ 0x00 ++#define CMD_IOCTL_PEND 0x01 ++#define CMD_IOCTL_DONE 0x02 ++ ++typedef struct cmdlist { ++ chdr_t hdr; ++ rblk_t req; ++ __u32 size; ++ int retry_cnt; ++ __u32 busaddr; ++ int ctlr; ++ struct cmdlist *prev; ++ struct cmdlist *next; ++ struct request *rq; ++ int type; ++} cmdlist_t; ++ ++#define ID_CTLR 0x11 ++typedef struct { ++ __u8 nr_drvs; ++ __u32 cfg_sig; ++ __u8 firm_rev[4]; ++ __u8 rom_rev[4]; ++ __u8 hw_rev; ++ __u32 bb_rev; ++ __u32 drv_present_map; ++ __u32 ext_drv_map; ++ __u32 board_id; ++ __u8 cfg_error; ++ __u32 non_disk_bits; ++ __u8 bad_ram_addr; ++ __u8 cpu_rev; ++ __u8 pdpi_rev; ++ __u8 epic_rev; ++ __u8 wcxc_rev; ++ __u8 marketing_rev; ++ __u8 ctlr_flags; ++ __u8 host_flags; ++ __u8 expand_dis; ++ __u8 scsi_chips; ++ __u32 max_req_blocks; ++ __u32 ctlr_clock; ++ __u8 drvs_per_bus; ++ __u16 big_drv_present_map[8]; ++ __u16 big_ext_drv_map[8]; ++ __u16 big_non_disk_map[8]; ++ __u16 task_flags; ++ __u8 icl_bus; ++ __u8 red_modes; ++ __u8 cur_red_mode; ++ __u8 red_ctlr_stat; ++ __u8 red_fail_reason; ++ __u8 reserved[403]; ++} id_ctlr_t; ++ ++typedef struct { ++ __u16 cyl; ++ __u8 heads; ++ __u8 xsig; ++ __u8 psectors; ++ __u16 wpre; ++ __u8 maxecc; ++ __u8 drv_ctrl; ++ __u16 pcyls; ++ __u8 pheads; ++ __u16 landz; ++ __u8 sect_per_track; ++ __u8 cksum; ++} drv_param_t; ++ ++#define ID_LOG_DRV 0x10 ++typedef struct { ++ __u16 blk_size; ++ __u32 nr_blks; ++ drv_param_t drv; ++ __u8 fault_tol; ++ __u8 reserved; ++ __u8 bios_disable; ++} id_log_drv_t; ++ ++#define ID_LOG_DRV_EXT 0x18 ++typedef struct { ++ __u32 log_drv_id; ++ __u8 log_drv_label[64]; ++ __u8 reserved[418]; ++} id_log_drv_ext_t; ++ ++#define SENSE_LOG_DRV_STAT 0x12 ++typedef struct { ++ __u8 status; ++ __u32 fail_map; ++ __u16 read_err[32]; ++ __u16 write_err[32]; ++ __u8 drv_err_data[256]; ++ __u8 drq_timeout[32]; ++ __u32 blks_to_recover; ++ __u8 drv_recovering; ++ __u16 remap_cnt[32]; ++ __u32 replace_drv_map; ++ __u32 act_spare_map; ++ __u8 spare_stat; ++ __u8 spare_repl_map[32]; ++ __u32 repl_ok_map; ++ __u8 media_exch; ++ __u8 cache_fail; ++ __u8 expn_fail; ++ __u8 unit_flags; ++ __u16 big_fail_map[8]; ++ __u16 big_remap_map[128]; ++ __u16 big_repl_map[8]; ++ __u16 big_act_spare_map[8]; ++ __u8 big_spar_repl_map[128]; ++ __u16 big_repl_ok_map[8]; ++ __u8 big_drv_rebuild; ++ __u8 reserved[36]; ++} sense_log_drv_stat_t; ++ ++#define START_RECOVER 0x13 ++ ++#define ID_PHYS_DRV 0x15 ++typedef struct { ++ __u8 scsi_bus; ++ __u8 scsi_id; ++ __u16 blk_size; ++ __u32 nr_blks; ++ __u32 rsvd_blks; ++ __u8 drv_model[40]; ++ __u8 drv_sn[40]; ++ __u8 drv_fw[8]; ++ __u8 scsi_iq_bits; ++ __u8 compaq_drv_stmp; ++ __u8 last_fail; ++ __u8 phys_drv_flags; ++ __u8 phys_drv_flags1; ++ __u8 scsi_lun; ++ __u8 phys_drv_flags2; ++ __u8 reserved; ++ __u32 spi_speed_rules; ++ __u8 phys_connector[2]; ++ __u8 phys_box_on_bus; ++ __u8 phys_bay_in_box; ++} id_phys_drv_t; ++ ++#define BLINK_DRV_LEDS 0x16 ++typedef struct { ++ __u32 blink_duration; ++ __u32 reserved; ++ __u8 blink[256]; ++ __u8 reserved1[248]; ++} blink_drv_leds_t; ++ ++#define SENSE_BLINK_LEDS 0x17 ++typedef struct { ++ __u32 blink_duration; ++ __u32 btime_elap; ++ __u8 blink[256]; ++ __u8 reserved1[248]; ++} sense_blink_leds_t; ++ ++#define IDA_READ 0x20 ++#define IDA_WRITE 0x30 ++#define IDA_WRITE_MEDIA 0x31 ++#define RESET_TO_DIAG 0x40 ++#define DIAG_PASS_THRU 0x41 ++ ++#define SENSE_CONFIG 0x50 ++#define SET_CONFIG 0x51 ++typedef struct { ++ __u32 cfg_sig; ++ __u16 compat_port; ++ __u8 data_dist_mode; ++ __u8 surf_an_ctrl; ++ __u16 ctlr_phys_drv; ++ __u16 log_unit_phys_drv; ++ __u16 fault_tol_mode; ++ __u8 phys_drv_param[16]; ++ drv_param_t drv; ++ __u32 drv_asgn_map; ++ __u16 dist_factor; ++ __u32 spare_asgn_map; ++ __u8 reserved[6]; ++ __u16 os; ++ __u8 ctlr_order; ++ __u8 extra_info; ++ __u32 data_offs; ++ __u8 parity_backedout_write_drvs; ++ __u8 parity_dist_mode; ++ __u8 parity_shift_fact; ++ __u8 bios_disable_flag; ++ __u32 blks_on_vol; ++ __u32 blks_per_drv; ++ __u8 scratch[16]; ++ __u16 big_drv_map[8]; ++ __u16 big_spare_map[8]; ++ __u8 ss_source_vol; ++ __u8 mix_drv_cap_range; ++ struct { ++ __u16 big_drv_map[8]; ++ __u32 blks_per_drv; ++ __u16 fault_tol_mode; ++ __u16 dist_factor; ++ } MDC_range[4]; ++ __u8 reserved1[248]; ++} config_t; ++ ++#define BYPASS_VOL_STATE 0x52 ++#define SS_CREATE_VOL 0x53 ++#define CHANGE_CONFIG 0x54 ++#define SENSE_ORIG_CONF 0x55 ++#define REORDER_LOG_DRV 0x56 ++typedef struct { ++ __u8 old_units[32]; ++} reorder_log_drv_t; ++ ++#define LABEL_LOG_DRV 0x57 ++typedef struct { ++ __u8 log_drv_label[64]; ++} label_log_drv_t; ++ ++#define SS_TO_VOL 0x58 ++ ++#define SET_SURF_DELAY 0x60 ++typedef struct { ++ __u16 delay; ++ __u8 reserved[510]; ++} surf_delay_t; ++ ++#define SET_OVERHEAT_DELAY 0x61 ++typedef struct { ++ __u16 delay; ++} overhead_delay_t; ++ ++#define SET_MP_DELAY ++typedef struct { ++ __u16 delay; ++ __u8 reserved[510]; ++} mp_delay_t; ++ ++#define PASSTHRU_A 0x91 ++typedef struct { ++ __u8 target; ++ __u8 bus; ++ __u8 lun; ++ __u32 timeout; ++ __u32 flags; ++ __u8 status; ++ __u8 error; ++ __u8 cdb_len; ++ __u8 sense_error; ++ __u8 sense_key; ++ __u32 sense_info; ++ __u8 sense_code; ++ __u8 sense_qual; ++ __u32 residual; ++ __u8 reserved[4]; ++ __u8 cdb[12]; ++} scsi_param_t; ++ ++#define RESUME_BACKGROUND_ACTIVITY 0x99 ++#define SENSE_CONTROLLER_PERFORMANCE 0xa8 ++#define FLUSH_CACHE 0xc2 ++#define COLLECT_BUFFER 0xd2 ++#define READ_FLASH_ROM 0xf6 ++#define WRITE_FLASH_ROM 0xf7 ++#pragma pack() ++ ++#endif /* ARRAYCMD_H */ +diff -Naur arrayprobe-2.0.old/ida_ioctl.h arrayprobe-2.0/ida_ioctl.h +--- arrayprobe-2.0.old/ida_ioctl.h 1970-01-01 01:00:00.000000000 +0100 ++++ arrayprobe-2.0/ida_ioctl.h 2010-01-13 15:44:46.000000000 +0100 +@@ -0,0 +1,87 @@ ++/* ++ * Disk Array driver for Compaq SMART2 Controllers ++ * Copyright 1998 Compaq Computer Corporation ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or ++ * NON INFRINGEMENT. See the GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ++ * ++ * Questions/Comments/Bugfixes to iss_storagedev@hp.com ++ * ++ */ ++#ifndef IDA_IOCTL_H ++#define IDA_IOCTL_H ++ ++#include "ida_cmd.h" ++#include "cpqarray.h" ++ ++#define IDAGETDRVINFO 0x27272828 ++#define IDAPASSTHRU 0x28282929 ++#define IDAGETCTLRSIG 0x29293030 ++#define IDAREVALIDATEVOLS 0x30303131 ++#define IDADRIVERVERSION 0x31313232 ++#define IDAGETPCIINFO 0x32323333 ++ ++typedef struct _ida_pci_info_struct ++{ ++ unsigned char bus; ++ unsigned char dev_fn; ++ __u32 board_id; ++} ida_pci_info_struct; ++/* ++ * Normally, the ioctl determines the logical unit for this command by ++ * the major,minor number of the fd passed to ioctl. If you need to send ++ * a command to a different/nonexistant unit (such as during config), you ++ * can override the normal behavior by setting the unit valid bit. (Normally, ++ * it should be zero) The controller the command is sent to is still ++ * determined by the major number of the open device. ++ */ ++ ++#define UNITVALID 0x80 ++typedef struct { ++ __u8 cmd; ++ __u8 rcode; ++ __u8 unit; ++ __u32 blk; ++ __u16 blk_cnt; ++ ++/* currently, sg_cnt is assumed to be 1: only the 0th element of sg is used */ ++ struct { ++ void *addr; ++ size_t size; ++ } sg[SG_MAX]; ++ int sg_cnt; ++ ++ union ctlr_cmds { ++ drv_info_t drv; ++ unsigned char buf[1024]; ++ ++ id_ctlr_t id_ctlr; ++ drv_param_t drv_param; ++ id_log_drv_t id_log_drv; ++ id_log_drv_ext_t id_log_drv_ext; ++ sense_log_drv_stat_t sense_log_drv_stat; ++ id_phys_drv_t id_phys_drv; ++ blink_drv_leds_t blink_drv_leds; ++ sense_blink_leds_t sense_blink_leds; ++ config_t config; ++ reorder_log_drv_t reorder_log_drv; ++ label_log_drv_t label_log_drv; ++ surf_delay_t surf_delay; ++ overhead_delay_t overhead_delay; ++ mp_delay_t mp_delay; ++ scsi_param_t scsi_param; ++ } c; ++} ida_ioctl_t; ++ ++#endif /* IDA_IOCTL_H */ +diff -Naur arrayprobe-2.0.old/probe.c arrayprobe-2.0/probe.c +--- arrayprobe-2.0.old/probe.c 2006-01-03 14:11:17.000000000 +0100 ++++ arrayprobe-2.0/probe.c 2010-01-13 15:45:22.000000000 +0100 +@@ -33,10 +33,9 @@ + #include + #include + +-#include + #include + +-#include ++#include "ida_ioctl.h" + + #include "cciss_events.h" + diff --git a/sys-apps/arrayprobe/files/2.0-malloc-strlen.patch b/sys-apps/arrayprobe/files/2.0-malloc-strlen.patch new file mode 100644 index 000000000000..8d955a8f933d --- /dev/null +++ b/sys-apps/arrayprobe/files/2.0-malloc-strlen.patch @@ -0,0 +1,20 @@ +--- probe.c.old 2010-01-13 12:15:32.000000000 +0100 ++++ probe.c 2010-01-13 12:16:44.000000000 +0100 +@@ -354,7 +354,7 @@ + int drivenum = event.detail.logstatchange.logicaldrivenumber; + logdrvs[drivenum].state.state = event.detail.logstatchange.newlogicaldrivestate; + logdrvs[drivenum].state.severity = logicaldrivestatusseverity[event.detail.logstatchange.newlogicaldrivestate]; +- logdrvs[drivenum].state.message = (char *)malloc(strlen(logicaldrivestatusstr[event.detail.logstatchange.newlogicaldrivestate] + 1)); ++ logdrvs[drivenum].state.message = (char *)malloc(strlen(logicaldrivestatusstr[event.detail.logstatchange.newlogicaldrivestate]) + 1); + strcpy (logdrvs[drivenum].state.message, logicaldrivestatusstr[event.detail.logstatchange.newlogicaldrivestate]); + } + if (verbose) { +@@ -479,7 +479,7 @@ + int ida_device = 0; /* only for use with -f , used to determine protocol to use */ + int max_logical = 64; /* hardcoded */ + int cur_logical = 0; /* number of drives detected */ +- logdrv *logdrvs = (logdrv *)malloc(sizeof(logdrv)*max_logical); ++ logdrv *logdrvs; + int worst_disk; + int worst_sev = SEV_NORMAL; + int cntr; diff --git a/sys-apps/arrayprobe/metadata.xml b/sys-apps/arrayprobe/metadata.xml new file mode 100644 index 000000000000..d5dc80d32a78 --- /dev/null +++ b/sys-apps/arrayprobe/metadata.xml @@ -0,0 +1,9 @@ + + + +base-system + + chainsaw@gentoo.org + Tony Vroon + + diff --git a/sys-apps/attr/Manifest b/sys-apps/attr/Manifest new file mode 100644 index 000000000000..88c14e595f6b --- /dev/null +++ b/sys-apps/attr/Manifest @@ -0,0 +1,2 @@ +DIST attr-2.4.46.src.tar.gz 338181 SHA256 dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f SHA512 f1b8e6e4d1aa9f5c1b51d5d08684c9fdfa4b7d22efc1a77c13e4d5f0ae8e053bbb3d49a1c1e3c4143f63c9752ed534a2d009e0ab49cea880032620edbe8fdbb5 WHIRLPOOL 300f3be50a015f2d6d44a4707c31a312015c308899acdf146dfbbdb373336f5de7696f4832dba9543abd9cdfceccd84ef602d672fb88a125210e2622a13cf8fa +DIST attr-2.4.47.src.tar.gz 343692 SHA256 25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859 SHA512 2a333f63655758298650cf8f89c175efdc0112dcc4013e8d023e2a9a69f177e4bcb1f1d10b6666d6f2027dca4dec0833d54749952ab153d28367e1a72e6e2831 WHIRLPOOL a012f7a0225e63d4d195fae7027e64c0c92edb039622bfdec611b2facbcde83eb5fc921ecfe95c50f54f7c9b518f57a0555dcedc148cc8ff6e73371668a40557 diff --git a/sys-apps/attr/attr-2.4.46-r2.ebuild b/sys-apps/attr/attr-2.4.46-r2.ebuild new file mode 100644 index 000000000000..5d19e57e8f73 --- /dev/null +++ b/sys-apps/attr/attr-2.4.46-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Extended attributes tools" +HOMEPAGE="http://savannah.nongnu.org/projects/attr" +SRC_URI="mirror://nongnu/${PN}/${P}.src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="nls static-libs" + +DEPEND="nls? ( sys-devel/gettext ) + sys-devel/autoconf" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.4.44-gettext.patch + epatch "${FILESDIR}"/${PN}-2.4.46-config-shell.patch #366671 + epatch "${FILESDIR}"/${PN}-2.4.46-generic-syscalls.patch #460702 + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die "failed to update builddefs" + strip-linguas -u po +} + +src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +src_install() { + emake DIST_ROOT="${D}" install install-lib install-dev || die + use static-libs || find "${D}" -name '*.la' -delete + # the man-pages packages provides the man2 files + rm -r "${ED}"/usr/share/man/man2 + + # we install attr into /bin, so we need the shared lib with it + gen_usr_ldscript -a attr +} diff --git a/sys-apps/attr/attr-2.4.47-r1.ebuild b/sys-apps/attr/attr-2.4.47-r1.ebuild new file mode 100644 index 000000000000..f0db984ba8ec --- /dev/null +++ b/sys-apps/attr/attr-2.4.47-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs multilib-minimal + +DESCRIPTION="Extended attributes tools" +HOMEPAGE="http://savannah.nongnu.org/projects/attr" +SRC_URI="mirror://nongnu/${PN}/${P}.src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="nls static-libs" + +DEPEND="nls? ( sys-devel/gettext ) + sys-devel/autoconf" +RDEPEND="abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die + strip-linguas -u po + multilib_copy_sources # https://savannah.nongnu.org/bugs/index.php?39736 +} + +multilib_src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +multilib_src_compile() { + emake $(multilib_is_native_abi || echo TOOL_SUBDIRS=) +} + +multilib_src_install() { + emake \ + $(multilib_is_native_abi || echo TOOL_SUBDIRS=) \ + DIST_ROOT="${D}" \ + install install-lib install-dev + + if multilib_is_native_abi; then + # we install attr into /bin, so we need the shared lib with it + gen_usr_ldscript -a attr + # the man-pages packages provides the man2 files + # note: man-pages are installed by TOOL_SUBDIRS + rm -r "${ED}"/usr/share/man/man2 || die + fi +} + +multilib_src_install_all() { + use static-libs || prune_libtool_files --all + einstalldocs +} diff --git a/sys-apps/attr/attr-2.4.47-r2.ebuild b/sys-apps/attr/attr-2.4.47-r2.ebuild new file mode 100644 index 000000000000..91ab80d8340d --- /dev/null +++ b/sys-apps/attr/attr-2.4.47-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs multilib-minimal + +DESCRIPTION="Extended attributes tools" +HOMEPAGE="http://savannah.nongnu.org/projects/attr" +SRC_URI="mirror://nongnu/${PN}/${P}.src.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh ~sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="nls static-libs" + +DEPEND="nls? ( sys-devel/gettext ) + sys-devel/autoconf" +RDEPEND="abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \ + include/builddefs.in \ + || die + strip-linguas -u po + multilib_copy_sources # https://savannah.nongnu.org/bugs/index.php?39736 +} + +multilib_src_configure() { + unset PLATFORM #184564 + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + $(use_enable nls gettext) \ + --enable-shared $(use_enable static-libs static) \ + --libexecdir="${EPREFIX}"/usr/$(get_libdir) \ + --bindir="${EPREFIX}"/bin +} + +multilib_src_compile() { + emake $(multilib_is_native_abi || echo TOOL_SUBDIRS=) +} + +multilib_src_install() { + emake \ + $(multilib_is_native_abi || echo TOOL_SUBDIRS=) \ + DIST_ROOT="${D}" \ + install install-lib install-dev + + if multilib_is_native_abi; then + # we install attr into /bin, so we need the shared lib with it + gen_usr_ldscript -a attr + # the man-pages packages provides the man2 files + # note: man-pages are installed by TOOL_SUBDIRS + rm -r "${ED}"/usr/share/man/man2 "${ED}"/usr/share/man/man5/attr.5 || die + fi +} + +multilib_src_install_all() { + use static-libs || prune_libtool_files --all + einstalldocs +} diff --git a/sys-apps/attr/files/attr-2.4.44-gettext.patch b/sys-apps/attr/files/attr-2.4.44-gettext.patch new file mode 100644 index 000000000000..49c2d32bdce4 --- /dev/null +++ b/sys-apps/attr/files/attr-2.4.44-gettext.patch @@ -0,0 +1,63 @@ +--- include/gettext.h ++++ include/gettext.h +@@ -0,0 +1,10 @@ ++#include ++#ifdef ENABLE_GETTEXT ++# include ++# define _(x) gettext(x) ++#else ++# define _(x) (x) ++# define textdomain(d) do { } while (0) ++# define bindtextdomain(d,dir) do { } while (0) ++#endif ++#include +--- attr/attr.c ++++ attr/attr.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include "gettext.h" + + #include + #include "config.h" +--- libattr/attr_copy_file.c.orig 2007-09-20 02:51:37.000000000 -0400 ++++ libattr/attr_copy_file.c 2007-09-20 02:51:51.000000000 -0400 +@@ -19,6 +19,7 @@ + + #if defined (HAVE_CONFIG_H) + #include "config.h" ++#include "gettext.h" + #endif + + #include +--- libattr/attr_copy_fd.c.orig 2007-09-20 02:52:23.000000000 -0400 ++++ libattr/attr_copy_fd.c 2007-09-20 02:52:31.000000000 -0400 +@@ -19,6 +19,7 @@ + + #if defined (HAVE_CONFIG_H) + #include "config.h" ++#include "gettext.h" + #endif + + #include +--- getfattr/getfattr.c.orig 2007-09-20 02:52:49.000000000 -0400 ++++ getfattr/getfattr.c 2007-09-20 02:52:59.000000000 -0400 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include "gettext.h" + + #include + #include "config.h" +--- setfattr/setfattr.c.orig 2007-09-20 02:53:12.000000000 -0400 ++++ setfattr/setfattr.c 2007-09-20 02:53:20.000000000 -0400 +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include "gettext.h" + + #include + #include "config.h" diff --git a/sys-apps/attr/files/attr-2.4.46-config-shell.patch b/sys-apps/attr/files/attr-2.4.46-config-shell.patch new file mode 100644 index 000000000000..b6660e63c03c --- /dev/null +++ b/sys-apps/attr/files/attr-2.4.46-config-shell.patch @@ -0,0 +1,53 @@ +https://bugs.gentoo.org/366671 + +From 10bfb16245ec4b55c1f5b6dc5554913bc9b13c9c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 16 May 2011 01:59:52 -0400 +Subject: [PATCH] use SHELL from configure + +If /bin/sh is not a functional enough shell, configure will select a +SHELL of /bin/bash or better. But the current build helpers always +hardcode /bin/sh, so if libtool itself configures itself for /bin/bash, +things will fail when it attempts to do: + SHELL = /bin/sh + LIBTOOL = $(SHELL) .../libtool + ... + eval: 1: base_compile+= -pipe: not found + ... + +So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let +configure find a good value for us. + +Signed-off-by: Mike Frysinger +--- + include/builddefs.in | 1 + + include/buildmacros | 1 - + 2 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/builddefs.in b/include/builddefs.in +index d054a56..434ce95 100644 +--- a/include/builddefs.in ++++ b/include/builddefs.in +@@ -46,6 +46,7 @@ MAKE = @make@ + ECHO = @echo@ + SORT = @sort@ + LN_S = @LN_S@ ++SHELL = @SHELL@ + LIBTOOL = @LIBTOOL@ + MAKEDEPEND = @makedepend@ + +diff --git a/include/buildmacros b/include/buildmacros +index ab89182..8efb32e 100644 +--- a/include/buildmacros ++++ b/include/buildmacros +@@ -42,7 +42,6 @@ OBJECTS = $(ASFILES:.s=.o) \ + + INSTALL = $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP) + +-SHELL = /bin/sh + IMAGES_DIR = $(TOPDIR)/all-images + DIST_DIR = $(TOPDIR)/dist + +-- +1.7.5.rc3 + diff --git a/sys-apps/attr/files/attr-2.4.46-generic-syscalls.patch b/sys-apps/attr/files/attr-2.4.46-generic-syscalls.patch new file mode 100644 index 000000000000..d12fcd29afd1 --- /dev/null +++ b/sys-apps/attr/files/attr-2.4.46-generic-syscalls.patch @@ -0,0 +1,180 @@ +http://lists.nongnu.org/archive/html/acl-devel/2012-12/msg00000.html +https://bugs.gentoo.org/460702 + +--- a/libattr/syscalls.c ++++ b/libattr/syscalls.c +@@ -23,172 +23,10 @@ + + #include + #include ++#include + +-#if defined (__i386__) ++#if defined (__NR_setxattr) + # define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 226 +-# define __NR_lsetxattr 227 +-# define __NR_fsetxattr 228 +-# define __NR_getxattr 229 +-# define __NR_lgetxattr 230 +-# define __NR_fgetxattr 231 +-# define __NR_listxattr 232 +-# define __NR_llistxattr 233 +-# define __NR_flistxattr 234 +-# define __NR_removexattr 235 +-# define __NR_lremovexattr 236 +-# define __NR_fremovexattr 237 +-#elif defined (__sparc__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 169 +-# define __NR_lsetxattr 170 +-# define __NR_fsetxattr 171 +-# define __NR_getxattr 172 +-# define __NR_lgetxattr 173 +-# define __NR_fgetxattr 177 +-# define __NR_listxattr 178 +-# define __NR_llistxattr 179 +-# define __NR_flistxattr 180 +-# define __NR_removexattr 181 +-# define __NR_lremovexattr 182 +-# define __NR_fremovexattr 186 +-#elif defined (__ia64__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 1217 +-# define __NR_lsetxattr 1218 +-# define __NR_fsetxattr 1219 +-# define __NR_getxattr 1220 +-# define __NR_lgetxattr 1221 +-# define __NR_fgetxattr 1222 +-# define __NR_listxattr 1223 +-# define __NR_llistxattr 1224 +-# define __NR_flistxattr 1225 +-# define __NR_removexattr 1226 +-# define __NR_lremovexattr 1227 +-# define __NR_fremovexattr 1228 +-#elif defined (__powerpc__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 209 +-# define __NR_lsetxattr 210 +-# define __NR_fsetxattr 211 +-# define __NR_getxattr 212 +-# define __NR_lgetxattr 213 +-# define __NR_fgetxattr 214 +-# define __NR_listxattr 215 +-# define __NR_llistxattr 216 +-# define __NR_flistxattr 217 +-# define __NR_removexattr 218 +-# define __NR_lremovexattr 219 +-# define __NR_fremovexattr 220 +-#elif defined (__x86_64__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 188 +-# define __NR_lsetxattr 189 +-# define __NR_fsetxattr 190 +-# define __NR_getxattr 191 +-# define __NR_lgetxattr 192 +-# define __NR_fgetxattr 193 +-# define __NR_listxattr 194 +-# define __NR_llistxattr 195 +-# define __NR_flistxattr 196 +-# define __NR_removexattr 197 +-# define __NR_lremovexattr 198 +-# define __NR_fremovexattr 199 +-#elif defined (__s390__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 224 +-# define __NR_lsetxattr 225 +-# define __NR_fsetxattr 226 +-# define __NR_getxattr 227 +-# define __NR_lgetxattr 228 +-# define __NR_fgetxattr 229 +-# define __NR_listxattr 230 +-# define __NR_llistxattr 231 +-# define __NR_flistxattr 232 +-# define __NR_removexattr 233 +-# define __NR_lremovexattr 234 +-# define __NR_fremovexattr 235 +-#elif defined (__arm__) +-# define HAVE_XATTR_SYSCALLS 1 +-# if defined(__ARM_EABI__) || defined(__thumb__) +-# define __NR_SYSCALL_BASE 0 +-# else +-# define __NR_SYSCALL_BASE 0x900000 +-# endif +-# define __NR_setxattr (__NR_SYSCALL_BASE+226) +-# define __NR_lsetxattr (__NR_SYSCALL_BASE+227) +-# define __NR_fsetxattr (__NR_SYSCALL_BASE+228) +-# define __NR_getxattr (__NR_SYSCALL_BASE+229) +-# define __NR_lgetxattr (__NR_SYSCALL_BASE+230) +-# define __NR_fgetxattr (__NR_SYSCALL_BASE+231) +-# define __NR_listxattr (__NR_SYSCALL_BASE+232) +-# define __NR_llistxattr (__NR_SYSCALL_BASE+233) +-# define __NR_flistxattr (__NR_SYSCALL_BASE+234) +-# define __NR_removexattr (__NR_SYSCALL_BASE+235) +-# define __NR_lremovexattr (__NR_SYSCALL_BASE+236) +-# define __NR_fremovexattr (__NR_SYSCALL_BASE+237) +-#elif defined (__mips64) +-# define HAVE_XATTR_SYSCALLS 1 +-# ifdef __LP64__ /* mips64 using n64 ABI */ +-# define __NR_Linux 5000 +-# else /* mips64 using n32 ABI */ +-# define __NR_Linux 6000 +-# endif +-# define __NR_setxattr (__NR_Linux + 180) +-# define __NR_lsetxattr (__NR_Linux + 181) +-# define __NR_fsetxattr (__NR_Linux + 182) +-# define __NR_getxattr (__NR_Linux + 183) +-# define __NR_lgetxattr (__NR_Linux + 184) +-# define __NR_fgetxattr (__NR_Linux + 185) +-# define __NR_listxattr (__NR_Linux + 186) +-# define __NR_llistxattr (__NR_Linux + 187) +-# define __NR_flistxattr (__NR_Linux + 188) +-# define __NR_removexattr (__NR_Linux + 189) +-# define __NR_lremovexattr (__NR_Linux + 190) +-# define __NR_fremovexattr (__NR_Linux + 191) +-#elif defined (__mips__) /* mips32, or mips64 using o32 ABI */ +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_Linux 4000 +-# define __NR_setxattr (__NR_Linux + 224) +-# define __NR_lsetxattr (__NR_Linux + 225) +-# define __NR_fsetxattr (__NR_Linux + 226) +-# define __NR_getxattr (__NR_Linux + 227) +-# define __NR_lgetxattr (__NR_Linux + 228) +-# define __NR_fgetxattr (__NR_Linux + 229) +-# define __NR_listxattr (__NR_Linux + 230) +-# define __NR_llistxattr (__NR_Linux + 231) +-# define __NR_flistxattr (__NR_Linux + 232) +-# define __NR_removexattr (__NR_Linux + 233) +-# define __NR_lremovexattr (__NR_Linux + 234) +-# define __NR_fremovexattr (__NR_Linux + 235) +-#elif defined (__alpha__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 382 +-# define __NR_lsetxattr 383 +-# define __NR_fsetxattr 384 +-# define __NR_getxattr 385 +-# define __NR_lgetxattr 386 +-# define __NR_fgetxattr 387 +-# define __NR_listxattr 388 +-# define __NR_llistxattr 389 +-# define __NR_flistxattr 390 +-# define __NR_removexattr 391 +-# define __NR_lremovexattr 392 +-# define __NR_fremovexattr 393 +-#elif defined (__mc68000__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr 223 +-# define __NR_lsetxattr 224 +-# define __NR_fsetxattr 225 +-# define __NR_getxattr 226 +-# define __NR_lgetxattr 227 +-# define __NR_fgetxattr 228 +-# define __NR_listxattr 229 +-# define __NR_llistxattr 230 +-# define __NR_flistxattr 231 +-# define __NR_removexattr 232 +-# define __NR_lremovexattr 233 +-# define __NR_fremovexattr 234 + #else + # warning "Extended attribute syscalls undefined for this architecture" + # define HAVE_XATTR_SYSCALLS 0 diff --git a/sys-apps/attr/metadata.xml b/sys-apps/attr/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/attr/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/audio-entropyd/Manifest b/sys-apps/audio-entropyd/Manifest new file mode 100644 index 000000000000..f70abfd24266 --- /dev/null +++ b/sys-apps/audio-entropyd/Manifest @@ -0,0 +1 @@ +DIST audio-entropyd-2.0.3.tgz 16681 SHA256 6fbaf1c4f77e988f4656cd079309d5eb6bd36cbae89c2ee01324c5690adaf3ff SHA512 d21c2d547235accdd460bcaf1ff5f5696db2988d385c3c52aad0d651865386409682f8747d1823765f0c0925bf28f38abdfc0b114d239f494c7eb699c5ed3ebf WHIRLPOOL e653b7cccda00323b5f17a675d72cef1a9adf9915dcd27041e63993073a378d92ab5779d25434ecd48ecbb74b45abc4217e4b629c98ba3885589727ef90edf6d diff --git a/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild new file mode 100644 index 000000000000..7657afd41b73 --- /dev/null +++ b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils systemd toolchain-funcs + +DESCRIPTION="Audio-entropyd generates entropy-data for the /dev/random device" +HOMEPAGE="http://www.vanheusden.com/aed/" +SRC_URI="http://www.vanheusden.com/aed/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-entropyd ) + media-sound/alsa-utils + media-libs/alsa-lib" + +src_prepare() { + epatch "${FILESDIR}/${PN}-2.0.1-uclibc.patch" \ + "${FILESDIR}/${PN}-2.0.1-ldflags.patch" + sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" \ + -e "/^WARNFLAGS/s: -g::" Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dosbin audio-entropyd + dodoc README TODO + systemd_dounit "${FILESDIR}/${PN}.service" + newinitd "${FILESDIR}/${PN}.init-2" ${PN} + newconfd "${FILESDIR}/${PN}.conf-2" ${PN} +} diff --git a/sys-apps/audio-entropyd/audio-entropyd-2.0.3.ebuild b/sys-apps/audio-entropyd/audio-entropyd-2.0.3.ebuild new file mode 100644 index 000000000000..1dfc1007e9a2 --- /dev/null +++ b/sys-apps/audio-entropyd/audio-entropyd-2.0.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs + +DESCRIPTION="Audio-entropyd generates entropy-data for the /dev/random device" +HOMEPAGE="http://www.vanheusden.com/aed/" +SRC_URI="http://www.vanheusden.com/aed/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-entropyd ) + media-sound/alsa-utils + media-libs/alsa-lib" + +src_prepare() { + epatch "${FILESDIR}/${PN}-2.0.1-uclibc.patch" \ + "${FILESDIR}/${PN}-2.0.1-ldflags.patch" + sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" \ + -e "/^WARNFLAGS/s: -g::" Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dosbin audio-entropyd + dodoc README TODO + newinitd "${FILESDIR}/${PN}.init-2" ${PN} + newconfd "${FILESDIR}/${PN}.conf-2" ${PN} +} diff --git a/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch new file mode 100644 index 000000000000..870e9121140d --- /dev/null +++ b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 95a84a6..340f95f 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,7 +12,7 @@ TARGETS=audio-entropyd + all: $(TARGETS) + + audio-entropyd: audio-entropyd.o error.o proc.o val.o RNGTEST.o error.o +- $(CC) -o $@ $^ $(LFLAGS) ++ $(CC) $(LDFLAGS) -o $@ $^ $(LFLAGS) + + install: audio-entropyd + cp audio-entropyd /usr/local/sbin/ diff --git a/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch new file mode 100644 index 000000000000..bdf5adeff825 --- /dev/null +++ b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch @@ -0,0 +1,27 @@ +--- audio-entropyd-1.0.1.orig/error.c 2008-01-22 09:50:28 +0000 ++++ audio-entropyd-1.0.1/error.c 2008-01-22 09:53:51 +0000 +@@ -9,13 +9,13 @@ + #include + #include + #include +-#if defined(__GLIBC__) ++#if defined(__GLIBC__) && !defined(__UCLIBC__) + #include + #endif + + void print_trace(void) + { +-#if defined(__GLIBC__) ++#if defined(__GLIBC__) && !defined(__UCLIBC__) + void *array[MAX_BACKTRACE_LENGTH]; + size_t size; + +@@ -39,7 +39,7 @@ + printf("\n\n\nDebug information:\n"); + if (errno) fprintf(stderr, "errno: %d=%s (if applicable)\n", errno, strerror(errno)); + +-#if defined(__GLIBC__) ++#if defined(__GLIBC__) && !defined(__UCLIBC__) + print_trace(); + #endif + diff --git a/sys-apps/audio-entropyd/files/audio-entropyd.conf-2 b/sys-apps/audio-entropyd/files/audio-entropyd.conf-2 new file mode 100644 index 000000000000..ec3a56fa5c1f --- /dev/null +++ b/sys-apps/audio-entropyd/files/audio-entropyd.conf-2 @@ -0,0 +1,13 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# /etc/conf.d/audio-entropyd + +# The acceptable values are DEVICE, READSIZE and SAMPLERATE +# These defaults give the optimum entropy + +#DEVICE="hw:0" + +#SAMPLERATE must be a valid sampling rate of your audio source +SAMPLERATE="44050" diff --git a/sys-apps/audio-entropyd/files/audio-entropyd.init-2 b/sys-apps/audio-entropyd/files/audio-entropyd.init-2 new file mode 100644 index 000000000000..a31993b727c0 --- /dev/null +++ b/sys-apps/audio-entropyd/files/audio-entropyd.init-2 @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need modules + use alsasound + provide entropy +} + +start() { + local params="" + [ -n "$DEVICE" ] && params="$params -d $DEVICE" + [ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE" + + ebegin "Starting audio entropy gathering daemon" + start-stop-daemon --start --quiet --pidfile /var/run/audio-entropyd.pid \ + --exec /usr/sbin/audio-entropyd -- ${params} + eend ${?} +} + +stop() { + ebegin "Stopping audio entropy gathering daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid + eend ${?} +} diff --git a/sys-apps/audio-entropyd/files/audio-entropyd.service b/sys-apps/audio-entropyd/files/audio-entropyd.service new file mode 100644 index 000000000000..849ad0131c63 --- /dev/null +++ b/sys-apps/audio-entropyd/files/audio-entropyd.service @@ -0,0 +1,8 @@ +[Unit] +Description=Audio Entropy Daemon + +[Service] +ExecStart=/usr/sbin/audio-entropyd -n + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/audio-entropyd/metadata.xml b/sys-apps/audio-entropyd/metadata.xml new file mode 100644 index 000000000000..bc557e5fa607 --- /dev/null +++ b/sys-apps/audio-entropyd/metadata.xml @@ -0,0 +1,9 @@ + + + + + angelos@gentoo.org + Christoph Mende + +Audio-entropyd generates entropy-data for the /dev/random device. + diff --git a/sys-apps/baobab/Manifest b/sys-apps/baobab/Manifest new file mode 100644 index 000000000000..5087017c55fb --- /dev/null +++ b/sys-apps/baobab/Manifest @@ -0,0 +1,2 @@ +DIST baobab-3.14.1.tar.xz 884316 SHA256 76966521858f3c46fedbf38deb8f9847737ef0bc3c5f330c51d1feb68a711d17 SHA512 1738a8d536cb9cc9031dda2179b8997ecb03b5eee3cd462194b894eac36ab27a7deb268a7bc9c554909a4e473bda3ebe2ff35a06b70939b5f79152c73d794ab1 WHIRLPOOL 8fd948f75c57d937a79fa0d1e7a2e8d38a8555207205b341c1e13a79aeeef2e377ec828c300571daadb50e0ec056403bb23a4af15c6aad15431dc33ffcdb768b +DIST baobab-3.16.1.tar.xz 880192 SHA256 1fe40433df3adda0bcc4d0a6edc2bc2501888798d7e8336ad51d443c9a1fcef2 SHA512 3b68348d4686900dbc24eb904d0709fb5495ebbce5bfe44f5f956242d18492ce6b1ca8a072c1c3e7f384ea2d5b668d35d3867cf50434aeaf84878c5f5b5dc288 WHIRLPOOL 74a75cad585ae0d9c14e65712baa9a6b52c48d0eb1f7cc508c42a997695b3c154b34eb708e7247c683769e52dd1650847b55534a46bd89854888706b0ed4cc6b diff --git a/sys-apps/baobab/baobab-3.14.1.ebuild b/sys-apps/baobab/baobab-3.14.1.ebuild new file mode 100644 index 000000000000..333785d2e04c --- /dev/null +++ b/sys-apps/baobab/baobab-3.14.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome2 + +DESCRIPTION="Disk usage browser for GNOME" +HOMEPAGE="https://wiki.gnome.org/Apps/Baobab" + +LICENSE="GPL-2+ FDL-1.1+" +SLOT="0" +IUSE="" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux" + +COMMON_DEPEND=" + >=dev-libs/glib-2.40:2 + >=x11-libs/gtk+-3.13.2:3 +" +RDEPEND="${COMMON_DEPEND} + gnome-base/gsettings-desktop-schemas + x11-themes/gnome-icon-theme-extras + ! + + +gnome + diff --git a/sys-apps/bar/Manifest b/sys-apps/bar/Manifest new file mode 100644 index 000000000000..a851d43953d0 --- /dev/null +++ b/sys-apps/bar/Manifest @@ -0,0 +1 @@ +DIST bar_1.11.1.tar.gz 187144 SHA256 fa0f5ec5c8400316c2f4debdc6cdcb80e186e668c2e4471df4fec7bfcd626503 diff --git a/sys-apps/bar/bar-1.11.1.ebuild b/sys-apps/bar/bar-1.11.1.ebuild new file mode 100644 index 000000000000..6c32902d0d1c --- /dev/null +++ b/sys-apps/bar/bar-1.11.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools + +DESCRIPTION="Console Progress Bar" +HOMEPAGE="http://clpbar.sourceforge.net/" +SRC_URI="mirror://sourceforge/clpbar/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc" + +DEPEND="doc? ( >=app-doc/doxygen-1.3.5 )" +RDEPEND="" + +src_prepare() { + sed -e '/^LDFLAGS/d' \ + -e '/cd $(WEB_DIR) && $(MAKE)/d' -i Makefile.am || die + eautomake +} + +src_configure() { + local myconf + + # Fix wrt #113392 + use sparc && myconf="${myconf} --disable-use-memalign" + econf ${myconf} +} + +src_compile() { + emake CFLAGS="${CFLAGS}" + if use doc; then + mkdir -p ../www/doxygen/${PV} + emake update-www + fi +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS TODO TROUBLESHOOTING debian/changelog + if use doc ; then + dohtml -r ../www/doxygen/${PV}/html/* + fi +} diff --git a/sys-apps/bar/metadata.xml b/sys-apps/bar/metadata.xml new file mode 100644 index 000000000000..d3cb34b9ca6e --- /dev/null +++ b/sys-apps/bar/metadata.xml @@ -0,0 +1,8 @@ + + + + shell-tools + + clpbar + + diff --git a/sys-apps/baselayout-java/Manifest b/sys-apps/baselayout-java/Manifest new file mode 100644 index 000000000000..20e110f50582 --- /dev/null +++ b/sys-apps/baselayout-java/Manifest @@ -0,0 +1 @@ +DIST baselayout-java-0.1.0.tar.gz 72571 SHA256 da5dd2210597e3aa4e2ff437cd25cadc9999fdcfdb31ca459395243695c9e2c7 SHA512 6f5b6ff1ed07406711e15a768f5abdf9f7edef1b31e094760f265863aa8991bf60ff71c8b10003265d8ec1aa7c94a611bede96980d25c819908b705b4d2d1062 WHIRLPOOL 9a3111a64d04bd6f274c13f5ed3c641fa1dbbd8d8cf1ff152df7a55771148d80fdcd3c3dc5a7394675723a58aa51ce680fef20c6209380dde4ec0fe1c18a3fac diff --git a/sys-apps/baselayout-java/baselayout-java-0.1.0.ebuild b/sys-apps/baselayout-java/baselayout-java-0.1.0.ebuild new file mode 100644 index 000000000000..5b0011fc220e --- /dev/null +++ b/sys-apps/baselayout-java/baselayout-java-0.1.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit fdo-mime gnome2-utils + +DESCRIPTION="Baselayout for Java" +HOMEPAGE="http://www.gentoo.org/proj/en/java/" +SRC_URI="http://dev.gentoo.org/~sera/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="! + + +java + + + diff --git a/sys-apps/baselayout-prefix/Manifest b/sys-apps/baselayout-prefix/Manifest new file mode 100644 index 000000000000..44b3a225d84c --- /dev/null +++ b/sys-apps/baselayout-prefix/Manifest @@ -0,0 +1,4 @@ +DIST baselayout-2.2.tar.bz2 40744 SHA256 11d4a223b06da545c3e59e07c9195570f334b5b1be05d995df0ebc8ea2203e98 SHA512 a5199c42e835d9f2683cc94f3c4c47ecdc392316c24e0932845736e2e90479b0c5c8ad72ead8e0537f097405b7d7548d00b87b7ff8c9e3651486e3c5c0970b36 WHIRLPOOL 60cc4f7f76c5a45c15303e526decffb3bad2b50ac659b1dd072d2ed4b0eb0b31929a1a733ddb03a31ee5882b889a4efb87206f63ffaa2b11e26d36afd0933a95 +DIST baselayout-prefix-1.12.14.1709.tar.bz2 461562 SHA256 ca1eec028b7ec72f1e3196f71eafd564062d9b677569698fe41ac5f817c9379e SHA512 600cf1a90771deb0f1d2be73dc2b6fbd0708c8b19e4b300a95cb5e5431be05904864cbcf8cd87dd3aefa5827fc8c3324d5249496a37a84ea2f676a25447f5b9e WHIRLPOOL 872f02fa0e4920c1c6fadbfeeee19d52ab1a2ccce32b0eb52e245dc71767cf31110c063946163bc171d6085a50867f74936c397fd6fdf8e9e30b146b06dc8926 +DIST baselayout-prefix-1.12.5.1701.tar.bz2 412843 SHA256 452ee800e37c65d9c44e77130f0ea9f082e05df2f9a673523fe2e03170fa3099 SHA512 87d73943a9210c2ab613a60bed1197fa92fe536bde870f97e28aaa6cbc432d2c94b507f9a78011c2b7e92a09612267c3d23a540bdb5677a836d6dc845af0858b WHIRLPOOL 4a678f1b150a48c85507a09dce57572b98eb7f2c4e22bb57294cc653e7ac896281ed255f39ecc6c45e3a1ddd385ffded1eaec9b3b0412b62320f0e997e8a84ec +DIST einfo-1.0.6.tar.xz 222368 SHA256 036108a6160c0a5468483e94effc2665d2028b6c64ea22ec607117cbaec564d6 SHA512 d9fabb11621b3ab49aaa0ad318ee6f511ee09d2a4de1cce7da1c3e0b1f8cb9a3b2f5d446f7e6d7b662a21955178ed89cc4c212382aac66d40a774f42f9a53738 WHIRLPOOL ec7bd03ac6f10205f8405fa0c4907af748a95727bb0a3fa20024a5fd215cb19e9eeebabcdba4be4710962d170bd96c47e03258e0f5b03e98449c90a32d0dedf0 diff --git a/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14-r1.ebuild b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14-r1.ebuild new file mode 100644 index 000000000000..2dc3eefcaeac --- /dev/null +++ b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14-r1.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit eutils toolchain-funcs multilib prefix flag-o-matic user + +# last part in e.g. 1.12.14.1704 +PVER=1709 + +DESCRIPTION="Baselayout for Gentoo Prefix installs" +HOMEPAGE="http://prefix.gentoo.org/" +SRC_URI="http://dev.gentoo.org/~grobian/distfiles/${P}.${PVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +IUSE="prefix-chaining" +DEPEND=">=sys-apps/portage-2.2.01" +RDEPEND=">=sys-libs/readline-5.0-r1 + >=app-shells/bash-3.1_p7 + >=sys-apps/coreutils-5.2.1 + kernel_Darwin? ( sys-process/pidof-bsd ) + kernel_FreeBSD? ( sys-process/pidof-bsd )" + +S=${WORKDIR}/${P}.${PVER} + +src_prepare() { + if use prefix-chaining; then + epatch "${S}"/baselayout-${PV}-prefix-chaining.patch + + # need to set the PKG_CONFIG_PATH globally for this prefix, when + # chaining is enabled, since pkg-config may not be installed locally, + # but still .pc files should be found for all RDEPENDable prefixes in + # the chain. + echo "PKG_CONFIG_PATH=\"${EPREFIX}/usr/lib/pkgconfig:${EPREFIX}/usr/share/pkgconfig\"" >> "${S}"/etc/env.d/00basic + fi + + cd "${S}" + eprefixify \ + etc/env.d/00basic \ + etc/profile + + # add the host OS MANPATH + echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file" + + # avoid a re-automake run + touch -r gnulib/configure.ac gnulib/Makefile.in gnulib/aclocal.m4 || die +} + +src_configure() { + cd gnulib || die + default +} + +src_compile() { + # build gnulib first + pushd gnulib > /dev/null || die + emake || die "Cannot build gnulib" + popd > /dev/null + + # use gnulib (buildsystem doesn't respect cppflags) + append-cflags -I../gnulib -I../gnulib/gllib + append-ldflags -L../gnulib/gllib + append-libs gnu + + local libdir="lib" + + [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") +} + +src_install() { + local dir libdirs libdirs_env rcscripts_dir + + dodir /etc + dodir /etc/env.d + dodir /etc/init.d # .keep file might mess up init.d stuff + + libdirs=$(get_all_libdirs) + : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... + + rcscripts_dir="/lib/rcscripts" + + for dir in ${libdirs}; do + libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir} + [[ ${dir} == "lib" && ${SYMLINK_LIB} == "yes" ]] && continue + dodir /"${dir}" + dodir /usr/"${dir}" + dodir /usr/local/"${dir}" + done + + # Ugly compatibility with stupid ebuilds and old profiles symlinks + if [[ ${SYMLINK_LIB} == "yes" ]] ; then + rm -r "${ED}"/{lib,usr/lib,usr/local/lib} &> /dev/null + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib + fi + + # FHS compatibility symlinks stuff + dosym /var/tmp /usr/tmp + + # rc-scripts version for testing of features that *should* be present + echo "Gentoo Prefix Base System version ${PV}" > ${ED}/etc/gentoo-release + + # get the basic stuff in there + doenvd "${S}"/etc/env.d/* || die "doenvd" + + # copy the profile + cp "${S}"/etc/profile "${ED}"/etc/profile + + # Setup files in /sbin + # + cd "${S}"/sbin + into / + # These moved from /etc/init.d/ to /sbin to help newb systems + # from breaking + + # + # Install baselayout utilities + # + local libdir="lib" + [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") +} + +pkg_postinst() { + if [[ ${EUID} == 0 ]] ; then + # setup portage user, such that things that require root privs + # don't fail, bug #321623 + enewgroup portage 250 + enewuser portage 250 -1 "${EPREFIX}"/var/tmp/portage portage + fi + + # This is also written in src_install (so it's in CONTENTS), but + # write it here so that the new version is immediately in the file + # (without waiting for the user to do etc-update) + rm -f "${EROOT}"/etc/._cfg????_gentoo-release + echo "Gentoo Prefix Base System version ${PV}" > "${EROOT}"/etc/gentoo-release + + echo + einfo "Please be sure to update all pending '._cfg*' files in /etc," + einfo "else things might break! You can use 'etc-update'" + einfo "to accomplish this:" + einfo + einfo " # etc-update" + echo +} diff --git a/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild new file mode 100644 index 000000000000..ac709afaae54 --- /dev/null +++ b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit eutils toolchain-funcs multilib prefix flag-o-matic user + +# last part in e.g. 1.12.14.1704 +PVER=1709 + +DESCRIPTION="Baselayout for Gentoo Prefix installs" +HOMEPAGE="http://prefix.gentoo.org/" +SRC_URI="http://dev.gentoo.org/~grobian/distfiles/${P}.${PVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +IUSE="prefix-chaining" +DEPEND=">=sys-apps/portage-2.2.01" +RDEPEND=">=sys-libs/readline-5.0-r1 + >=app-shells/bash-3.1_p7 + >=sys-apps/coreutils-5.2.1 + kernel_Darwin? ( sys-process/pidof-bsd ) + kernel_FreeBSD? ( sys-process/pidof-bsd )" + +S=${WORKDIR}/${P}.${PVER} + +src_prepare() { + if use prefix-chaining; then + epatch "${S}"/baselayout-${PV}-prefix-chaining.patch + + # need to set the PKG_CONFIG_PATH globally for this prefix, when + # chaining is enabled, since pkg-config may not be installed locally, + # but still .pc files should be found for all RDEPENDable prefixes in + # the chain. + echo "PKG_CONFIG_PATH=\"${EPREFIX}/usr/lib/pkgconfig:${EPREFIX}/usr/share/pkgconfig\"" >> "${S}"/etc/env.d/00basic + fi + + # The consoletype application in this form will only work on Linux + [[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/baselayout-1.12.5-prefix-no-consoletype.patch + + cd "${S}" + eprefixify \ + etc/env.d/00basic \ + etc/profile \ + sbin/functions.sh \ + sbin/runscript.sh \ + src/runscript.c \ + sbin/depscan.sh \ + sbin/rc-daemon.sh \ + sbin/rc-services.sh + # add the host OS MANPATH + echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file" + + # avoid a re-automake run + touch -r gnulib/configure.ac gnulib/Makefile.in gnulib/aclocal.m4 || die +} + +src_configure() { + cd gnulib || die + default +} + +src_compile() { + # build gnulib first + pushd gnulib > /dev/null || die + emake || die "Cannot build gnulib" + popd > /dev/null + + # use gnulib (buildsystem doesn't respect cppflags) + append-cflags -I../gnulib -I../gnulib/gllib + append-ldflags -L../gnulib/gllib + append-libs gnu + + local libdir="lib" + + [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") + + # CFLAGS in LD for #370695 + make -C "${S}"/src \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" \ + CFLAGS="${CFLAGS}" \ + LIBDIR="${libdir}" || die +} + +src_install() { + local dir libdirs libdirs_env rcscripts_dir + + dodir /etc + dodir /etc/env.d + dodir /etc/init.d # .keep file might mess up init.d stuff + + libdirs=$(get_all_libdirs) + : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... + + rcscripts_dir="/lib/rcscripts" + + for dir in ${libdirs}; do + libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir} + [[ ${dir} == "lib" && ${SYMLINK_LIB} == "yes" ]] && continue + dodir /"${dir}" + dodir /usr/"${dir}" + dodir /usr/local/"${dir}" + done + + # Ugly compatibility with stupid ebuilds and old profiles symlinks + if [[ ${SYMLINK_LIB} == "yes" ]] ; then + rm -r "${ED}"/{lib,usr/lib,usr/local/lib} &> /dev/null + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib + fi + + # FHS compatibility symlinks stuff + dosym /var/tmp /usr/tmp + + # rc-scripts version for testing of features that *should* be present + echo "Gentoo Prefix Base System version ${PV}" > ${ED}/etc/gentoo-release + + # get the basic stuff in there + doenvd "${S}"/etc/env.d/* || die "doenvd" + + # copy the profile + cp "${S}"/etc/profile "${ED}"/etc/profile + + # Setup files in /sbin + # + cd "${S}"/sbin + into / + # These moved from /etc/init.d/ to /sbin to help newb systems + # from breaking + dosbin runscript.sh functions.sh + + # Compat symlinks between /etc/init.d and /sbin + # (some stuff have hardcoded paths) + dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh + dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh + dosym ../../sbin/functions.sh /etc/init.d/functions.sh + + cd "${S}"/sbin + into / + dosbin depscan.sh + insinto ${rcscripts_dir}/awk + doins "${S}"/src/awk/functions.awk + + # + # Install baselayout utilities + # + local libdir="lib" + [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") + + cd "${S}"/src + make DESTDIR="${ED}" LIBDIR="${libdir}" install || die + + insinto ${rcscripts_dir}/sh + doins "${S}"/sbin/rc-* +} + +pkg_postinst() { + if [[ ${EUID} == 0 ]] ; then + # setup portage user, such that things that require root privs + # don't fail, bug #321623 + enewgroup portage 250 + enewuser portage 250 -1 "${EPREFIX}"/var/tmp/portage portage + fi + + # This is also written in src_install (so it's in CONTENTS), but + # write it here so that the new version is immediately in the file + # (without waiting for the user to do etc-update) + rm -f "${EROOT}"/etc/._cfg????_gentoo-release + echo "Gentoo Prefix Base System version ${PV}" > "${EROOT}"/etc/gentoo-release + + echo + einfo "Please be sure to update all pending '._cfg*' files in /etc," + einfo "else things might break! You can use 'etc-update'" + einfo "to accomplish this:" + einfo + einfo " # etc-update" + echo +} diff --git a/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r11.ebuild b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r11.ebuild new file mode 100644 index 000000000000..165cf8908786 --- /dev/null +++ b/sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r11.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit eutils toolchain-funcs multilib prefix flag-o-matic user + +# baselayout-prefix-1.12.5.1694.tar.bz2 +PVER=1701 + +DESCRIPTION="Baselayout for Gentoo Prefix installs" +HOMEPAGE="http://prefix.gentoo.org/" +SRC_URI="http://dev.gentoo.org/~grobian/distfiles/${P}.${PVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +IUSE="prefix-chaining" +DEPEND=">=sys-apps/portage-2.2.01" +RDEPEND=">=sys-libs/readline-5.0-r1 + >=app-shells/bash-3.1_p7 + >=sys-apps/coreutils-5.2.1 + kernel_Darwin? ( sys-process/pidof-bsd ) + kernel_FreeBSD? ( sys-process/pidof-bsd )" + +S=${WORKDIR}/${P}.${PVER} + +src_prepare() { + if use prefix-chaining; then + epatch "${S}"/baselayout-1.12.5-prefix-chaining.patch + + # need to set the PKG_CONFIG_PATH globally for this prefix, when + # chaining is enabled, since pkg-config may not be installed locally, + # but still .pc files should be found for all RDEPENDable prefixes in + # the chain. + echo "PKG_CONFIG_PATH=\"${EPREFIX}/usr/lib/pkgconfig:${EPREFIX}/usr/share/pkgconfig\"" >> "${S}"/etc/env.d/00basic + fi + + # The consoletype application in this form will only work on Linux + [[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/${P/-prefix/}-prefix-no-consoletype.patch + + cd "${S}" + eprefixify \ + etc/env.d/00basic \ + etc/profile \ + sbin/env-update.sh \ + sbin/functions.sh \ + sbin/runscript.sh \ + src/runscript.c \ + sbin/depscan.sh \ + sbin/rc-daemon.sh \ + sbin/rc-services.sh + # add the host OS MANPATH + echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file" +} + +src_configure() { + cd gnulib || die + default +} + +src_compile() { + # build gnulib first + pushd gnulib > /dev/null || die + emake || die "Cannot build gnulib" + popd > /dev/null + + # use gnulib + append-flags -I../gnulib -I../gnulib/gllib + append-ldflags -L../gnulib/gllib + append-libs gnu + + local libdir="lib" + + [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") + + make -C "${S}"/src \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC) ${LDFLAGS}" \ + CFLAGS="${CFLAGS}" \ + LIBDIR="${libdir}" || die +} + +src_install() { + local dir libdirs libdirs_env rcscripts_dir + + dodir /etc + dodir /etc/env.d + dodir /etc/init.d # .keep file might mess up init.d stuff + + libdirs=$(get_all_libdirs) + : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... + + rcscripts_dir="/lib/rcscripts" + + for dir in ${libdirs}; do + libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir} + [[ ${dir} == "lib" && ${SYMLINK_LIB} == "yes" ]] && continue + dodir /"${dir}" + dodir /usr/"${dir}" + dodir /usr/local/"${dir}" + done + + # Ugly compatibility with stupid ebuilds and old profiles symlinks + if [[ ${SYMLINK_LIB} == "yes" ]] ; then + rm -r "${ED}"/{lib,usr/lib,usr/local/lib} &> /dev/null + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib + dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib + fi + + # FHS compatibility symlinks stuff + dosym /var/tmp /usr/tmp + + # rc-scripts version for testing of features that *should* be present + echo "Gentoo Prefix Base System version ${PV}" > ${ED}/etc/gentoo-release + + # get the basic stuff in there + doenvd "${S}"/etc/env.d/* || die "doenvd" + + # copy the profile + cp "${S}"/etc/profile "${ED}"/etc/profile + + # Setup files in /sbin + # + cd "${S}"/sbin + into / + # These moved from /etc/init.d/ to /sbin to help newb systems + # from breaking + dosbin runscript.sh functions.sh + + # Compat symlinks between /etc/init.d and /sbin + # (some stuff have hardcoded paths) + dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh + dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh + dosym ../../sbin/functions.sh /etc/init.d/functions.sh + + cd "${S}"/sbin + into / + dosbin depscan.sh + dosbin env-update.sh + insinto ${rcscripts_dir}/awk + doins "${S}"/src/awk/functions.awk + + # + # Install baselayout utilities + # + local libdir="lib" + [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") + + cd "${S}"/src + make DESTDIR="${ED}" LIBDIR="${libdir}" install || die + + insinto ${rcscripts_dir}/sh + doins "${S}"/sbin/rc-* +} + +pkg_postinst() { + if [[ ${EUID} == 0 ]] ; then + # setup portage user, such that things that require root privs + # don't fail, bug #321623 + enewgroup portage 250 + enewuser portage 250 -1 "${EPREFIX}"/var/tmp/portage portage + fi + + # This is also written in src_install (so it's in CONTENTS), but + # write it here so that the new version is immediately in the file + # (without waiting for the user to do etc-update) + rm -f "${EROOT}"/etc/._cfg????_gentoo-release + echo "Gentoo Prefix Base System version ${PV}" > "${EROOT}"/etc/gentoo-release + + echo + einfo "Please be sure to update all pending '._cfg*' files in /etc," + einfo "else things might break! You can use 'etc-update'" + einfo "to accomplish this:" + einfo + einfo " # etc-update" + echo +} diff --git a/sys-apps/baselayout-prefix/baselayout-prefix-2.2-r3.ebuild b/sys-apps/baselayout-prefix/baselayout-prefix-2.2-r3.ebuild new file mode 100644 index 000000000000..bd96d0c42b87 --- /dev/null +++ b/sys-apps/baselayout-prefix/baselayout-prefix-2.2-r3.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit eutils multilib libtool + +MY_P=${P/-prefix/} # just use "upstream" sources +EINFO=einfo-1.0.6 +DESCRIPTION="Minimal baselayout and e-functions for Gentoo Prefix installs" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="mirror://gentoo/${MY_P}.tar.bz2 + http://dev.gentoo.org/~vapier/dist/${MY_P}.tar.bz2 + http://dev.gentoo.org/~redlizard/distfiles/${EINFO}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm ~arm-linux ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +IUSE="build kernel_linux" + +S=${WORKDIR}/${EINFO} + +pkg_preinst() { + # This is written in src_install (so it's in CONTENTS), but punt all + # pending updates to avoid user having to do etc-update (and make the + # pkg_postinst logic simpler). + rm -f "${EROOT}"/etc/._cfg????_gentoo-release +} + +src_prepare() { + # exotic platforms still aren't fixed in upstream libtool + elibtoolize +} + +src_configure() { + econf --libexecdir="${EPREFIX}/usr/lib/einfo" +} + +src_install() { + emake DESTDIR="${D}" install || die + + # make functions.sh available in /etc/init.d + # Note: we cannot replace the symlink with a file here, or Portage will + # config-protect it, and etc-update can't handle symlink to file updates + dodir etc/init.d + dosym ../../usr/lib/einfo/sh/functions.sh /etc/init.d/functions.sh + + pushd "${WORKDIR}"/${MY_P} > /dev/null || die + dodir etc + sed \ + -e "/PATH=/!s:/\(etc\|usr/bin\|bin\):\"${EPREFIX}\"/\1:g" \ + -e "/PATH=/s|\([:\"]\)/|\1${EPREFIX}/|g" \ + -e "/PATH=.*\/sbin/s|\"$|:/usr/sbin:/sbin\"|" \ + -e "/PATH=.*\/bin/s|\"$|:/usr/bin:/bin\"|" \ + etc/profile > "${ED}"/etc/profile || die + dodir etc/env.d + sed \ + -e "s:/\(etc/env.d\|opt\|usr\):${EPREFIX}/\1:g" \ + -e "/^PATH=/s|\"$|:${EPREFIX}/usr/sbin:${EPREFIX}/sbin\"|" \ + etc/env.d/00basic > "${ED}"/etc/env.d/00basic || die + dodoc ChangeLog.svn + popd > /dev/null + + # add the host OS MANPATH + if [[ -d "${ROOT}"/usr/share/man ]] ; then + echo 'MANPATH="/usr/share/man"' > "${ED}"/etc/env.d/99basic || die + fi + + # rc-scripts version for testing of features that *should* be present + echo "Gentoo Prefix Base System release ${PV}" > "${ED}"/etc/gentoo-release + + # FHS compatibility symlinks stuff + dosym /var/tmp /usr/tmp + + # add a dummy to avoid Portage shebang errors + dodir sbin + cat > "${ED}"/sbin/runscript <<- EOF + #!/bin/sh + + echo "runscript not supported by Gentoo Prefix Base System release ${PV}" 1>&2 + exit 1 + EOF + chmod 755 "${ED}"/sbin/runscript || die +} + +pkg_postinst() { + # Take care of the etc-update for the user + if [ -e "${EROOT}"/etc/._cfg0000_gentoo-release ] ; then + mv "${EROOT}"/etc/._cfg0000_gentoo-release "${EROOT}"/etc/gentoo-release + fi + + # baselayout leaves behind a lot of .keep files, so let's clean them up + find "${EROOT}"/lib/rcscripts/ -name .keep -exec rm -f {} + 2>/dev/null + find "${EROOT}"/lib/rcscripts/ -depth -type d -exec rmdir {} + 2>/dev/null +} diff --git a/sys-apps/baselayout-prefix/baselayout-prefix-2.2-r4.ebuild b/sys-apps/baselayout-prefix/baselayout-prefix-2.2-r4.ebuild new file mode 100644 index 000000000000..cf4a23472751 --- /dev/null +++ b/sys-apps/baselayout-prefix/baselayout-prefix-2.2-r4.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +inherit eutils multilib libtool + +MY_P=${P/-prefix/} # just use "upstream" sources +DESCRIPTION="Minimal baselayout for Gentoo Prefix installs" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="mirror://gentoo/${MY_P}.tar.bz2 + http://dev.gentoo.org/~vapier/dist/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm ~arm-linux ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" + +RDEPEND="sys-apps/gentoo-functions" +DEPEND="${RDEPEND}" + +pkg_preinst() { + # This is written in src_install (so it's in CONTENTS), but punt all + # pending updates to avoid user having to do etc-update (and make the + # pkg_postinst logic simpler). + rm -f "${EROOT}"/etc/._cfg????_gentoo-release +} + +src_install() { + # make functions.sh available in /etc/init.d (from gentoo-functions) + # Note: we cannot replace the symlink with a file here, or Portage will + # config-protect it, and etc-update can't handle symlink to file updates + dodir etc/init.d + dosym ../../lib/gentoo/functions.sh /etc/init.d/functions.sh + + pushd "${WORKDIR}"/${MY_P} > /dev/null || die + dodir etc + sed \ + -e "/PATH=/!s:/\(etc\|usr/bin\|bin\):\"${EPREFIX}\"/\1:g" \ + -e "/PATH=/s|\([:\"]\)/|\1${EPREFIX}/|g" \ + -e "/PATH=.*\/sbin/s|\"$|:/usr/sbin:/sbin\"|" \ + -e "/PATH=.*\/bin/s|\"$|:/usr/bin:/bin\"|" \ + etc/profile > "${ED}"/etc/profile || die + dodir etc/env.d + sed \ + -e "s:/\(etc/env.d\|opt\|usr\):${EPREFIX}/\1:g" \ + -e "/^PATH=/s|\"$|:${EPREFIX}/usr/sbin:${EPREFIX}/sbin\"|" \ + etc/env.d/00basic > "${ED}"/etc/env.d/00basic || die + dodoc ChangeLog.svn + popd > /dev/null + + # add the host OS MANPATH + if [[ -d "${ROOT}"/usr/share/man ]] ; then + echo 'MANPATH="/usr/share/man"' > "${ED}"/etc/env.d/99basic || die + fi + + # rc-scripts version for testing of features that *should* be present + echo "Gentoo Prefix Base System release ${PV}" > "${ED}"/etc/gentoo-release + + # FHS compatibility symlinks stuff + dosym /var/tmp /usr/tmp + + # add a dummy to avoid Portage shebang errors + dodir sbin + cat > "${ED}"/sbin/runscript <<- EOF + #!/usr/bin/env sh + source "${EPREFIX}/lib/gentoo/functions.sh" + + eerror "runscript not supported by Gentoo Prefix Base System release ${PV}" 1>&2 + exit 1 + EOF + chmod 755 "${ED}"/sbin/runscript || die +} + +pkg_postinst() { + # Take care of the etc-update for the user + if [ -e "${EROOT}"/etc/._cfg0000_gentoo-release ] ; then + mv "${EROOT}"/etc/._cfg0000_gentoo-release "${EROOT}"/etc/gentoo-release + fi + + # baselayout leaves behind a lot of .keep files, so let's clean them up + find "${EROOT}"/lib/rcscripts/ -name .keep -exec rm -f {} + 2>/dev/null + find "${EROOT}"/lib/rcscripts/ -depth -type d -exec rmdir {} + 2>/dev/null +} diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-aix.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-aix.patch new file mode 100644 index 000000000000..ebc162345a52 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-aix.patch @@ -0,0 +1,110 @@ +W00T, AIX does have /proc filesystem - even with slightly different layout. + +--- src/start-stop-daemon.c ++++ src/start-stop-daemon.c +@@ -56,6 +56,8 @@ + # define OSNetBSD + #elif defined(__APPLE__) + # define OSDarwin ++#elif defined(_AIX) ++# define OSaix + #else + # error Unknown architecture - cannot build start-stop-daemon + #endif +@@ -85,6 +87,10 @@ + #include + #endif + ++#if defined(OSaix) ++#include ++#endif ++ + #include + #include + #include +@@ -178,7 +184,7 @@ + static void do_pidfile(const char *name); + static void do_stop(int signal_nr, int quietmode, + int *n_killed, int *n_notkilled, int retry_nr); +-#if defined(OSLinux) || defined(OShpux) ++#if defined(OSLinux) || defined(OShpux) || defined(OSaix) + static int pid_is_exec(pid_t pid, const struct stat *esb); + #endif + +@@ -755,7 +761,7 @@ + static void + check(pid_t pid) + { +-#if defined(OSLinux) || defined(OShpux) ++#if defined(OSLinux) || defined(OShpux) || defined(OSaix) + if (execname && !pid_is_exec(pid, &exec_stat)) + return; + #elif defined(OSHURD) || defined(OSFreeBSD) || defined(OSNetBSD) || defined(OSDarwin) +@@ -791,7 +797,7 @@ + /* WTA: this needs to be an autoconf check for /proc/pid existance. + */ + +-#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) ++#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) || defined(OSaix) + static void + do_procinit(void) + { +@@ -1059,6 +1065,58 @@ + } + #endif /* OShpux */ + ++#if defined(OSaix) ++/* max possible pid (signed long) in theory: ++ * 32bit: 2147483647 (10 digits) ++ * 64bit: 9223372036854775807 (19 digits) ++ */ ++static int ++pid_is_exec(pid_t pid, const struct stat *esb) ++{ ++ struct stat sb; ++ char buf[40]; ++ ++ sprintf(buf, "/proc/%ld/object/a.out", pid); ++ if (stat(buf, &sb) != 0) ++ return 0; ++ return (sb.st_dev == esb->st_dev && sb.st_ino == esb->st_ino); ++} ++ ++ ++static int ++pid_is_user(pid_t pid, uid_t uid) ++{ ++ struct stat sb; ++ char buf[32]; ++ ++ sprintf(buf, "/proc/%ld", pid); ++ if (stat(buf, &sb) != 0) ++ return 0; ++ return (sb.st_uid == uid); ++} ++ ++ ++static int ++pid_is_cmd(pid_t pid, const char *name) ++{ ++ char buf[40]; ++ FILE *f; ++ struct psinfo psi; ++ int r; ++ ++ sprintf(buf, "/proc/%ld/psinfo", pid); ++ f = fopen(buf, "r"); ++ if (!f) ++ return 0; ++ r = fread(&psi, sizeof(psi), 1, f); ++ fclose(f); ++ if (r != 1) { ++ return 0; ++ } ++ return strcmp(name, psi.pr_fname) == 0; ++} ++#endif /* OSaix */ ++ + + static void + do_findprocs(void) diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-darwin-kvm.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-darwin-kvm.patch new file mode 100644 index 000000000000..08668edff73e --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-darwin-kvm.patch @@ -0,0 +1,22 @@ +http://bugs.gentoo.org/show_bug.cgi?id=360855 + +by JTRiley + +--- baselayout-1.12.5/src/start-stop-daemon.c ++++ baselayout-1.12.5/src/start-stop-daemon.c +@@ -73,10 +73,14 @@ + #include + + #include +-#include + #include + #endif + ++#if defined(OSOpenBSD) || defined(OSFreeBSD) || defined(OSNetBSD) ++#include ++#endif ++ ++ + #if defined(OShpux) + #include + #include diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-gnulib.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-gnulib.patch new file mode 100644 index 000000000000..dfb64c633206 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-gnulib.patch @@ -0,0 +1,78 @@ +Need to add libraries after object files, or solaris +linker might not see library's symbols to be needed +when added to LDFLAGS. + +Take strndup from gnulib too, this decl breaks on Linux (#361417). + +VERSION is defined in gnulib's config.h. + +--- src/Makefile.orig 2011-03-30 13:15:56 +0200 ++++ src/Makefile 2011-03-30 13:16:52 +0200 +@@ -30,10 +30,10 @@ + $(CC) $(CFLAGS) -c -o $@ $^ + + runscript: runscript.o rs-misc.o +- $(LD) $(LDFLAGS) -o $@ $^ $(LDFLAGS_RS) ++ $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS_RS) + + start-stop-daemon: start-stop-daemon.c +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDFLAGS_SSD) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(LDFLAGS_SSD) + + install: $(TARGET) + install -m 0755 -d $(DESTDIR)/bin +--- src/core/misc.c.orig 2011-03-31 17:46:46 +0200 ++++ src/core/misc.c 2011-03-31 17:47:03 +0200 +@@ -86,31 +86,6 @@ + return new_path; + } + +-char *strndup(const char *str, size_t size) { +- char *new_str = NULL; +- size_t len; +- +- if (NULL == str) { +- DBG_MSG("Invalid argument passed!\n"); +- errno = EINVAL; +- return NULL; +- } +- +- /* Check lenght of str without breaching the size limit */ +- for (len = 0;(len < size) && ('\0' != str[len]);len++); +- +- new_str = malloc(len + 1); +- if (NULL == new_str) { +- DBG_MSG("Failed to allocate buffer!\n"); +- return NULL; +- } +- +- /* Make sure our string is NULL terminated */ +- new_str[len] = '\0'; +- +- return (char *)memcpy(new_str, str, len); +-} +- + char *gbasename(const char *path) { + char *new_path = NULL; + +--- src/core/misc.h.orig 2011-03-31 17:46:43 +0200 ++++ src/core/misc.h 2011-03-31 18:06:58 +0200 +@@ -246,8 +246,6 @@ + * with the malloc() call. */ + char *strcatpaths(const char *pathname1, const char *pathname2); + +-/* Compat functions for GNU extensions */ +-char *strndup(const char *str, size_t size); + /* Same as basename(3), but do not modify path */ + char *gbasename(const char *path); + +--- src/start-stop-daemon.c.orig 2011-03-31 18:11:02 +0200 ++++ src/start-stop-daemon.c 2011-03-31 18:11:03 +0200 +@@ -31,6 +31,7 @@ + * + */ + ++#undef VERSION + #define VERSION "1.13.11+gentoo" + + #define NONRETURNPRINTFFORMAT(x, y) \ diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-bash.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-bash.patch new file mode 100644 index 000000000000..095ce451c048 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-bash.patch @@ -0,0 +1,18 @@ +diff -ru baselayout-1.12.5.orig/sbin/env-update.sh baselayout-1.12.5/sbin/env-update.sh +--- baselayout-1.12.5.orig/sbin/env-update.sh 2010-08-17 12:56:00.968746729 +0200 ++++ baselayout-1.12.5/sbin/env-update.sh 2010-08-17 12:56:47.185326760 +0200 +@@ -1,4 +1,4 @@ +-#!@GENTOO_PORTAGE_EPREFIX@/bin/bash ++#! /usr/bin/env bash + # Copyright 1999-2004 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + +diff -ru baselayout-1.12.5.orig/sbin/runscript.sh baselayout-1.12.5/sbin/runscript.sh +--- baselayout-1.12.5.orig/sbin/runscript.sh 2010-08-17 12:56:00.968746729 +0200 ++++ baselayout-1.12.5/sbin/runscript.sh 2010-08-17 12:56:58.362098849 +0200 +@@ -1,4 +1,4 @@ +-#!@GENTOO_PORTAGE_EPREFIX@/bin/bash ++#! /usr/bin/env bash + # Copyright 1999-2006 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-eprefix.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-eprefix.patch new file mode 100644 index 000000000000..28d8039be1b7 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-eprefix.patch @@ -0,0 +1,25 @@ +diff -ru baselayout-1.12.5.orig/etc/profile baselayout-1.12.5/etc/profile +--- baselayout-1.12.5.orig/etc/profile 2009-11-27 15:27:58 +0100 ++++ baselayout-1.12.5/etc/profile 2009-11-27 15:34:14 +0100 +@@ -137,6 +137,21 @@ + done + fi + ++# ++# final finally set EPREFIX to our prefix if we don't have a local portage. this ++# was previously done by the startprefix script, but we want to be able to start ++# this environment by simply sourcing etc/profile with the correct shell. ++# ++if [[ -z "${EPREFIX}" ]]; then ++ if [[ ! -x "@GENTOO_PORTAGE_EPREFIX@"/usr/bin/emerge ]]; then ++ export EPREFIX="@GENTOO_PORTAGE_EPREFIX@" ++ fi ++elif [[ "${EPREFIX}" != "@GENTOO_PORTAGE_EPREFIX@" ]]; then ++ echo "WARNING: EPREFIX is set from environment to \"${EPREFIX}\"." ++ echo " You are entering the prefix \"@GENTOO_PORTAGE_EPREFIX@\"." ++ echo " Having EPREFIX set this way will probably render this environment unusable." ++fi ++ + unset _ro_root + unset _ro_deps + unset _ro_chained_path_vars diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-pkgconfig.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-pkgconfig.patch new file mode 100644 index 000000000000..b0d7e79e26e1 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-pkgconfig.patch @@ -0,0 +1,16 @@ +diff -ru baselayout-1.12.5.orig/etc/profile baselayout-1.12.5/etc/profile +--- baselayout-1.12.5.orig/etc/profile 2009-07-14 09:48:59 +0200 ++++ baselayout-1.12.5/etc/profile 2009-07-14 09:50:48 +0200 +@@ -30,8 +30,11 @@ + if [[ -n "${_ro_root}" ]]; then + _ro_chained_path_vars="PATH MANPATH" + +- [[ ${_ro_deps} == *RDEPEND* ]] && ++ if [[ ${_ro_deps} == *RDEPEND* ]]; then + _ro_chained_path_vars="${_ro_chained_path_vars} PKG_CONFIG_PATH" ++ else ++ unset PKG_CONFIG_PATH ++ fi + + for var in ${_ro_chained_path_vars}; do + eval "_ro_backupenv_paths_${var}=\${${var}}" diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-prompt.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-prompt.patch new file mode 100644 index 000000000000..eb7a4ab1ff58 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-prompt.patch @@ -0,0 +1,58 @@ +diff -ru baselayout-1.12.5.orig/etc/profile baselayout-1.12.5/etc/profile +--- baselayout-1.12.5.orig/etc/profile 2009-12-09 13:48:07 +0100 ++++ baselayout-1.12.5/etc/profile 2009-12-09 13:54:52 +0100 +@@ -110,9 +110,34 @@ + # it in the user's dot-files), but it shouldn't make any + # difference. + . "@GENTOO_PORTAGE_EPREFIX@"/etc/bash/bashrc ++ elif [ -n "${_ro_root}" ]; then ++ # We're in a prefix chain, but have no local bash. we rely on bash ++ # beeing there _somewhere_ in the chain, so we do not need to set ++ # PS1 explicitly. ++ if [ -z "${PS1}" ]; then ++ # try harder to find something in the parent prefix of the chain. ++ # dont bother to search multiple chain members up to the top. ++ if [ -f "${_ro_root}/etc/bash/bashrc" ]; then ++ . "${_ro_root}/etc/bash/bashrc" ++ fi ++ fi + else + PS1='\u@\h \w \$ ' + fi ++ ++ # Set the last dirpart of the current prefix somewhere ++ # in the prompt, so one immediately knows where he/she is. ++ if [ ${_ro_recursion_level} == 0 ]; then ++ # we're in the last prefix of the chain here. ++ _ro_name="@GENTOO_PORTAGE_EPREFIX@" ++ _ro_name="${_ro_name##*/}" ++ ++ # use color only if the prompt already contains color escapes ++ case "${PS1}" in ++ *'\[\033['*'m\]'*) PS1="\[\033[01;36m\][${_ro_name}]\[\033[00m\] ${PS1}" ;; ++ *) PS1="[${_ro_name}] ${PS1}" ;; ++ esac ++ fi + else + # Setup a bland default prompt. Since this prompt should be useable + # on color and non-color terminals, as well as shells that don't +@@ -120,6 +145,10 @@ + PS1="`whoami`@`uname -n | cut -f1 -d.` \$ " + fi + ++# when chaining prefixes, we want the prompt to be passed to the child too, ++# so we need to export it. ++export PS1 ++ + for sh in "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.d/*.sh ; do + if [ -r "$sh" ] ; then + . "$sh" +@@ -146,7 +175,7 @@ + if [[ ! -x "@GENTOO_PORTAGE_EPREFIX@"/usr/bin/emerge ]]; then + export EPREFIX="@GENTOO_PORTAGE_EPREFIX@" + fi +-elif [[ "${EPREFIX}" != "@GENTOO_PORTAGE_EPREFIX@" ]]; then ++elif [[ "${EPREFIX}" != "@GENTOO_PORTAGE_EPREFIX@" && ${_ro_recursion_level} == 0 ]]; then + echo "WARNING: EPREFIX is set from environment to \"${EPREFIX}\"." + echo " You are entering the prefix \"@GENTOO_PORTAGE_EPREFIX@\"." + echo " Having EPREFIX set this way will probably render this environment unusable." diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-recursion.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-recursion.patch new file mode 100644 index 000000000000..71883838e7bd --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining-recursion.patch @@ -0,0 +1,33 @@ +diff -ru baselayout-1.12.5.orig/etc/profile baselayout-1.12.5/etc/profile +--- baselayout-1.12.5.orig/etc/profile 2009-07-20 09:10:30 +0200 ++++ baselayout-1.12.5/etc/profile 2009-07-20 09:49:01 +0200 +@@ -17,10 +17,29 @@ + _ro_root=$(. "/tools/mduft/eprefix/preserved"/etc/make.conf && echo $READONLY_EPREFIX) + _ro_deps=${_ro_root#*:} + _ro_root=${_ro_root%:*} ++ ++# ++# prevent dooming of _ro_* variables by recursing down the ++# profile chain, by backing the up, tagged by resursion depth. ++# ++ ++[[ -z "${_ro_recursion_level}" ]] && _ro_recursion_level=0 ++((++_ro_recursion_level)) ++ ++for _ro_backup_var in _ro_root _ro_deps; do ++ eval "_ro_b${_ro_recursion_level}_${_ro_backup_var}=\${${_ro_backup_var}}" ++done ++ + if [ -n "${_ro_root}" -a -f "${_ro_root}"/etc/profile ]; then + . "${_ro_root}"/etc/profile + fi + ++for _ro_backup_var in _ro_root _ro_deps; do ++ eval "${_ro_backup_var}=\${_ro_b${_ro_recursion_level}_${_ro_backup_var}}" ++done ++ ++((--_ro_recursion_level)) ++ + # + # With prefix-chaining we want another set of variables that + # should be retained for all prefixes. for example it is ok diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining.patch new file mode 100644 index 000000000000..f17d1bb39363 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-chaining.patch @@ -0,0 +1,83 @@ +diff -ru baselayout-1.12.5.orig/etc/profile baselayout-1.12.5/etc/profile +--- baselayout-1.12.5.orig/etc/profile 2009-03-24 08:18:37.000000000 +0100 ++++ baselayout-1.12.5/etc/profile 2009-03-24 11:50:57.000000000 +0100 +@@ -4,6 +4,40 @@ + # environment for login shells. + # + ++# ++# for prefix-chaining, the very first thing to do is to load ++# the profiles for all chained instances above. ++# ++# TODO: is it safe in any case to shell source make.conf? ++# don't do any recursive expansion here. if the parent can ++# use READONLY_EPREFIX's, it has to have the same profile as ++# we have here, and thus it will source parents before ++# evaluating anything from itself. ++# ++_ro_root=$(. "@GENTOO_PORTAGE_EPREFIX@"/etc/make.conf && echo $READONLY_EPREFIX) ++_ro_deps=${_ro_root#*:} ++_ro_root=${_ro_root%:*} ++if [ -n "${_ro_root}" -a -f "${_ro_root}"/etc/profile ]; then ++ . "${_ro_root}"/etc/profile ++fi ++ ++# ++# With prefix-chaining we want another set of variables that ++# should be retained for all prefixes. for example it is ok ++# to retain PKG_CONFIG_PATH if the parent of the chain can ++# be used to resolve RDEPEND... ++# ++if [[ -n "${_ro_root}" ]]; then ++ _ro_chained_path_vars="PATH MANPATH" ++ ++ [[ ${_ro_deps} == *RDEPEND* ]] && ++ _ro_chained_path_vars="${_ro_chained_path_vars} PKG_CONFIG_PATH" ++ ++ for var in ${_ro_chained_path_vars}; do ++ eval "_ro_backupenv_paths_${var}=\${${var}}" ++ done ++fi ++ + # Load environment settings from profile.env, which is created by + # env-update from the files in /etc/env.d + if [ -e "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.env ] ; then +@@ -21,10 +55,17 @@ + # It is intentional in the following line to use || instead of -o. + # This way the evaluation can be short-circuited and calling whoami is + # avoided. ++# ++# system directories are only appended if this prefix is the last ++# one in a chain of prefixes (or the only prefix in the chain), so ++# that they don't end up in the middle of multiple different prefix ++# paths (profile is recursive now, see above!) + if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then +- PATH="@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/bin:${ROOTPATH}:/usr/sbin:/usr/bin:/sbin:/bin" ++ PATH="@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/bin:${ROOTPATH}" ++ [[ -z "${_ro_root}" ]] && PATH="$PATH:/usr/sbin:/usr/bin:/sbin:/bin" + else +- PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/bin:${PATH}:/usr/bin:/bin" ++ PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/bin:${PATH}" ++ [[ -z "${_ro_root}" ]] && PATH="$PATH:/usr/bin:/bin" + fi + export PATH + unset ROOTPATH +@@ -63,3 +104,18 @@ + fi + done + unset sh ++ ++# ++# finally chain the save variables for previous prefixes in the chain. ++# ++if [[ -n "${_ro_chained_path_vars}" ]]; then ++ for var in ${_ro_chained_path_vars}; do ++ eval "export ${var}=\${${var}}:\${_ro_backupenv_paths_${var}}" ++ eval "unset _ro_backupenv_paths_${var}" ++ done ++fi ++ ++unset _ro_root ++unset _ro_deps ++unset _ro_chained_path_vars ++ diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-no-consoletype.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-no-consoletype.patch new file mode 100644 index 000000000000..442dea3543ed --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-no-consoletype.patch @@ -0,0 +1,11 @@ +--- baselayout-1.12.5/src/Makefile 2007-10-17 21:22:08 +0400 ++++ baselayout-1.12.5/src/Makefile 2007-10-17 21:22:23 +0400 +@@ -9,7 +9,7 @@ + LIBDIR = lib + + BIN_TARGETS = +-SBIN_TARGETS = consoletype runscript start-stop-daemon ++SBIN_TARGETS = runscript start-stop-daemon + SYS_WHITELIST = env_whitelist + + TARGET = $(BIN_TARGETS) $(SBIN_TARGETS) diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-pidof.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-pidof.patch new file mode 100644 index 000000000000..0a592cc59494 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-pidof.patch @@ -0,0 +1,11 @@ +--- baselayout-1.12.5/sbin/rc-daemon.sh 2007-10-18 19:15:34 +0400 ++++ baselayout-1.12.5/sbin/rc-daemon.sh 2007-10-18 19:20:32 +0400 +@@ -186,7 +186,7 @@ + args="${args} '"${arg}"'" + done + +- eval /bin/pidof -x ${args} ++ eval @GENTOO_PORTAGE_EPREFIX@/bin/pidof -x ${args} + } + + # bool is_daemon_running(char* cmd, char* pidfile) diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-sh.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-sh.patch new file mode 100644 index 000000000000..a1f45939f2a1 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-sh.patch @@ -0,0 +1,226 @@ +diff -ur sbin/rc-daemon.sh @GENTOO_PORTAGE_EPREFIX@/lib/rcscripts/sh/rc-daemon.sh +--- baselayout-1.12.5/sbin/rc-daemon.sh 2006-09-14 14:11:34 +0400 ++++ baselayout-1.12.5/sbin/rc-daemon.sh 2007-10-18 01:20:10 +0400 +@@ -226,7 +229,7 @@ + # We don't do anyting fancy - just pass the given options + # to start-stop-daemon and return the value + rc_start_daemon() { +- eval /sbin/start-stop-daemon "${args}" ++ eval @GENTOO_PORTAGE_EPREFIX@/sbin/start-stop-daemon "${args}" + local retval="$?" + + [[ ${retval} != "0" ]] && return "${retval}" +@@ -365,7 +368,7 @@ + + # We pass --oknodo and --test directly to start-stop-daemon and return + if ${nothing}; then +- eval /sbin/start-stop-daemon "${args}" ++ eval @GENTOO_PORTAGE_EPREFIX@/sbin/start-stop-daemon "${args}" + return "$?" + fi + +diff -ur sbin/rc-services.sh @GENTOO_PORTAGE_EPREFIX@/lib/rcscripts/sh/rc-services.sh +--- baselayout-1.12.5/sbin/rc-services.sh 2006-09-14 14:11:34 +0400 ++++ baselayout-1.12.5/sbin/rc-services.sh 2007-10-18 01:25:55 +0400 +@@ -8,9 +8,9 @@ + + if [[ ${RC_GOT_DEPTREE_INFO} != "yes" ]] ; then + # Only try and update if we are root +- if [[ ${EUID} == "0" ]] && ! /sbin/depscan.sh ; then ++ if [[ ${EUID} == "0" ]] && ! @GENTOO_PORTAGE_EPREFIX@/sbin/depscan.sh ; then + echo +- eerror "Error running '/sbin/depscan.sh'!" ++ eerror "Error running '@GENTOO_PORTAGE_EPREFIX@/sbin/depscan.sh'!" + eerror "Please correct any problems above." + exit 1 + fi +@@ -19,7 +19,7 @@ + if [[ ${RC_GOT_DEPTREE_INFO} != "yes" ]] ; then + echo + eerror "Dependency info is missing! Please run" +- eerror " # /sbin/depscan.sh" ++ eerror " # @GENTOO_PORTAGE_EPREFIX@/sbin/depscan.sh" + eerror "to fix this." + exit 1 + fi +@@ -134,7 +134,7 @@ + if ! get_dep_info "${myservice}" >/dev/null ; then + eerror "Could not get dependency info for ${myservice}!" > /dev/stderr + eerror "Please run:" > /dev/stderr +- eerror " # /sbin/depscan.sh" > /dev/stderr ++ eerror " # @GENTOO_PORTAGE_EPREFIX@/sbin/depscan.sh" > /dev/stderr + eerror "to try and fix this." > /dev/stderr + return 1 + fi +@@ -212,11 +212,11 @@ + + [[ -z $1 || -z $2 ]] && return 1 + +- [[ $2 != "${BOOTLEVEL}" && -e /etc/runlevels/"${BOOTLEVEL}"/.fake ]] && \ +- fake_services="$( < /etc/runlevels/"${BOOTLEVEL}"/.fake )" ++ [[ $2 != "${BOOTLEVEL}" && -e @GENTOO_PORTAGE_EPREFIX@/etc/runlevels/"${BOOTLEVEL}"/.fake ]] && \ ++ fake_services="$( < @GENTOO_PORTAGE_EPREFIX@/etc/runlevels/"${BOOTLEVEL}"/.fake )" + +- [[ -e /etc/runlevels/"$2"/.fake ]] && \ +- fake_services="${fake_services} $( < /etc/runlevels/"$2"/.fake )" ++ [[ -e @GENTOO_PORTAGE_EPREFIX@/etc/runlevels/"$2"/.fake ]] && \ ++ fake_services="${fake_services} $( < @GENTOO_PORTAGE_EPREFIX@/etc/runlevels/"$2"/.fake )" + + for x in ${fake_services} ; do + [[ $1 == "${x##*/}" ]] && return 0 +@@ -232,7 +232,7 @@ + in_runlevel() { + [[ -z $1 || -z $2 ]] && return 1 + +- [[ -L "/etc/runlevels/$2/$1" ]] && return 0 ++ [[ -L "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/$2/$1" ]] && return 0 + + return 1 + } +@@ -385,7 +385,7 @@ + local service="$1" + [[ -z ${service} ]] && return 1 + +- if [[ ! -e "/etc/init.d/${service}" ]] ; then ++ if [[ ! -e "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" ]] ; then + mark_service_stopped "${service}" + return 1 + fi +@@ -408,8 +408,8 @@ + # if we can not start the services in parallel + # then just start it and return the exit status + ( +- profiling name "/etc/init.d/${service} start" +- "/etc/init.d/${service}" start ++ profiling name "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service} start" ++ "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" start + ) + + service_started "${service}" || service_inactive "${service}" \ +@@ -423,8 +423,8 @@ + else + # if parallel startup is allowed, start it in background + ( +- profiling name "/etc/init.d/${service} start" +- "/etc/init.d/${service}" start ++ profiling name "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service} start" ++ "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" start + + service_started "${service}" || service_inactive "${service}" \ + || service_scheduled "${service}" +@@ -445,7 +445,7 @@ + local service="$1" + [[ -z ${service} ]] && return 1 + +- if [[ ! -e "/etc/init.d/${service}" ]] ; then ++ if [[ ! -e "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" ]] ; then + mark_service_stopped "${service}" + return 0 + fi +@@ -470,7 +470,7 @@ + ${STOP_CRITICAL} == "yes" ]] ; then + # if we can not start the services in parallel + # then just start it and return the exit status +- ( "/etc/init.d/${service}" stop ) ++ ( "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" stop ) + service_stopped "${service}" + retval=$? + end_service "${service}" "${retval}" +@@ -479,7 +479,7 @@ + else + # if parallel startup is allowed, start it in background + ( +- ( "/etc/init.d/${service}" stop ) ++ ( "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" stop ) + service_stopped "${service}" + retval=$? + end_service "${service}" "${retval}" +@@ -496,7 +496,7 @@ + mark_service_coldplugged() { + [[ -z $1 ]] && return 1 + +- ln -snf "/etc/init.d/$1" "${svcdir}/coldplugged/$1" ++ ln -snf "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/$1" "${svcdir}/coldplugged/$1" + return 0 + } + +@@ -507,7 +507,7 @@ + mark_service_starting() { + [[ -z $1 ]] && return 1 + +- ln -sn "/etc/init.d/$1" "${svcdir}/starting/$1" 2>/dev/null || return 1 ++ ln -sn "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/$1" "${svcdir}/starting/$1" 2>/dev/null || return 1 + + [[ -f "${svcdir}/started/$1" ]] && rm -f "${svcdir}/started/$1" + [[ -f "${svcdir}/inactive/$1" ]] \ +@@ -522,7 +522,7 @@ + mark_service_started() { + [[ -z $1 ]] && return 1 + +- ln -snf "/etc/init.d/$1" "${svcdir}/started/$1" ++ ln -snf "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/$1" "${svcdir}/started/$1" + + rm -f "${svcdir}/starting/$1" "${svcdir}/inactive/$1" \ + "${svcdir}/wasinactive/$1" "${svcdir}/stopping/$1" \ +@@ -538,7 +538,7 @@ + mark_service_inactive() { + [[ -z $1 ]] && return 1 + +- ln -snf "/etc/init.d/$1" "${svcdir}/inactive/$1" ++ ln -snf "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/$1" "${svcdir}/inactive/$1" + + rm -f "${svcdir}/started/$1" "${svcdir}/wasinactive/$1" \ + "${svcdir}/starting/$1" "${svcdir}/stopping/$1" +@@ -553,7 +553,7 @@ + mark_service_stopping() { + [[ -z $1 ]] && return 1 + +- ln -sn "/etc/init.d/$1" "${svcdir}/stopping/$1" 2>/dev/null || return 1 ++ ln -sn "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/$1" "${svcdir}/stopping/$1" 2>/dev/null || return 1 + + rm -f "${svcdir}/started/$1" + [[ -f "${svcdir}/inactive/$1" ]] \ +@@ -690,7 +691,7 @@ + mark_service_failed() { + [[ -z $1 || ! -d "${svcdir}/failed" ]] && return 1 + +- ln -snf "/etc/init.d/$1" "${svcdir}/failed/$1" ++ ln -snf "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/$1" "${svcdir}/failed/$1" + } + + # bool service_failed(service) +@@ -744,8 +745,8 @@ + return $? + ;; + yes) +- for x in $(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \ +- $(dolisting "/etc/runlevels/${SOFTLEVEL}/net.*") ; do ++ for x in $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}/net.*") \ ++ $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${SOFTLEVEL}/net.*") ; do + local y="${x##*/}" + [[ ${y} == "$1" ]] && return 1 + service_started "${y}" || return 1 +@@ -785,8 +786,8 @@ + [[ -f "${svcdir}/softlevel" ]] && mylevel=$( < "${svcdir}/softlevel" ) + + for x in $( i$1 "$2" ) ; do +- [[ -e "/etc/runlevels/${BOOTLEVEL}/${x}" || \ +- -e "/etc/runlevels/${mylevel}/${x}" || \ ++ [[ -e "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}/${x}" || \ ++ -e "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${mylevel}/${x}" || \ + ${x} == "net" ]] \ + && valid="${valid} ${x}" + done +@@ -836,9 +837,9 @@ + net_services="${net_services} ${x##*/}" + done + else +- for x in $(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \ +- $(dolisting "/etc/runlevels/${SOFTLEVEL}/net.*") \ +- $(dolisting "/etc/runlevels/coldplugged/net.*") ; do ++ for x in $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}/net.*") \ ++ $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${SOFTLEVEL}/net.*") \ ++ $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/coldplugged/net.*") ; do + net_services="${net_services} ${x##*/}" + done + fi diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-src.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-src.patch new file mode 100644 index 000000000000..a6ee5dbf3032 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix-src.patch @@ -0,0 +1,102 @@ +--- baselayout-1.12.5/src/runscript.c 2007-10-17 21:11:10 +0400 ++++ baselayout-1.12.5/src/runscript.c 2007-10-17 21:13:56 +0400 +@@ -22,16 +22,16 @@ + # define LIBDIR "lib" + #endif + +-#define SBIN_RC "/sbin/rc" +-#define PROFILE_ENV "/etc/profile.env" +-#define RCSCRIPTS_LIB "/" LIBDIR "/rcscripts" ++#define SBIN_RC "@GENTOO_PORTAGE_EPREFIX@/sbin/rc" ++#define PROFILE_ENV "@GENTOO_PORTAGE_EPREFIX@/etc/profile.env" ++#define RCSCRIPTS_LIB "@GENTOO_PORTAGE_EPREFIX@/" LIBDIR "/rcscripts" + #define SYS_WHITELIST RCSCRIPTS_LIB "/conf.d/env_whitelist" +-#define USR_WHITELIST "/etc/conf.d/env_whitelist" ++#define USR_WHITELIST "@GENTOO_PORTAGE_EPREFIX@/etc/conf.d/env_whitelist" + #define RCSCRIPT_HELP RCSCRIPTS_LIB "/sh/rc-help.sh" + #define SELINUX_LIB RCSCRIPTS_LIB "/runscript_selinux.so" + #define SOFTLEVEL "SOFTLEVEL" + +-#define DEFAULT_PATH "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin" ++#define DEFAULT_PATH "PATH=@GENTOO_PORTAGE_EPREFIX@/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/local/sbin" + + #define IS_SBIN_RC() (0 == strcmp(caller, SBIN_RC)) + +@@ -217,7 +217,7 @@ + int new = 1; + + /* Need to be /bin/bash, else BASH is invalid */ +- myargs[0] = "/bin/bash"; ++ myargs[0] = "@GENTOO_PORTAGE_EPREFIX@/bin/bash"; + while (argv[new] != 0) { + myargs[new] = argv[new]; + new++; +@@ -243,10 +243,10 @@ + setup_selinux(argc, argv); + + if (!IS_SBIN_RC()) { +- if (execve("/sbin/runscript.sh", myargs, myenv) < 0) ++ if (execve("@GENTOO_PORTAGE_EPREFIX@/sbin/runscript.sh", myargs, myenv) < 0) + exit(1); + } else { +- if (execve("/bin/bash", myargs, myenv) < 0) ++ if (execve("@GENTOO_PORTAGE_EPREFIX@/bin/bash", myargs, myenv) < 0) + exit(1); + } + +diff -ur ./sbin/depscan.sh /Users/dirk/src@GENTOO_PORTAGE_EPREFIX@/sbin/depscan.sh +--- baselayout-1.12.5/sbin/depscan.sh 2007-10-17 21:26:21 +0400 ++++ baselayout-1.12.5/sbin/depscan.sh 2007-10-17 18:58:23 +0400 +@@ -7,7 +7,7 @@ + fi + + argv0=${0##*/} +-source /etc/init.d/functions.sh || { ++source @GENTOO_PORTAGE_EPREFIX@/etc/init.d/functions.sh || { + echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2 + exit 1 + } +@@ -89,7 +91,7 @@ + fi + + touch "${mtime_test}" +- for config in /etc/conf.d/* /etc/init.d/* /etc/rc.conf ++ for config in @GENTOO_PORTAGE_EPREFIX@/etc/conf.d/* @GENTOO_PORTAGE_EPREFIX@/etc/init.d/* @GENTOO_PORTAGE_EPREFIX@/etc/rc.conf + do + ! ${update} \ + && is_older_than "${mysvcdir}/depcache" "${config}" \ +@@ -104,7 +106,7 @@ + rm -f "${mtime_test}" + + if [[ ${clock_screw} == 1 ]] ; then +- ewarn "One of the files in /etc/{conf.d,init.d} or /etc/rc.conf" ++ ewarn "One of the files in @GENTOO_PORTAGE_EPREFIX@/etc/{conf.d,init.d} or @GENTOO_PORTAGE_EPREFIX@/etc/rc.conf" + ewarn "has a modification time in the future!" + fi + +@@ -125,17 +127,17 @@ + + export SVCDIR DEPTYPES ORDTYPES + +-cd /etc/init.d ++cd @GENTOO_PORTAGE_EPREFIX@/etc/init.d + +-/bin/gawk \ +- -f /lib/rcscripts/awk/functions.awk \ +- -f /lib/rcscripts/awk/cachedepends.awk || \ ++@GENTOO_PORTAGE_EPREFIX@/bin/gawk \ ++ -f @GENTOO_PORTAGE_EPREFIX@/lib/rcscripts/awk/functions.awk \ ++ -f @GENTOO_PORTAGE_EPREFIX@/lib/rcscripts/awk/cachedepends.awk || \ + retval=1 + +-bash "${mysvcdir}/depcache" | \ +-/bin/gawk \ +- -f /lib/rcscripts/awk/functions.awk \ +- -f /lib/rcscripts/awk/gendepends.awk || \ ++@GENTOO_PORTAGE_EPREFIX@/bin/bash "${mysvcdir}/depcache" | \ ++@GENTOO_PORTAGE_EPREFIX@/bin/gawk \ ++ -f @GENTOO_PORTAGE_EPREFIX@/lib/rcscripts/awk/functions.awk \ ++ -f @GENTOO_PORTAGE_EPREFIX@/lib/rcscripts/awk/gendepends.awk || \ + retval=1 + + touch "${mysvcdir}"/dep{cache,tree} diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix.patch new file mode 100644 index 000000000000..3394a323a07a --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-prefix.patch @@ -0,0 +1,409 @@ +--- baselayout-1.12.5/etc/env.d/00basic ++++ baselayout-1.12.5/etc/env.d/00basic +@@ -1,10 +1,11 @@ +-# /etc/env.d/00basic ++# @GENTOO_PORTAGE_EPREFIX@/etc/env.d/00basic + +-PATH="/opt/bin" +-ROOTPATH="/opt/bin" +-LDPATH="/usr/local/lib" +-MANPATH="/usr/local/share/man:/usr/share/man" +-INFOPATH="/usr/share/info" ++# in prefix we have sbin variants in user path! ++PATH="@GENTOO_PORTAGE_EPREFIX@/opt/bin:@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/sbin" ++ROOTPATH="@GENTOO_PORTAGE_EPREFIX@/opt/bin" ++LDPATH="@GENTOO_PORTAGE_EPREFIX@/usr/local/lib" ++MANPATH="@GENTOO_PORTAGE_EPREFIX@/usr/share/man" ++INFOPATH="@GENTOO_PORTAGE_EPREFIX@/usr/share/info" + CVS_RSH="ssh" +-PAGER="/usr/bin/less" ++PAGER="@GENTOO_PORTAGE_EPREFIX@/usr/bin/less" + LESSOPEN="|lesspipe.sh %s" +--- baselayout-1.12.5/sbin/env-update.sh ++++ baselayout-1.12.5/sbin/env-update.sh +@@ -1,10 +1,10 @@ +-#!/bin/bash ++#!@GENTOO_PORTAGE_EPREFIX@/bin/bash + # Copyright 1999-2004 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + +-source /sbin/functions.sh || exit 1 ++source "@GENTOO_PORTAGE_EPREFIX@"/sbin/functions.sh || exit 1 + +-if [[ ${EUID} != "0" ]] ; then ++if [[ ${EPREFIX/\//} == "" ]] && [[ ${EUID} != "0" ]] ; then + eerror "$0: must be root." + exit 1 + fi +@@ -13,8 +13,8 @@ + echo "usage: env-update.sh + + note: +- This utility generates /etc/profile.env and /etc/csh.env +- from the contents of /etc/env.d/ ++ This utility generates @GENTOO_PORTAGE_EPREFIX@/etc/profile.env and @GENTOO_PORTAGE_EPREFIX@/etc/csh.env ++ from the contents of @GENTOO_PORTAGE_EPREFIX@/etc/env.d/ + " + exit 1 + } +@@ -30,9 +30,9 @@ + if [[ $# != "0" ]] ; then + usage + else +- /bin/gawk \ +- -f /lib/rcscripts/awk/functions.awk \ +- -f /lib/rcscripts/awk/genenviron.awk ++ "@GENTOO_PORTAGE_EPREFIX@"/bin/gawk \ ++ -f "@GENTOO_PORTAGE_EPREFIX@"/lib/rcscripts/awk/functions.awk \ ++ -f "@GENTOO_PORTAGE_EPREFIX@"/lib/rcscripts/awk/genenviron.awk + fi + + # vim:ts=4 +--- baselayout-1.12.5/sbin/functions.sh ++++ baselayout-1.12.5/sbin/functions.sh +@@ -4,11 +4,11 @@ + RC_GOT_FUNCTIONS="yes" + + # Override defaults with user settings ... +-[[ -f /etc/conf.d/rc ]] && source /etc/conf.d/rc ++[[ -f @GENTOO_PORTAGE_EPREFIX@/etc/conf.d/rc ]] && source "@GENTOO_PORTAGE_EPREFIX@"/etc/conf.d/rc + + # Check /etc/conf.d/rc for a description of these ... +-declare -r svclib="/lib/rcscripts" +-declare -r svcdir="${svcdir:-/var/lib/init.d}" ++declare -r svclib="@GENTOO_PORTAGE_EPREFIX@/lib/rcscripts" ++declare -r svcdir="${svcdir:-@GENTOO_PORTAGE_EPREFIX@/var/lib/init.d}" + svcmount="${svcmount:-no}" + svcfstype="${svcfstype:-tmpfs}" + svcsize="${svcsize:-1024}" +@@ -83,7 +84,7 @@ + } + # This will override the splash() function... + if ! import_addon splash-functions.sh ; then +- [[ -f /sbin/splash-functions.sh ]] && source /sbin/splash-functions.sh ++ [[ -f @GENTOO_PORTAGE_EPREFIX@/sbin/splash-functions.sh ]] && source "@GENTOO_PORTAGE_EPREFIX@"/sbin/splash-functions.sh + fi + + # void profiling(...) +@@ -114,8 +115,8 @@ + local newbootlevel= + local newsoftlevel= + +- if [[ -r /proc/cmdline ]] ; then +- for copt in $(/dev/null + } + +@@ -629,7 +630,7 @@ + # EXAMPLE: if is_uml_sys ; then ... + # + is_uml_sys() { +- grep -qs 'UML' /proc/cpuinfo ++ grep -qs 'UML' "@GENTOO_PORTAGE_EPREFIX@"/proc/cpuinfo + } + + # bool is_vserver_sys() +@@ -639,7 +640,7 @@ + # EXAMPLE: if is_vserver_sys ; then ... + # + is_vserver_sys() { +- grep -qs '^s_context:[[:space:]]*[1-9]' /proc/self/status ++ grep -qs '^s_context:[[:space:]]*[1-9]' "@GENTOO_PORTAGE_EPREFIX@"/proc/self/status + } + + # bool is_xenU_sys() +@@ -649,9 +650,9 @@ + # EXAMPLE: if is_xenU_sys ; then ... + # + is_xenU_sys() { +- [[ ! -d /proc/xen ]] && return 1 +- [[ ! -r /proc/xen/capabilities ]] && return 1 +- grep -q "control_d" /proc/xen/capabilities && return 1 ++ [[ ! -d "@GENTOO_PORTAGE_EPREFIX@"/proc/xen ]] && return 1 ++ [[ ! -r "@GENTOO_PORTAGE_EPREFIX@"/proc/xen/capabilities ]] && return 1 ++ grep -q "control_d" "@GENTOO_PORTAGE_EPREFIX@"/proc/xen/capabilities && return 1 + return 0 + } + +@@ -667,7 +668,7 @@ + gawk '$1 ~ "^#" { next } + $2 == "'$*'" { stab="-t "$3" -o "$4" "$1" "$2; } + END { print stab; } +- ' /etc/fstab ++ ' "@GENTOO_PORTAGE_EPREFIX@"/etc/fstab + } + + # char *reverse_list(list) +@@ -771,13 +772,13 @@ + # Setup a basic $PATH. Just add system default to existing. + # This should solve both /sbin and /usr/sbin not present when + # doing 'su -c foo', or for something like: PATH= rcscript start +- PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:${PATH}" ++ PATH="@GENTOO_PORTAGE_EPREFIX@/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/local/sbin:${PATH}" + + # Cache the CONSOLETYPE - this is important as backgrounded shells don't + # have a TTY. rc unsets it at the end of running so it shouldn't hang + # around + if [[ -z ${CONSOLETYPE} ]] ; then +- export CONSOLETYPE="$( /sbin/consoletype 2>/dev/null )" ++ export CONSOLETYPE="$( "@GENTOO_PORTAGE_EPREFIX@"/sbin/consoletype 2>/dev/null )" + fi + if [[ ${CONSOLETYPE} == "serial" ]] ; then + RC_NOCOLOR="yes" +@@ -797,7 +798,7 @@ + + # If we are not /sbin/rc then ensure that we cannot change level variables + if [[ -n ${BASH_SOURCE} \ +- && ${BASH_SOURCE[${#BASH_SOURCE[@]}-1]} != "/sbin/rc" ]] ; then ++ && ${BASH_SOURCE[${#BASH_SOURCE[@]}-1]} != "@GENTOO_PORTAGE_EPREFIX@/sbin/rc" ]] ; then + declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL + fi + else +--- baselayout-1.12.5/etc/profile ++++ baselayout-1.12.5/etc/profile +@@ -1,4 +1,4 @@ +-# /etc/profile: login shell setup ++# @GENTOO_PORTAGE_EPREFIX@/etc/profile: login shell setup + # + # That this file is used by any Bourne-shell derivative to setup the + # environment for login shells. +@@ -6,8 +6,8 @@ + + # Load environment settings from profile.env, which is created by + # env-update from the files in /etc/env.d +-if [ -e /etc/profile.env ] ; then +- . /etc/profile.env ++if [ -e "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.env ] ; then ++ . "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.env + fi + + # 077 would be more secure, but 022 is generally quite realistic +@@ -22,23 +22,23 @@ + # This way the evaluation can be short-circuited and calling whoami is + # avoided. + if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then +- PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}" ++ PATH="@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/bin:${ROOTPATH}:/usr/sbin:/usr/bin:/sbin:/bin" + else +- PATH="/usr/local/bin:/usr/bin:/bin:${PATH}" ++ PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/bin:${PATH}:/usr/bin:/bin" + fi + export PATH + unset ROOTPATH + + # Extract the value of EDITOR +-[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`" +-[ -z "$EDITOR" ] && EDITOR="/bin/nano" ++[ -z "$EDITOR" ] && EDITOR="`. @GENTOO_PORTAGE_EPREFIX@/etc/rc.conf 2>/dev/null; echo $EDITOR`" ++[ -z "$EDITOR" ] && EDITOR="@GENTOO_PORTAGE_EPREFIX@/bin/nano" + export EDITOR + + if [ -n "${BASH_VERSION}" ] ; then + # Newer bash ebuilds include /etc/bash/bashrc which will setup PS1 + # including color. We leave out color here because not all + # terminals support it. +- if [ -f /etc/bash/bashrc ] ; then ++ if [ -f "@GENTOO_PORTAGE_EPREFIX@"/etc/bash/bashrc ] ; then + # Bash login shells run only /etc/profile + # Bash non-login shells run only /etc/bash/bashrc + # Since we want to run /etc/bash/bashrc regardless, we source it +@@ -46,7 +46,7 @@ + # this *after* the user's .bash_profile runs (without putting + # it in the user's dot-files), but it shouldn't make any + # difference. +- . /etc/bash/bashrc ++ . "@GENTOO_PORTAGE_EPREFIX@"/etc/bash/bashrc + else + PS1='\u@\h \w \$ ' + fi +@@ -57,7 +57,7 @@ + PS1="`whoami`@`uname -n | cut -f1 -d.` \$ " + fi + +-for sh in /etc/profile.d/*.sh ; do ++for sh in "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.d/*.sh ; do + if [ -r "$sh" ] ; then + . "$sh" + fi +--- baselayout-1.12.5/sbin/runscript.sh~ 2006-09-14 12:11:34 +0200 ++++ baselayout-1.12.5/sbin/runscript.sh 2007-10-06 13:28:40 +0200 +@@ -1,18 +1,18 @@ +-#!/bin/bash ++#!@GENTOO_PORTAGE_EPREFIX@/bin/bash + # Copyright 1999-2006 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + + # Common functions +-[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh ++[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source @GENTOO_PORTAGE_EPREFIX@/sbin/functions.sh + +-# User must be root to run most script stuff (except status) +-if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; then +- eerror "$0: must be root to run init scripts" +- exit 1 +-fi ++## User must be root to run most script stuff (except status) ++#if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; then ++# eerror "$0: must be root to run init scripts" ++# exit 1 ++#fi + + myscript="$1" +-if [[ -L $1 && ! -L "/etc/init.d/${1##*/}" ]] ; then ++if [[ -L $1 && ! -L "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${1##*/}" ]] ; then + SVCNAME="$(readlink "$1")" + else + SVCNAME="$1" +@@ -84,12 +84,12 @@ + # configuration, if the system administrator chose to put it + # there (if it exists). + if net_service "${SVCNAME}" ; then +- conf="$(add_suffix /etc/conf.d/net)" ++ conf="$(add_suffix @GENTOO_PORTAGE_EPREFIX@/etc/conf.d/net)" + [[ -e ${conf} ]] && source "${conf}" + fi +-conf="$(add_suffix "/etc/conf.d/${SVCNAME}")" ++conf="$(add_suffix "@GENTOO_PORTAGE_EPREFIX@/etc/conf.d/${SVCNAME}")" + [[ -e ${conf} ]] && source "${conf}" +-conf="$(add_suffix /etc/rc.conf)" ++conf="$(add_suffix @GENTOO_PORTAGE_EPREFIX@/etc/rc.conf)" + [[ -e ${conf} ]] && source "${conf}" + + mylevel="${SOFTLEVEL}" +@@ -146,7 +146,7 @@ + local service="$1" start="$2" + [[ ! -d "${svcdir}/scheduled/${service}" ]] \ + && mkdir -p "${svcdir}/scheduled/${service}" +- ln -snf "/etc/init.d/${service}" \ ++ ln -snf "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" \ + "${svcdir}/scheduled/${service}/${start}" + } + +@@ -334,9 +334,9 @@ + if [[ ${retval} == "0" && ${RC_NO_DEPS} != "yes" ]] ; then + local startupservices="$(ineed "${SVCNAME}") $(valid_iuse "${SVCNAME}")" + local netservices= +- for x in $(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \ +- $(dolisting "/etc/runlevels/${mylevel}/net.*") \ +- $(dolisting "/var/lib/init.d/coldplugged/net.*") ; do ++ for x in $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}/net.*") \ ++ $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${mylevel}/net.*") \ ++ $(dolisting "@GENTOO_PORTAGE_EPREFIX@/var/lib/init.d/coldplugged/net.*") ; do + netservices="${netservices} ${x##*/}" + done + +@@ -631,9 +631,9 @@ + + # Simple way to try and detect if the service use svc_{start,stop} + # to restart if it have a custom restart() funtion. +- if [[ -n $(egrep '^[[:space:]]*restart[[:space:]]*()' "/etc/init.d/${SVCNAME}") ]] ; then +- if [[ -z $(egrep 'svc_stop' "/etc/init.d/${SVCNAME}") || \ +- -z $(egrep 'svc_start' "/etc/init.d/${SVCNAME}") ]] ; then ++ if [[ -n $(egrep '^[[:space:]]*restart[[:space:]]*()' "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${SVCNAME}") ]] ; then ++ if [[ -z $(egrep 'svc_stop' "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${SVCNAME}") || \ ++ -z $(egrep 'svc_start' "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${SVCNAME}") ]] ; then + echo + ewarn "Please use 'svc_stop; svc_start' and not 'stop; start' to" + ewarn "restart the service in its custom 'restart()' function." diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-solaris.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-solaris.patch new file mode 100644 index 000000000000..20e45827acdd --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-solaris.patch @@ -0,0 +1,66 @@ +--- src/start-stop-daemon.c ++++ src/start-stop-daemon.c +@@ -44,7 +44,7 @@ + # define OSLinux + #elif defined(__GNU__) + # define OSHURD +-#elif defined(__sparc__) ++#elif defined (__SVR4) && defined (__sun) + # define OSsunos + #elif defined(OPENBSD) || defined(__OpenBSD__) + # define OSOpenBSD +@@ -94,6 +94,9 @@ + #if defined(OSaix) + #include + #endif ++#if defined(OSsunos) ++#include ++#endif + + #include + #include +@@ -188,7 +191,7 @@ + static void do_pidfile(const char *name); + static void do_stop(int signal_nr, int quietmode, + int *n_killed, int *n_notkilled, int retry_nr); +-#if defined(OSLinux) || defined(OShpux) || defined(OSaix) ++#if defined(OSLinux) || defined(OShpux) || defined(OSaix) || defined(OSsunos) + static int pid_is_exec(pid_t pid, const struct stat *esb); + #endif + +@@ -765,7 +768,7 @@ + static void + check(pid_t pid) + { +-#if defined(OSLinux) || defined(OShpux) || defined(OSaix) ++#if defined(OSLinux) || defined(OShpux) || defined(OSaix) || defined(OSsunos) + if (execname && !pid_is_exec(pid, &exec_stat)) + return; + #elif defined(OSHURD) || defined(OSFreeBSD) || defined(OSNetBSD) || defined(OSDarwin) +@@ -801,7 +804,7 @@ + /* WTA: this needs to be an autoconf check for /proc/pid existance. + */ + +-#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) || defined(OSaix) ++#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd) || defined(OSaix) || defined(OSsunos) + static void + do_procinit(void) + { +@@ -1069,7 +1072,7 @@ + } + #endif /* OShpux */ + +-#if defined(OSaix) ++#if defined(OSaix) || defined(OSsunos) + /* max possible pid (signed long) in theory: + * 32bit: 2147483647 (10 digits) + * 64bit: 9223372036854775807 (19 digits) +@@ -1119,7 +1122,7 @@ + } + return strcmp(name, psi.pr_fname) == 0; + } +-#endif /* OSaix */ ++#endif /* OSaix || OSsunos */ + + + static void diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-strsep.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-strsep.patch new file mode 100644 index 000000000000..3e67a226c77c --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-strsep.patch @@ -0,0 +1,42 @@ +--- src/core/misc.h ++++ src/core/misc.h +@@ -284,5 +284,9 @@ + void file_unmap(char *buf, size_t bufsize); + size_t buf_get_line(char *buf, size_t buflen, size_t cur); + ++#if defined (__SVR4) && defined (__sun) ++char* strsep(char** str, const char* delims); ++#endif ++ + #endif /* _MISC_H */ + +--- src/core/misc.c ++++ src/core/misc.c +@@ -647,3 +647,27 @@ + return count - cur; + } + ++#if defined (__SVR4) && defined (__sun) ++char* strsep(char** str, const char* delims) ++{ ++ char* token; ++ ++ if (*str == NULL) { ++ /* No more tokens */ ++ return NULL; ++ } ++ ++ token=*str; ++ while (**str != '\0') { ++ if (strchr(delims, **str) != NULL) { ++ **str = '\0'; ++ (*str)++; ++ return token; ++ } ++ (*str)++; ++ } ++ /* There is no other token */ ++ *str = NULL; ++ return token; ++} ++#endif diff --git a/sys-apps/baselayout-prefix/files/baselayout-1.12.5-termios_h.patch b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-termios_h.patch new file mode 100644 index 000000000000..8c84bf6ce33a --- /dev/null +++ b/sys-apps/baselayout-prefix/files/baselayout-1.12.5-termios_h.patch @@ -0,0 +1,30 @@ + is standard as per SUSv2 already: +http://pubs.opengroup.org/onlinepubs/007908799/xsh/termios.h.html +AIX does not provide at all, Linux, Solaris, HP-UX, +Darwin and Interix have both, redirecting one to the other. + +--- src/start-stop-daemon.c.orig 2011-03-28 13:55:36 +0200 ++++ src/start-stop-daemon.c 2011-03-28 14:50:47 +0200 +@@ -37,6 +37,9 @@ + #define NONRETURNING \ + __attribute__((noreturn)) + ++#define HAVE_TERMIOS_H ++#undef HAVE_SYS_TERMIOS_H ++ + #if defined(linux) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__)) + # define OSLinux + #elif defined(__GNU__) +@@ -97,7 +123,11 @@ + #include + #include + #include +-#include ++#if defined(HAVE_TERMIOS_H) ++# include ++#elif defined(HAVE_SYS_TERMIOS_H) ++# include ++#endif + #include + #include + #include diff --git a/sys-apps/baselayout-prefix/files/einfo-1.0.4-termcap-check.patch b/sys-apps/baselayout-prefix/files/einfo-1.0.4-termcap-check.patch new file mode 100644 index 000000000000..61d779e47e20 --- /dev/null +++ b/sys-apps/baselayout-prefix/files/einfo-1.0.4-termcap-check.patch @@ -0,0 +1,83 @@ +#diff -ru einfo-1.0.4/configure.ac einfo/configure.ac +#--- einfo-1.0.4/configure.ac 2013-10-27 17:39:07.000000000 +0100 +#+++ einfo/configure.ac 2013-10-29 18:01:51.975745907 +0100 +#@@ -22,7 +22,7 @@ +# ) +# ) +# fi +#-AC_DEFINE([HAVE_TERMCAP], test "x$HAVE_TERMCAP" != "x", +#+AC_DEFINE_UNQUOTED([HAVE_TERMCAP], `test "x$HAVE_TERMCAP" = "x"; echo $?`, +# [Define if termcap.h and library exist]) +# AC_SUBST([TERMCAP_LIBS], [$HAVE_TERMCAP]) +# +diff -ru einfo-1.0.4/configure einfo/configure +--- einfo-1.0.4/configure 2013-10-27 17:42:20.000000000 +0100 ++++ einfo/configure 2013-10-29 18:02:08.405707018 +0100 +@@ -11447,7 +11432,9 @@ + + fi + +-$as_echo "#define HAVE_TERMCAP test \"x\$HAVE_TERMCAP\" != \"x\"" >>confdefs.h ++cat >>confdefs.h <<_ACEOF ++#define HAVE_TERMCAP `test "x$HAVE_TERMCAP" = "x"; echo $?` ++_ACEOF + + TERMCAP_LIBS=$HAVE_TERMCAP + +diff -ru einfo-1.0.4/src/libeinfo/libeinfo.c einfo/src/libeinfo/libeinfo.c +--- einfo-1.0.4/src/libeinfo/libeinfo.c 2013-10-27 17:37:25.000000000 +0100 ++++ einfo/src/libeinfo/libeinfo.c 2013-10-29 18:05:38.081876730 +0100 +@@ -50,7 +50,7 @@ + #include + #include + #include +-#ifdef HAVE_TERMCAP ++#if HAVE_TERMCAP + # include + #endif + #include +@@ -155,7 +155,7 @@ + + /* Termcap buffers and pointers + * Static buffers suck hard, but some termcap implementations require them */ +-#ifdef HAVE_TERMCAP ++#if HAVE_TERMCAP + static char termcapbuf[2048]; + static char tcapbuf[512]; + #else +@@ -287,7 +287,7 @@ + } + + /* Fake tgoto call - very crapy, but works for our needs */ +-#ifndef HAVE_TERMCAP ++#if !HAVE_TERMCAP + static char * + tgoto(const char *cap, int col, int line) + { +@@ -363,7 +363,7 @@ + const char *bold; + char tmp[100]; + unsigned int i = 0; +-#ifdef HAVE_TERMCAP ++#if HAVE_TERMCAP + char *bp; + #endif + +@@ -387,7 +387,7 @@ + if (strcmp(term, "cons25") == 0) + term_is_cons25 = true; + +-#ifdef HAVE_TERMCAP ++#if HAVE_TERMCAP + /* Check termcap to see if we can do colour or not */ + if (tgetent(termcapbuf, term) == 1) { + bp = tcapbuf; +@@ -433,7 +433,7 @@ + _me = ME; + if (!_up) + _up = UP; +-#ifdef HAVE_TERMCAP ++#if HAVE_TERMCAP + } + + if (!_af || !_ce || !_me || !_md || !_up) { diff --git a/sys-apps/baselayout-prefix/metadata.xml b/sys-apps/baselayout-prefix/metadata.xml new file mode 100644 index 000000000000..ab2f5b1d003d --- /dev/null +++ b/sys-apps/baselayout-prefix/metadata.xml @@ -0,0 +1,10 @@ + + + + + prefix@gentoo.org + + + install in a chained Prefix environment + + diff --git a/sys-apps/baselayout/Manifest b/sys-apps/baselayout/Manifest new file mode 100644 index 000000000000..1951dcd22627 --- /dev/null +++ b/sys-apps/baselayout/Manifest @@ -0,0 +1 @@ +DIST baselayout-2.2.tar.bz2 40744 SHA256 11d4a223b06da545c3e59e07c9195570f334b5b1be05d995df0ebc8ea2203e98 SHA512 a5199c42e835d9f2683cc94f3c4c47ecdc392316c24e0932845736e2e90479b0c5c8ad72ead8e0537f097405b7d7548d00b87b7ff8c9e3651486e3c5c0970b36 WHIRLPOOL 60cc4f7f76c5a45c15303e526decffb3bad2b50ac659b1dd072d2ed4b0eb0b31929a1a733ddb03a31ee5882b889a4efb87206f63ffaa2b11e26d36afd0933a95 diff --git a/sys-apps/baselayout/baselayout-2.2.ebuild b/sys-apps/baselayout/baselayout-2.2.ebuild new file mode 100644 index 000000000000..41b47560137e --- /dev/null +++ b/sys-apps/baselayout/baselayout-2.2.ebuild @@ -0,0 +1,234 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils multilib + +DESCRIPTION="Filesystem baselayout and init scripts" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="build kernel_linux" + +pkg_setup() { + multilib_layout +} + +# Create our multilib dirs - the Makefile has no knowledge of this +multilib_warn() { + local syms=$1 dirs=$2 def_libdir=$3 + + [ -z "${syms}${dirs}" ] && return + + ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB}, so that means" + if [ -z "${syms}" ] ; then + ewarn "you need to have these paths as symlinks to ${def_libdir}:" + ewarn "$1" + fi +} +multilib_layout() { + local libdir libdirs=$(get_all_libdirs) def_libdir=$(get_abi_LIBDIR $DEFAULT_ABI) + : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... + + [ -z "${def_libdir}" ] && die "your DEFAULT_ABI=$DEFAULT_ABI appears to be invalid" + + # figure out which paths should be symlinks and which should be directories + local dirs syms exp d + for libdir in ${libdirs} ; do + exp=( {,usr/,usr/local/}${libdir} ) + for d in "${exp[@]/#/${ROOT}}" ; do + # most things should be dirs + if [ "${SYMLINK_LIB}" = "yes" ] && [ "${libdir}" = "lib" ] ; then + [ ! -h "${d}" ] && [ -e "${d}" ] && dirs+=" ${d}" + else + [ -h "${d}" ] && syms+=" ${d}" + fi + done + done + if [ -n "${syms}${dirs}" ] ; then + ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB:-no}, so that means you need to" + ewarn "have these paths configured as follows:" + [ -n "${dirs}" ] && ewarn "symlinks to '${def_libdir}':${dirs}" + [ -n "${syms}" ] && ewarn "directories:${syms}" + ewarn "The ebuild will attempt to fix these, but only for trivial conversions." + ewarn "If things fail, you will need to manually create/move the directories." + echo + fi + + # setup symlinks and dirs where we expect them to be; do not migrate + # data ... just fall over in that case. + local prefix + for prefix in "${ROOT}"{,usr/,usr/local/} ; do + if [ "${SYMLINK_LIB}" = yes ] ; then + # we need to make sure "lib" points to the native libdir + if [ -h "${prefix}lib" ] ; then + # it's already a symlink! assume it's pointing to right place ... + continue + elif [ -d "${prefix}lib" ] ; then + # "lib" is a dir, so need to convert to a symlink + ewarn "Converting ${prefix}lib from a dir to a symlink" + rm -f "${prefix}lib"/.keep + if rmdir "${prefix}lib" 2>/dev/null ; then + ln -s ${def_libdir} "${prefix}lib" || die + else + die "non-empty dir found where we needed a symlink: ${prefix}lib" + fi + else + # nothing exists, so just set it up sanely + ewarn "Initializing ${prefix}lib as a symlink" + mkdir -p "${prefix}" || die + rm -f "${prefix}lib" || die + ln -s ${def_libdir} "${prefix}lib" || die + mkdir -p "${prefix}${def_libdir}" #423571 + fi + else + # we need to make sure "lib" is a dir + if [ -h "${prefix}lib" ] ; then + # "lib" is a symlink, so need to convert to a dir + ewarn "Converting ${prefix}lib from a symlink to a dir" + rm -f "${prefix}lib" || die + if [ -d "${prefix}lib32" ] ; then + ewarn "Migrating ${prefix}lib32 to ${prefix}lib" + mv "${prefix}lib32" "${prefix}lib" || die + else + mkdir -p "${prefix}lib" || die + fi + elif [ -d "${prefix}lib" ] ; then + # make sure the old "lib" ABI location does not exist; we + # only symlinked the lib dir on systems where we moved it + # to "lib32" ... + case ${CHOST} in + *-gentoo-freebsd*) ;; # We want it the other way on fbsd. + i?86*|x86_64*|powerpc*|sparc*|s390*) + if [ -d "${prefix}lib32" ] ; then + rm -f "${prefix}lib32"/.keep + if ! rmdir "${prefix}lib32" 2>/dev/null ; then + ewarn "You need to merge ${prefix}lib32 into ${prefix}lib" + die "non-empty dir found where there should be none: ${prefix}lib32" + fi + fi + ;; + esac + else + # nothing exists, so just set it up sanely + ewarn "Initializing ${prefix}lib as a dir" + mkdir -p "${prefix}" || die + rm -f "${prefix}lib" || die + ln -s ${def_libdir} "${prefix}lib" || die + fi + fi + done +} + +pkg_preinst() { + # Bug #217848 - Since the remap_dns_vars() called by pkg_preinst() of + # the baselayout-1.x ebuild copies all the real configs from the user's + # /etc/conf.d into ${D}, it makes them all appear to be the default + # versions. In order to protect them from being unmerged after this + # upgrade, modify their timestamps. + touch "${ROOT}"/etc/conf.d/* 2>/dev/null + + # This is written in src_install (so it's in CONTENTS), but punt all + # pending updates to avoid user having to do etc-update (and make the + # pkg_postinst logic simpler). + rm -f "${ROOT}"/etc/._cfg????_gentoo-release + + # We need to install directories and maybe some dev nodes when building + # stages, but they cannot be in CONTENTS. + # Also, we cannot reference $S as binpkg will break so we do this. + multilib_layout + if use build ; then + emake -C "${D}/usr/share/${PN}" DESTDIR="${ROOT}" layout || die + fi + rm -f "${D}"/usr/share/${PN}/Makefile +} + +src_install() { + emake \ + OS=$(usex kernel_FreeBSD BSD Linux) \ + DESTDIR="${D}" \ + install || die + dodoc ChangeLog.svn + + # need the makefile in pkg_preinst + insinto /usr/share/${PN} + doins Makefile || die + + # handle multilib paths. do it here because we want this behavior + # regardless of the C library that you're using. we do explicitly + # list paths which the native ldconfig searches, but this isn't + # problematic as it doesn't change the resulting ld.so.cache or + # take longer to generate. similarly, listing both the native + # path and the symlinked path doesn't change the resulting cache. + local libdir ldpaths + for libdir in $(get_all_libdirs) ; do + ldpaths+=":/${libdir}:/usr/${libdir}:/usr/local/${libdir}" + done + echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic + + # rc-scripts version for testing of features that *should* be present + echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release +} + +pkg_postinst() { + local x + + # We installed some files to /usr/share/baselayout instead of /etc to stop + # (1) overwriting the user's settings + # (2) screwing things up when attempting to merge files + # (3) accidentally packaging up personal files with quickpkg + # If they don't exist then we install them + for x in master.passwd passwd shadow group fstab ; do + [ -e "${ROOT}etc/${x}" ] && continue + [ -e "${ROOT}usr/share/baselayout/${x}" ] || continue + cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc + done + + # Force shadow permissions to not be world-readable #260993 + for x in shadow ; do + [ -e "${ROOT}etc/${x}" ] && chmod o-rwx "${ROOT}etc/${x}" + done + + # Take care of the etc-update for the user + if [ -e "${ROOT}"/etc/._cfg0000_gentoo-release ] ; then + mv "${ROOT}"/etc/._cfg0000_gentoo-release "${ROOT}"/etc/gentoo-release + fi + + # whine about users that lack passwords #193541 + if [[ -e ${ROOT}/etc/shadow ]] ; then + local bad_users=$(sed -n '/^[^:]*::/s|^\([^:]*\)::.*|\1|p' "${ROOT}"/etc/shadow) + if [[ -n ${bad_users} ]] ; then + echo + ewarn "The following users lack passwords!" + ewarn ${bad_users} + fi + fi + + # baselayout leaves behind a lot of .keep files, so let's clean them up + find "${ROOT}"/lib*/rcscripts/ -name .keep -exec rm -f {} + 2>/dev/null + find "${ROOT}"/lib*/rcscripts/ -depth -type d -exec rmdir {} + 2>/dev/null + + # whine about users with invalid shells #215698 + if [[ -e ${ROOT}/etc/passwd ]] ; then + local bad_shells=$(awk -F: 'system("test -e " $7) { print $1 " - " $7}' /etc/passwd | sort) + if [[ -n ${bad_shells} ]] ; then + echo + ewarn "The following users have non-existent shells!" + ewarn "${bad_shells}" + fi + fi + + # http://bugs.gentoo.org/361349 + if use kernel_linux; then + mkdir -p "${ROOT}"/run + + if ! grep -qs "^tmpfs.*/run " "${ROOT}"/proc/mounts ; then + echo + ewarn "You should reboot the system now to get /run mounted with tmpfs!" + fi + fi +} diff --git a/sys-apps/baselayout/metadata.xml b/sys-apps/baselayout/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/baselayout/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/biosdevname/Manifest b/sys-apps/biosdevname/Manifest new file mode 100644 index 000000000000..9518dd56d556 --- /dev/null +++ b/sys-apps/biosdevname/Manifest @@ -0,0 +1,4 @@ +DIST biosdevname-0.3.11.tar.gz 186408 SHA256 02c127f7fff76127cd6006e7cdd9da9335035bcb3e0a0fcf039fbb5c0f5d2dc0 SHA512 2c96c8c8163c5fd74735c52881d448af731bac875c4825ba54608a2b100de70bc2003edda86f1d1ed3597260177d572348e2358f1663a788f193e20e5d50f719 WHIRLPOOL 860815bd928459779f4def4953a04fa2ce8b7caeb8370bf2c1e3e4db87e29d2deac4318b7d12ff4415ad0c0ef166cae7470ce83601330ad9afc6a36603da6db1 +DIST biosdevname-0.4.0.tar.gz 187775 SHA256 7d567ea8081bc83c6fe17fa32bf8e2b852636a733f5e4d9d583fedeb2f48e21b SHA512 0607f6c04725b4df58becfc6d3b16139397e0ab0f172ac137c670115c8d1a3b2849266e0d801b635d8e4aa4b3ac662a0f356835df0c4d05bfee6ff3e6459c1d8 WHIRLPOOL f2fe757b0f00c90252594cb38d499250c987a012135f1aa73eb3679e81f12fee44606476a21ef175c7c2b254ce5a0f5936b90dd9605e7274f5fd42f7d5398906 +DIST biosdevname-0.4.1.tar.gz 187782 SHA256 230e5bffd17f46b6d820faa46ea79ace3eecaf919852ee7ff231e73f6b9f8fe7 SHA512 1c7534dd31acbba7121fc4f904d828b6bfc035248cde3366a58f4596f601c81618b44a96d67b99d4a17cf8d985c971be41196134f6d43ae63b4f8cd4308bed22 WHIRLPOOL 33917ad8ed6493b3fd6b5880e592031fc028e975e428cc9b2b5b16b299f5be647baac6a601c70b9422931a1cf6f98133944e18e9355afe2a0453d456e4697407 +DIST biosdevname-0.6.1.tar.gz 195604 SHA256 b43580589a3f40afc836afbff9bcd837224c710b75a4d0b576f2e4d44ec158cc SHA512 46962c50618eb87c3ade5f4866bbb3fddb75f3a450bc32610d54062375b53bcd4c2f17cc3d729335c7d582043d0b491c8d8e1dc50d7de9c7683846b8dc8b0d77 WHIRLPOOL 9fa40a118ca57dd4e1a226ab0bea117f0291b0ee8807a5c2a9a56ef850d52d9500bb59a0d9e1fcba4cb87e85f269c76216bbee4eb331906cfa545b69ef3c6774 diff --git a/sys-apps/biosdevname/biosdevname-0.3.11-r1.ebuild b/sys-apps/biosdevname/biosdevname-0.3.11-r1.ebuild new file mode 100644 index 000000000000..cc48a0776f54 --- /dev/null +++ b/sys-apps/biosdevname/biosdevname-0.3.11-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Sets BIOS-given device names instead of kernel eth* names" +HOMEPAGE="http://linux.dell.com/biosdevname/" +SRC_URI="http://linux.dell.com/biosdevname/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="virtual/udev" +DEPEND="${CDEPEND} + sys-apps/pciutils" +RDEPEND="${CDEPEND}" + +src_prepare() { + sed -e 's|/sbin/biosdevname|/usr\0|g' -i "${S}"/biosdevname.rules.in +} + +pkg_postinst() { + elog "To make it working you need to remove" + elog "" + elog " /etc/udev/rules.d/70-persistent-net.rules" + elog "" + elog "and then reboot the machine. After reboot ethernet devices names will" + elog "change to the ones reported by BIOS. For more information you might" + elog "want to read following document:" + elog "" + elog " http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming" + elog "" + elog "To disable this feature, pass biosdevname=0 to kernel command line." + elog "" + elog "If you use Dracut, you might want to enable 'biosdevname' module" + elog "(in DRACUT_MODULES variable)." +} diff --git a/sys-apps/biosdevname/biosdevname-0.4.0.ebuild b/sys-apps/biosdevname/biosdevname-0.4.0.ebuild new file mode 100644 index 000000000000..cc48a0776f54 --- /dev/null +++ b/sys-apps/biosdevname/biosdevname-0.4.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Sets BIOS-given device names instead of kernel eth* names" +HOMEPAGE="http://linux.dell.com/biosdevname/" +SRC_URI="http://linux.dell.com/biosdevname/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="virtual/udev" +DEPEND="${CDEPEND} + sys-apps/pciutils" +RDEPEND="${CDEPEND}" + +src_prepare() { + sed -e 's|/sbin/biosdevname|/usr\0|g' -i "${S}"/biosdevname.rules.in +} + +pkg_postinst() { + elog "To make it working you need to remove" + elog "" + elog " /etc/udev/rules.d/70-persistent-net.rules" + elog "" + elog "and then reboot the machine. After reboot ethernet devices names will" + elog "change to the ones reported by BIOS. For more information you might" + elog "want to read following document:" + elog "" + elog " http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming" + elog "" + elog "To disable this feature, pass biosdevname=0 to kernel command line." + elog "" + elog "If you use Dracut, you might want to enable 'biosdevname' module" + elog "(in DRACUT_MODULES variable)." +} diff --git a/sys-apps/biosdevname/biosdevname-0.4.1.ebuild b/sys-apps/biosdevname/biosdevname-0.4.1.ebuild new file mode 100644 index 000000000000..72022c9aefe7 --- /dev/null +++ b/sys-apps/biosdevname/biosdevname-0.4.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit udev + +DESCRIPTION="Sets BIOS-given device names instead of kernel eth* names" +HOMEPAGE="http://linux.dell.com/biosdevname/" +SRC_URI="http://linux.dell.com/biosdevname/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="virtual/udev" +DEPEND="${CDEPEND} + sys-apps/pciutils" +RDEPEND="${CDEPEND}" + +src_prepare() { + sed -i -e 's|/sbin/biosdevname|/usr\0|g' biosdevname.rules.in || die + sed -i -e "/RULEDEST/s:/lib/udev:$(get_udevdir):" configure{,.ac} || die +} + +pkg_postinst() { + elog "To make it working you need to remove" + elog "" + elog " /etc/udev/rules.d/70-persistent-net.rules" + elog "" + elog "and then reboot the machine. After reboot ethernet devices names will" + elog "change to the ones reported by BIOS. For more information you might" + elog "want to read following document:" + elog "" + elog " http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming" + elog "" + elog "To disable this feature, pass biosdevname=0 to kernel command line." + elog "" + elog "If you use Dracut, you might want to enable 'biosdevname' module" + elog "(in DRACUT_MODULES variable)." +} diff --git a/sys-apps/biosdevname/biosdevname-0.6.1.ebuild b/sys-apps/biosdevname/biosdevname-0.6.1.ebuild new file mode 100644 index 000000000000..04c74128faa7 --- /dev/null +++ b/sys-apps/biosdevname/biosdevname-0.6.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit udev + +DESCRIPTION="Sets BIOS-given device names instead of kernel eth* names" +HOMEPAGE="http://linux.dell.com/biosdevname/" +SRC_URI="http://linux.dell.com/biosdevname/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +CDEPEND="virtual/udev" +DEPEND="${CDEPEND} + sys-apps/pciutils" +RDEPEND="${CDEPEND}" + +src_prepare() { + sed -i -e 's|/sbin/biosdevname|/usr\0|g' biosdevname.rules.in || die + sed -i -e "/RULEDEST/s:/lib/udev:$(get_udevdir):" configure{,.ac} || die +} diff --git a/sys-apps/biosdevname/metadata.xml b/sys-apps/biosdevname/metadata.xml new file mode 100644 index 000000000000..030bf464fc66 --- /dev/null +++ b/sys-apps/biosdevname/metadata.xml @@ -0,0 +1,14 @@ + + + + + aidecoe@gentoo.org + Amadeusz Żołnowski + + +biosdevname in its simplest form takes a kernel device name as an argument, and +returns the BIOS-given name it "should" be. This is necessary on systems where +the BIOS name for a given device (e.g. the label on the chassis is "Gb1") +doesn't map directly and obviously to the kernel name (e.g. eth0). + + diff --git a/sys-apps/biosdisk/Manifest b/sys-apps/biosdisk/Manifest new file mode 100644 index 000000000000..6d5af87c3b72 --- /dev/null +++ b/sys-apps/biosdisk/Manifest @@ -0,0 +1 @@ +DIST biosdisk-git-06112010.tar.gz 1195889 SHA256 3319207abb6715ca032852190c64a2b27a227364f848eccd362ecdf1d3102478 SHA512 ade60e0e1ebb069e7f8d2046eff479cdb5186e54e0408b7fe65ac803476c9e325f9771617bbbcd60471d6b2d637aaef20c68af89c16c4ea26e04cfe501e4a310 WHIRLPOOL ca5340c25ab4a1eb579d180d404a0e4314500d85a309acdf36d0359d145b2266c76fcb446ff10212efb926034640e041e448bedf94a868a013a76dcdd4063cdc diff --git a/sys-apps/biosdisk/biosdisk-0_p20100611-r1.ebuild b/sys-apps/biosdisk/biosdisk-0_p20100611-r1.ebuild new file mode 100644 index 000000000000..39fd2880515d --- /dev/null +++ b/sys-apps/biosdisk/biosdisk-0_p20100611-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit versionator python-single-r1 + +MY_PV=$(get_version_component_range 2) +MY_PV_YEAR=${MY_PV:1:4} +MY_PV_MONTH=${MY_PV:5:2} +MY_PV_DAY=${MY_PV:7:2} +MY_PV="${MY_PV_MONTH}${MY_PV_DAY}${MY_PV_YEAR}" + +S=${WORKDIR}/${PN} +DESCRIPTION="A script that creates floppy boot images to flash Dell BIOSes" +HOMEPAGE="http://en.community.dell.com/techcenter/os-applications/w/wiki/linux-projects.aspx" +SRC_URI="http://linux.dell.com/biosdisk/${PN}-git-${MY_PV}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RDEPEND=" + >=app-text/dos2unix-5.0 + sys-boot/syslinux + ${PYTHON_DEPS} +" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_install() { + python_fix_shebang blconf + + dosbin biosdisk blconf + + dodoc AUTHORS README README.dosdisk TODO VERSION + doman biosdisk.8.gz + + insinto /usr/share/biosdisk + doins dosdisk.img dosdisk{288,8192}.img biosdisk-mkrpm-{fedora,redhat,generic}-template.spec + + insinto /etc + doins biosdisk.conf +} diff --git a/sys-apps/biosdisk/metadata.xml b/sys-apps/biosdisk/metadata.xml new file mode 100644 index 000000000000..b61e26392d00 --- /dev/null +++ b/sys-apps/biosdisk/metadata.xml @@ -0,0 +1,14 @@ + + + +proxy-maintainers + + mattsch@gmail.com + Matthew Schultz + Assign bugs to him + + + pacho@gentoo.org + Proxy maintainer, CC him in bugs + + diff --git a/sys-apps/bleachbit/Manifest b/sys-apps/bleachbit/Manifest new file mode 100644 index 000000000000..1cade2bbe62a --- /dev/null +++ b/sys-apps/bleachbit/Manifest @@ -0,0 +1,3 @@ +DIST bleachbit-1.2.tar.bz2 346530 SHA256 655b6e1ef7d5658c8e1a8e62b2c4ae0e4b1af484e47f1fb93a735892bbd2eea3 SHA512 a84881789c408335493b0923b51e66940295c430b2ea8838e420603ef8ee7548a0a1d605564070034bfe3a2d9159015e403db14470d6b33cf5260c3e4b43d267 WHIRLPOOL 262b7261188097d36584019a38ce8ef291572b85be318f39a6bb603546a39c733b9da761763b1234b8762bae4bde8dd0ee7cb8bac5abcebe3541f81025f5fff8 +DIST bleachbit-1.4.tar.bz2 351729 SHA256 6ccba22b865718e4b72fdba527af71b79b01cbd63108f1cfe845eababf4bd0b3 SHA512 e460f65f1f732d20723d8f64685209959c1482ecff385ccb779baad866af0d4b7004b14351ec3f8d3179c5bd94edfdfc9a2e1413c414d61d45cbe361cb41f375 WHIRLPOOL b6b735fe62dadbb5874d3577e4e7a31b8de275e89a0bd1325a3680f91e06e4b773752226c55a4b90caaa6bf01e18e8111fa2277c4ff3d34c156922ceb96e2051 +DIST bleachbit-1.9.1.tar.bz2 371882 SHA256 8d15c6d849043f44a184d85c2b79324c7441d40f348493acb9a2fc8f675b4c51 SHA512 a72f35be5f0de07fe5dc6f5fd5cea4c235249f2a7714e820e91bfabc41585e2c31bb316779760a3755579ade0cfe310101bf0c70f919b9cf1f37872ac0dfb23a WHIRLPOOL 98cfd1d4597d77b337d87ab0b52f38e7608b4acdca1e44b1c6c432c0649b660b54350271d0ac9449761d6bb0609a32093f0ada941140bbff457f8dbc25d51bf2 diff --git a/sys-apps/bleachbit/bleachbit-1.2.ebuild b/sys-apps/bleachbit/bleachbit-1.2.ebuild new file mode 100644 index 000000000000..bad30be4768b --- /dev/null +++ b/sys-apps/bleachbit/bleachbit-1.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PLOCALES="ar ast be bg bn bs ca cs da de el en_AU en_GB eo es et eu fa fi fo fr gl he hi hr hu hy ia id it ja ko ku ky lt ms +my nb nds nl pl pt_BR pt ro ru se si sk sl sr sv ta te th tr ug uk uz vi zh_CN zh_TW" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 eutils l10n + +DESCRIPTION="Clean junk to free disk space and to maintain privacy" +HOMEPAGE="http://bleachbit.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+gtk nls" + +RDEPEND="gtk? ( dev-python/pygtk:2[$PYTHON_USEDEP] )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +DOCS=( README ) + +python_prepare_all() { + rem_locale() { + rm "po/${1}.po" || die "removing of ${1}.po failed" + } + + l10n_find_plocales_changes po "" ".po" + l10n_for_each_disabled_locale_do rem_locale + + addpredict /root/.gnome2 #401981 + + # warning: key "Encoding" in group "Desktop Entry" is deprecated + sed -i -e '/Encoding/d' ${PN}.desktop || die + + # choose correct Python implementation, bug #465254 + sed -i -e 's/python/$(PYTHON)/g' po/Makefile || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use nls && emake -C po +} + +python_install_all() { + distutils-r1_python_install_all + use nls && emake -C po DESTDIR="${D}" install + + # http://bugs.gentoo.org/388999 + insinto /usr/share/${PN}/cleaners + doins cleaners/*.xml + + newbin ${PN}.py ${PN} + python_replicate_script "${D}/usr/bin/${PN}" + + doicon ${PN}.png + domenu ${PN}.desktop +} diff --git a/sys-apps/bleachbit/bleachbit-1.4.ebuild b/sys-apps/bleachbit/bleachbit-1.4.ebuild new file mode 100644 index 000000000000..fe0b6f7f1373 --- /dev/null +++ b/sys-apps/bleachbit/bleachbit-1.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PLOCALES="ar ast be bg bn bs ca cs da de el en_AU en_GB eo es et eu fa fi fo fr gl he hi hr hu hy ia id it ja ko ku ky lt ms +my nb nds nl pl pt_BR pt ro ru se si sk sl sr sv ta te th tr ug uk uz vi zh_CN zh_TW" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 eutils l10n + +DESCRIPTION="Clean junk to free disk space and to maintain privacy" +HOMEPAGE="http://bleachbit.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+gtk nls" + +RDEPEND="gtk? ( dev-python/pygtk:2[$PYTHON_USEDEP] )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +DOCS=( README ) + +python_prepare_all() { + rem_locale() { + rm "po/${1}.po" || die "removing of ${1}.po failed" + } + + l10n_find_plocales_changes po "" ".po" + l10n_for_each_disabled_locale_do rem_locale + + addpredict /root/.gnome2 #401981 + + # warning: key "Encoding" in group "Desktop Entry" is deprecated + sed -i -e '/Encoding/d' ${PN}.desktop || die + + # choose correct Python implementation, bug #465254 + sed -i -e 's/python/$(PYTHON)/g' po/Makefile || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use nls && emake -C po +} + +python_install_all() { + distutils-r1_python_install_all + use nls && emake -C po DESTDIR="${D}" install + + # http://bugs.gentoo.org/388999 + insinto /usr/share/${PN}/cleaners + doins cleaners/*.xml + + newbin ${PN}.py ${PN} + python_replicate_script "${D}/usr/bin/${PN}" + + doicon ${PN}.png + domenu ${PN}.desktop +} diff --git a/sys-apps/bleachbit/bleachbit-1.9.1.ebuild b/sys-apps/bleachbit/bleachbit-1.9.1.ebuild new file mode 100644 index 000000000000..d07636decf75 --- /dev/null +++ b/sys-apps/bleachbit/bleachbit-1.9.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PLOCALES="ar ast be bg bn bs ca cs da de el en_AU en_GB eo es et eu fa fi fo fr gl he hi hr hu hy ia id it ja ko ku ky lt lv +ms my nb nds nl nn pl pt_BR pt ro ru se si sk sl sr sv ta te th tr ug uk uz vi zh_CN zh_TW" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 eutils l10n + +DESCRIPTION="Clean junk to free disk space and to maintain privacy" +HOMEPAGE="http://bleachbit.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+gtk nls" + +RDEPEND="gtk? ( dev-python/pygtk:2[$PYTHON_USEDEP] )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +DOCS=( README.md ) + +python_prepare_all() { + rem_locale() { + rm "po/${1}.po" || die "removing of ${1}.po failed" + } + + l10n_find_plocales_changes po "" ".po" + l10n_for_each_disabled_locale_do rem_locale + + #addpredict /root/.gnome2 #401981 + + # warning: key "Encoding" in group "Desktop Entry" is deprecated + sed -i -e '/Encoding/d' ${PN}.desktop || die + + # choose correct Python implementation, bug #465254 + sed -i -e 's/python/$(PYTHON)/g' po/Makefile || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use nls && emake -C po +} + +python_install_all() { + distutils-r1_python_install_all + use nls && emake -C po DESTDIR="${D}" install + + # http://bugs.gentoo.org/388999 + insinto /usr/share/${PN}/cleaners + doins cleaners/*.xml + + newbin ${PN}.py ${PN} + python_replicate_script "${D}/usr/bin/${PN}" + + doicon ${PN}.png + domenu ${PN}.desktop +} diff --git a/sys-apps/bleachbit/metadata.xml b/sys-apps/bleachbit/metadata.xml new file mode 100644 index 000000000000..21591c8dd36e --- /dev/null +++ b/sys-apps/bleachbit/metadata.xml @@ -0,0 +1,12 @@ + + + + + dastergon@gentoo.org + Pavlos Ratis + + + bleachbit + http://bugs.launchpad.net/bleachbit + + diff --git a/sys-apps/busybox/Manifest b/sys-apps/busybox/Manifest new file mode 100644 index 000000000000..70008b2c9a26 --- /dev/null +++ b/sys-apps/busybox/Manifest @@ -0,0 +1,8 @@ +DIST busybox-1.20.2.tar.bz2 2186738 SHA256 eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882 SHA512 089b67cd920f332daf910711739b1e55ba4c76cfa2122dfe5464432e0d76d3af8327837ebc3cc9954deef3e8f766d16a1928aecb2c169fe3de5a722eea7ea3dd WHIRLPOOL aa8fec92d0ac8bb246dea7353537d425a5fecfa0bb807d0e291c7351e8289b84aab83303c45b75f9b7a98cd10177e210511064f0709425c2f84b069fe6a06420 +DIST busybox-1.21.0.tar.bz2 2200841 SHA256 eb9d268627783297f5f459cb9bd61a94e395dc7cb3647e10ec186e0159aa36ed SHA512 ddafded24881f03db550d9793585bb5442c70f2a60a5d9770126f50981dadfe95fc0b280f83d5b8a8ce21c86bb7ce64e9f1a606cea140fb2f2599a21de55ba31 WHIRLPOOL d50378bb823dd59e8a607ed6a72d4890f4e5ad3304f1ddba9f7f3d49b5ab820acc9daa2b3c4619f8b147dec085c53c3c6f4b4ebe4c60b431299031d2af00a4d3 +DIST busybox-1.21.1.tar.bz2 2201917 SHA256 cd5be0912ec856110ae12c76c3ec9cd5cba1df45b5a9da2b095b8284d1481303 SHA512 b1dd626e1c111214ebd9b933ce2465c943fd8a0a515b6962a31f3a76276ff7992c21b7f96eeb9baeb861a5e734689054e6df5dd6414c753c37084e2d705810e1 WHIRLPOOL 8ec0d9c23d8e2eb28e7f8e88f076908cf6a3f7b64aabd0a7a1af2200064a5337c82fdac9450726236e0632faa202ea08396ca5c35e5334c2128a307adbdd736c +DIST busybox-1.22.0.tar.bz2 2218120 SHA256 92f00cd391b7d5fa2215c8450abe2ba15f9d16c226e8855fb21b6c9a5b723a53 SHA512 75d00fbad703d942c5a6882bda0c66fde32fb480ee9693c8da8107c2088ec5c95aad8eb3dbb2feceed095e133916fea27136328b7a1eba47e3b63bf50bc40a66 WHIRLPOOL 055aba8e8d116f664f61458f32c31c08bfdb0db97934eb00af02098981e25665aff16e9a371234a6859e4954d1568603a99ca7d6925cd42a27e7dae30523514f +DIST busybox-1.22.1.tar.bz2 2218650 SHA256 ae0b029d0a9e4dd71a077a790840e496dd838998e4571b87b60fed7462b6678b SHA512 3e99fe373d638f714c3a61e1b02493d85ca532f472df038f7557db518ded38347072882ed568852941be7aac46fc34007257b4287375335ff5a09b60b295ce80 WHIRLPOOL 8f022480960b81d673772bdda857b5b3860edd893a833a64f5184ec6816b6b0f328079ca67ec1ba1d288a7c4b805b39c6038f0d385884762a396a86ccea7b0c8 +DIST busybox-1.23.0.tar.bz2 2253001 SHA256 483ab594dd962ddbb332fd24e36ffdd6e36ac2182fbff055c56e1ca49fda09e4 SHA512 02c8f9dd9e47ad67b417fa58ba952bbdda6e79bad5399fba3d8217803053c2fd045228bd76d56e97d40c98296841dc66e4fa829887c05378a83bdeabafeb7f72 WHIRLPOOL 01d68487d4d3cff4fb807970446f42db1dec3309fdd3fb0402f138eee28dc0885dba324b5b12b417effd4fad87581a32da09a0e9f7c050377025a52ecce2308b +DIST busybox-1.23.1.tar.bz2 2252635 SHA256 300f1db0a7ca4ecee8f8d8027aba250b903372e8339b7d9123d37c1e900473bf SHA512 60849c220dde596c4197f16dd844573b24dd46c8544345a2d5a2b1976fa0ac340d22fbc97f5a1437b7de1c04f4e16aa07b3d62bc77eb83b2467582a50ed4b362 WHIRLPOOL 7cd25e42e74663849b094df699a72deaf02b1088064a511341f76aaa419c936557bbafd54523c6818082dfd4e17605f06ee51abed238ef57a56a9be12c910f99 +DIST busybox-1.23.2.tar.bz2 2252786 SHA256 05a6f9e21aad8c098e388ae77de7b2361941afa7157ef74216703395b14e319a SHA512 209c8ef26e40ccb81510f6b663202b080f9bbecac7faf386bbabf7e36a43d63b15dd6ce9f7a84c1ccc5345c524999812251da1e113ef9faadc6af1fedd24c7c9 WHIRLPOOL a0396f7f49ae702f1617e72d5d4646aceec4eba67219c7125bd8d0926d1acb1ef41ea15a7406c3cf5e5e0d8925cc75910ed5128e5fbdd257b80e2cb4f7a048a2 diff --git a/sys-apps/busybox/busybox-1.20.2.ebuild b/sys-apps/busybox/busybox-1.20.2.ebuild new file mode 100644 index 000000000000..465f436de71c --- /dev/null +++ b/sys-apps/busybox/busybox-1.20.2.ebuild @@ -0,0 +1,291 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +################################################################################ +# BUSYBOX ALTERNATE CONFIG MINI-HOWTO +# +# Busybox can be modified in many different ways. Here's a few ways to do it: +# +# (1) Emerge busybox with FEATURES=keepwork so the work directory won't +# get erased afterwards. Add a definition like ROOT=/my/root/path to the +# start of the line if you're installing to somewhere else than the root +# directory. This command will save the default configuration to +# ${PORTAGE_CONFIGROOT} (or ${ROOT} if ${PORTAGE_CONFIGROOT} is not +# defined), and it will tell you that it has done this. Note the location +# where the config file was saved. +# +# FEATURES=keepwork USE=savedconfig emerge busybox +# +# (2) Go to the work directory and change the configuration of busybox using its +# menuconfig feature. +# +# cd /var/tmp/portage/busybox*/work/busybox-* +# make menuconfig +# +# (3) Save your configuration to the default location and copy it to the +# one of the locations listed in /usr/portage/eclass/savedconfig.eclass +# +# (4) Emerge busybox with USE=savedconfig to use the configuration file you +# just generated. +# +################################################################################ +# +# (1) Alternatively skip the above steps and simply emerge busybox without +# USE=savedconfig. +# +# (2) Edit the file it saves by hand. ${ROOT}"/etc/portage/savedconfig/${CATEGORY}/${PF} +# +# (3) Remerge busybox as using USE=savedconfig. +# +################################################################################ + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static systemd" +RESTRICT="test" + +RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" + +S=${WORKDIR}/${MY_P} + +busybox_config_option() { + case $1 in + y) sed -i -e "s:.*\.*set:CONFIG_$2=y:g" .config;; + n) sed -i -e "s:CONFIG_$2=y:# CONFIG_$2 is not set:g" .config;; + *) use $1 \ + && busybox_config_option y $2 \ + || busybox_config_option n $2 + return 0 + ;; + esac + einfo $(grep "CONFIG_$2[= ]" .config || echo Could not find CONFIG_$2 ...) +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${PN}-1.20.0-udhcpc6-ipv6.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 oldconfig > /dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 allyesconfig > /dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.rc.1 mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.21.0.ebuild b/sys-apps/busybox/busybox-1.21.0.ebuild new file mode 100644 index 000000000000..6bb6f6d97142 --- /dev/null +++ b/sys-apps/busybox/busybox-1.21.0.ebuild @@ -0,0 +1,299 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" + +S=${WORKDIR}/${MY_P} + +busybox_config_option() { + local flag=$1 ; shift + if [[ ${flag} != [yn] ]] ; then + busybox_config_option $(usex ${flag} y n) "$@" + return + fi + while [[ $# -gt 0 ]] ; do + if [[ ${flag} == "y" ]] ; then + sed -i -e "s:.*\.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 oldconfig > /dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 allyesconfig > /dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.rc.1 mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.21.1.ebuild b/sys-apps/busybox/busybox-1.21.1.ebuild new file mode 100644 index 000000000000..7db94ece64a5 --- /dev/null +++ b/sys-apps/busybox/busybox-1.21.1.ebuild @@ -0,0 +1,299 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" + +S=${WORKDIR}/${MY_P} + +busybox_config_option() { + local flag=$1 ; shift + if [[ ${flag} != [yn] ]] ; then + busybox_config_option $(usex ${flag} y n) "$@" + return + fi + while [[ $# -gt 0 ]] ; do + if [[ ${flag} == "y" ]] ; then + sed -i -e "s:.*\.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 oldconfig > /dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 allyesconfig > /dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.rc.1 mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.22.0.ebuild b/sys-apps/busybox/busybox-1.22.0.ebuild new file mode 100644 index 000000000000..82f62c91a3b1 --- /dev/null +++ b/sys-apps/busybox/busybox-1.22.0.ebuild @@ -0,0 +1,299 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" + +S=${WORKDIR}/${MY_P} + +busybox_config_option() { + local flag=$1 ; shift + if [[ ${flag} != [yn] ]] ; then + busybox_config_option $(usex ${flag} y n) "$@" + return + fi + while [[ $# -gt 0 ]] ; do + if [[ ${flag} == "y" ]] ; then + sed -i -e "s:.*\.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 oldconfig > /dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 allyesconfig > /dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.rc.1 mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.22.1-r1.ebuild b/sys-apps/busybox/busybox-1.22.1-r1.ebuild new file mode 100644 index 000000000000..d6d5bfa41449 --- /dev/null +++ b/sys-apps/busybox/busybox-1.22.1-r1.ebuild @@ -0,0 +1,300 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" + +S=${WORKDIR}/${MY_P} + +busybox_config_option() { + local flag=$1 ; shift + if [[ ${flag} != [yn] ]] ; then + busybox_config_option $(usex ${flag} y n) "$@" + return + fi + while [[ $# -gt 0 ]] ; do + if [[ ${flag} == "y" ]] ; then + sed -i -e "s:.*\.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 -s oldconfig >/dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 -s defconfig >/dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 -s oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + busybox_config_option n UDHCPC6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + busybox_config_option $(usex debug y n) TFTP_DEBUG + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.rc.1 mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.22.1.ebuild b/sys-apps/busybox/busybox-1.22.1.ebuild new file mode 100644 index 000000000000..9d6a3e71acc5 --- /dev/null +++ b/sys-apps/busybox/busybox-1.22.1.ebuild @@ -0,0 +1,299 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${RDEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" + +S=${WORKDIR}/${MY_P} + +busybox_config_option() { + local flag=$1 ; shift + if [[ ${flag} != [yn] ]] ; then + busybox_config_option $(usex ${flag} y n) "$@" + return + fi + while [[ $# -gt 0 ]] ; do + if [[ ${flag} == "y" ]] ; then + sed -i -e "s:.*\.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 oldconfig > /dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 allyesconfig > /dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.rc.1 mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.23.0-r1.ebuild b/sys-apps/busybox/busybox-1.23.0-r1.ebuild new file mode 100644 index 000000000000..e413eeeaceac --- /dev/null +++ b/sys-apps/busybox/busybox-1.23.0-r1.ebuild @@ -0,0 +1,302 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${COMMON_DEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" +RDEPEND="${COMMON_DEPEND} +mdev? ( !.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch +# epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 -s oldconfig >/dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 -s allyesconfig >/dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 -s oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + busybox_config_option n UDHCPC6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + busybox_config_option $(usex debug y n) TFTP_DEBUG + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.initd mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.23.1-r1.ebuild b/sys-apps/busybox/busybox-1.23.1-r1.ebuild new file mode 100644 index 000000000000..66057b0d009e --- /dev/null +++ b/sys-apps/busybox/busybox-1.23.1-r1.ebuild @@ -0,0 +1,303 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 s390 sh ~sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${COMMON_DEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" +RDEPEND="${COMMON_DEPEND} +mdev? ( !.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 -s oldconfig >/dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 -s allyesconfig >/dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 -s oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n START_STOP_DAEMON + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + busybox_config_option n UDHCPC6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + busybox_config_option $(usex debug y n) TFTP_DEBUG + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.initd mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.23.1.ebuild b/sys-apps/busybox/busybox-1.23.1.ebuild new file mode 100644 index 000000000000..ad6264807fbb --- /dev/null +++ b/sys-apps/busybox/busybox-1.23.1.ebuild @@ -0,0 +1,302 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${COMMON_DEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" +RDEPEND="${COMMON_DEPEND} +mdev? ( !.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch +# epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 -s oldconfig >/dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 -s allyesconfig >/dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 -s oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + busybox_config_option n UDHCPC6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + busybox_config_option $(usex debug y n) TFTP_DEBUG + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.initd mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-1.23.2.ebuild b/sys-apps/busybox/busybox-1.23.2.ebuild new file mode 100644 index 000000000000..5492e2b35977 --- /dev/null +++ b/sys-apps/busybox/busybox-1.23.2.ebuild @@ -0,0 +1,305 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${COMMON_DEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" +RDEPEND="${COMMON_DEPEND} +mdev? ( !.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch + epatch "${FILESDIR}"/${PN}-1.23.1-trylink-flags.patch + # No busybox-1.23.2 specific patches ... yet! + #epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 -s oldconfig >/dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 -s allyesconfig >/dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 -s oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n START_STOP_DAEMON + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + busybox_config_option n UDHCPC6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + busybox_config_option $(usex debug y n) TFTP_DEBUG + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.initd mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/busybox-9999.ebuild b/sys-apps/busybox/busybox-9999.ebuild new file mode 100644 index 000000000000..c51709160450 --- /dev/null +++ b/sys-apps/busybox/busybox-9999.ebuild @@ -0,0 +1,303 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# See `man savedconfig.eclass` for info on how to use USE=savedconfig. + +EAPI="4" +inherit eutils flag-o-matic savedconfig toolchain-funcs multilib + +DESCRIPTION="Utilities for rescue and embedded systems" +HOMEPAGE="http://www.busybox.net/" +if [[ ${PV} == "9999" ]] ; then + MY_P=${PN} + EGIT_REPO_URI="git://busybox.net/busybox.git" + inherit git-2 +else + MY_P=${PN}-${PV/_/-} + SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" +RESTRICT="test" + +COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) + pam? ( sys-libs/pam )" +DEPEND="${COMMON_DEPEND} + static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) + >=sys-kernel/linux-headers-2.6.39" +RDEPEND="${COMMON_DEPEND} +mdev? ( !.*set:CONFIG_$1=y:g" .config + else + sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config + fi + einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) + shift + done +} + +busybox_config_enabled() { + local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) + case ${val} in + "") return 1 ;; + y) return 0 ;; + *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; + esac +} + +src_prepare() { + unset KBUILD_OUTPUT #88088 + append-flags -fno-strict-aliasing #310413 + use ppc64 && append-flags -mminimal-toc #130943 + + # patches go here! + epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch +# epatch "${FILESDIR}"/${P}-*.patch + cp "${FILESDIR}"/ginit.c init/ || die + + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || die + #sed -i '/bbsh/s:^//::' include/applets.h + sed -i '/^#error Aborting compilation./d' applets/applets.c || die + use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^AR\>/s:=.*:= $(tc-getAR):" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || die + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die +} + +src_configure() { + # check for a busybox config before making one of our own. + # if one exist lets return and use it. + + restore_config .config + if [ -f .config ]; then + yes "" | emake -j1 -s oldconfig >/dev/null + return 0 + else + ewarn "Could not locate user configfile, so we will save a default one" + fi + + # setup the config file + emake -j1 -s allyesconfig >/dev/null + # nommu forces a bunch of things off which we want on #387555 + busybox_config_option n NOMMU + sed -i '/^#/d' .config + yes "" | emake -j1 -s oldconfig >/dev/null + + # now turn off stuff we really don't want + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID_CONFIG + busybox_config_option n BUILD_AT_ONCE + busybox_config_option n BUILD_LIBBUSYBOX + busybox_config_option n FEATURE_CLEAN_UP + busybox_config_option n MONOTONIC_SYSCALL + busybox_config_option n START_STOP_DAEMON + busybox_config_option n USE_PORTABLE_CODE + busybox_config_option n WERROR + + # If these are not set and we are using a uclibc/busybox setup + # all calls to system() will fail. + busybox_config_option y ASH + busybox_config_option n HUSH + + # disable ipv6 applets + if ! use ipv6; then + busybox_config_option n FEATURE_IPV6 + busybox_config_option n TRACEROUTE6 + busybox_config_option n PING6 + busybox_config_option n UDHCPC6 + fi + + if use static && use pam ; then + ewarn "You cannot have USE='static pam'. Assuming static is more important." + fi + busybox_config_option $(usex static n pam) PAM + busybox_config_option static STATIC + busybox_config_option syslog {K,SYS}LOGD LOGGER + busybox_config_option systemd FEATURE_SYSTEMD + busybox_config_option math FEATURE_AWK_LIBM + + # all the debug options are compiler related, so punt them + busybox_config_option n DEBUG + busybox_config_option y NO_DEBUG_LIB + busybox_config_option n DMALLOC + busybox_config_option n EFENCE + busybox_config_option $(usex debug y n) TFTP_DEBUG + + busybox_config_option selinux SELINUX + + # this opt only controls mounting with /dev/null +} + +src_compile() { + unset KBUILD_OUTPUT #88088 + export SKIP_STRIP=y + + emake V=1 busybox +} + +src_install() { + unset KBUILD_OUTPUT #88088 + save_config .config + + into / + dodir /bin + if use sep-usr ; then + # install /ginit to take care of mounting stuff + exeinto / + newexe busybox_unstripped ginit + dosym /ginit /bin/bb + dosym bb /bin/busybox + else + newbin busybox_unstripped busybox + dosym busybox /bin/bb + fi + if use mdev ; then + dodir /$(get_libdir)/mdev/ + use make-symlinks || dosym /bin/bb /sbin/mdev + cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf + + exeinto /$(get_libdir)/mdev/ + doexe "${FILESDIR}"/mdev/* + + newinitd "${FILESDIR}"/mdev.initd mdev + fi + if use livecd ; then + dosym busybox /bin/vi + fi + + # add busybox daemon's, bug #444718 + if busybox_config_enabled FEATURE_NTPD_SERVER; then + newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" + newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" + fi + if busybox_config_enabled SYSLOGD; then + newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" + newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" + fi + if busybox_config_enabled KLOGD; then + newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" + newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" + fi + if busybox_config_enabled WATCHDOG; then + newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" + newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" + fi + if busybox_config_enabled UDHCPC; then + local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) + exeinto "${path%/*}" + newexe examples/udhcp/simple.script "${path##*/}" + fi + if busybox_config_enabled UDHCPD; then + insinto /etc + doins examples/udhcp/udhcpd.conf + fi + + # bundle up the symlink files for use later + emake DESTDIR="${ED}" install + rm _install/bin/busybox + # for compatibility, provide /usr/bin/env + mkdir -p _install/usr/bin + ln -s /bin/env _install/usr/bin/env + tar cf busybox-links.tar -C _install . || : #;die + insinto /usr/share/${PN} + use make-symlinks && doins busybox-links.tar + + dodoc AUTHORS README TODO + + cd docs + docinto txt + dodoc *.txt + docinto pod + dodoc *.pod + dohtml *.html + + cd ../examples + docinto examples + dodoc inittab depmod.pl *.conf *.script undeb unrpm +} + +pkg_preinst() { + if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then + ewarn "setting USE=make-symlinks and emerging to / is very dangerous." + ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." + ewarn "If you are creating a binary only and not merging this is probably ok." + ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." + die "silly options will destroy your system" + fi + + if use make-symlinks ; then + mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die + fi +} + +pkg_postinst() { + savedconfig_pkg_postinst + + if use make-symlinks ; then + cd "${T}" || die + mkdir _install + tar xf busybox-links.tar -C _install || die + cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" + fi + + if use sep-usr ; then + elog "In order to use the sep-usr support, you have to update your" + elog "kernel command line. Add the option:" + elog " init=/ginit" + elog "To launch a different init than /sbin/init, use:" + elog " init=/ginit /sbin/yourinit" + elog "To get a rescue shell, you may boot with:" + elog " init=/ginit bb" + fi +} diff --git a/sys-apps/busybox/files/busybox-1.19.0-bb.patch b/sys-apps/busybox/files/busybox-1.19.0-bb.patch new file mode 100644 index 000000000000..a66b45a5e21d --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.19.0-bb.patch @@ -0,0 +1,22 @@ +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -75,6 +75,8 @@ + //applet:IF_ASH(APPLET(ash, BB_DIR_BIN, BB_SUID_DROP)) + //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, BB_DIR_BIN, BB_SUID_DROP, sh)) + //applet:IF_FEATURE_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, BB_DIR_BIN, BB_SUID_DROP, bash)) ++//applet:IF_ASH(APPLET_ODDNAME(bb, ash, BB_DIR_BIN, BB_SUID_DROP, ash)) ++//applet:IF_ASH(APPLET_ODDNAME(bbsh, ash, BB_DIR_BIN, BB_SUID_DROP, ash)) + + //kbuild:lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o shell_common.o + //kbuild:lib-$(CONFIG_ASH_RANDOM_SUPPORT) += random.o +--- a/shell/ash.c ++++ b/shell/ash.c +@@ -7255,6 +7255,8 @@ + } + /* re-exec ourselves with the new arguments */ + execve(bb_busybox_exec_path, argv, envp); ++ execve("/bin/busybox.static", argv, envp); ++ execve("/bin/busybox", argv, envp); + /* If they called chroot or otherwise made the binary no longer + * executable, fall through */ + } diff --git a/sys-apps/busybox/files/busybox-1.20.0-udhcpc6-ipv6.patch b/sys-apps/busybox/files/busybox-1.20.0-udhcpc6-ipv6.patch new file mode 100644 index 000000000000..0148809d0fd3 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.20.0-udhcpc6-ipv6.patch @@ -0,0 +1,33 @@ +From 3da46c8163ecf14a02f8317d0b76b225eceaf28c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Wed, 2 May 2012 21:45:35 -0400 +Subject: [PATCH] udhcpc6: depend on ipv6 + +Signed-off-by: Mike Frysinger +--- + networking/udhcp/d6_dhcpc.c | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c +index a792a9d..7c9f52a 100644 +--- a/networking/udhcp/d6_dhcpc.c ++++ b/networking/udhcp/d6_dhcpc.c +@@ -12,10 +12,11 @@ + */ + + //config:config UDHCPC6 +-//config: bool "udhcp client for DHCPv6 (udhcpc6)" +-//config: default n # not yet ready +-//config: help +-//config: udhcpc6 is a DHCPv6 client ++//config: bool "udhcp client for DHCPv6 (udhcpc6)" ++//config: default n # not yet ready ++//config: depends on FEATURE_IPV6 ++//config: help ++//config: udhcpc6 is a DHCPv6 client + + //applet:IF_UDHCPC6(APPLET(udhcpc6, BB_DIR_USR_BIN, BB_SUID_DROP)) + +-- +1.7.9.7 + diff --git a/sys-apps/busybox/files/busybox-1.20.2-glibc-sys-resource.patch b/sys-apps/busybox/files/busybox-1.20.2-glibc-sys-resource.patch new file mode 100644 index 000000000000..f682d00f7022 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.20.2-glibc-sys-resource.patch @@ -0,0 +1,109 @@ +https://bugs.gentoo.org/424954 + +From c5fe9f7b723f949457263ef8e22ab807d5b549ce Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Thu, 5 Jul 2012 23:19:09 -0400 +Subject: [PATCH] include sys/resource.h where needed + +We use functions from sys/resource.h in misc applets, but don't include +the header. This breaks building with newer glibc versions, so add the +include where needed. + +Signed-off-by: Mike Frysinger +--- + loginutils/passwd.c | 1 + + miscutils/time.c | 1 + + networking/inetd.c | 1 + + networking/ntpd.c | 1 + + networking/ntpd_simple.c | 1 + + runit/chpst.c | 1 + + shell/shell_common.c | 1 + + 7 files changed, 7 insertions(+) + +diff --git a/loginutils/passwd.c b/loginutils/passwd.c +index b83db00..a7006f0 100644 +--- a/loginutils/passwd.c ++++ b/loginutils/passwd.c +@@ -15,6 +15,7 @@ + + #include "libbb.h" + #include ++#include /* setrlimit */ + + static void nuke_str(char *str) + { +diff --git a/miscutils/time.c b/miscutils/time.c +index 945f15f..ffed386 100644 +--- a/miscutils/time.c ++++ b/miscutils/time.c +@@ -16,6 +16,7 @@ + //usage: "\n -v Verbose" + + #include "libbb.h" ++#include /* getrusage */ + + /* Information on the resources used by a child process. */ + typedef struct { +diff --git a/networking/inetd.c b/networking/inetd.c +index 1308d74..00baf69 100644 +--- a/networking/inetd.c ++++ b/networking/inetd.c +@@ -165,6 +165,7 @@ + //usage: "\n (default: 0 - disabled)" + + #include ++#include /* setrlimit */ + #include + + #include "libbb.h" +diff --git a/networking/ntpd.c b/networking/ntpd.c +index 72e9d0b..5b92db6 100644 +--- a/networking/ntpd.c ++++ b/networking/ntpd.c +@@ -46,6 +46,7 @@ + #include "libbb.h" + #include + #include /* For IPTOS_LOWDELAY definition */ ++#include /* setpriority */ + #include + #ifndef IPTOS_LOWDELAY + # define IPTOS_LOWDELAY 0x10 +diff --git a/networking/ntpd_simple.c b/networking/ntpd_simple.c +index 4ad44e4..1b7c66b 100644 +--- a/networking/ntpd_simple.c ++++ b/networking/ntpd_simple.c +@@ -7,6 +7,7 @@ + */ + #include "libbb.h" + #include /* For IPTOS_LOWDELAY definition */ ++#include /* setpriority */ + #ifndef IPTOS_LOWDELAY + # define IPTOS_LOWDELAY 0x10 + #endif +diff --git a/runit/chpst.c b/runit/chpst.c +index ac296ba..ed72c8b 100644 +--- a/runit/chpst.c ++++ b/runit/chpst.c +@@ -91,6 +91,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + //usage: "\n a SIGXCPU after N seconds" + + #include "libbb.h" ++#include /* getrlimit */ + + /* + Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. +diff --git a/shell/shell_common.c b/shell/shell_common.c +index 51c92d6..780e27e 100644 +--- a/shell/shell_common.c ++++ b/shell/shell_common.c +@@ -18,6 +18,7 @@ + */ + #include "libbb.h" + #include "shell_common.h" ++#include /* getrlimit */ + + const char defifsvar[] ALIGN1 = "IFS= \t\n"; + +-- +1.7.9.7 + diff --git a/sys-apps/busybox/files/busybox-1.20.2-selinux-pkg-config.patch b/sys-apps/busybox/files/busybox-1.20.2-selinux-pkg-config.patch new file mode 100644 index 000000000000..5e9ef26d056e --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.20.2-selinux-pkg-config.patch @@ -0,0 +1,67 @@ +From 5694afd72a0a424fcdd2ac85838229a1a86b7e84 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sat, 20 Oct 2012 15:01:26 -0400 +Subject: [PATCH] build system: use pkg-config to look up selinux libs + +Newer versions of libselinux has started linking against more libs. +Rather than continuing hardcoding things, switch to using pkg-config +to query for its dependencies. + +Signed-off-by: Mike Frysinger +--- + Makefile | 1 + + Makefile.flags | 12 +++++++++++- + 2 files changed, 12 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index b2e9477..8995ff5 100644 +--- a/Makefile ++++ b/Makefile +@@ -297,6 +297,7 @@ NM = $(CROSS_COMPILE)nm + STRIP = $(CROSS_COMPILE)strip + OBJCOPY = $(CROSS_COMPILE)objcopy + OBJDUMP = $(CROSS_COMPILE)objdump ++PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config + AWK = awk + GENKSYMS = scripts/genksyms/genksyms + DEPMOD = /sbin/depmod +diff --git a/Makefile.flags b/Makefile.flags +index e77c0e5..307afa7 100644 +--- a/Makefile.flags ++++ b/Makefile.flags +@@ -78,6 +78,12 @@ ARCH_FPIC ?= -fpic + ARCH_FPIE ?= -fpie + ARCH_PIE ?= -pie + ++# Usage: $(eval $(call pkg_check_modules,VARIABLE-PREFIX,MODULES)) ++define pkg_check_modules ++$(1)_CFLAGS := $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags $(2)) ++$(1)_LIBS := $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs $(2)) ++endef ++ + ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) + # on i386: 14% smaller libbusybox.so + # (code itself is 9% bigger, we save on relocs/PLT/GOT) +@@ -89,6 +95,7 @@ endif + + ifeq ($(CONFIG_STATIC),y) + CFLAGS_busybox += -static ++PKG_CONFIG_FLAGS += --static + endif + + ifeq ($(CONFIG_PIE),y) +@@ -131,7 +138,10 @@ LDLIBS += pam pam_misc pthread + endif + + ifeq ($(CONFIG_SELINUX),y) +-LDLIBS += selinux sepol ++SELINUX_PC_MODULES = libselinux libsepol ++$(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES))) ++CPPFLAGS += $(SELINUX_CFLAGS) ++LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%)) + endif + + ifeq ($(CONFIG_EFENCE),y) +-- +1.7.12 + diff --git a/sys-apps/busybox/files/busybox-1.21.0-mdev.patch b/sys-apps/busybox/files/busybox-1.21.0-mdev.patch new file mode 100644 index 000000000000..cb873fafc19d --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.21.0-mdev.patch @@ -0,0 +1,35 @@ +--- busybox-1.21.0/util-linux/mdev.c ++++ busybox-1.21.0-mdev/util-linux/mdev.c +@@ -661,6 +661,8 @@ static void make_device(char *device_nam + if (mknod(node_name, rule->mode | type, makedev(major, minor)) && errno != EEXIST) + bb_perror_msg("can't create '%s'", node_name); + if (ENABLE_FEATURE_MDEV_CONF) { ++ if (G.verbose) ++ bb_error_msg("chmod: %o chown: %u:%u", rule->mode, rule->ugid.uid, rule->ugid.gid); + chmod(node_name, rule->mode); + chown(node_name, rule->ugid.uid, rule->ugid.gid); + } +@@ -813,6 +815,7 @@ static void load_firmware(const char *fi + full_write(loading_fd, "-1", 2); + + out: ++ xchdir("/dev"); + if (ENABLE_FEATURE_CLEAN_UP) { + close(firmware_fd); + close(loading_fd); +@@ -919,11 +922,13 @@ int mdev_main(int argc UNUSED_PARAM, cha + } + + { +- int logfd = open("/dev/mdev.log", O_WRONLY | O_APPEND); ++ int logfd = open("mdev.log", O_WRONLY | O_APPEND); + if (logfd >= 0) { + xmove_fd(logfd, STDERR_FILENO); + G.verbose = 1; +- bb_error_msg("seq: %s action: %s", seq, action); ++ if (seq) ++ applet_name = xasprintf("%s[%s]", applet_name, seq); ++ bb_error_msg("action: %s", action); + } + } + diff --git a/sys-apps/busybox/files/busybox-1.21.0-platform.patch b/sys-apps/busybox/files/busybox-1.21.0-platform.patch new file mode 100644 index 000000000000..9be6cb8f21d9 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.21.0-platform.patch @@ -0,0 +1,24 @@ +--- busybox-1.21.0/archival/libarchive/decompress_unxz.c ++++ busybox-1.21.0-platform/archival/libarchive/decompress_unxz.c +@@ -30,8 +30,8 @@ static uint32_t xz_crc32(const uint8_t * + /* We use arch-optimized unaligned accessors */ + #define get_unaligned_le32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_LE32(v); }) + #define get_unaligned_be32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_BE32(v); }) +-#define put_unaligned_le32(val, buf) move_to_unaligned16(buf, SWAP_LE32(val)) +-#define put_unaligned_be32(val, buf) move_to_unaligned16(buf, SWAP_BE32(val)) ++#define put_unaligned_le32(val, buf) move_to_unaligned32(buf, SWAP_LE32(val)) ++#define put_unaligned_be32(val, buf) move_to_unaligned32(buf, SWAP_BE32(val)) + + #include "unxz/xz_dec_bcj.c" + #include "unxz/xz_dec_lzma2.c" +--- busybox-1.21.0/include/platform.h ++++ busybox-1.21.0-platform/include/platform.h +@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FI + # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4)) + # define move_to_unaligned16(u16p, v) do { \ + uint16_t __t = (v); \ +- memcpy((u16p), &__t, 4); \ ++ memcpy((u16p), &__t, 2); \ + } while (0) + # define move_to_unaligned32(u32p, v) do { \ + uint32_t __t = (v); \ diff --git a/sys-apps/busybox/files/busybox-1.21.0-xz.patch b/sys-apps/busybox/files/busybox-1.21.0-xz.patch new file mode 100644 index 000000000000..56ba1a2731e6 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.21.0-xz.patch @@ -0,0 +1,84 @@ +--- busybox-1.21.0/archival/libarchive/decompress_unxz.c ++++ busybox-1.21.0-xz/archival/libarchive/decompress_unxz.c +@@ -40,6 +40,7 @@ static uint32_t xz_crc32(const uint8_t * + IF_DESKTOP(long long) int FAST_FUNC + unpack_xz_stream(transformer_aux_data_t *aux, int src_fd, int dst_fd) + { ++ enum xz_ret xz_result; + struct xz_buf iobuf; + struct xz_dec *state; + unsigned char *membuf; +@@ -63,9 +64,8 @@ unpack_xz_stream(transformer_aux_data_t + /* Limit memory usage to about 64 MiB. */ + state = xz_dec_init(XZ_DYNALLOC, 64*1024*1024); + ++ xz_result = X_OK; + while (1) { +- enum xz_ret r; +- + if (iobuf.in_pos == iobuf.in_size) { + int rd = safe_read(src_fd, membuf, BUFSIZ); + if (rd < 0) { +@@ -73,28 +73,57 @@ unpack_xz_stream(transformer_aux_data_t + total = -1; + break; + } ++ if (rd == 0 && xz_result == XZ_STREAM_END) ++ break; + iobuf.in_size = rd; + iobuf.in_pos = 0; + } ++ if (xz_result == XZ_STREAM_END) { ++ /* ++ * Try to start decoding next concatenated stream. ++ * Stream padding must always be a multiple of four ++ * bytes to preserve four-byte alignment. To keep the ++ * code slightly smaller, we aren't as strict here as ++ * the .xz spec requires. We just skip all zero-bytes ++ * without checking the alignment and thus can accept ++ * files that aren't valid, e.g. the XZ utils test ++ * files bad-0pad-empty.xz and bad-0catpad-empty.xz. ++ */ ++ do { ++ if (membuf[iobuf.in_pos] != 0) { ++ xz_dec_reset(state); ++ goto do_run; ++ } ++ iobuf.in_pos++; ++ } while (iobuf.in_pos < iobuf.in_size); ++ } ++ do_run: + // bb_error_msg(">in pos:%d size:%d out pos:%d size:%d", + // iobuf.in_pos, iobuf.in_size, iobuf.out_pos, iobuf.out_size); +- r = xz_dec_run(state, &iobuf); ++ xz_result = xz_dec_run(state, &iobuf); + // bb_error_msg(" +Date: Thu, 12 Sep 2013 00:29:40 -0400 +Subject: [PATCH] trylink: only prefix libs with -l + +If our pkg-config queries pass back a flag like -pthread, the trylink +script will expand that to -l-pthread. So change trylink to only add +the -l prefix to a value that doesn't have a - prefix already. + +Reported-by: thaehaid@incognitomail.org +Signed-off-by: Mike Frysinger +--- + scripts/trylink | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/scripts/trylink b/scripts/trylink +index a8b0b2e..e471699 100755 +--- a/scripts/trylink ++++ b/scripts/trylink +@@ -117,7 +117,7 @@ LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs` + # First link with all libs. If it fails, bail out + echo "Trying libraries: $LDLIBS" + # "lib1 lib2 lib3" -> "-llib1 -llib2 -llib3" +-l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'` ++l_list=`echo " $LDLIBS " | sed -e 's: \([^- ][^ ]*\): -l\1:g'` + test "x$l_list" != "x" && l_list="$START_GROUP $l_list $END_GROUP" + try $CC $CFLAGS $LDFLAGS \ + -o $EXE \ +@@ -141,7 +141,7 @@ while test "$LDLIBS"; do + for one in $LDLIBS; do + without_one=`echo " $LDLIBS " | sed "s/ $one / /g" | xargs` + # "lib1 lib2 lib3" -> "-llib1 -llib2 -llib3" +- l_list=`echo "$without_one" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'` ++ l_list=`echo " $without_one " | sed -e 's: \([^- ][^ ]*\): -l\1:g'` + test x"$l_list" != x"" && l_list="$START_GROUP $l_list $END_GROUP" + $debug && echo "Trying -l options: '$l_list'" + try $CC $CFLAGS $LDFLAGS \ +@@ -172,7 +172,7 @@ done + + # Make the binary with final, minimal list of libs + echo "Final link with: ${LDLIBS:-}" +-l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'` ++l_list=`echo " $LDLIBS " | sed -e 's: \([^- ][^ ]*\): -l\1:g'` + test "x$l_list" != "x" && l_list="$START_GROUP $l_list $END_GROUP" + # --verbose gives us gobs of info to stdout (e.g. linker script used) + if ! test -f busybox_ldscript; then +-- +1.8.3.2 + diff --git a/sys-apps/busybox/files/busybox-1.22.0-find.patch b/sys-apps/busybox/files/busybox-1.22.0-find.patch new file mode 100644 index 000000000000..75a06a85880f --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.0-find.patch @@ -0,0 +1,40 @@ +--- busybox-1.22.0/findutils/find.c ++++ busybox-1.22.0-find/findutils/find.c +@@ -1291,9 +1291,27 @@ int find_main(int argc, char **argv) MAI + int find_main(int argc UNUSED_PARAM, char **argv) + { + int i, firstopt, status = EXIT_SUCCESS; ++ char **past_HLP, *saved; + + INIT_G(); + ++ /* "find -type f" + getopt("+HLP") => disaster. ++ * Need to avoid getopt running into a non-HLP option. ++ * Do this by temporarily storing NULL there: ++ */ ++ past_HLP = argv; ++ for (;;) { ++ saved = *++past_HLP; ++ if (!saved) ++ break; ++ if (saved[0] != '-') ++ break; ++ if (!saved[1]) ++ break; /* it is "-" */ ++ if ((saved+1)[strspn(saved+1, "HLP")] != '\0') ++ break; ++ } ++ *past_HLP = NULL; + /* "+": stop on first non-option */ + i = getopt32(argv, "+HLP"); + if (i & (1<<0)) +@@ -1301,7 +1319,8 @@ int find_main(int argc UNUSED_PARAM, cha + if (i & (1<<1)) + G.recurse_flags |= ACTION_FOLLOWLINKS | ACTION_DANGLING_OK; + /* -P is default and is ignored */ +- argv += optind; ++ argv = past_HLP; /* same result as "argv += optind;" */ ++ *past_HLP = saved; + + for (firstopt = 0; argv[firstopt]; firstopt++) { + if (argv[firstopt][0] == '-') diff --git a/sys-apps/busybox/files/busybox-1.22.0-grep.patch b/sys-apps/busybox/files/busybox-1.22.0-grep.patch new file mode 100644 index 000000000000..053245d9e34a --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.0-grep.patch @@ -0,0 +1,80 @@ +--- busybox-1.22.0/findutils/grep.c ++++ busybox-1.22.0-grep/findutils/grep.c +@@ -373,6 +373,9 @@ static int grep_file(FILE *file) + opt_f_not_found: ; + } + } else { ++#if ENABLE_EXTRA_COMPAT ++ unsigned start_pos; ++#endif + char *match_at; + + if (!(gl->flg_mem_alocated_compiled & COMPILED)) { +@@ -389,15 +392,18 @@ static int grep_file(FILE *file) + #if !ENABLE_EXTRA_COMPAT + gl->matched_range.rm_so = 0; + gl->matched_range.rm_eo = 0; ++#else ++ start_pos = 0; + #endif + match_at = line; + opt_w_again: ++//bb_error_msg("'%s' start_pos:%d line_len:%d", match_at, start_pos, line_len); + if ( + #if !ENABLE_EXTRA_COMPAT + regexec(&gl->compiled_regex, match_at, 1, &gl->matched_range, 0) == 0 + #else + re_search(&gl->compiled_regex, match_at, line_len, +- /*start:*/ 0, /*range:*/ line_len, ++ start_pos, /*range:*/ line_len, + &gl->matched_range) >= 0 + #endif + ) { +@@ -416,8 +422,24 @@ static int grep_file(FILE *file) + if (!c || (!isalnum(c) && c != '_')) { + found = 1; + } else { +- match_at += gl->matched_range.rm_eo; +- goto opt_w_again; ++ /* ++ * Why check gl->matched_range.rm_eo? ++ * Zero-length match makes -w skip the line: ++ * "echo foo | grep ^" prints "foo", ++ * "echo foo | grep -w ^" prints nothing. ++ * Without such check, we can loop forever. ++ */ ++#if !ENABLE_EXTRA_COMPAT ++ if (gl->matched_range.rm_eo != 0) { ++ match_at += gl->matched_range.rm_eo; ++ goto opt_w_again; ++ } ++#else ++ if (gl->matched_range.rm_eo > start_pos) { ++ start_pos = gl->matched_range.rm_eo; ++ goto opt_w_again; ++ } ++#endif + } + } + } +--- busybox-1.22.0/testsuite/grep.tests ++++ busybox-1.22.0-grep/testsuite/grep.tests +@@ -147,6 +147,18 @@ testing "grep -w doesn't stop on 1st mis + "foop foo\n" \ + "" + ++testing "grep -w ^str doesn't match str not at the beginning" \ ++ "grep -w ^str input" \ ++ "" \ ++ "strstr\n" \ ++ "" ++ ++testing "grep -w ^ doesn't hang" \ ++ "grep -w ^ input" \ ++ "" \ ++ "anything\n" \ ++ "" ++ + # testing "test name" "commands" "expected result" "file input" "stdin" + # file input will be file called "input" + # test can create a file "actual" instead of writing to stdout diff --git a/sys-apps/busybox/files/busybox-1.22.0-lineedit.patch b/sys-apps/busybox/files/busybox-1.22.0-lineedit.patch new file mode 100644 index 000000000000..e4143140d656 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.0-lineedit.patch @@ -0,0 +1,12 @@ +--- busybox-1.22.0/libbb/lineedit.c ++++ busybox-1.22.0-lineedit/libbb/lineedit.c +@@ -1255,7 +1255,9 @@ line_input_t* FAST_FUNC new_line_input_t + { + line_input_t *n = xzalloc(sizeof(*n)); + n->flags = flags; ++#if MAX_HISTORY > 0 + n->max_history = MAX_HISTORY; ++#endif + return n; + } + diff --git a/sys-apps/busybox/files/busybox-1.22.0-ntpd.patch b/sys-apps/busybox/files/busybox-1.22.0-ntpd.patch new file mode 100644 index 000000000000..1334f577e6a2 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.0-ntpd.patch @@ -0,0 +1,11 @@ +--- busybox-1.22.0/networking/ntpd.c ++++ busybox-1.22.0-ntpd/networking/ntpd.c +@@ -1445,6 +1445,8 @@ update_local_clock(peer_t *p) + + run_script("step", offset); + ++ recv_time += offset; ++ + #if USING_INITIAL_FREQ_ESTIMATION + if (G.discipline_state == STATE_NSET) { + set_new_values(STATE_FREQ, /*offset:*/ 0, recv_time); diff --git a/sys-apps/busybox/files/busybox-1.22.1-ash.patch b/sys-apps/busybox/files/busybox-1.22.1-ash.patch new file mode 100644 index 000000000000..301e9428d0b3 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.1-ash.patch @@ -0,0 +1,11 @@ +--- busybox-1.22.1/shell/ash.c ++++ busybox-1.22.1-ash/shell/ash.c +@@ -13014,7 +13014,7 @@ init(void) + setvar2("PPID", utoa(getppid())); + #if ENABLE_ASH_BASH_COMPAT + p = lookupvar("SHLVL"); +- setvar2("SHLVL", utoa(p ? atoi(p) + 1 : 1)); ++ setvar("SHLVL", utoa((p ? atoi(p) : 0) + 1), VEXPORT); + #endif + p = lookupvar("PWD"); + if (p) { diff --git a/sys-apps/busybox/files/busybox-1.22.1-date.patch b/sys-apps/busybox/files/busybox-1.22.1-date.patch new file mode 100644 index 000000000000..6380d8781ea5 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.1-date.patch @@ -0,0 +1,30 @@ +--- busybox-1.22.1/libbb/time.c ++++ busybox-1.22.1-date/libbb/time.c +@@ -68,15 +68,23 @@ void FAST_FUNC parse_datestr(const char + /* else end != NUL and we error out */ + } + } else +- /* yyyy-mm-dd HH */ +- if (sscanf(date_str, "%u-%u-%u %u%c", &ptm->tm_year, ++ if (strchr(date_str, '-') ++ /* Why strchr('-') check? ++ * sscanf below will trash ptm->tm_year, this breaks ++ * if parse_str is "10101010" (iow, "MMddhhmm" form) ++ * because we destroy year. Do these sscanf ++ * only if we saw a dash in parse_str. ++ */ ++ /* yyyy-mm-dd HH */ ++ && (sscanf(date_str, "%u-%u-%u %u%c", &ptm->tm_year, + &ptm->tm_mon, &ptm->tm_mday, + &ptm->tm_hour, + &end) >= 4 +- /* yyyy-mm-dd */ +- || sscanf(date_str, "%u-%u-%u%c", &ptm->tm_year, ++ /* yyyy-mm-dd */ ++ || sscanf(date_str, "%u-%u-%u%c", &ptm->tm_year, + &ptm->tm_mon, &ptm->tm_mday, + &end) >= 3 ++ ) + ) { + ptm->tm_year -= 1900; /* Adjust years */ + ptm->tm_mon -= 1; /* Adjust month from 1-12 to 0-11 */ diff --git a/sys-apps/busybox/files/busybox-1.22.1-iplink.patch b/sys-apps/busybox/files/busybox-1.22.1-iplink.patch new file mode 100644 index 000000000000..dbd76c574996 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.1-iplink.patch @@ -0,0 +1,19 @@ +--- busybox-1.22.1/networking/libiproute/iplink.c ++++ busybox-1.22.1-iplink/networking/libiproute/iplink.c +@@ -31,6 +31,16 @@ + #ifndef IFLA_LINKINFO + # define IFLA_LINKINFO 18 + # define IFLA_INFO_KIND 1 ++# define IFLA_INFO_DATA 2 ++#endif ++ ++#ifndef IFLA_VLAN_MAX ++# define IFLA_VLAN_ID 1 ++# define IFLA_VLAN_FLAGS 2 ++struct ifla_vlan_flags { ++ uint32_t flags; ++ uint32_t mask; ++}; + #endif + + /* taken from linux/sockios.h */ diff --git a/sys-apps/busybox/files/busybox-1.22.1-lzop.patch b/sys-apps/busybox/files/busybox-1.22.1-lzop.patch new file mode 100644 index 000000000000..d89cc24a5467 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.1-lzop.patch @@ -0,0 +1,66 @@ +From a9dc7c2f59dc5e92870d2d46316ea5c1f14740e3 Mon Sep 17 00:00:00 2001 +From: Denys Vlasenko +Date: Mon, 30 Jun 2014 10:14:34 +0200 +Subject: [PATCH] lzop: add overflow check + +See CVE-2014-4607 +http://www.openwall.com/lists/oss-security/2014/06/26/20 + +function old new delta +lzo1x_decompress_safe 1010 1031 +21 + +Signed-off-by: Denys Vlasenko +--- + archival/libarchive/liblzo.h | 2 ++ + archival/libarchive/lzo1x_d.c | 3 +++ + 2 files changed, 5 insertions(+) + +diff --git a/archival/libarchive/liblzo.h b/archival/libarchive/liblzo.h +index 843997c..4596620 100644 +--- a/archival/libarchive/liblzo.h ++++ b/archival/libarchive/liblzo.h +@@ -76,11 +76,13 @@ + # define TEST_IP (ip < ip_end) + # define NEED_IP(x) \ + if ((unsigned)(ip_end - ip) < (unsigned)(x)) goto input_overrun ++# define TEST_IV(x) if ((x) > (unsigned)0 - (511)) goto input_overrun + + # undef TEST_OP /* don't need both of the tests here */ + # define TEST_OP 1 + # define NEED_OP(x) \ + if ((unsigned)(op_end - op) < (unsigned)(x)) goto output_overrun ++# define TEST_OV(x) if ((x) > (unsigned)0 - (511)) goto output_overrun + + #define HAVE_ANY_OP 1 + +diff --git a/archival/libarchive/lzo1x_d.c b/archival/libarchive/lzo1x_d.c +index 9bc1270..40b167e 100644 +--- a/archival/libarchive/lzo1x_d.c ++++ b/archival/libarchive/lzo1x_d.c +@@ -92,6 +92,7 @@ int lzo1x_decompress_safe(const uint8_t* in, unsigned in_len, + ip++; + NEED_IP(1); + } ++ TEST_IV(t); + t += 15 + *ip++; + } + /* copy literals */ +@@ -224,6 +225,7 @@ int lzo1x_decompress_safe(const uint8_t* in, unsigned in_len, + ip++; + NEED_IP(1); + } ++ TEST_IV(t); + t += 31 + *ip++; + } + #if defined(COPY_DICT) +@@ -265,6 +267,7 @@ int lzo1x_decompress_safe(const uint8_t* in, unsigned in_len, + ip++; + NEED_IP(1); + } ++ TEST_IV(t); + t += 7 + *ip++; + } + #if defined(COPY_DICT) +-- +2.1.2 + diff --git a/sys-apps/busybox/files/busybox-1.22.1-nc.patch b/sys-apps/busybox/files/busybox-1.22.1-nc.patch new file mode 100644 index 000000000000..1ddb4834bd7f --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.1-nc.patch @@ -0,0 +1,15 @@ +--- busybox-1.22.1/networking/nc_bloaty.c ++++ busybox-1.22.1-nc/networking/nc_bloaty.c +@@ -175,9 +175,9 @@ enum { + OPT_w = (1 << 5), + OPT_l = (1 << 6) * ENABLE_NC_SERVER, + OPT_k = (1 << 7) * ENABLE_NC_SERVER, +- OPT_i = (1 << (7+2*ENABLE_NC_SERVER)) * ENABLE_NC_EXTRA, +- OPT_o = (1 << (8+2*ENABLE_NC_SERVER)) * ENABLE_NC_EXTRA, +- OPT_z = (1 << (9+2*ENABLE_NC_SERVER)) * ENABLE_NC_EXTRA, ++ OPT_i = (1 << (6+2*ENABLE_NC_SERVER)) * ENABLE_NC_EXTRA, ++ OPT_o = (1 << (7+2*ENABLE_NC_SERVER)) * ENABLE_NC_EXTRA, ++ OPT_z = (1 << (8+2*ENABLE_NC_SERVER)) * ENABLE_NC_EXTRA, + }; + + #define o_nflag (option_mask32 & OPT_n) diff --git a/sys-apps/busybox/files/busybox-1.22.1-zcat-no-ext.patch b/sys-apps/busybox/files/busybox-1.22.1-zcat-no-ext.patch new file mode 100644 index 000000000000..f46822808a9f --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.22.1-zcat-no-ext.patch @@ -0,0 +1,64 @@ +From 28dd64a0e1a9cffcde7799f2849b66c0e16bb9cc Mon Sep 17 00:00:00 2001 +From: Denys Vlasenko +Date: Fri, 10 Jan 2014 14:06:57 +0100 +Subject: [PATCH] libarchive: open_zipped() does not need to check extensions + for e.g. gzip + +We only need to check for signature-less extensions, +currently only .lzma. The rest can be happily autodetected. + +This fixes "zcat FILE_WITHOUT_GZ_EXT" case, among others. + +Signed-off-by: Denys Vlasenko +(cherry picked from commit 7c47b560a8fc97956dd8132bd7f1863d83c19866) +Signed-off-by: Mike Frysinger +--- + archival/libarchive/open_transformer.c | 23 +++++++++++------------ + 1 file changed, 11 insertions(+), 12 deletions(-) + +diff --git a/archival/libarchive/open_transformer.c b/archival/libarchive/open_transformer.c +index 4e98264..1aeba13 100644 +--- a/archival/libarchive/open_transformer.c ++++ b/archival/libarchive/open_transformer.c +@@ -182,27 +182,26 @@ int FAST_FUNC setup_unzip_on_fd(int fd, int fail_if_not_detected) + + int FAST_FUNC open_zipped(const char *fname) + { +- char *sfx; + int fd; + + fd = open(fname, O_RDONLY); + if (fd < 0) + return fd; + +- sfx = strrchr(fname, '.'); +- if (sfx) { +- sfx++; +- if (ENABLE_FEATURE_SEAMLESS_LZMA && strcmp(sfx, "lzma") == 0) +- /* .lzma has no header/signature, just trust it */ ++ if (ENABLE_FEATURE_SEAMLESS_LZMA) { ++ /* .lzma has no header/signature, can only detect it by extension */ ++ char *sfx = strrchr(fname, '.'); ++ if (sfx && strcmp(sfx+1, "lzma") == 0) { + open_transformer_with_sig(fd, unpack_lzma_stream, "unlzma"); +- else +- if ((ENABLE_FEATURE_SEAMLESS_GZ && strcmp(sfx, "gz") == 0) +- || (ENABLE_FEATURE_SEAMLESS_BZ2 && strcmp(sfx, "bz2") == 0) +- || (ENABLE_FEATURE_SEAMLESS_XZ && strcmp(sfx, "xz") == 0) +- ) { +- setup_unzip_on_fd(fd, /*fail_if_not_detected:*/ 1); ++ return fd; + } + } ++ if ((ENABLE_FEATURE_SEAMLESS_GZ) ++ || (ENABLE_FEATURE_SEAMLESS_BZ2) ++ || (ENABLE_FEATURE_SEAMLESS_XZ) ++ ) { ++ setup_unzip_on_fd(fd, /*fail_if_not_detected:*/ 1); ++ } + + return fd; + } +-- +2.1.2 + diff --git a/sys-apps/busybox/files/busybox-1.23.1-modprobe-small.patch b/sys-apps/busybox/files/busybox-1.23.1-modprobe-small.patch new file mode 100644 index 000000000000..50fc877b50ca --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.23.1-modprobe-small.patch @@ -0,0 +1,166 @@ +--- busybox-1.23.1/modutils/modprobe-small.c ++++ busybox-1.23.1-modprobe-small/modutils/modprobe-small.c +@@ -552,9 +552,23 @@ static int already_loaded(const char *na + return ret; + } + #else +-#define already_loaded(name) is_rmmod ++#define already_loaded(name) 0 + #endif + ++static int rmmod(const char *filename) ++{ ++ int r; ++ char modname[MODULE_NAME_LEN]; ++ ++ filename2modname(filename, modname); ++ r = delete_module(modname, O_NONBLOCK | O_EXCL); ++ dbg1_error_msg("delete_module('%s', O_NONBLOCK | O_EXCL):%d", modname, r); ++ if (r != 0 && !(option_mask32 & OPT_q)) { ++ bb_perror_msg("remove '%s'", modname); ++ } ++ return r; ++} ++ + /* + * Given modules definition and module name (or alias, or symbol) + * load/remove the module respecting dependencies. +@@ -571,26 +585,36 @@ static void process_module(char *name, c + module_info **infovec; + module_info *info; + int infoidx; +- int is_rmmod = (option_mask32 & OPT_r) != 0; ++ int is_remove = (option_mask32 & OPT_r) != 0; + + dbg1_error_msg("process_module('%s','%s')", name, cmdline_options); + + replace(name, '-', '_'); + +- dbg1_error_msg("already_loaded:%d is_rmmod:%d", already_loaded(name), is_rmmod); ++ dbg1_error_msg("already_loaded:%d is_remove:%d", already_loaded(name), is_remove); ++ ++ if (applet_name[0] == 'r') { ++ /* rmmod. ++ * Does not remove dependencies, no need to scan, just remove. ++ * (compat note: this allows and strips .ko suffix) ++ */ ++ rmmod(name); ++ return; ++ } ++ + /* +- * We used to have "is_rmmod != already_loaded(name)" check here, but ++ * We used to have "is_remove != already_loaded(name)" check here, but + * modprobe -r pci:v00008086d00007010sv00000000sd00000000bc01sc01i80 + * won't unload modules (there are more than one) + * which have this alias. + */ +- if (!is_rmmod && already_loaded(name)) { ++ if (!is_remove && already_loaded(name)) { + dbg1_error_msg("nothing to do for '%s'", name); + return; + } + + options = NULL; +- if (!is_rmmod) { ++ if (!is_remove) { + char *opt_filename = xasprintf("/etc/modules/%s", name); + options = xmalloc_open_read_close(opt_filename, NULL); + if (options) +@@ -624,7 +648,7 @@ static void process_module(char *name, c + 0 /* depth */ + ); + dbg1_error_msg("dirscan complete"); +- /* Module was not found, or load failed, or is_rmmod */ ++ /* Module was not found, or load failed, or is_remove */ + if (module_found_idx >= 0) { /* module was found */ + infovec = xzalloc(2 * sizeof(infovec[0])); + infovec[0] = &modinfo[module_found_idx]; +@@ -637,7 +661,7 @@ static void process_module(char *name, c + + if (!infovec) { + /* both dirscan and find_alias found nothing */ +- if (!is_rmmod && applet_name[0] != 'd') /* it wasn't rmmod or depmod */ ++ if (!is_remove && applet_name[0] != 'd') /* it wasn't rmmod or depmod */ + bb_error_msg("module '%s' not found", name); + //TODO: _and_die()? or should we continue (un)loading modules listed on cmdline? + goto ret; +@@ -651,29 +675,15 @@ static void process_module(char *name, c + * a *list* of modinfo pointers from find_alias(). + */ + +- /* rmmod or modprobe -r? unload module(s) */ +- if (is_rmmod) { ++ /* modprobe -r? unload module(s) */ ++ if (is_remove) { + infoidx = 0; + while ((info = infovec[infoidx++]) != NULL) { +- int r; +- char modname[MODULE_NAME_LEN]; +- +- filename2modname( +- bb_get_last_path_component_nostrip(info->pathname), modname); +- r = delete_module(modname, O_NONBLOCK | O_EXCL); +- dbg1_error_msg("delete_module('%s', O_NONBLOCK | O_EXCL):%d", modname, r); ++ int r = rmmod(bb_get_last_path_component_nostrip(info->pathname)); + if (r != 0) { +- if (!(option_mask32 & OPT_q)) +- bb_perror_msg("remove '%s'", modname); +- goto ret; ++ goto ret; /* error */ + } + } +- +- if (applet_name[0] == 'r') { +- /* rmmod: do not remove dependencies, exit */ +- goto ret; +- } +- + /* modprobe -r: we do not stop here - + * continue to unload modules on which the module depends: + * "-r --remove: option causes modprobe to remove a module. +@@ -694,7 +704,7 @@ static void process_module(char *name, c + } + free(deps); + +- if (is_rmmod) ++ if (is_remove) + continue; + + /* We are modprobe: load it */ +@@ -897,10 +907,10 @@ int modprobe_main(int argc UNUSED_PARAM, + } + + #if ENABLE_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE +- /* If not rmmod, parse possible module options given on command line. ++ /* If not rmmod/-r, parse possible module options given on command line. + * insmod/modprobe takes one module name, the rest are parameters. */ + options = NULL; +- if ('r' != applet0) { ++ if (!(option_mask32 & OPT_r)) { + char **arg = argv; + while (*++arg) { + /* Enclose options in quotes */ +@@ -911,7 +921,7 @@ int modprobe_main(int argc UNUSED_PARAM, + } + } + #else +- if ('r' != applet0) ++ if (!(option_mask32 & OPT_r)) + argv[1] = NULL; + #endif + +@@ -935,10 +945,11 @@ int modprobe_main(int argc UNUSED_PARAM, + } + + /* Try to load modprobe.dep.bb */ +- load_dep_bb(); ++ if ('r' != applet0) /* not rmmod */ ++ load_dep_bb(); + + /* Load/remove modules. +- * Only rmmod loops here, modprobe has only argv[0] */ ++ * Only rmmod/modprobe -r loops here, insmod/modprobe has only argv[0] */ + do { + process_module(*argv, options); + } while (*++argv); diff --git a/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch b/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch new file mode 100644 index 000000000000..13725cb832e7 --- /dev/null +++ b/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch @@ -0,0 +1,39 @@ +From 6798564b9e2f1a81b8c2d0cb4add97cb736d982b Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 16 Mar 2015 17:47:01 -0400 +Subject: [PATCH] trylink: respect compiler settings when probing features + +The CPPFLAGS/CFLAGS settings might have features that matter, so make +sure we utilize them when testing the compiler. + +URL: https://bugs.gentoo.org/471118 +Signed-off-by: Mike Frysinger +--- + scripts/trylink | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scripts/trylink b/scripts/trylink +index 5a67fcf..48c487b 100755 +--- a/scripts/trylink ++++ b/scripts/trylink +@@ -49,7 +49,7 @@ check_cc() { + local tempname="$(mktemp)" + # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :( + # "-xc": C language. "/dev/null" is an empty source file. +- if $CC $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then ++ if $CC $CPPFLAGS $CFLAGS $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then + echo "$1"; + else + echo "$2"; +@@ -66,7 +66,7 @@ check_libc_is_glibc() { + syntax error here + #endif + " >"$tempname".c +- if $CC "$tempname".c -c -o "$tempname".o >/dev/null 2>&1; then ++ if $CC $CPPFLAGS $CFLAGS "$tempname".c -c -o "$tempname".o >/dev/null 2>&1; then + echo "$2"; + else + echo "$1"; +-- +2.3.2 + diff --git a/sys-apps/busybox/files/ginit.c b/sys-apps/busybox/files/ginit.c new file mode 100644 index 000000000000..de98e4ac4110 --- /dev/null +++ b/sys-apps/busybox/files/ginit.c @@ -0,0 +1,124 @@ +/* + * simple init to bootstrap sep-/usr + * + * Copyright (C) 2012-2013 Mike Frysinger + * + * Licensed under GPLv2 or later + */ + +//applet:IF_GINIT(APPLET(ginit, BB_DIR_SBIN, BB_SUID_DROP)) + +//kbuild:lib-$(CONFIG_GINIT) += ginit.o + +//config:config GINIT +//config: bool "ginit" +//config: default y +//config: select MKDIR +//config: select MDEV +//config: select MOUNT +//config: select MOUNTPOINT +//config: help +//config: sep-/usr bootstrapper + +//usage:#define ginit_trivial_usage NOUSAGE_STR +//usage:#define ginit_full_usage "" + +#include "libbb.h" + +#define eprintf(fmt, args...) printf("%s" fmt, "sep-usr init: ", ## args) + +static void process_args(char **args) +{ + size_t i; + + eprintf("running: "); + for (i = 0; args[i]; ++i) { + /* String needs to be writable, so dupe it */ + args[i] = xstrdup(args[i]); + printf("'%s' ", args[i]); + } + printf("\n"); +} + +int ginit_main(int argc UNUSED_PARAM, char **argv) MAIN_EXTERNALLY_VISIBLE; +int ginit_main(int argc UNUSED_PARAM, char **argv) +{ + FILE *mntlist; + bool ismnted_dev, ismnted_sys, ismnted_usr; + struct mntent *mntent; + + /* + int fd = open("/dev/console", O_RDWR); + if (fd >= 0) { + dup2(fd, 0); + dup2(fd, 1); + dup2(fd, 2); + } + */ + + /* If given an argv[] with an applet name, run it instead. + * Makes recovering simple by doing: init=/ginit bb + */ + if (argv[1] && argv[1][0] != '/') { + eprintf("running user requested applet %s\n", argv[1]); + return spawn_and_wait(argv+1); + } + +#define saw(argv...) \ + ({ \ + static const char *args[] = { argv, NULL }; \ + /* These casts are fine -- see process_args for mem setup */ \ + process_args((void *)args); \ + spawn_and_wait((void *)args); \ + }) + + /* First setup basic /dev */ + if (saw("mountpoint", "-q", "/dev") != 0) { + /* Try /etc/fstab */ + if (saw("mount", "-n", "/dev")) + /* Then devtmpfs */ + if (saw("mount", "-n", "-t", "devtmpfs", "devtmpfs", "/dev")) + /* Finally normal tmpfs */ + saw("mount", "-n", "-t", "tmpfs", "dev", "/dev"); + } else { + eprintf("%s appears to be mounted; skipping its setup\n", "/dev"); + } + + /* If /dev is empty (e.g. tmpfs), run mdev to seed things */ + if (access("/dev/console", F_OK) != 0) { + if (saw("mountpoint", "-q", "/sys") != 0) { + if (saw("mount", "-n", "/sys")) + saw("mount", "-n", "-t", "sysfs", "sysfs", "/sys"); + } else { + eprintf("%s appears to be mounted; skipping its setup\n", "/sys"); + } + + /* Mount /proc as mdev will fork+exec /proc/self/exe */ + if (saw("mountpoint", "-q", "/proc") != 0) { + /* Try /etc/fstab */ + if (saw("mount", "-n", "/proc")) + saw("mount", "-n", "-t", "proc", "proc", "/proc"); + } + + saw("mdev", "-s"); + } + + /* Then seed the stuff we care about */ + saw("mkdir", "-p", "/dev/pts", "/dev/shm"); + + /* Then mount /usr */ + if (saw("mountpoint", "-q", "/usr") != 0) { + saw("mount", "-n", "/usr", "-o", "ro"); + } else { + eprintf("%s appears to be mounted; skipping its setup\n", "/usr"); + } + + /* Now that we're all done, exec the real init */ + if (!argv[1]) { + argv[0] = (void *)"/sbin/init"; + argv[1] = NULL; + } else + ++argv; + process_args(argv); + return execv(argv[0], argv); +} diff --git a/sys-apps/busybox/files/klogd.confd b/sys-apps/busybox/files/klogd.confd new file mode 100644 index 000000000000..4c16096a4e15 --- /dev/null +++ b/sys-apps/busybox/files/klogd.confd @@ -0,0 +1,9 @@ +# Config file for /etc/init.d/busybox-sysklogd + +# run "/sbin/klogd --help" to see all possible options. + +# activate if you need remote logging +#rc_need="net" + +# send warnings and above to the console +KLOGD_OPTS="-c 3" diff --git a/sys-apps/busybox/files/klogd.initd b/sys-apps/busybox/files/klogd.initd new file mode 100644 index 000000000000..f584ccb7d93c --- /dev/null +++ b/sys-apps/busybox/files/klogd.initd @@ -0,0 +1,12 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/bin/busybox klogd" +command_args="${KLOGD_OPTS}" +pidfile="/var/run/klogd.pid" + +depend() { + need clock hostname +} diff --git a/sys-apps/busybox/files/mdev-start.sh b/sys-apps/busybox/files/mdev-start.sh new file mode 100755 index 000000000000..8784cd5589f6 --- /dev/null +++ b/sys-apps/busybox/files/mdev-start.sh @@ -0,0 +1,125 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +find_mdev() +{ + if [ -x /sbin/mdev ] ; then + echo "/sbin/mdev" + else + echo "/bin/busybox mdev" + fi +} + +populate_mdev() +{ + # populate /dev with devices already found by the kernel + + if get_bootparam "nocoldplug" ; then + RC_COLDPLUG="no" + ewarn "Skipping mdev coldplug as requested in kernel cmdline" + fi + + ebegin "Populating /dev with existing devices with mdev -s" + $(find_mdev) -s + eend $? + + return 0 +} + +seed_dev() +{ + # Seed /dev with some things that we know we need + + # creating /dev/console and /dev/tty1 to be able to write + # to $CONSOLE with/without bootsplash before mdev creates it + [ -c /dev/console ] || mknod /dev/console c 5 1 + [ -c /dev/tty1 ] || mknod /dev/tty1 c 4 1 + + # udevd will dup its stdin/stdout/stderr to /dev/null + # and we do not want a file which gets buffered in ram + [ -c /dev/null ] || mknod /dev/null c 1 3 + + # copy over any persistant things + if [ -d /lib/mdev/devices ] ; then + cp -RPp /lib/mdev/devices/* /dev 2>/dev/null + fi + + # Not provided by sysfs but needed + ln -snf /proc/self/fd /dev/fd + ln -snf fd/0 /dev/stdin + ln -snf fd/1 /dev/stdout + ln -snf fd/2 /dev/stderr + [ -e /proc/kcore ] && ln -snf /proc/kcore /dev/core + + # Create problematic directories + mkdir -p /dev/pts /dev/shm +} + +mount_it_b1() +{ + if [ "${RC_USE_FSTAB}" = "yes" ] ; then + mntcmd=$(get_mount_fstab /dev) + else + unset mntcmd + fi + if [ -n "${mntcmd}" ] ; then + try mount -n ${mntcmd} + else + if grep -Eq "[[:space:]]+tmpfs$" /proc/filesystems ; then + mntcmd="tmpfs" + else + mntcmd="ramfs" + fi + # many video drivers require exec access in /dev #92921 + try mount -n -t "${mntcmd}" -o exec,nosuid,mode=0755 mdev /dev + fi +} +mount_it_b2() +{ + if fstabinfo --quiet /dev ; then + mount -n /dev + else + # Some devices require exec, Bug #92921 + mount -n -t tmpfs -o "exec,nosuid,mode=0755,size=10M" mdev /dev + fi +} +mount_it() +{ + type fstabinfo && mount_it_b2 || mount_it_b1 +} + +main() +{ + # Setup temporary storage for /dev + ebegin "Mounting /dev for mdev" + mount_it + eend $? + + # Create a file so that our rc system knows it's still in sysinit. + # Existance means init scripts will not directly run. + # rc will remove the file when done with sysinit. + touch /dev/.rcsysinit + + # Selinux lovin; /selinux should be mounted by selinux-patched init + if [ -x /sbin/restorecon ] && [ -c /selinux/null ] ; then + restorecon /dev > /selinux/null + fi + + seed_dev + + # Setup hotplugging (if possible) + if [ -e /proc/sys/kernel/hotplug ] ; then + ebegin "Setting up proper hotplug agent" + eindent + einfo "Setting /sbin/mdev as hotplug agent ..." + echo $(find_mdev) > /proc/sys/kernel/hotplug + eoutdent + eend 0 + fi + + populate_mdev +} + +main + +# vim:ts=4 diff --git a/sys-apps/busybox/files/mdev.initd b/sys-apps/busybox/files/mdev.initd new file mode 100644 index 000000000000..fbe7a2cd2ebd --- /dev/null +++ b/sys-apps/busybox/files/mdev.initd @@ -0,0 +1,53 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() +{ + provide dev + need dev-mount sysfs +} + +find_mdev() +{ + if [ -x /sbin/mdev ] ; then + echo "/sbin/mdev" + else + echo "/bin/busybox mdev" + fi +} + +populate_mdev() +{ + ebegin "Populating /dev with existing devices with mdev -s" + $(find_mdev) -s + eend $? + return 0 +} + +seed_dev() +{ + # copy over any persistent things + if [ -d /lib/mdev/devices ] ; then + cp -RPp /lib/mdev/devices/* /dev 2>/dev/null + fi +} + +start() +{ + seed_dev + + # Setup hotplugging (if possible) + if [ -e /proc/sys/kernel/hotplug ] ; then + ebegin "Setting up mdev as hotplug agent" + echo $(find_mdev) > /proc/sys/kernel/hotplug + eend 0 + fi + + if get_bootparam "nocoldplug" ; then + ewarn "Skipping mdev coldplug as requested in kernel cmdline" + else + populate_mdev + fi +} diff --git a/sys-apps/busybox/files/mdev.rc b/sys-apps/busybox/files/mdev.rc new file mode 100755 index 000000000000..df55e250cf16 --- /dev/null +++ b/sys-apps/busybox/files/mdev.rc @@ -0,0 +1,9 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +start() +{ + . /lib/rcscripts/addons/mdev-start.sh +} diff --git a/sys-apps/busybox/files/mdev.rc.1 b/sys-apps/busybox/files/mdev.rc.1 new file mode 100755 index 000000000000..74cc8c68f82d --- /dev/null +++ b/sys-apps/busybox/files/mdev.rc.1 @@ -0,0 +1,98 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() +{ + provide dev dev-mount + need sysfs +} + +find_mdev() +{ + if [ -x /sbin/mdev ] ; then + echo "/sbin/mdev" + else + echo "/bin/busybox mdev" + fi +} + +populate_mdev() +{ + # populate /dev with devices already found by the kernel + + if get_bootparam "nocoldplug" ; then + RC_COLDPLUG="no" + ewarn "Skipping mdev coldplug as requested in kernel cmdline" + fi + + ebegin "Populating /dev with existing devices with mdev -s" + $(find_mdev) -s + eend $? + + return 0 +} + +seed_dev() +{ + # Seed /dev with some things that we know we need + + # creating /dev/console and /dev/tty1 to be able to write + # to $CONSOLE with/without bootsplash before mdev creates it + [ -c /dev/console ] || mknod /dev/console c 5 1 + [ -c /dev/tty1 ] || mknod /dev/tty1 c 4 1 + + # udevd will dup its stdin/stdout/stderr to /dev/null + # and we do not want a file which gets buffered in ram + [ -c /dev/null ] || mknod /dev/null c 1 3 + + # copy over any persistant things + if [ -d /lib/mdev/devices ] ; then + cp -RPp /lib/mdev/devices/* /dev 2>/dev/null + fi + + # Not provided by sysfs but needed + ln -snf /proc/self/fd /dev/fd + ln -snf fd/0 /dev/stdin + ln -snf fd/1 /dev/stdout + ln -snf fd/2 /dev/stderr + [ -e /proc/kcore ] && ln -snf /proc/kcore /dev/core + + # Create problematic directories + mkdir -p /dev/pts /dev/shm +} + +mount_it() +{ + if fstabinfo --quiet /dev ; then + mount -n /dev + else + # Some devices require exec, Bug #92921 + mount -n -t tmpfs -o "exec,nosuid,mode=0755,size=10M" mdev /dev + fi +} + +start() +{ + # Setup temporary storage for /dev + ebegin "Mounting /dev for mdev" + mount_it + eend $? + + # Create a file so that our rc system knows it's still in sysinit. + # Existance means init scripts will not directly run. + # rc will remove the file when done with sysinit. + touch /dev/.rcsysinit + + seed_dev + + # Setup hotplugging (if possible) + if [ -e /proc/sys/kernel/hotplug ] ; then + ebegin "Setting up mdev as hotplug agent" + echo $(find_mdev) > /proc/sys/kernel/hotplug + eend 0 + fi + + populate_mdev +} diff --git a/sys-apps/busybox/files/mdev/dvbdev b/sys-apps/busybox/files/mdev/dvbdev new file mode 100644 index 000000000000..f0186c176cd8 --- /dev/null +++ b/sys-apps/busybox/files/mdev/dvbdev @@ -0,0 +1,18 @@ +#!/bin/sh + +# MDEV=dvb0.demux1 -> ADAPTER=dvb0 -> N=0 +ADAPTER=${MDEV%.*} +N=${ADAPTER#dvb} +# MDEV=dvb0.demux1 -> DEVB_DEV=demux1 +DVB_DEV=${MDEV#*.} + +case "$ACTION" in + add|"") + mkdir -p dvb/adapter${N} + mv ${MDEV} dvb/adapter${N}/${DVB_DEV} + ;; + remove) + rm -f dvb/adapter${N}/${DVB_DEV} + rmdir dvb/adapter${N} 2>/dev/null + rmdir dvb/ 2>/dev/null +esac diff --git a/sys-apps/busybox/files/mdev/ide_links b/sys-apps/busybox/files/mdev/ide_links new file mode 100644 index 000000000000..be0c95aa9c0e --- /dev/null +++ b/sys-apps/busybox/files/mdev/ide_links @@ -0,0 +1,23 @@ +#!/bin/sh + +[ -f /proc/ide/$MDEV/media ] || exit + +media=`cat /proc/ide/$MDEV/media` +for i in $media $media[0-9]* ; do + if [ "`readlink $i 2>/dev/null`" = $MDEV ] ; then + LINK=$i + break + fi +done + +# link exist, remove if necessary and exit +if [ "$LINK" ] ; then + [ "$ACTION" = remove ] && rm $LINK + exit +fi + +# create a link +num=`ls $media[0-9]* 2>/dev/null | wc -l` +ln -sf $MDEV "$media`echo $num`" +[ -e "$media" ] || ln -sf $MDEV "$media" + diff --git a/sys-apps/busybox/files/mdev/usbdev b/sys-apps/busybox/files/mdev/usbdev new file mode 100644 index 000000000000..ea5b9155736c --- /dev/null +++ b/sys-apps/busybox/files/mdev/usbdev @@ -0,0 +1,62 @@ +#!/bin/sh + +# script is buggy; until patched just do exit 0 +#exit 0 + +# add zeros to device or bus +add_zeros () { + case "$(echo $1 | wc -L)" in + 1) echo "00$1" ;; + 2) echo "0$1" ;; + *) echo "$1" + esac + exit 0 +} + + +# bus and device dirs in /sys +USB_PATH=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).[0-9]/usb\1/') +USB_PATH=$(find /sys/devices -type d -name "$USB_PATH") +USB_DEV_DIR=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).\([0-9]\)/\1-\2/') + +# dir names in /dev +BUS=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev\([0-9]\).[0-9]/\1/')) +USB_DEV=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev[0-9].\([0-9]\)/\1/')) + + +# try to load the proper driver for usb devices +case "$ACTION" in + add|"") + # load usb bus driver + for i in $USB_PATH/*/modalias ; do + modprobe `cat $i` 2>/dev/null + done + # load usb device driver if existent + if [ -d $USB_PATH/$USB_DEV_DIR ]; then + for i in $USB_PATH/$USB_DEV_DIR/*/modalias ; do + modprobe `cat $i` 2>/dev/null + done + fi + # move usb device file + mkdir -p bus/usb/$BUS + mv $MDEV bus/usb/$BUS/$USB_DEV + ;; + remove) + # unload device driver, if device dir is existent + if [ -d $USB_PATH/$USB_DEV_DIR ]; then + for i in $USB_PATH/$USB_DEV_DIR/*/modalias ; do + modprobe -r `cat $i` 2>/dev/null + done + fi + # unload usb bus driver. Does this make sense? + # what happens, if two usb devices are plugged in + # and one is removed? + for i in $USB_PATH/*/modalias ; do + modprobe -r `cat $i` 2>/dev/null + done + # remove device file and possible empty dirs + rm -f bus/usb/$BUS/$USB_DEV + rmdir bus/usb/$BUS/ 2>/dev/null + rmdir bus/usb/ 2>/dev/null + rmdir bus/ 2>/dev/null +esac diff --git a/sys-apps/busybox/files/mdev/usbdisk_link b/sys-apps/busybox/files/mdev/usbdisk_link new file mode 100644 index 000000000000..6bb069243f4c --- /dev/null +++ b/sys-apps/busybox/files/mdev/usbdisk_link @@ -0,0 +1,34 @@ +#!/bin/sh + +# NOTE: since mdev -s only provide $MDEV, don't depend on any hotplug vars. + +current=$(readlink usbdisk) + +if [ "$current" = "$MDEV" ] && [ "$ACTION" = "remove" ]; then + rm -f usbdisk usba1 +fi +[ -n "$current" ] && exit + +if [ -e /sys/block/$MDEV ]; then + SYSDEV=$(readlink -f /sys/block/$MDEV/device) + # if /sys device path contains '/usb[0-9]' then we assume its usb + # also, if it's a usb without partitions we require FAT + if [ "${SYSDEV##*/usb[0-9]}" != "$SYSDEV" ]; then + # do not create link if there is not FAT + dd if=/dev/$MDEV bs=512 count=1 2>/dev/null | strings | grep FAT >/dev/null || exit 0 + + ln -sf $MDEV usbdisk + # keep this for compat. people have it in fstab + ln -sf $MDEV usba1 + fi + +elif [ -e /sys/block/*/$MDEV ] ; then + PARENT=$(dirname /sys/block/*/$MDEV) + SYSDEV=$(readlink -f $PARENT/device) + if [ "${SYSDEV##*/usb[0-9]}" != "$SYSDEV" ]; then + ln -sf $MDEV usbdisk + # keep this for compat. people have it in fstab + ln -sf $MDEV usba1 + fi +fi + diff --git a/sys-apps/busybox/files/ntpd.confd b/sys-apps/busybox/files/ntpd.confd new file mode 100644 index 000000000000..f50d4c2e9179 --- /dev/null +++ b/sys-apps/busybox/files/ntpd.confd @@ -0,0 +1,6 @@ +# Config file for /etc/init.d/busybox-ntpd + +# run "/sbin/ntpd --help" to see all possible options. + +# Get time from specified server and run in background +NTPD_OPTS="-N -p pool.ntp.org" diff --git a/sys-apps/busybox/files/ntpd.initd b/sys-apps/busybox/files/ntpd.initd new file mode 100644 index 000000000000..06e37edc1f58 --- /dev/null +++ b/sys-apps/busybox/files/ntpd.initd @@ -0,0 +1,13 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/bin/busybox ntpd" +command_args="${NTPD_OPTS}" +pidfile="/var/run/ntpd.pid" + +depend() { + use net dns logger + after ntp-client +} diff --git a/sys-apps/busybox/files/syslogd.confd b/sys-apps/busybox/files/syslogd.confd new file mode 100644 index 000000000000..7df6885cedbb --- /dev/null +++ b/sys-apps/busybox/files/syslogd.confd @@ -0,0 +1,9 @@ +# Config file for /etc/init.d/busybox-sysklogd + +# run "/sbin/syslogd --help" to see all possible options. + +# activate if you need remote logging +#rc_need="net" + +# Log to shared mem buffer (use logread to read it) +SYSLOGD_OPTS="-C128" diff --git a/sys-apps/busybox/files/syslogd.initd b/sys-apps/busybox/files/syslogd.initd new file mode 100644 index 000000000000..b23ca0545871 --- /dev/null +++ b/sys-apps/busybox/files/syslogd.initd @@ -0,0 +1,13 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/bin/busybox syslogd" +command_args="${SYSLOGD_OPTS}" +pidfile="/var/run/syslogd.pid" + +depend() { + need clock hostname + provide logger +} diff --git a/sys-apps/busybox/files/watchdog.confd b/sys-apps/busybox/files/watchdog.confd new file mode 100644 index 000000000000..bd6aec0a7068 --- /dev/null +++ b/sys-apps/busybox/files/watchdog.confd @@ -0,0 +1,9 @@ +# Config file for /etc/init.d/busybox-watchdog + +# run "/sbin/watchdog --help" to see all possible options. + +# Periodically write to watchdog device +WATCHDOG_OPTS="/dev/watchdog" + +# optionally set the nice-level +#SSD_NICELEVEL="-20" diff --git a/sys-apps/busybox/files/watchdog.initd b/sys-apps/busybox/files/watchdog.initd new file mode 100644 index 000000000000..9949aad126f7 --- /dev/null +++ b/sys-apps/busybox/files/watchdog.initd @@ -0,0 +1,8 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/bin/busybox watchdog" +command_args="${WATCHDOG_OPTS}" +pidfile="/var/run/watchdog.pid" diff --git a/sys-apps/busybox/metadata.xml b/sys-apps/busybox/metadata.xml new file mode 100644 index 000000000000..a781804fc2b8 --- /dev/null +++ b/sys-apps/busybox/metadata.xml @@ -0,0 +1,16 @@ + + + +embedded + +Create all the appropriate symlinks in /bin and /sbin. +Enable math support in gawk (requires libm) +Create the appropriate symlink in /sbin and install mdev.conf and support files +Support a separate /usr without needing an initramfs by booting with init=/ginit +Make the system rescue shell (/bin/bb) static so you can recover even when glibc is broken +Support systemd + + +cpe:/a:busybox:busybox + + diff --git a/sys-apps/byld/Manifest b/sys-apps/byld/Manifest new file mode 100644 index 000000000000..5419b2c57a7f --- /dev/null +++ b/sys-apps/byld/Manifest @@ -0,0 +1 @@ +DIST byld-1_0_3.tgz 1128317 SHA256 f5206f6eb0d85f6b9435c24e554262b69dede6dd7d24acd9faea1dc77549cde3 diff --git a/sys-apps/byld/byld-1.0.3.ebuild b/sys-apps/byld/byld-1.0.3.ebuild new file mode 100644 index 000000000000..4ad707e9fc2d --- /dev/null +++ b/sys-apps/byld/byld-1.0.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="build a Linux distribution on a single floppy" +HOMEPAGE="http://byld.sourceforge.net/" +SRC_URI="mirror://sourceforge/byld/byld-${PV//./_}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" +RESTRICT="strip" #252054 + +RDEPEND="sys-apps/util-linux" + +src_install() { + dodoc BYLDING CREDITS README INSTALL FHS PAKING + rm MAKEDEV.8 BYLDING CREDITS README INSTALL FHS LICENSE PAKING + dodir /usr/lib/${PN} + cp -rf * ${D}/usr/lib/${PN}/ +} + +pkg_postinst() { + einfo "The build scripts have been placed in /usr/lib/${PN}" + einfo "For documentation, see /usr/share/doc/${PF}" +} diff --git a/sys-apps/byld/metadata.xml b/sys-apps/byld/metadata.xml new file mode 100644 index 000000000000..b3c425a09720 --- /dev/null +++ b/sys-apps/byld/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + byld + + diff --git a/sys-apps/cciss_vol_status/Manifest b/sys-apps/cciss_vol_status/Manifest new file mode 100644 index 000000000000..5323176b1d0c --- /dev/null +++ b/sys-apps/cciss_vol_status/Manifest @@ -0,0 +1,4 @@ +DIST cciss_vol_status-1.03.tar.gz 86581 SHA256 b3cdcadba4dc8637c70aac9d594e32acbbe2bc323915cce5b2722e631c05c8c0 +DIST cciss_vol_status-1.09.tar.gz 104978 SHA256 93520050c3b1742288b92314585d1c0d4eaed9799747b8fc0c06977bbf5b74e4 SHA512 c773c6addcb26a3c635c28f9ebad7b9a5c2457516ffa87548fe0d3cee5ff864267dbe7c4dfccef0ed1c40d0273a833475ce4c96ba51f755776059daee892d114 WHIRLPOOL a3dcd382d5100c41bd0ff9900a3c6edba5e23a40711fbf9ec2762f596580947e51e31795b3d5a2daf4a299d68f798bba7500b5cb7e607a05f9cc39788abd0f48 +DIST cciss_vol_status-1.10.tar.gz 107233 SHA256 803110bf3f7d49f3b03e299e9a5209eba2661631bd07630672e497a6e182a504 SHA512 2010a9fd90b3e4c1d21ae6946c8085df96d15e4d4ce732d6488034e96f1d029f48d6226190c7422f9d99ab2994315c0514c534bb79aafd52b52bd27498428461 WHIRLPOOL a3b80b9f914621fbcc8251c942638d7eef35dad40fdfe9f795ed2693045e36f3e5c5bf8559f49320679114b9fbde88b75b26cda33d13cdb80c36629df2380478 +DIST cciss_vol_status-1.11.tar.gz 112316 SHA256 98c3c798cd8f322af8c8f18b19be069a137af15fce9e4022edee3ea7371df919 SHA512 20a80367a794a7f805f3b40184e93bd4f85e8ce2a7784eba1d2d68cbffc8299cbe121f9bf25e7112abec1269802f8146f3fc36501fb72536b1aee384e8d32064 WHIRLPOOL 70e7f5aa2f72e14e75df3c98b92bc03505ac770776bce1730c972bdf7f84808467275da93cf89e6eeab3e6af1096d8f51e35ef030a98d45ddcb3394d450fecaf diff --git a/sys-apps/cciss_vol_status/cciss_vol_status-1.03.ebuild b/sys-apps/cciss_vol_status/cciss_vol_status-1.03.ebuild new file mode 100644 index 000000000000..61929072e0fa --- /dev/null +++ b/sys-apps/cciss_vol_status/cciss_vol_status-1.03.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +IUSE="" +DESCRIPTION="Shows status of logical drives attached to HP SmartArray controllers" +HOMEPAGE="http://cciss.sourceforge.net/#cciss_utils" +LICENSE="GPL-2" +SRC_URI="mirror://sourceforge/cciss/${P}.tar.gz" +KEYWORDS="amd64 x86" +SLOT="0" +RDEPEND="" +DEPEND="" + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dodoc AUTHORS ChangeLog NEWS README +} diff --git a/sys-apps/cciss_vol_status/cciss_vol_status-1.09-r1.ebuild b/sys-apps/cciss_vol_status/cciss_vol_status-1.09-r1.ebuild new file mode 100644 index 000000000000..eda2df3233cf --- /dev/null +++ b/sys-apps/cciss_vol_status/cciss_vol_status-1.09-r1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +IUSE="" +DESCRIPTION="Shows status of logical drives attached to HP SmartArray controllers" +HOMEPAGE="http://cciss.sourceforge.net/#cciss_utils" +LICENSE="GPL-2" +SRC_URI="mirror://sourceforge/cciss/${P}.tar.gz" +KEYWORDS="amd64 x86" +SLOT="0" +RDEPEND="" +DEPEND="" + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dodoc AUTHORS ChangeLog NEWS README + exeinto /etc/cron.daily + newexe "${FILESDIR}/cciss_vol_status.cron" cciss_vol_status +} diff --git a/sys-apps/cciss_vol_status/cciss_vol_status-1.09.ebuild b/sys-apps/cciss_vol_status/cciss_vol_status-1.09.ebuild new file mode 100644 index 000000000000..3237872cad87 --- /dev/null +++ b/sys-apps/cciss_vol_status/cciss_vol_status-1.09.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +IUSE="" +DESCRIPTION="Shows status of logical drives attached to HP SmartArray controllers" +HOMEPAGE="http://cciss.sourceforge.net/#cciss_utils" +LICENSE="GPL-2" +SRC_URI="mirror://sourceforge/cciss/${P}.tar.gz" +KEYWORDS="~amd64 ~x86" +SLOT="0" +RDEPEND="" +DEPEND="" + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dodoc AUTHORS ChangeLog NEWS README +} diff --git a/sys-apps/cciss_vol_status/cciss_vol_status-1.10.ebuild b/sys-apps/cciss_vol_status/cciss_vol_status-1.10.ebuild new file mode 100644 index 000000000000..26048498a288 --- /dev/null +++ b/sys-apps/cciss_vol_status/cciss_vol_status-1.10.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +IUSE="" +DESCRIPTION="Shows status of logical drives attached to HP SmartArray controllers" +HOMEPAGE="http://cciss.sourceforge.net/#cciss_utils" +LICENSE="GPL-2" +SRC_URI="mirror://sourceforge/cciss/${P}.tar.gz" +KEYWORDS="amd64 ~ia64 x86" +SLOT="0" +RDEPEND="" +DEPEND="" + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dodoc AUTHORS ChangeLog NEWS README + exeinto /etc/cron.hourly + newexe "${FILESDIR}/cciss_vol_status.cron" cciss_vol_status +} diff --git a/sys-apps/cciss_vol_status/cciss_vol_status-1.11.ebuild b/sys-apps/cciss_vol_status/cciss_vol_status-1.11.ebuild new file mode 100644 index 000000000000..e6084b45ddfd --- /dev/null +++ b/sys-apps/cciss_vol_status/cciss_vol_status-1.11.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +IUSE="" +DESCRIPTION="Shows status of logical drives attached to HP SmartArray controllers" +HOMEPAGE="http://cciss.sourceforge.net/#cciss_utils" +LICENSE="GPL-2" +SRC_URI="mirror://sourceforge/cciss/${P}.tar.gz" +KEYWORDS="~amd64 ~ia64 ~x86" +SLOT="0" +RDEPEND="" +DEPEND="" + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + dodoc AUTHORS ChangeLog NEWS README + exeinto /etc/cron.hourly + newexe "${FILESDIR}/cciss_vol_status.cron" cciss_vol_status +} diff --git a/sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch b/sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch new file mode 100644 index 000000000000..a65f29dac087 --- /dev/null +++ b/sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch @@ -0,0 +1,12 @@ +diff -uNr cciss_vol_status-1.06.ORIG//cciss_vol_status.c cciss_vol_status-1.06/cciss_vol_status.c +--- cciss_vol_status-1.06.ORIG//cciss_vol_status.c 2010-05-02 16:33:47.634833662 +0100 ++++ cciss_vol_status-1.06/cciss_vol_status.c 2010-05-02 16:34:03.351822015 +0100 +@@ -1004,7 +1004,7 @@ + if (status < 0) + return 0; + for (i = 0; prod[i] != NULL; i++) { +- if (strncmp(std_inq+8, prod[i], strnlen(prod[i])) == 0) ++ if (strncmp(std_inq+8, prod[i], strlen(prod[i])) == 0) + return 1; + } + return 0; diff --git a/sys-apps/cciss_vol_status/files/cciss_vol_status.cron b/sys-apps/cciss_vol_status/files/cciss_vol_status.cron new file mode 100644 index 000000000000..8d1175b45678 --- /dev/null +++ b/sys-apps/cciss_vol_status/files/cciss_vol_status.cron @@ -0,0 +1,21 @@ +#!/bin/sh + +test -x /usr/bin/cciss_vol_status || exit 0 + +STATUS=0 + +if [ -d /proc/driver/cciss ]; then + DEVS=`awk -F: '/^cciss\/c.*d0/{print "/dev/" $1}' /proc/driver/cciss/cciss*` + OUTPUT=`/usr/bin/cciss_vol_status $DEVS` + if [ $? -ne 0 ]; then + printf "%s\n" "$OUTPUT" + exit 1 + fi +fi +# FIXME: This cronjob should also look at the scsi generic nodes +# (/dev/sg*?) to cover the hpsa driver, fibre-attached MSA1000 family +# devices, orthehpahcisr software RAID driver (see cciss_vol_status(8) +# about how to choose the correct nodes -- i don't use these other +# devices, so i cannot verify how to check them cleanly) +# +exit 0 diff --git a/sys-apps/cciss_vol_status/metadata.xml b/sys-apps/cciss_vol_status/metadata.xml new file mode 100644 index 000000000000..6bfcaebb086a --- /dev/null +++ b/sys-apps/cciss_vol_status/metadata.xml @@ -0,0 +1,12 @@ + + + + base-system + + chainsaw@gentoo.org + Tony Vroon + + + cciss + + diff --git a/sys-apps/ccs-tools/Manifest b/sys-apps/ccs-tools/Manifest new file mode 100644 index 000000000000..5468277006dd --- /dev/null +++ b/sys-apps/ccs-tools/Manifest @@ -0,0 +1 @@ +DIST ccs-tools-1.8.3-20130214.tar.gz 227657 SHA256 56bb03f1977346f4c7dc3a0c5da8df4a0451a79558c26564478cb87fbf3e3ade SHA512 256adf873dd99b811f5cf55e6b74e1ccdc2e54a2399724b694f22825c4d5e3167e7768bddc4952363ef835ec2b8405d5704572a9b9e214f3102bf594374325ba WHIRLPOOL d7f200842a10ca2c83a46a933beb7c70436ea36c8aad3569c33392a11360b88dbf7589ac720994fec9d5c49c46f1e1c9f97ec320d2057680a6bb0edf13c066eb diff --git a/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild b/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild new file mode 100644 index 000000000000..dcdc98ae6690 --- /dev/null +++ b/sys-apps/ccs-tools/ccs-tools-1.8.3_p20130214.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 +inherit eutils multilib toolchain-funcs + +MY_P="${P/_p/-}" +DESCRIPTION="TOMOYO Linux tools" +HOMEPAGE="http://tomoyo.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/tomoyo/49693/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RESTRICT="test" + +DEPEND="sys-libs/ncurses + sys-libs/readline" +RDEPEND="${DEPEND} + sys-apps/which" + +S="${WORKDIR}/ccs-tools" + +src_prepare() { + epatch "${FILESDIR}"/${P}-warnings.patch + sed -i \ + -e "s:gcc:$(tc-getCC):" \ + -e "s/\(CFLAGS.*:=\).*/\1 ${CFLAGS}/" \ + -e "s:/usr/lib:/usr/$(get_libdir):g" \ + -e "s:= /:= ${EPREFIX}/:g" \ + Include.make || die +} + +src_test() { + cd "${S}/kernel_test" + emake || die + ./testall.sh || die +} + +src_install() { + emake INSTALLDIR="${D}" install || die + dodoc README.ccs +} + +pkg_postinst() { + elog "Execute the following command to setup the initial policy configuration:" + elog + elog "emerge --config =${CATEGORY}/${PF}" + elog + elog "For more information, please visit http://tomoyo.sourceforge.jp/1.8/" + elog + elog "This tools are for ccs-patch'ed kernels. There are also sys-apps/tomoyo-tools" + elog "which works with TOMOYO 2.x.x versions (already merged into Linux kernel)." + elog "If you'd like to try them, please emerge sys-apps/tomoyo-tools instead." +} + +pkg_config() { + /usr/$(get_libdir)/ccs/init_policy +} diff --git a/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch b/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch new file mode 100644 index 000000000000..8201093bbecb --- /dev/null +++ b/sys-apps/ccs-tools/files/ccs-tools-1.8.3_p20130214-warnings.patch @@ -0,0 +1,22 @@ +diff --git a/usr_sbin/editpolicy_offline.c b/usr_sbin/editpolicy_offline.c +index dbbd11e..e699cf4 100644 +--- a/usr_sbin/editpolicy_offline.c ++++ b/usr_sbin/editpolicy_offline.c +@@ -2882,7 +2882,7 @@ static bool ccs_parse_ipaddr_union(struct ccs_acl_param *param, + struct ccs_ipaddr_union *ptr) + { + struct ccs_ip_address_entry e; +- memset(ptr, 0, sizeof(ptr)); ++ memset(ptr, 0, sizeof(*ptr)); + if (ccs_parse_ip(ccs_read_token(param), &e) == 0) { + memmove(&ptr->ip[0], e.min, sizeof(ptr->ip[0])); + memmove(&ptr->ip[1], e.max, sizeof(ptr->ip[1])); +@@ -4745,7 +4745,7 @@ static void ccs_write_control(char *buffer, const size_t buffer_len) + * + * Returns nothing. + */ +-static void ccs_editpolicy_offline_init(coid) ++static void ccs_editpolicy_offline_init(void) + { + static _Bool first = true; + int i; diff --git a/sys-apps/ccs-tools/metadata.xml b/sys-apps/ccs-tools/metadata.xml new file mode 100644 index 000000000000..01cfb2cab229 --- /dev/null +++ b/sys-apps/ccs-tools/metadata.xml @@ -0,0 +1,10 @@ + + + + + maintainer-needed@gentoo.org + + + tomoyo + + diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest new file mode 100644 index 000000000000..b87acc90e1c8 --- /dev/null +++ b/sys-apps/checkpolicy/Manifest @@ -0,0 +1,3 @@ +DIST checkpolicy-2.2.tar.gz 64458 SHA256 9ff6698f4d4cb59c9c916e348187d533ada4107f90c253ef7304905934e9adf8 SHA512 a6f70e1b6581673af515d7d192237e2d47c0e07bb589c64b92f90f3a450ef8c312eabc2384479faed8bb909b98c15b676cea77e7dcb5304a51314601e93bef59 WHIRLPOOL 18c13139e8b75bb5bd45a9ddbf0c17c07fa86da66e792ece4a1d1204d211766fec27f6fce7db248957e7d2b2847c91b4c9d0ef45cf64e106aee52bc29be7992c +DIST checkpolicy-2.3.tar.gz 64970 SHA256 90632d11afecb66997971d4c5c5d70dfb02d3969ec610ee2918ba6df99c8207b SHA512 9b10cee8ec9d555c810712131eec0e7e1bf900e4675804b8f57b04988543ba784f4bf76030f196868cef91a1c4ec370f77da12ef9e79362bf7a1cc38c7cafcff WHIRLPOOL 49ca9fa1695bedf141d397ca679ba769b748dc39ec7d462718f6b90af9c31c1da64d1ff67b3b4e426f758a9d305dc9e19d755e1127bfcd5e492dccf09ac75d09 +DIST checkpolicy-2.4.tar.gz 65238 SHA256 9bbdac28a88de4c405c769730863f3adcd266adbfa45881a5de67e3a4895bcd4 SHA512 8c5c22d9510305e7f518d1a5818f5b36895210f48835d8d24a43b2d34e79881cebcc8cd588bb663c0613a4f878db125c22a4b4df3d0f63b8fb8f88350abc61cc WHIRLPOOL b717428b4411e526cc47ed2be88d7e7e4d48153404b90d50e510fd0cc10cc0452661d0b6b0cc200bb09ae1cc040ae59aae68a8c748611db3ca4cd262f8e8f932 diff --git a/sys-apps/checkpolicy/checkpolicy-2.2.ebuild b/sys-apps/checkpolicy/checkpolicy-2.2.ebuild new file mode 100644 index 000000000000..8cfc1969e608 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-2.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs eutils + +SEPOL_VER="2.2" +SEMNG_VER="2.2" + +DESCRIPTION="SELinux policy compiler" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +DEPEND=">=sys-libs/libsepol-${SEPOL_VER} + >=sys-libs/libsemanage-${SEMNG_VER} + sys-devel/flex + sys-devel/bison" + +RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" + +src_compile() { + emake CC="$(tc-getCC)" YACC="bison -y" || die +} + +src_prepare() { + epatch_user +} + +src_install() { + emake DESTDIR="${D}" install || die + + if use debug; then + dobin "${S}/test/dismod" + dobin "${S}/test/dispol" + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy." +} diff --git a/sys-apps/checkpolicy/checkpolicy-2.3.ebuild b/sys-apps/checkpolicy/checkpolicy-2.3.ebuild new file mode 100644 index 000000000000..9803a129eb80 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-2.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs eutils + +MY_P="${P//_/-}" + +SEPOL_VER="2.3" +SEMNG_VER="2.3" + +DESCRIPTION="SELinux policy compiler" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140506/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +DEPEND=">=sys-libs/libsepol-${SEPOL_VER} + >=sys-libs/libsemanage-${SEMNG_VER} + sys-devel/flex + sys-devel/bison" + +RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" + +S="${WORKDIR}/${MY_P}" + +src_compile() { + emake CC="$(tc-getCC)" YACC="bison -y" || die +} + +src_prepare() { + epatch_user +} + +src_install() { + emake DESTDIR="${D}" install || die + + if use debug; then + dobin "${S}/test/dismod" + dobin "${S}/test/dispol" + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy." +} diff --git a/sys-apps/checkpolicy/checkpolicy-2.4.ebuild b/sys-apps/checkpolicy/checkpolicy-2.4.ebuild new file mode 100644 index 000000000000..6c71b0dc1216 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-2.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs eutils + +MY_P="${P//_/-}" + +SEPOL_VER="${PV}" +SEMNG_VER="${PV}" + +DESCRIPTION="SELinux policy compiler" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +DEPEND=">=sys-libs/libsepol-${SEPOL_VER} + >=sys-libs/libsemanage-${SEMNG_VER} + sys-devel/flex + sys-devel/bison" + +RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch_user +} + +src_compile() { + emake CC="$(tc-getCC)" YACC="bison -y" LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" install + + if use debug; then + dobin "${S}/test/dismod" + dobin "${S}/test/dispol" + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy." +} diff --git a/sys-apps/checkpolicy/checkpolicy-9999.ebuild b/sys-apps/checkpolicy/checkpolicy-9999.ebuild new file mode 100644 index 000000000000..0d877e0cc8fb --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs eutils + +MY_P="${P//_/-}" +MY_RELEASEDATE="20150202" + +SEPOL_VER="${PV}" +SEMNG_VER="${PV}" + +DESCRIPTION="SELinux policy compiler" +HOMEPAGE="http://userspace.selinuxproject.org" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" + S="${WORKDIR}/${MY_P}/${PN}" +else + SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debug" + +DEPEND=">=sys-libs/libsepol-${SEPOL_VER} + >=sys-libs/libsemanage-${SEMNG_VER} + sys-devel/flex + sys-devel/bison" + +RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" + +src_prepare() { + epatch_user +} + +src_compile() { + emake CC="$(tc-getCC)" YACC="bison -y" LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" install + + if use debug; then + dobin "${S}/test/dismod" + dobin "${S}/test/dispol" + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy." +} diff --git a/sys-apps/checkpolicy/metadata.xml b/sys-apps/checkpolicy/metadata.xml new file mode 100644 index 000000000000..92f48e017202 --- /dev/null +++ b/sys-apps/checkpolicy/metadata.xml @@ -0,0 +1,6 @@ + + + + selinux + SELinux policy compilier + diff --git a/sys-apps/checkservice/Manifest b/sys-apps/checkservice/Manifest new file mode 100644 index 000000000000..085bd005d747 --- /dev/null +++ b/sys-apps/checkservice/Manifest @@ -0,0 +1 @@ +DIST checkservice-1.2.0.tar.gz 40614 RMD160 3bbf7dd40752bd29e1295dfea5e626896550e986 SHA1 f06c56c69130ecd4f4ee6a485b0312b9e740d36e SHA256 f949efac9cc03e4fbe2bf6da5322c1e81077376e54297a32d00f73c0cfa5e18a diff --git a/sys-apps/checkservice/checkservice-1.2.0.ebuild b/sys-apps/checkservice/checkservice-1.2.0.ebuild new file mode 100644 index 000000000000..4facf835a5b5 --- /dev/null +++ b/sys-apps/checkservice/checkservice-1.2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Check the status of services running on local/remote machines" +HOMEPAGE="http://www.linvision.com/checkservice/" +SRC_URI="http://www.linvision.com/checkservice/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.8 + >=dev-perl/MailTools-1.58 + >=dev-perl/File-Find-Rule-0.26 + >=virtual/perl-Getopt-Long-2.34" + +src_unpack() { + unpack ${A} + cd ${S} + sed -i -e 's:/usr/local:/usr:g' $(grep -rl /usr/local *) || die "sed /usr/local" +} + +src_install() { + dodir /var/{log,lock,cache}/checkservice + dobin checkservice || die + + insinto /usr/lib/checkservice/check + doins plugins/check/* || die "check" + insinto /usr/lib/checkservice/warning + doins plugins/warning/* || die "warning" + + insinto /usr/lib/perl5/vendor_perl/CS + doins lib/CS/* || die "perl5" + + insinto /etc/checkservice/config + doins config/{*.mail,*.conf} + insinto /etc/checkservice/config/plugins/warning + doins config/plugins/warning/* + + doman man/* + dodoc INSTALL README TODO checkservice.php cron/checkservice +} + +pkg_postinst() { + einfo "If you want a php status page or cron checkservice" + einfo "read the INSTALL file in docs directory all files" + einfo "and info are there" +} diff --git a/sys-apps/checkservice/metadata.xml b/sys-apps/checkservice/metadata.xml new file mode 100644 index 000000000000..d9cd2cad66c2 --- /dev/null +++ b/sys-apps/checkservice/metadata.xml @@ -0,0 +1,7 @@ + + + + +maintainer-needed@gentoo.org + + diff --git a/sys-apps/chname/Manifest b/sys-apps/chname/Manifest new file mode 100644 index 000000000000..94338e8aee38 --- /dev/null +++ b/sys-apps/chname/Manifest @@ -0,0 +1 @@ +DIST chname-1.0.tar.gz 998 SHA256 a94d24870491f3a5671292379ba0fee7130a1ff2f7bc99dad04a4daacccb98d5 diff --git a/sys-apps/chname/chname-1.0-r1.ebuild b/sys-apps/chname/chname-1.0-r1.ebuild new file mode 100644 index 000000000000..9334119fd590 --- /dev/null +++ b/sys-apps/chname/chname-1.0-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="Run a command with a new system hostname" +HOMEPAGE="http://code.google.com/p/chname" +SRC_URI="http://chname.googlecode.com/files/chname-1.0.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="" + +DEPEND=">=sys-kernel/linux-headers-2.6.16" +RDEPEND="" + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS} ${LDFLAGS}" chname || die +} + +src_install() { + dobin chname + doman chname.1 +} + +pkg_postinst() { + elog "Note: chname requires a or later kernel with CONFIG_UTS_NS=y." +} diff --git a/sys-apps/chname/metadata.xml b/sys-apps/chname/metadata.xml new file mode 100644 index 000000000000..7d6ebf36c141 --- /dev/null +++ b/sys-apps/chname/metadata.xml @@ -0,0 +1,11 @@ + + + + + maintainer-needed@gentoo.org + + Run a command with a new system hostname. Requires utsname namespaces. + + chname + + diff --git a/sys-apps/cinit/Manifest b/sys-apps/cinit/Manifest new file mode 100644 index 000000000000..f114e9b7d200 --- /dev/null +++ b/sys-apps/cinit/Manifest @@ -0,0 +1 @@ +DIST cinit-0.2.1.tar.bz2 63545 SHA256 a418d8c4df58ea76130561031d765e1fbfba831d4e10f9c50445de7193b830ab SHA512 fce6a0c06b11a252023f7f0159fdfe4f9f4dc3c1545708997c148ed2f0a451bb68a5b98518fc48083e3518959d28b32b1719a9b89d00af7a997854230fca09d7 WHIRLPOOL fe479f8c4ef27496604079602056eada3a580903bcfa380db7e1aae2e08f5ca5f1fdc12343f8eaa8bd537a419b4c0f69e0c1d29c681a2eb30e23eaeaddeea82a diff --git a/sys-apps/cinit/cinit-0.2.1.ebuild b/sys-apps/cinit/cinit-0.2.1.ebuild new file mode 100644 index 000000000000..d8f87ce5dadf --- /dev/null +++ b/sys-apps/cinit/cinit-0.2.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit toolchain-funcs + +DESCRIPTION="a fast, small and simple init with support for profiles" +HOMEPAGE="http://linux.schottelius.org/cinit/" +SRC_URI="http://linux.schottelius.org/${PN}/archives/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="doc" + +src_prepare() { + sed -i "/contrib+tools/d" Makefile || die + sed -i "/^STRIP/s/strip.*/true/" Makefile.include || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -I." \ + LDFLAGS="${LDFLAGS}" \ + STRIP=/bin/true \ + all +} + +src_install() { + emake LD=$(tc-getCC) DESTDIR="${D}" install + rm -f "${D}"/sbin/{init,shutdown,reboot} + dodoc Changelog CHANGES CREDITS README TODO + use doc && dodoc -r doc +} diff --git a/sys-apps/cinit/metadata.xml b/sys-apps/cinit/metadata.xml new file mode 100644 index 000000000000..e96e35b1a37c --- /dev/null +++ b/sys-apps/cinit/metadata.xml @@ -0,0 +1,8 @@ + + + + + maintainer-needed@gentoo.org + + + diff --git a/sys-apps/clrngd/Manifest b/sys-apps/clrngd/Manifest new file mode 100644 index 000000000000..7616d69e3d38 --- /dev/null +++ b/sys-apps/clrngd/Manifest @@ -0,0 +1 @@ +DIST clrngd-1.0.3.tar.gz 97283 RMD160 1a431b80e4b3350fa5112b8142f708de819aef02 SHA1 1446ff0f712ab46a80d3a4b452cf373e422c578f SHA256 9432765248548e2054389994ba44c87348a3a027f881ebeef2d2d2f73808388a diff --git a/sys-apps/clrngd/clrngd-1.0.3.ebuild b/sys-apps/clrngd/clrngd-1.0.3.ebuild new file mode 100644 index 000000000000..7f44166db975 --- /dev/null +++ b/sys-apps/clrngd/clrngd-1.0.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Clock randomness gathering daemon" +HOMEPAGE="http://echelon.pl/pubs/" +SRC_URI="http://echelon.pl/pubs/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="sys-devel/gcc" +RDEPEND="" + +src_compile() { + econf --bindir=/usr/sbin || die + emake || die +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README + newinitd ${FILESDIR}/clrngd-init.d clrngd + newconfd ${FILESDIR}/clrngd-conf.d clrngd +} diff --git a/sys-apps/clrngd/files/clrngd-conf.d b/sys-apps/clrngd/files/clrngd-conf.d new file mode 100644 index 000000000000..d178f5de8ece --- /dev/null +++ b/sys-apps/clrngd/files/clrngd-conf.d @@ -0,0 +1,9 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# This is the interval between runs of the clrngd main loop. It should NOT be +# less than 60 seconds (the daemon will exit with an error) as the main loop +# takes at least a minute to run. 240 seconds (4 minutes) is the default and +# recommended value. +DELAYTIME="240" diff --git a/sys-apps/clrngd/files/clrngd-init.d b/sys-apps/clrngd/files/clrngd-init.d new file mode 100644 index 000000000000..716eaeb86f27 --- /dev/null +++ b/sys-apps/clrngd/files/clrngd-init.d @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DAEMON=clrngd +OPTS=${DELAYTIME} + +start() { + ebegin "Starting ${DAEMON}" + start-stop-daemon --start --quiet --exec /usr/sbin/${DAEMON} ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${DAEMON}" + start-stop-daemon --stop --quiet --exec /usr/sbin/${DAEMON} + eend $? +} diff --git a/sys-apps/clrngd/metadata.xml b/sys-apps/clrngd/metadata.xml new file mode 100644 index 000000000000..c6d862855eb5 --- /dev/null +++ b/sys-apps/clrngd/metadata.xml @@ -0,0 +1,7 @@ + + + + + robbat2@gentoo.org + + diff --git a/sys-apps/cobalt-panel-utils/Manifest b/sys-apps/cobalt-panel-utils/Manifest new file mode 100644 index 000000000000..4e0e238c86d8 --- /dev/null +++ b/sys-apps/cobalt-panel-utils/Manifest @@ -0,0 +1 @@ +DIST cobalt-panel-utils-1.0.2.tar.gz 24552 RMD160 944d3a21e3605766c5389cb9ce0fc99c221a4fbc SHA1 35a636fb078ae08fc54767cc47c49c86769b7ecc SHA256 b8ebc79cac21993576670d56dc36739def5ceb342da1d407710dcc278586c9d8 diff --git a/sys-apps/cobalt-panel-utils/cobalt-panel-utils-1.0.2.ebuild b/sys-apps/cobalt-panel-utils/cobalt-panel-utils-1.0.2.ebuild new file mode 100644 index 000000000000..db78c6fa6c63 --- /dev/null +++ b/sys-apps/cobalt-panel-utils/cobalt-panel-utils-1.0.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils + +DESCRIPTION="LCD and LED panel utilities for the Sun Cobalts" +HOMEPAGE="http://gentoo.404ster.com/" +SRC_URI="ftp://www.404ster.com/pub/gentoo-stuff/ebuilds/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~mips x86" +IUSE="static" + +RDEPEND="sys-devel/gettext" +DEPEND="${DEPEND} + sys-devel/autoconf" + +src_configure() { + sed -i \ + -e"/^COPTS/s:= := ${CFLAGS} :" \ + -e"/^LDFLAGS/s:= := ${LDFLAGS} :"\ + Makefile || die "sed failed" +} + +src_compile() { + if use static; then + einfo "Building as static executables" + export STATIC="-static" + fi + emake || die +} + +src_install() { + into / + dosbin "${S}"/lcd-flash "${S}"/lcd-getip "${S}"/lcd-swrite \ + "${S}"/lcd-write "${S}"/lcd-yesno "${S}"/lcd-setcursor "${S}"/iflink + "${S}"/iflinkstatus "${S}"/readbutton || die "dosbin failed" + + dodoc doc/README* doc/CREDITS + doman doc/man/*.1 +} diff --git a/sys-apps/cobalt-panel-utils/metadata.xml b/sys-apps/cobalt-panel-utils/metadata.xml new file mode 100644 index 000000000000..d7b1942f55b5 --- /dev/null +++ b/sys-apps/cobalt-panel-utils/metadata.xml @@ -0,0 +1,11 @@ + + + + + maintainer-needed@gentoo.org + + + + LCD and LED panel utilities for the Sun Cobalts. Based on panel-utils-pacifica released by Sun. + + diff --git a/sys-apps/collectl/Manifest b/sys-apps/collectl/Manifest new file mode 100644 index 000000000000..ea3afd156f49 --- /dev/null +++ b/sys-apps/collectl/Manifest @@ -0,0 +1,4 @@ +DIST collectl-3.7.3.src.tar.gz 457208 SHA256 93c6c130eb89f0ecba1b1b791e80b7e6746fa82f6c4e770feb486ac8fcc53683 SHA512 4e73fc090685933b89c595b3f9f837c28bfbe1d5c3e7ffb5310db309d529779b106dac4f33f337d8b6686175bf7b4ff5af32cbb15b6469517d6e1ddecb6f34f8 WHIRLPOOL f457bbadd556e2372337f78354d0044773989c5914312b80936040494024f367db471e1d735d9cd72bca18611819dd8062b1f24244b8b002c7a035274c1a8772 +DIST collectl-3.7.4.src.tar.gz 462752 SHA256 798657b8e3626e9e4ed6fe5ae44b8216da49f0bc4bbda52217d2a304e3d7e108 SHA512 f25686fe977e0a3ea45a1980eea87baaa92a2d81ec308838c137d181e2bf182df6cdf453c5c6e7f3f0b2ccd3066d17ab9c4137303b587f55303dd4afe7ae35da WHIRLPOOL e017e293348644d922547bc99904e5434c0286b8b332509cb062ac92c6a11ff8af2a4ceb275fe82dd9dda11c7774ab9e2e344c9ca5a2d6d25b036a3dab893db0 +DIST collectl-4.0.0.src.tar.gz 618232 SHA256 7c2ecddb8ca0d49222590526d84de93b6593410515aca9aa2099d5a903e01221 SHA512 9f42a2a845ed7954f7a4d18b9c517b2beeac75819ce5fb60a9b45d24ec0ebf4dee54f32868a3e7e72d068de4c32741764a46712f2d9cfb8dbe0b54d56f1fec6d WHIRLPOOL eac180bd4533e59f16b5e117593d9132f1bc809a0f498fe08a1cb8ae57a921ecb7a80357f302e335d55c148b8748972ceb3fe01fb109ca6721938d69494ebe90 +DIST collectl-4.0.2.src.tar.gz 618639 SHA256 57474454913709a17ff22e3ac5e3839b7d6596b71aae7f08658f2c73a277622d SHA512 6e4dd377a3c155bcf4bfc613374096365cd9d3af45683408e4872af6814b87b867700ce31077eca8d011d2acd1cf626f9f220d83ef2d0d4dfdf05b80b858f47e WHIRLPOOL ef661ec0481ba4e374e8af3b8cd03a4797c6626523f316eab4456bedc8b4132b3001556b6d358ed614b18c1e7ea8e5ffc9a6ce96e17273f7f5166ab8d3201a16 diff --git a/sys-apps/collectl/collectl-3.7.3.ebuild b/sys-apps/collectl/collectl-3.7.3.ebuild new file mode 100644 index 000000000000..9abf6c0a7808 --- /dev/null +++ b/sys-apps/collectl/collectl-3.7.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="light-weight performance monitoring tool capable of reporting interactively and logging to disk" +HOMEPAGE="http://collectl.sourceforge.net/" +SRC_URI="mirror://sourceforge/collectl/${P}.src.tar.gz" + +LICENSE="GPL-2 Artistic" +SLOT="0" +KEYWORDS="~alpha amd64 ~ia64 ~x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.8.8 + virtual/perl-Time-HiRes + >=dev-perl/Archive-Zip-1.20 + sys-apps/ethtool + sys-apps/pciutils" + +src_prepare() { + sed -i INSTALL -e "/^DOCDIR/s:doc/collectl:doc/${PF}:" || die +} + +src_install() { + DESTDIR="${D}" bash -ex ./INSTALL || die + + rm "${D}"/etc/init.d/* || die + newinitd "${FILESDIR}"/collectl.initd-2 collectl + + cd "${D}"/usr/share/doc/${PF} || die + dohtml * + rm ARTISTIC GPL COPYING *.html *.jpg *.css || die +} diff --git a/sys-apps/collectl/collectl-3.7.4.ebuild b/sys-apps/collectl/collectl-3.7.4.ebuild new file mode 100644 index 000000000000..0b33b92843fb --- /dev/null +++ b/sys-apps/collectl/collectl-3.7.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="light-weight performance monitoring tool capable of reporting interactively and logging to disk" +HOMEPAGE="http://collectl.sourceforge.net/" +SRC_URI="mirror://sourceforge/collectl/${P}.src.tar.gz" + +LICENSE="GPL-2 Artistic" +SLOT="0" +KEYWORDS="alpha amd64 ia64 x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.8.8 + virtual/perl-Time-HiRes + >=dev-perl/Archive-Zip-1.20 + sys-apps/ethtool + sys-apps/pciutils" + +src_prepare() { + sed -i INSTALL -e "/^DOCDIR/s:doc/collectl:doc/${PF}:" || die +} + +src_install() { + DESTDIR="${D}" bash -ex ./INSTALL || die + + rm "${D}"/etc/init.d/* || die + newinitd "${FILESDIR}"/collectl.initd-2 collectl + + rm "${D}"/usr/share/${PN}/UNINSTALL || die + + cd "${D}"/usr/share/doc/${PF} || die + dohtml * + rm ARTISTIC GPL COPYING *.html *.jpg *.css || die +} diff --git a/sys-apps/collectl/collectl-4.0.0.ebuild b/sys-apps/collectl/collectl-4.0.0.ebuild new file mode 100644 index 000000000000..f54ea2761240 --- /dev/null +++ b/sys-apps/collectl/collectl-4.0.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="light-weight performance monitoring tool capable of reporting interactively and logging to disk" +HOMEPAGE="http://collectl.sourceforge.net/" +SRC_URI="mirror://sourceforge/collectl/${P}.src.tar.gz" + +LICENSE="GPL-2 Artistic" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.8.8 + virtual/perl-Time-HiRes + >=dev-perl/Archive-Zip-1.20 + sys-apps/ethtool + sys-apps/pciutils" + +src_prepare() { + sed -i INSTALL -e "/^DOCDIR/s:doc/collectl:doc/${PF}:" || die +} + +src_install() { + DESTDIR="${D}" bash -ex ./INSTALL || die + + rm "${D}"/etc/init.d/* || die + newinitd "${FILESDIR}"/collectl.initd-2 collectl + + rm "${D}"/usr/share/${PN}/UNINSTALL || die + + cd "${D}"/usr/share/doc/${PF} || die + dohtml * + rm ARTISTIC GPL COPYING *.html *.jpg *.css || die +} diff --git a/sys-apps/collectl/collectl-4.0.2.ebuild b/sys-apps/collectl/collectl-4.0.2.ebuild new file mode 100644 index 000000000000..f54ea2761240 --- /dev/null +++ b/sys-apps/collectl/collectl-4.0.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="light-weight performance monitoring tool capable of reporting interactively and logging to disk" +HOMEPAGE="http://collectl.sourceforge.net/" +SRC_URI="mirror://sourceforge/collectl/${P}.src.tar.gz" + +LICENSE="GPL-2 Artistic" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.8.8 + virtual/perl-Time-HiRes + >=dev-perl/Archive-Zip-1.20 + sys-apps/ethtool + sys-apps/pciutils" + +src_prepare() { + sed -i INSTALL -e "/^DOCDIR/s:doc/collectl:doc/${PF}:" || die +} + +src_install() { + DESTDIR="${D}" bash -ex ./INSTALL || die + + rm "${D}"/etc/init.d/* || die + newinitd "${FILESDIR}"/collectl.initd-2 collectl + + rm "${D}"/usr/share/${PN}/UNINSTALL || die + + cd "${D}"/usr/share/doc/${PF} || die + dohtml * + rm ARTISTIC GPL COPYING *.html *.jpg *.css || die +} diff --git a/sys-apps/collectl/files/collectl.initd-2 b/sys-apps/collectl/files/collectl.initd-2 new file mode 100755 index 000000000000..4abcf43cee0c --- /dev/null +++ b/sys-apps/collectl/files/collectl.initd-2 @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_started_commands="flush" + +pidfile="/var/run/collectl.pid" +command="/usr/bin/collectl" +command_args="-D" + +flush() { + einfo "Flushing collectl buffers" + start-stop-daemon --signal USR1 --pidfile ${pidfile} + eend $? +} diff --git a/sys-apps/collectl/metadata.xml b/sys-apps/collectl/metadata.xml new file mode 100644 index 000000000000..0fdbe9d1fab7 --- /dev/null +++ b/sys-apps/collectl/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + collectl + + diff --git a/sys-apps/conspy/Manifest b/sys-apps/conspy/Manifest new file mode 100644 index 000000000000..e88bff8b98a5 --- /dev/null +++ b/sys-apps/conspy/Manifest @@ -0,0 +1,2 @@ +DIST conspy-1.10.tar.gz 25211 SHA256 1c8357d80ef55807fddb62c223cb3779deb66aa33f31294ad6e4e2a03a81d7ee SHA512 f22ddff140935f767bff34c8c274ff088ebae049ac61c543ad37fa126bbab2e1cec72bdd93f51cb513d00368b909935491d06a36dbff215f17cdea7a658dbad2 WHIRLPOOL 14b5bd550e70bd76ec21838720444dd8adf86a11fe669ecd3a8a549f261b2f7a9a21263f28d469f921ccf9ec3921cc9fd4481de0f2e815339c3fc46c64469e5f +DIST conspy-1.8.tar.gz 20116 SHA256 726434eb44b95c564c81df082737948ec4b63d535d5f14975fee8c3fa8eca373 SHA512 ff9bd3064761b4f8eca6554c54bdf479e58798ec2a818ea59f52fa3b1a315f204e869903d0fd359ddd5cf082f8dec1ea40f5721f884b7a344e0320b09397fcf8 WHIRLPOOL 6a2fb33bce77dbddc108244239e210170700b74c5074f493b8a5d3e6079eb512b9b01ab356875ecee08a778337a9973630503dd82e60d85b51a81f4449692363 diff --git a/sys-apps/conspy/conspy-1.10.ebuild b/sys-apps/conspy/conspy-1.10.ebuild new file mode 100644 index 000000000000..1b8de99d2588 --- /dev/null +++ b/sys-apps/conspy/conspy-1.10.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true +inherit autotools-utils + +DESCRIPTION="Remote control for Linux virtual consoles" +HOMEPAGE="http://conspy.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-1/${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND}" + +src_configure() { + autotools-utils_src_configure + + mv \ + "${WORKDIR}"/${P}_build/Makefile-automake \ + "${WORKDIR}"/${P}_build/Makefile || die +} + +src_install() { + dobin "${WORKDIR}"/${P}_build/${PN} + doman ${PN}.1 + dodoc ChangeLog.txt README.txt + dohtml ${PN}.html +} diff --git a/sys-apps/conspy/conspy-1.8.ebuild b/sys-apps/conspy/conspy-1.8.ebuild new file mode 100644 index 000000000000..3a2d92554f07 --- /dev/null +++ b/sys-apps/conspy/conspy-1.8.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools + +DESCRIPTION="Remote control for virtual consoles" +HOMEPAGE="http://ace-host.stuart.id.au/russell/files/conspy" +SRC_URI="http://ace-host.stuart.id.au/russell/files/${PN}/${P}.tar.gz" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND}" + +src_prepare() { + eautoreconf +} + +src_install() { + default + dohtml ${PN}.html +} diff --git a/sys-apps/conspy/metadata.xml b/sys-apps/conspy/metadata.xml new file mode 100644 index 000000000000..effbbf33eac8 --- /dev/null +++ b/sys-apps/conspy/metadata.xml @@ -0,0 +1,5 @@ + + + + maintainer-needed@gentoo.org + diff --git a/sys-apps/coreutils/Manifest b/sys-apps/coreutils/Manifest new file mode 100644 index 000000000000..af49eabc0cb5 --- /dev/null +++ b/sys-apps/coreutils/Manifest @@ -0,0 +1,15 @@ +DIST coreutils-8.20-patches-1.1.tar.xz 19504 SHA256 0a1a3cc578e8872ebc93113edd76d1f1d88fb4d6596a047cfbb6c5fd4e82c22d SHA512 258116ff52d1d28acbedd2383c8d0f488c272b297c4f146231ea45fb76902bb56c9fad2d74d50c22371e67a4178dcff7b65950fcc034f56fc02c3c2ff290224f WHIRLPOOL ae4436a6ae655affbc02ee2d3d6a87345dc7b63b67aaecf01e034d2e40237c6e76b00a909d852f6ea96e348ef43e8e3f6f4c5bdb01aaf6d30a1b51036cbfe31b +DIST coreutils-8.20.tar.xz 5273788 SHA256 dbcb798764827a0f74be738662ecb516705cf520330cd3d7b2640fdffa499eb2 SHA512 adbeab5af780ae70d2a98a81e96ad2cdfbcbc20153372b0085f6ac75ae9fadff82bd09b460400820057692b4145d7f2d276630b76b0ed509303587972ed175cd WHIRLPOOL 3cf911cf785c6e6acab4f37bc75805687f91fe74d5727782903d242669ee6b7ad444b18395d6808b1f2569703cca1992983d3bfef41f65ea461f6d0aa25908e2 +DIST coreutils-8.21-man.tar.xz 42464 SHA256 0ab87b22a715505051ffb6d94ff01fb45988ba353f0a7c248e7a1c9d79e69815 SHA512 846a995f4ddc2bd20a1a9970fc476db3d3f0f4584fbde981940b81f0c3f4065c0ced7cae71c8518bed9e880143ce734bc98bae5b84da8600e26c32b194176013 WHIRLPOOL a5c424b24223d26a90ddf9b03839fb4311e4e89a408ff982d7b493ea3962dd88e305ecd08c799b554dfe74c19eb37f1f97307a94a4f7c79c84ae8b5f5bd26b12 +DIST coreutils-8.21-patches-1.0.tar.xz 6480 SHA256 3a10abca6e41e654837583b582a831c220a02ad9a6dc2bec66e60f7038a2f632 SHA512 4f19712c2c50cbe3f3abd1c48decd063df250d72344c02796f24a43eac9d6f543be64cb7f48e3716e92db964d93b8cfc08e860f7f79726ccada796fefbe7ddd8 WHIRLPOOL 72fb7908728ffc33d9f6bd360e1bc0d990573c01c2974de5ed842ba15224e9ad137ec24d727659748350886b53ee6da71f3773cf6a5c36bd091919090200294a +DIST coreutils-8.21.tar.xz 5357988 SHA256 adaa44bdab3fa5eb352e80d8a31fdbf957b78653d0c2cd30d63e161444288e18 SHA512 cf0e5a393b486dd7fd46600dc2928bd2303250f3bce7b2f0de1bb3bf7b0cc3f6e29001b23fda5bbabe7686bf78917cfabe1f81abb602ab41cd406b45021fd229 WHIRLPOOL 4aa93529fc41f52841d82169fc5d8b10095462d24b46a97bff78c1abda865af5cb248cfbb67495c2618b338dd05e33fecf68a677c9ca268abf97eb5d0f1f05ef +DIST coreutils-8.22-man-r1.tar.xz 42748 SHA256 eb9882286a6355674e607506318ccc9e361b6a985d64073b797fd56a5e0d256c SHA512 b0123e3c8cd037d006a2bb64e8047636329ac3fd3d685db8e52a19e83df87da0428896af9bdcd8f1208f7aad3665ec2a871bbbfa98cbe5293c697431a23d7b4c WHIRLPOOL 7e705060f5af2d28152531ad3b5ae8e6cca2dabdec7dc1a30bcf7b74951462bb58ee610d1e080abc812e1291fae904b3e931a35d3d2566fb7b85f6a37415e04b +DIST coreutils-8.22-patches-1.0.tar.xz 6492 SHA256 4a2a32429607e0727d6ae114ee9e543c948d6c7710ef99920901e73784cee3f4 SHA512 daf1c2b85619aa9ff7bae02926be39478f439d5555fd4eb3038b62be6cceb7cc6357b4a77a347cb2b4ee08119aa2c3f7deb63d7179407af03f08459d8de38e0b WHIRLPOOL 845dfbf57269f50486862b6236e2a461bf7bccee383365982d4359895d6c9303e467d359aa9862134a965a96a062fa2c748ceb99390bbee09f9b843dbe5bd1ed +DIST coreutils-8.22-patches-1.1.tar.xz 7840 SHA256 4c45cca7950bbd278db23318916e503bda2df3be3e11c81cd15b55874007ed16 SHA512 7555544041cf4acf5615df76d6e9f9df157dac66059757d587af8f264597e02e8a395fbb920d42623fd40dab9a5ef1dfae2719e300efe491b0eaa2baa3a91f11 WHIRLPOOL ebc9fa35f40473646c2b826cc1bc57e9012fa37f264eb7e6084c0d2cf04f46827c943f9aa80f779a3d99bc07eeb40ffc4ac09109a6324af9882e2b0630d84253 +DIST coreutils-8.22.tar.xz 5335124 SHA256 5b3e94998152c017e6c75d56b9b994188eb71bf46d4038a642cb9141f6ff1212 SHA512 2f14c2cab7001297309b4774bf3d610ecbaaec7d98d68e3792b24d2b52d319c4e30e55f803e56c48b9b9a1b76eb1c9636be5444fe1dc1dbcdd6150cfcb34847f WHIRLPOOL 1b8e3f1cf12f7975e8d80b9ddab132937b2fffaca8c85ac1fefddb5fe277a63a7aa9c6f0f93d8f5a93d5af378b3cf3573222db8e1da918152b9fb7eff1352238 +DIST coreutils-8.23-man.tar.xz 43060 SHA256 d1b16e74b3dba4f313aeebae2c69da205f7d2e6e1c2aa8d39026c860d314ecca SHA512 db5085c783256e30b9878bdce5cf16063aaa51d800d5b40537d5cdea372d095a391e9986e8680c6d94841bc995ab43ac8bc2d23427e6e96263d24b0b5ccc7d12 WHIRLPOOL ef0cae7c1b752c0f81e6f23b0a792804518a5257740fedf7dd70577ec503a64716156a898ed50045987954a6234ba23c9483772830683bb7e4bd0c8a2ec2c142 +DIST coreutils-8.23-patches-1.1.tar.xz 6480 SHA256 daf5d61b36db61d629bf14bf8f04e878f1205c9ae2af5daf37dca3aad5a6fde4 SHA512 8da5f8e9fc47baa060030076c4a2de90013a0d1faad45fe99545e93d50bc079720281f6db5774590fe842c8c56bd8ae97e1d9bf862fae1896760b5e5b686e7a8 WHIRLPOOL 2a8082975e3627454569e57aecb3d1ac6bdef89e16f4f64a88a4ffcbf2b341fe56874b128485ae540270f7a060f9e0f4bd3eecf68e215fb6a5a1c5ac434f7403 +DIST coreutils-8.23.tar.xz 5375612 SHA256 ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d SHA512 a5f4b82ce208cb439d5dbe6f5cf4b19fecff581da210a51c4e3fdd5ffab114d171456d041e20a6996b59185947ac6655096e4b5ca252186e282ae0ae08b7534c WHIRLPOOL 4bd4cd28d6de96218e791c5ed15766e34dfeeb3aeade10e211e3a0e9ffa695e5a716872a915d78b356b3e3635e1e22274d92560301aadaf46a58242dc235d733 +DIST coreutils-8.24-man.tar.xz 42920 SHA256 cf0333b5f134a331e0b46e2ddf90666f8bdc3281c1ca2c7ccbb75b437589ce37 SHA512 9dfe614402bc35c43301ebf97d2d36ac5db1433f48171bda15f2ba76bd9944742665b30a764df0cf773ebcad1845aae57c8e36a1cd3848c1e82a7c996d6cc78a WHIRLPOOL d702a372031fe52262204c00bee641084c099c45150d82abd5915535ab3bbe1efb63c4f00173bb88725ba49126a6ecf368d14b12843b570c08165b757b78710b +DIST coreutils-8.24-patches-1.1.tar.xz 6688 SHA256 79cb0dc5b58cb97e17b11b5e821ed88fae88f728d9fd07986bbb397824e49c6f SHA512 cf340ccb918e307be8bbfd19a299bcfe5b295a26f59a8eeb8657f5dda1361100a350e996b31097948e63890987a2f83d05d2e7175c6304f4a4812b9974679c2c WHIRLPOOL 3b4d4676b119e4f22a01c8450be13d6eb40720d3c57aac5631454df24814943e6e6024fbdcd27a2b262d42c1446d9c04cbdc163371ff20a4b28d9cd9a77c5c9c +DIST coreutils-8.24.tar.xz 5649896 SHA256 a2d75286a4b9ef3a13039c2da3868a61be4ee9f17d8ae380a35a97e506972170 SHA512 b42bb233340353647bb9a1c3d9122c1a5379cf3602ba9197c3c935fc899897e7d4685148dfaf93eccc096bee0a9b03416d79dc9bb81d5d2dea6e04ed134a3d1b WHIRLPOOL 68598e0c93375522714b9bc0dd092386a9466725b2b4b5715e2926c5087e1ce887d5e5b8e0b872347a053edcb39ba1f8c6949ee659a06ed554703a0ba07064e2 diff --git a/sys-apps/coreutils/coreutils-8.20.ebuild b/sys-apps/coreutils/coreutils-8.20.ebuild new file mode 100644 index 000000000000..920490ab6bd8 --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.20.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1.1" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="mirror://gnu-alpha/coreutils/${P}.tar.xz + mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~ryao/dist/${P}-patches-${PATCH_VER}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd" +IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" + +LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) + caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp[static-libs] ) + xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) + selinux? ( sys-libs/libselinux ) + nls? ( >=sys-devel/gettext-0.15 ) + !app-misc/realpath + ! "${ww}" + #!/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check || die "make check failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO + + insinto /etc + newins src/dircolors.hin DIR_COLORS || die + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${D}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} || die + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${D}"/usr/share/man + fi +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # /bin/dircolors sometimes sticks around #224823 + if [ -e "${ROOT}/usr/bin/dircolors" ] && [ -e "${ROOT}/bin/dircolors" ] ; then + if strings "${ROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then + einfo "Deleting orphaned GNU /bin/dircolors for you" + rm -f "${ROOT}/bin/dircolors" + fi + fi + + # Help out users using experimental filesystems + if grep -qs btrfs "${ROOT}"/etc/fstab /proc/mounts ; then + case $(uname -r) in + 2.6.[12][0-9]|2.6.3[0-7]*) + ewarn "You are running a system with a buggy btrfs driver." + ewarn "Please upgrade your kernel to avoid silent corruption." + ewarn "See: https://bugs.gentoo.org/353907" + ;; + esac + fi +} diff --git a/sys-apps/coreutils/coreutils-8.21.ebuild b/sys-apps/coreutils/coreutils-8.21.ebuild new file mode 100644 index 000000000000..f908d261be52 --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.21.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1.0" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="mirror://gnu-alpha/coreutils/${P}.tar.xz + mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz + mirror://gentoo/${P}-man.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-man.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~arm-linux ~x86-linux" +IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" + +LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) + caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp[static-libs] ) + xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) + selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl ) + !app-misc/realpath + ! "${ww}" + #!${EPREFIX}/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check || die "make check failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO + + insinto /etc + newins src/dircolors.hin DIR_COLORS || die + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${ED}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} || die + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${ED}"/usr/share/man + fi + +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # /bin/dircolors sometimes sticks around #224823 + if [ -e "${EROOT}/usr/bin/dircolors" ] && [ -e "${EROOT}/bin/dircolors" ] ; then + if strings "${EROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then + einfo "Deleting orphaned GNU /bin/dircolors for you" + rm -f "${EROOT}/bin/dircolors" + fi + fi + + # Help out users using experimental filesystems + if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then + case $(uname -r) in + 2.6.[12][0-9]|2.6.3[0-7]*) + ewarn "You are running a system with a buggy btrfs driver." + ewarn "Please upgrade your kernel to avoid silent corruption." + ewarn "See: https://bugs.gentoo.org/353907" + ;; + esac + fi +} diff --git a/sys-apps/coreutils/coreutils-8.22-r1.ebuild b/sys-apps/coreutils/coreutils-8.22-r1.ebuild new file mode 100644 index 000000000000..fc4505ffb053 --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.22-r1.ebuild @@ -0,0 +1,170 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1.1" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz + mirror://gentoo/${P}-man-r1.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-man-r1.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~arm-linux ~x86-linux" +IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" + +LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) + caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp[static-libs] ) + xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) + selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl ) + !app-misc/realpath + ! "${ww}" + #!${EPREFIX}/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check || die "make check failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO + + insinto /etc + newins src/dircolors.hin DIR_COLORS || die + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${ED}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} || die + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${ED}"/usr/share/man + fi + +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # Help out users using experimental filesystems + if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then + case $(uname -r) in + 2.6.[12][0-9]|2.6.3[0-7]*) + ewarn "You are running a system with a buggy btrfs driver." + ewarn "Please upgrade your kernel to avoid silent corruption." + ewarn "See: https://bugs.gentoo.org/353907" + ;; + esac + fi +} diff --git a/sys-apps/coreutils/coreutils-8.22.ebuild b/sys-apps/coreutils/coreutils-8.22.ebuild new file mode 100644 index 000000000000..84e43c2acd14 --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.22.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1.0" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz + mirror://gentoo/${P}-man-r1.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-man-r1.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~arm-linux ~x86-linux" +IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" + +LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) + caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp[static-libs] ) + xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) + selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl ) + !app-misc/realpath + ! "${ww}" + #!${EPREFIX}/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check || die "make check failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO + + insinto /etc + newins src/dircolors.hin DIR_COLORS || die + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${ED}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} || die + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${ED}"/usr/share/man + fi + +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # /bin/dircolors sometimes sticks around #224823 + if [ -e "${EROOT}/usr/bin/dircolors" ] && [ -e "${EROOT}/bin/dircolors" ] ; then + if strings "${EROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then + einfo "Deleting orphaned GNU /bin/dircolors for you" + rm -f "${EROOT}/bin/dircolors" + fi + fi + + # Help out users using experimental filesystems + if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then + case $(uname -r) in + 2.6.[12][0-9]|2.6.3[0-7]*) + ewarn "You are running a system with a buggy btrfs driver." + ewarn "Please upgrade your kernel to avoid silent corruption." + ewarn "See: https://bugs.gentoo.org/353907" + ;; + esac + fi +} diff --git a/sys-apps/coreutils/coreutils-8.23.ebuild b/sys-apps/coreutils/coreutils-8.23.ebuild new file mode 100644 index 000000000000..61d41f5b29ef --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.23.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# To generate the man pages, unpack the upstream tarball and run: +# ./configure --enable-install-program=arch,coreutils +# make +# cd .. +# tar cf - coreutils-*/man/*.[0-9] | xz > coreutils--man.tar.xz + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1.1" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz + mirror://gentoo/${P}-man.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-man.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux" +IUSE="acl caps gmp multicall nls selinux static userland_BSD vanilla xattr" + +LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) + caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp[static-libs] ) + xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) + selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl ) + !app-misc/realpath + ! "${ww}" + #!${EPREFIX}/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check +} + +src_install() { + default + + insinto /etc + newins src/dircolors.hin DIR_COLORS + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${ED}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${ED}"/usr/share/man + fi + +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # Help out users using experimental filesystems + if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then + case $(uname -r) in + 2.6.[12][0-9]|2.6.3[0-7]*) + ewarn "You are running a system with a buggy btrfs driver." + ewarn "Please upgrade your kernel to avoid silent corruption." + ewarn "See: https://bugs.gentoo.org/353907" + ;; + esac + fi +} diff --git a/sys-apps/coreutils/coreutils-8.24.ebuild b/sys-apps/coreutils/coreutils-8.24.ebuild new file mode 100644 index 000000000000..a3511ffdfc6a --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.24.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# To generate the man pages, unpack the upstream tarball and run: +# ./configure --enable-install-program=arch,coreutils +# make +# cd .. +# tar cf - coreutils-*/man/*.[0-9] | xz > coreutils--man.tar.xz + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1.1" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz + mirror://gentoo/${P}-man.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-man.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux" +IUSE="acl caps gmp multicall nls selinux static userland_BSD vanilla xattr" + +LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) + caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp[static-libs] ) + xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) + selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl ) + !app-misc/realpath + ! "${ww}" + #!${EPREFIX}/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check +} + +src_install() { + default + + insinto /etc + newins src/dircolors.hin DIR_COLORS + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${ED}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${ED}"/usr/share/man + fi + +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # Help out users using experimental filesystems + if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then + case $(uname -r) in + 2.6.[12][0-9]|2.6.3[0-7]*) + ewarn "You are running a system with a buggy btrfs driver." + ewarn "Please upgrade your kernel to avoid silent corruption." + ewarn "See: https://bugs.gentoo.org/353907" + ;; + esac + fi +} diff --git a/sys-apps/coreutils/metadata.xml b/sys-apps/coreutils/metadata.xml new file mode 100644 index 000000000000..02d1ba75a6d2 --- /dev/null +++ b/sys-apps/coreutils/metadata.xml @@ -0,0 +1,11 @@ + + + +base-system + + cpe:/a:gnu:coreutils + + + Build all tools into a single `coreutils` program akin to busybox to save space + + diff --git a/sys-apps/cpint/Manifest b/sys-apps/cpint/Manifest new file mode 100644 index 000000000000..74d673384bb0 --- /dev/null +++ b/sys-apps/cpint/Manifest @@ -0,0 +1,2 @@ +DIST cpint116.tgz 20626 SHA256 8bfc3d7add9c860de93154331af30198e06564d5a03aa1f627b239a27d7a8b89 +DIST cpint253.tgz 31143 SHA256 a82d66d38c9cd0e99e7226f5e56598ec41e4b4bf27d5c7c94cad9f96314791fd diff --git a/sys-apps/cpint/cpint-1.1.6.ebuild b/sys-apps/cpint/cpint-1.1.6.ebuild new file mode 100644 index 000000000000..57850bfb7db7 --- /dev/null +++ b/sys-apps/cpint/cpint-1.1.6.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit linux-info + +MY_PV=${PV//./} + +DESCRIPTION="Linux/390 Interface to z/VM's Control Program" +HOMEPAGE="http://linuxvm.org/Patches/index.html" +SRC_URI="http://linuxvm.org/Patches/s390/${PN}${MY_PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="s390" +IUSE="" + +DEPEND="" + +src_compile() { + emake INCLUDEDIR=-I/usr/src/linux/include || die "emake failed" +} + +src_install() { + einstall prefix="${D}" || die + rm -rf "${D}"/lib/modules/misc + dodoc ChangeLog HOW-TO +} diff --git a/sys-apps/cpint/cpint-2.5.3.ebuild b/sys-apps/cpint/cpint-2.5.3.ebuild new file mode 100644 index 000000000000..4156ebe6da24 --- /dev/null +++ b/sys-apps/cpint/cpint-2.5.3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit linux-info eutils + +MY_PV=${PV//./} + +DESCRIPTION="Linux/390 Interface to z/VM's Control Program" +HOMEPAGE="http://linuxvm.org/Patches/index.html" +SRC_URI="http://linuxvm.org/Patches/s390/${PN}${MY_PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="s390" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + epatch "${FILESDIR}"/${P}-prototypes.patch + epatch "${FILESDIR}"/${P}-kernel.patch + + # the makefile uses this variable + export KERNEL_DIR +} + +src_install() { + emake install prefix="${D}" + dodoc ChangeLog HOW-TO +} diff --git a/sys-apps/cpint/files/cpint-2.5.3-build.patch b/sys-apps/cpint/files/cpint-2.5.3-build.patch new file mode 100644 index 000000000000..9dacbdb6c7ad --- /dev/null +++ b/sys-apps/cpint/files/cpint-2.5.3-build.patch @@ -0,0 +1,73 @@ +--- cpint-2.5.3/Makefile ++++ cpint-2.5.3/Makefile +@@ -5,59 +5,29 @@ + prefix = + bindir = /usr/sbin + etcdir = /etc ++krndir = /lib/modules/`uname -r`/misc + +-COMMAND = hcp mongen monstat actgen diag0 +- +-tools: $(COMMAND) ++CFLAGS += -Wall ++CPPFLAGS += -I$(KERNEL_DIR)/include + +-hcp : hcp.o +- $(CC) -o $@ $^ ++COMMAND = hcp mongen monstat actgen diag0 + +-hcptest : hcptest.o +- $(CC) -o $@ $^ ++all: $(COMMAND) cpint_mod.ko + +-mongen : mongen.o +- $(CC) -o $@ $^ ++cpint_mod.ko: ++ $(MAKE) -C $(KERNEL_DIR) modules SUBDIRS=$(PWD) + +-actgen : actgen.o +- $(CC) -o $@ $^ ++tools: $(COMMAND) + + monstat : monstat.o sysinfo.o +- $(CC) -o $@ $^ +- +-diag0 : diag0.o +- $(CC) -o $@ $^ +- +-hcp.o : hcp.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c hcp.c +- +-hcptest.o : hcptest.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c hcptest.c +- +-mongen.o : mongen.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c mongen.c +- +-monstat.o : monstat.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c monstat.c +- +-sysinfo.o : sysinfo.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c sysinfo.c +- +-actgen.o : actgen.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c actgen.c +- +-diag0.o : diag0.c +- $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c diag0.c + + install: $(TARGET) ++ install -d -m 755 ${prefix}${bindir} + install -c -m 750 mongen ${prefix}${bindir} + install -c -m 750 monstat ${prefix}${bindir} + install -c -m 750 hcp ${prefix}${bindir} +- cp cpint_mod.ko /lib/modules/`uname -r`/kernel/drivers/s390/char/ +- rm -rf /dev/cpcmd /dev/cpmod /dev/cpappl /dev/cpid \ +- /dev/cpint0 /dev/cpint8 /dev/cpint76 /dev/cpint222 +- modprobe -qr cpint_mod +- depmod -a ++ install -d -m 755 ${prefix}${krndir} ++ install -c -m 644 cpint_mod.ko ${prefix}${krndir} + + clean: + rm -rf *.o *~ core mongen monstat actgen hcp diag0 *.ko *.cmd \ diff --git a/sys-apps/cpint/files/cpint-2.5.3-kernel.patch b/sys-apps/cpint/files/cpint-2.5.3-kernel.patch new file mode 100644 index 000000000000..b4bb7640eb2c --- /dev/null +++ b/sys-apps/cpint/files/cpint-2.5.3-kernel.patch @@ -0,0 +1,43 @@ +--- cpint-2.5.3/cpint.c ++++ cpint-2.5.3/cpint.c +@@ -131,7 +131,7 @@ + + CPInt_Dev *cpint_devices; + +-static struct class_simple *cpint_class; ++static struct class *cpint_class; + + /*----------------------------------------------------------*/ + /* The different file operations */ +@@ -309,7 +309,7 @@ + /*------------------------------------------------------*/ + /* Register this device class */ + /*------------------------------------------------------*/ +- cpint_class = class_simple_create(THIS_MODULE, "cpint"); ++ cpint_class = class_create(THIS_MODULE, "cpint"); + if (IS_ERR(cpint_class)) { + printk(KERN_ERR "Error creating cpint class.\n"); + kfree(cpint_devices); +@@ -325,7 +325,7 @@ + + fopIdx = fopMap[i_dev]; + if (fopIdx > -1 && !(cpint_devs_map & (1 << fopIdx))) { +- class_simple_device_add(cpint_class, ++ class_device_create(cpint_class, NULL, + MKDEV(cpint_major, i_dev), NULL, + cpNames[fopIdx]); + cpint_devs_map |= 1 << fopIdx; +@@ -386,11 +386,11 @@ + + fopIdx = fopMap[i_dev]; + if (fopIdx > -1 && (cpint_devs_map & (1 << fopIdx))) { +- class_simple_device_remove(MKDEV(cpint_major, i_dev)); ++ class_device_destroy(cpint_class, MKDEV(cpint_major, i_dev)); + } + } + cpint_devs_map = 0; +- class_simple_destroy(cpint_class); ++ class_destroy(cpint_class); + + unregister_chrdev(cpint_major, "cpint"); + for (i_dev = 0; i_dev < CPINT_NR_DEVS; i_dev++) { diff --git a/sys-apps/cpint/files/cpint-2.5.3-prototypes.patch b/sys-apps/cpint/files/cpint-2.5.3-prototypes.patch new file mode 100644 index 000000000000..376ee8c4fc87 --- /dev/null +++ b/sys-apps/cpint/files/cpint-2.5.3-prototypes.patch @@ -0,0 +1,43 @@ +--- cpint-2.5.3/actgen.c ++++ cpint-2.5.3/actgen.c +@@ -45,6 +45,7 @@ + /************************************************************/ + + #include ++#include + #include + #include + #include +--- cpint-2.5.3/diag0.c ++++ cpint-2.5.3/diag0.c +@@ -46,6 +46,8 @@ + /************************************************************/ + + #include ++#include ++#include + #include + #include + #include +--- cpint-2.5.3/hcp.c ++++ cpint-2.5.3/hcp.c +@@ -48,6 +48,8 @@ + /************************************************************/ + + #include ++#include ++#include + #include + #include + #include +--- cpint-2.5.3/mongen.c ++++ cpint-2.5.3/mongen.c +@@ -59,6 +59,8 @@ + /************************************************************/ + + #include ++#include ++#include + #include + #include + #include diff --git a/sys-apps/cpint/metadata.xml b/sys-apps/cpint/metadata.xml new file mode 100644 index 000000000000..045daae69a4e --- /dev/null +++ b/sys-apps/cpint/metadata.xml @@ -0,0 +1,6 @@ + + + +s390 +Linux/390 Interface to z/VM's Control Program + diff --git a/sys-apps/cpuid/Manifest b/sys-apps/cpuid/Manifest new file mode 100644 index 000000000000..23c5295a39b0 --- /dev/null +++ b/sys-apps/cpuid/Manifest @@ -0,0 +1,3 @@ +DIST cpuid-20130610.src.tar.gz 65801 SHA256 f87e835a83e69013eee09eded0e9c5ac0ea5819d569d3b79680cab2b5ea770f4 SHA512 cb31126a7ba7244d44c3b0d86ad93f3ff0956a59af488a27ed482e549a8f628fedf142ac8f238c32e48946b5c76ceba2f5a0b95a9b4df8bf7354ed4dcdbeb0a7 WHIRLPOOL e82d27e1450e85e53074fa37f42ad5e03a0daf3dd153c5d6a8674c72b2e04f266f59b80f2eb90f3f25e8a8b0f473e8aa1ce4991b9eb8d50e76d6e1ae70665ab2 +DIST cpuid-20140123.src.tar.gz 67882 SHA256 b85aba5696d382f0dba8dc246bd42d09767089d6181a9cd0633d626f079d79ff SHA512 8b205cc539959dcd63326d5de700e090213f5b7cdbd5e25925b8db774001cbd95df7ccb696fda124226380fef69ea7fe0c0885869b0ec7e07b0c340dc0cd8a5b WHIRLPOOL dfcc1b6ea125fb0b6c13b7edd7f6c37592a2acfbc178f4c65cd7ec1577010ec9cc69919af512681e4af048ab028cb8992d1a282435e5b4aace179c40ff607ac4 +DIST cpuid-20150606.src.tar.gz 71882 SHA256 b7607e81e62e4901180d9e2f48fe407033211c3fb300d758a210f746ef518c4e SHA512 6f99266b9720b48ec10f220f8a321d3ed052300960151feb6c45d39b586216745f070241db20afd4d16ac0b3389b634eb31f90c93ea9d12f521012cfe5ab9257 WHIRLPOOL 0c7140b636e7cca8ac0d150cb015170964471a3e00d48f3b7290976c768415773d5741f53937b2773b751a8e830d21e156c3f199de081dd42c50ffd76688e640 diff --git a/sys-apps/cpuid/cpuid-20130610.ebuild b/sys-apps/cpuid/cpuid-20130610.ebuild new file mode 100644 index 000000000000..909176edf893 --- /dev/null +++ b/sys-apps/cpuid/cpuid-20130610.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Utility to get detailed information about the CPU(s) using the +CPUID instruction" +HOMEPAGE="http://www.etallen.com/cpuid.html" +SRC_URI="http://www.etallen.com/${PN}/${P}.src.tar.gz" + +KEYWORDS="amd64 x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-20110305-Makefile.patch + epatch "${FILESDIR}"/${PN}-20110305-fPIC.patch #376245 +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + emake BUILDROOT="${D}" install +} diff --git a/sys-apps/cpuid/cpuid-20140123.ebuild b/sys-apps/cpuid/cpuid-20140123.ebuild new file mode 100644 index 000000000000..ce80f5c51d41 --- /dev/null +++ b/sys-apps/cpuid/cpuid-20140123.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Utility to get detailed information about the CPU(s) using the +CPUID instruction" +HOMEPAGE="http://www.etallen.com/cpuid.html" +SRC_URI="http://www.etallen.com/${PN}/${P}.src.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-20110305-Makefile.patch + epatch "${FILESDIR}"/${PN}-20110305-fPIC.patch #376245 +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + emake BUILDROOT="${D}" install +} diff --git a/sys-apps/cpuid/cpuid-20150606.ebuild b/sys-apps/cpuid/cpuid-20150606.ebuild new file mode 100644 index 000000000000..77863be1a235 --- /dev/null +++ b/sys-apps/cpuid/cpuid-20150606.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Utility to get detailed information about the CPU(s) using the +CPUID instruction" +HOMEPAGE="http://www.etallen.com/cpuid.html" +SRC_URI="http://www.etallen.com/${PN}/${P}.src.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-20150606-Makefile.patch + epatch "${FILESDIR}"/${PN}-20110305-fPIC.patch #376245 +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + emake BUILDROOT="${D}" install +} diff --git a/sys-apps/cpuid/files/cpuid-20110305-Makefile.patch b/sys-apps/cpuid/files/cpuid-20110305-Makefile.patch new file mode 100644 index 000000000000..a3aab8a50f66 --- /dev/null +++ b/sys-apps/cpuid/files/cpuid-20110305-Makefile.patch @@ -0,0 +1,30 @@ +Index: cpuid-20110305/Makefile +=================================================================== +--- cpuid-20110305.orig/Makefile ++++ cpuid-20110305/Makefile +@@ -1,7 +1,3 @@ +-CFLAGS=-g +-ifneq (,$(findstring arch=i386,$(CFLAGS))) +-CISA=-m32 +-endif + CFL=$(CFLAGS) $(CISA) -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -D_FILE_OFFSET_BITS=64 -DVERSION=$(VERSION) + + PACKAGE=cpuid +@@ -36,14 +32,14 @@ BUILDROOT= + default: $(PROG) $(PROG).man.gz + + $(PROG): cpuid.c Makefile +- $(CC) $(CFL) -o $@ cpuid.c ++ $(CC) $(CFL) $(LDFLAGS) -o $@ cpuid.c + + $(PROG).man.gz: $(PROG).man + gzip < $< > $@ + + install: $(PROG) $(PROG).man.gz +- install -D -s -m 755 $(PROG) $(BUILDROOT)/usr/bin/$(PROG) +- install -D -m 444 $(PROG).man.gz $(BUILDROOT)/usr/share/man/man1/$(PROG).1.gz ++ install -D -m 755 $(PROG) $(BUILDROOT)/usr/bin/$(PROG) ++ install -D -m 444 $(PROG).man.gz $(BUILDROOT)/usr/share/man/man1/$(PROG).1.gz + + clean: + rm -f $(PROG) $(PROG).i386 $(PROG).x86_64 diff --git a/sys-apps/cpuid/files/cpuid-20110305-fPIC.patch b/sys-apps/cpuid/files/cpuid-20110305-fPIC.patch new file mode 100644 index 000000000000..80cc6774a188 --- /dev/null +++ b/sys-apps/cpuid/files/cpuid-20110305-fPIC.patch @@ -0,0 +1,24 @@ +diff -u cpuid-20110305.orig//cpuid.c cpuid-20110305/cpuid.c +--- cpuid-20110305.orig//cpuid.c 2011-03-04 13:25:16.000000000 -0500 ++++ cpuid-20110305/cpuid.c 2011-07-31 01:53:39.647437813 -0400 +@@ -5319,9 +5319,20 @@ + boolean quiet) + { + if (cpuid_fd == USE_INSTRUCTION) { ++#if defined(__i386__) && defined(__PIC__) ++ asm("push %%ebx\n" ++ "cpuid\n" ++ "movl %%ebx, %1\n" ++ "pop %%ebx\n" ++#else + asm("cpuid" ++#endif + : "=a" (words[WORD_EAX]), ++#if defined(__i386__) && defined(__PIC__) ++ "=r" (words[WORD_EBX]), ++#else + "=b" (words[WORD_EBX]), ++#endif + "=c" (words[WORD_ECX]), + "=d" (words[WORD_EDX]) + : "a" (reg), diff --git a/sys-apps/cpuid/files/cpuid-20150606-Makefile.patch b/sys-apps/cpuid/files/cpuid-20150606-Makefile.patch new file mode 100644 index 000000000000..f878977ece91 --- /dev/null +++ b/sys-apps/cpuid/files/cpuid-20150606-Makefile.patch @@ -0,0 +1,21 @@ +--- cpuid-20150606/Makefile ++++ cpuid-20150606/Makefile +@@ -1,9 +1,3 @@ +-CFLAGS+=-g +-CPPFLAGS?= +-LDFLAGS?= +-ifneq (,$(findstring arch=i386,$(CFLAGS))) +-CISA=-m32 +-endif + CFL=$(CPPFLAGS) $(CFLAGS) $(CISA) -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -D_FILE_OFFSET_BITS=64 -DVERSION=$(VERSION) + + PACKAGE=cpuid +@@ -44,7 +38,7 @@ + gzip < $< > $@ + + install: $(PROG) $(PROG).man.gz +- install -D -s -m 755 $(PROG) $(BUILDROOT)/usr/bin/$(PROG) ++ install -D -m 755 $(PROG) $(BUILDROOT)/usr/bin/$(PROG) + install -D -m 444 $(PROG).man.gz $(BUILDROOT)/usr/share/man/man1/$(PROG).1.gz + + clean: diff --git a/sys-apps/cpuid/metadata.xml b/sys-apps/cpuid/metadata.xml new file mode 100644 index 000000000000..1508c97d6f8e --- /dev/null +++ b/sys-apps/cpuid/metadata.xml @@ -0,0 +1,12 @@ + + + + + hwoarang@gentoo.org + Markos Chandras + + + rhill@gentoo.org + Ryan Hill + + diff --git a/sys-apps/cracklib-words/Manifest b/sys-apps/cracklib-words/Manifest new file mode 100644 index 000000000000..6f7e6c52b7eb --- /dev/null +++ b/sys-apps/cracklib-words/Manifest @@ -0,0 +1 @@ +DIST cracklib-words-20080507.gz 4515718 SHA256 e0c7f452c1fd80d551ae4a7d1afa7fa19cbf47c2d6d5dafc1255c1e76502cb71 diff --git a/sys-apps/cracklib-words/cracklib-words-20080507.ebuild b/sys-apps/cracklib-words/cracklib-words-20080507.ebuild new file mode 100644 index 000000000000..d66f994973db --- /dev/null +++ b/sys-apps/cracklib-words/cracklib-words-20080507.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="large set of crack/cracklib dictionaries" +HOMEPAGE="http://sourceforge.net/projects/cracklib" +SRC_URI="mirror://sourceforge/cracklib/${P}.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="" + +S=${WORKDIR} + +src_install() { + insinto /usr/share/dict + newins ${P} ${PN} || die +} + +pkg_postinst() { + if [ "${ROOT}" = "/" ] && type create-cracklib-dict >/dev/null ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict /usr/share/dict/* > /dev/null + eend $? + fi +} diff --git a/sys-apps/cracklib-words/metadata.xml b/sys-apps/cracklib-words/metadata.xml new file mode 100644 index 000000000000..42090b9cf925 --- /dev/null +++ b/sys-apps/cracklib-words/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + cracklib + + diff --git a/sys-apps/cv/Manifest b/sys-apps/cv/Manifest new file mode 100644 index 000000000000..eafe0747c5b6 --- /dev/null +++ b/sys-apps/cv/Manifest @@ -0,0 +1 @@ +DIST cv-0.4.1.tar.gz 53682 SHA256 e7537b363662060a55e1a59b78a124e76b54c3b64f0bd62c35fd3cb34c725aa9 SHA512 eb64cc44a834805209f93d23f61b270d670f1f2e535a3dbed84bdb9cbb27cec9e077abb1138c8557436baa021d2d7661132c56eae04a36f0a83b3e7a116de7d4 WHIRLPOOL c496d21287b90101720d11ca5b816878e9578f646cf846d0fd3c641d27edf2afb885a6c068850fd10ce629b856afbd15d7703da433f53c74042bc20c3e7a0e4b diff --git a/sys-apps/cv/cv-0.4.1.ebuild b/sys-apps/cv/cv-0.4.1.ebuild new file mode 100644 index 000000000000..fa9e8f208ef1 --- /dev/null +++ b/sys-apps/cv/cv-0.4.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="Coreutils Viewer: show progress for cp, rm, dd, and so forth" +HOMEPAGE="https://github.com/Xfennec/cv" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND="sys-libs/ncurses" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + sed -i \ + -e '/LFLAGS/s:-lncurses:$(LDFLAGS) $(shell $(PKG_CONFIG) --libs ncurses):' \ + -e 's:CFLAGS=-g:CFLAGS+=:' \ + -e 's:gcc:$(CC):g' \ + Makefile || die + tc-export CC PKG_CONFIG +} + +src_install() { + emake PREFIX="${D}/${EPREFIX}/usr" install + dodoc README.md +} diff --git a/sys-apps/cv/metadata.xml b/sys-apps/cv/metadata.xml new file mode 100644 index 000000000000..a0e90f5de621 --- /dev/null +++ b/sys-apps/cv/metadata.xml @@ -0,0 +1,11 @@ + + + + + zx2c4@gentoo.org + Jason A. Donenfeld + + + Xfennec/cv + + diff --git a/sys-apps/daemonize/Manifest b/sys-apps/daemonize/Manifest new file mode 100644 index 000000000000..34e23dce6e74 --- /dev/null +++ b/sys-apps/daemonize/Manifest @@ -0,0 +1,3 @@ +DIST daemonize-1.7.4.tar.gz 66005 SHA256 e80bb9299b76b6d7b3bc235b2413961e138e586d777385dcf6cf478cea135525 SHA512 aa5dd1d89650fc4a7e783163852de176877b0e999c4d16950a03a81c0db1477e2994fe8d97d8e2bd61baafb7810522754eade96f3ff0301c1e6ce74f9252d34e WHIRLPOOL 8a72762ec08db2f47686bd8bb2063b986f8379e888571eafdaefe8b2e3e41df979474faa4ebc0f8701f85f2fa73ab805c3b61f88537c71673b52f731436cb3c3 +DIST daemonize-1.7.5.tar.gz 65817 SHA256 11f45bca9a7dd0a72a0059429eaf4f76913659f4c197479f7cdc81d110e7a798 SHA512 8e1c7cf47a2026d13505c83c5987ea7237226e104dd5fdd4d57d006000846b387216b2506604f60c6178a7445493591254696dddbb334d89ee611954a65659ea WHIRLPOOL d0c7e239e962bb7c95e47e76ac183de7d87fd667d2b274e5863592377d7480a3571fd2383a5c70eef3cc349900ec5ee02eea684b3235f5e533f0ad74e98ce3d4 +DIST daemonize-1.7.6.tar.gz 65927 SHA256 b7e86ebb51eeeb9dc3ebd93ae805914801e6a2247e53e7201567eb84e3475c68 SHA512 e0276c504727004edf02f97d3295daca6c9990ae7130c536d388a967ee8711625308eb8ffdd989b6e3e25915038095f4a53b4cf051a6f2a2a397369ea99ab14c WHIRLPOOL 087dcfd90b6e344e94d294dda26c5b9179009aea37074c0b849e062d2646f18c11799f5704000a5715c0835d149ca84376b7746b60d15b523b1cf7a4b77a8634 diff --git a/sys-apps/daemonize/daemonize-1.7.4.ebuild b/sys-apps/daemonize/daemonize-1.7.4.ebuild new file mode 100644 index 000000000000..f4968a9cb19d --- /dev/null +++ b/sys-apps/daemonize/daemonize-1.7.4.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Runs a command as a Unix daemon" +HOMEPAGE="http://bmc.github.com/daemonize/" +SRC_URI="http://github.com/bmc/${PN}/tarball/release-${PV} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DOCS=( README.md CHANGELOG.md ) + +src_unpack() { + unpack ${A} + # Workaround commit suffix from github. + mv "${WORKDIR}"/bmc-${PN}-* "${S}" || die +} + +src_prepare() { + sed -i \ + -e 's:\($(CC)\) $(CFLAGS) \(.*\.o\):\1 $(LDFLAGS) \2:' \ + Makefile.in || die +} diff --git a/sys-apps/daemonize/daemonize-1.7.5.ebuild b/sys-apps/daemonize/daemonize-1.7.5.ebuild new file mode 100644 index 000000000000..e480f66980e5 --- /dev/null +++ b/sys-apps/daemonize/daemonize-1.7.5.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Runs a command as a Unix daemon" +HOMEPAGE="http://bmc.github.com/daemonize/" +SRC_URI="http://github.com/bmc/${PN}/tarball/release-${PV} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DOCS=( README.md CHANGELOG.md ) + +src_unpack() { + unpack ${A} + # Workaround commit suffix from github. + mv "${WORKDIR}"/bmc-${PN}-* "${S}" || die +} + +src_prepare() { + sed -i \ + -e 's:\($(CC)\) $(CFLAGS) \(.*\.o\):\1 $(LDFLAGS) \2:' \ + Makefile.in || die +} diff --git a/sys-apps/daemonize/daemonize-1.7.6.ebuild b/sys-apps/daemonize/daemonize-1.7.6.ebuild new file mode 100644 index 000000000000..0630daa5ae3c --- /dev/null +++ b/sys-apps/daemonize/daemonize-1.7.6.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Runs a command as a Unix daemon" +HOMEPAGE="http://bmc.github.com/daemonize/" +SRC_URI="http://github.com/bmc/${PN}/tarball/release-${PV} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DOCS=( README.md CHANGELOG.md ) + +src_unpack() { + unpack ${A} + # Workaround commit suffix from github. + mv "${WORKDIR}"/bmc-${PN}-* "${S}" || die +} + +src_prepare() { + sed -i \ + -e 's:\($(CC)\) $(CFLAGS) \(.*\.o\):\1 $(LDFLAGS) \2:' \ + Makefile.in || die +} diff --git a/sys-apps/daemonize/metadata.xml b/sys-apps/daemonize/metadata.xml new file mode 100644 index 000000000000..e0f542b458ae --- /dev/null +++ b/sys-apps/daemonize/metadata.xml @@ -0,0 +1,13 @@ + + + + + hwoarang@gentoo.org + Markos Chandras + + + + + bmc/daemonize + + diff --git a/sys-apps/darwin-miscutils/Manifest b/sys-apps/darwin-miscutils/Manifest new file mode 100644 index 000000000000..8eb1ccda532b --- /dev/null +++ b/sys-apps/darwin-miscutils/Manifest @@ -0,0 +1,17 @@ +DIST adv_cmds-md-147.1 3623 SHA256 6283a00e52ef6d278afb1fa4d0e8bc7bce8bebff3e6b3da71812fcfdb415592f SHA512 459beb2b7c92b8718c76d744bbabf631bf8c329feb65c9434ce8a023c73ceac2d207c95e39c4b90b095a4724a74096a3d1bed9122883eb54e5311dfc64ffc718 WHIRLPOOL 79ebe5d5a73443665ba8804ff8867f1ad045d8b5df104b1396f00ca8ba4819d1e82ae5b31dffbf26d648748f8bccf5e01be5aba553d7955bbde13cc04be6104b +DIST adv_cmds-md-147.c 25945 SHA256 089a4ad849da2c1a2b23fbc18dbc6860b26a367f528972d99ea361245a06c882 SHA512 93e70f7d8697652b5a3c661975d21b51545d2eb07de64fd40524fcf0d5016dae9ae1dc63c4a85cb5ad455c8d1c246b7f5f2eac38226dcefbf4cab12b0b1c7592 WHIRLPOOL 4299250fe3d0b475798d139fffcb83e17ab88283099a4d6d0669ee86e58b861b3a5409535aa9310d6729f086334a7a0d703df5b5d81b8816933fb67b6152df89 +DIST developer_cmds-39.tar.gz 155831 SHA256 37d58d783c44694bf869ef8906ea866a7d1798154f3206a1880b8adc154d6d81 SHA512 1c9fcd7933d7264e8f3f537fc7bd9545121b15e2784f23d1bf6c1419adb3a77c175170cab62a44286897aadd3d44ecd799c69424de058c1b3b13b01b5caba44c WHIRLPOOL 954b2f3d4ec3bb792947d398e1c948abaa7a0dca82fd56f08b65b57d7f17c2117597417740a81b443428a3808d55f9b3a77c20cea692ed093bbb5b81e6f7ecc1 +DIST developer_cmds-48.tar.gz 161783 SHA256 212b1102580452576dcaa38c053aa1809ede046ce5712a4c268d964be71a287d SHA512 1c6f6cd918aa895f71a44be5b456b93420054d36c0968ac4333f1947d6ca9679358394d7475df666d919cbd3da841af91b42cdda5815ec4ec1acc019a294a4d5 WHIRLPOOL 3b42a6b22c788cdbad0ef91955fdde1b33cce29950d4154e47d86460e37d1c323d8b14650966d14020541fd025db3ed0cd81b1bbc158f27b00dadf2ac03aef68 +DIST developer_cmds-49.tar.gz 307753 SHA256 db0f2611c8efb0ec781cb8f03878958c589c8953ba9002e051afa4fc3bb6a762 SHA512 3750374c891f6d681829986291d887cacf2c5b1c7a5de94f12c92ded0b3456157b85e57653c6061526d1f6626a7be8a9e6db9c1df09e2bb3e40c7fa20b9b4103 WHIRLPOOL f167e2a95ab2f8325130fe3f418771d9aee09e268e9649bf6230601586ec41d940c52fb4a02b938a30d5059541eccf20845044ef07bef64afdbd5635c15e2073 +DIST developer_cmds-52.1.tar.gz 310160 SHA256 3deb187d7ee6269680f2f9678aa1e7bab3f3911a59b44e99870abb687ccba095 SHA512 280c15f9a48ae650bd8df63792920e557c192bab61e0f314b24f8baa5c0e1feecead8274aa28e0f358b8a99708bcaef8115b4b2439a50e009f6547d23613007a WHIRLPOOL 0c76d6809da42d3ff55d3c1111a0b4de4d1d302a79fd1f70bd77c4f89448b78aab321e686d9aa3203c6170d80bf9af96bfb3f6c7d598807b51d157e12ce8469b +DIST developer_cmds-53.1.tar.gz 139637 SHA256 f3f6cc44336fae506a5c7ca1e71aeaa00da89b4337298fcd4d13953bbfa6edb8 SHA512 ac15b499d0642332e8deae2f498e5ffb0c64502e2d877bbdfe0fac4118e17fe525b169f3b015cfe8c9f40e2688bd30df4b050fe50eaa706b21a2e62ca9dd4b80 WHIRLPOOL ee747b3f8c56091f77735c2a59e0ef3d9486b5af32c44c2ed382324bf71e7f29f7ac9c8426247f7fdfa63a667acca99f6af1fcc29548fdd73b51706ba41e923e +DIST developer_cmds-55.tar.gz 139664 SHA256 1760a430552057304ecc2c20bb0acd3683a3a0325f29a1e27065818d2515e91a SHA512 062e4c4a2b1ba4cffe7e850d07f4351c736988958450735f9f653936d64defa3347c9dac7b5fea3dcd25f8efe076133dc9ac3edb4a3e512387d6842bd177c35e WHIRLPOOL cae216847b8e6075fa8051d6d260cc91fff259f81717d19a988ada30e42c8b9728b6ce3330cbcef403639fbf5c52230d20a2272bc1154f3bcf18e3c3f4123ac7 +DIST misc_cmds-18.tar.gz 96635 SHA256 dcc4b199cdb4d40cabd1dd58cc3498878751d9746ad736ada0177a86236d187e SHA512 2f0a7b298179e44a67125a271d9ba62b618d9bd852320fa3f1d1fa724787554d3a1e6cc08845caa2f70214fdf90cc7afdbe08fae648fe94cf8a0fe24ca673f6c WHIRLPOOL 1fc15f192f51f79c0d83234185a7193a3b93d6a09cf65b69cdfc3b3c6aecb54b045886d86bb6ca76c1bb763c46a34d46f0ae1884fba587a00fac92ef0b93711c +DIST misc_cmds-23.tar.gz 114747 SHA256 150c74e3041db4cb02b1aabddfedb998c152bfba616ed6e24b2b98d025fef785 SHA512 0e02a939c308f4483cf11cb8b21face84f442589e3774b1827ed0ab5064ee2b433a4468ac634051fa0817919f5d39ac1ed56c67b1f5b011b83388a3806ed33c8 WHIRLPOOL 586a091fc6ead5c5398a05e3af1137cf67314e458cb44dc0f60a2099e65f53e4b569dd045c17e0f455f1cc0b4248c94b358cb5b08cf54033dc883f356a058d49 +DIST misc_cmds-27.tar.gz 116351 SHA256 29d1b32dfceaa3364e81d50e10b8ce7721448cb0c8218ecb90491666a00efca4 SHA512 594560b179f7dafc651d3a336d33bcb7075f2199cf4964e95d63164faf19bd50ef3a6095124f0e4f91c50d1bceeb831fcd81ceecf740e2696a8e7445c1a690d2 WHIRLPOOL 6bca894b7ab1c7de9b3453e075060ec4bd35019713641c9527dd562f253eda0cc35f3b9b631bd197c3fc38ffda575701843671e3fae263fa4655455e80e73cd2 +DIST misc_cmds-31.tar.gz 121187 SHA256 1e0cdf2af9b28245af40168fc48e010e260b62fd48ddbcb95e62851d2765f37c SHA512 d49bb8a49c23aa7efaa7db1958676390b4d5ef1b2e57f80b0bea0f10b8b29a6c3ec6d2d7a1248d3af77d382c5113fb3cbf9d3632ca92bb51c01d8c286fd9f25f WHIRLPOOL 1b3d060418ccf353d975696cd7d19354ca2b0b8795f91e185cc467fc2e9fa7683a20e6ce6e70109310e8cfff69b027efbf6e25c159e41102d62bffc36b2754d5 +DIST shell_cmds-118.tar.gz 162145 SHA256 c4628a25407d940717f3e062e48e31bf3de2ce07e006bf909d69f927af92adb4 SHA512 efce064b76087451293a6992b7946fb0811856275796efa9e1e30459edf9eb0462929a1f0d28d189bf7e85fdde4d9e80b8637d042497b1e6e9216c8888d0d57b WHIRLPOOL a1d66933d390a305ea0351e2279cb7c2e7c0d3460fd0e66c642caffa730a7becb51cdc1552f7d024df657c14b53a72426373508259fd57a8f30f3f31d4c18df6 +DIST shell_cmds-149.tar.gz 173740 SHA256 87263d7fc8626da3e12f8ebae458293da7c4b12a0ce591dcf93b638e6519ff43 SHA512 e0f87db828c994bad73e4340f1957378ce5c84419172ed1d6b9d63809b90edfa447cce658e715565c5c2a7d2eaf0a9ee75e24fdb6d86080063621e0f83eb2a77 WHIRLPOOL 191e6852f34efe0390348aca7d2276042c68e04f20e2ccf2eb71e230e0d552ffddbb3a49b34b031d0b41aa941bcd0283305c75dc0bab1dc05a3266437f0a5103 +DIST shell_cmds-162.tar.gz 179189 SHA256 42d5ad4fbcaca83620a3ab709a41b21a18224589c844c716223489418e04e3d6 SHA512 784b6b8b3a90967d79f5a60a23e7f31f7bc92712dac9cdb625770f92b58bd6902669aa19bb59997cc654fcc0e27ddd45f60b1990e7da95d0e6c90fd7f2434f95 WHIRLPOOL cd06c734a1f1ba1169ed72ec99f8072dd0e7b608ad0764857873622c6ea0d9a99fdabd6b2ef2fc87f036dbe34e2caebfd5c6927e2440cb35375ea9c77e40c44e +DIST shell_cmds-170.tar.gz 212954 SHA256 3f2849de051ae51e7b6cec56d90443f9168a9f9a7b9002cb4b51ece9a817b81c SHA512 b267a9b5e922c9952451ca05e5f9e328504dc46b5776e1a8405f8e41a604d7f184d70742cb6fa6646875bc1789082097c74eabcc151ac5568ba26ed858269ce7 WHIRLPOOL c036eba542fdf07843cd9ef9e781db379c90e95264918596c71f99cff2547ac877e5c3619b53d25e65e0c67a0fb42a3d32755efc6d9f4235b7d714e90047d8b5 +DIST shell_cmds-81.tar.gz 154516 SHA256 64f0e01de9e13b9a1518ccd2cf45486b6159a5fdc562e7d0725e835d495cea81 SHA512 ebb506331a283771d4b4f51769fece93af7703a2a0e118271bd453327db6981d197aebd93e675d019c05c6cff58ed0a0fe58e8fc26eb581ab26cb76c3271d505 WHIRLPOOL 81b668528344155ae4537894de241ff72e19e6a6f50201533a7d8e84a54684b933aa4b0492b11bb62ad78e8bced6bd652acbe029cb17fdd1423edd70ddd6ddc6 diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild new file mode 100644 index 000000000000..8438cd004f06 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-10.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs eutils + +# from 10.8 +MISC_VER=31 +SHELL_VER=170 +# from 10.7.4 +DEV_VER=55 +MD_VER=147 # 148 in 10.8 has no md, bug #428530 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Mountain +Lion 10.8" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz + http://www.opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.c?txt -> adv_cmds-md-${MD_VER}.c + http://www.opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.1?txt -> adv_cmds-md-${MD_VER}.1" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} || die + epatch "${FILESDIR}"/${PN}-6-w64.patch + + mkdir -p "${S}"/adv_cmds-${MD_VER}/md || die + cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.c \ + "${S}"/adv_cmds-${MD_VER}/md/md.c || die + cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.1 \ + "${S}"/adv_cmds-${MD_VER}/md/md.1 || die +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include /d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Snow Leopard version) + for t in asa hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + + TS=${S}/adv_cmds-${MD_VER} + for t in md ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/adv_cmds-${MD_VER} + for t in md ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild new file mode 100644 index 000000000000..a3f3d356e778 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs + +MISC_VER=18 +SHELL_VER=81 +DEV_VER=39 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Tiger" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in cal leave lock units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/su" + echo "in ${TS}/su:" + echo "$(tc-getCC) -lpam -o su su.c" + $(tc-getCC) -lpam -o su su.c || die "failed to compile su" + cd "${TS}/w" + echo "in ${TS}/w:" + echo "$(tc-getCC) -DSUCKAGE -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) -DSUCKAGE -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Tiger version) + for t in asa error hexdump unifdef what ; do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t}" *.c + cd "${TS}/${t}" + sed -i -e '/^__FBSDID/d' *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in cal leave lock units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock su time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa error hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild new file mode 100644 index 000000000000..3a200e7d8250 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs eutils + +MISC_VER=23 +SHELL_VER=118 +DEV_VER=48 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Leopard" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +DEPEND="" +RDEPEND="" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-w.patch + epatch "${FILESDIR}"/${P}-error.patch + epatch "${FILESDIR}"/${P}-stdlib.patch +} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + local flags + flags[0]=-I. + flags[1]=-D__FBSDID=__RCSID + flags[2]=-Wsystem-headers + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill \ + lastcomm renice shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t" + done + # script and killall need additonal flags + for t in \ + killall script + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/su" + echo "in ${TS}/su:" + echo "$(tc-getCC) -lpam -o su su.c" + $(tc-getCC) -lpam -o su su.c || die "failed to compile su" + cd "${TS}/w" + echo "in ${TS}/w:" + echo "$(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Leopard version) + for t in asa error hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" + sed -i -e '/^__FBSDID/d' *.c + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock su time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa error hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild new file mode 100644 index 000000000000..83e7ddcfac58 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-6-r1.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs eutils + +MISC_VER=23 +SHELL_VER=118 +DEV_VER=49 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Leopard" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5-w.patch + epatch "${FILESDIR}"/${PN}-5-stdlib.patch + epatch "${FILESDIR}"/${PN}-6-w64.patch + cd "${S}"/developer_cmds-${DEV_VER} + epatch "${FILESDIR}"/${PN}-5-error.patch +} + +src_compile() { + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + local flags + flags[0]=-I. + flags[1]=-D__FBSDID=__RCSID + flags[2]=-Wsystem-headers + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill \ + lastcomm renice shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t" + done + # script and killall need additonal flags + for t in \ + killall script + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/su" + echo "in ${TS}/su:" + echo "$(tc-getCC) -lpam -o su su.c" + $(tc-getCC) -lpam -o su su.c || die "failed to compile su" + cd "${TS}/w" + echo "in ${TS}/w:" + echo "$(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Leopard version) + for t in asa error hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" + sed -i -e '/^__FBSDID/d' *.c + echo "$(tc-getCC) -o ${t}" *.c + $(tc-getCC) -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock su time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa error hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-7.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-7.ebuild new file mode 100644 index 000000000000..90c34c5df906 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-7.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs eutils + +MISC_VER=27 +SHELL_VER=149 +DEV_VER=52.1 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Snow Leopard" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} + epatch "${FILESDIR}"/${PN}-6-w64.patch +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill \ + lastcomm renice shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + # script and killall need additonal flags + for t in \ + killall script + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include /d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Leopard version) + for t in asa error hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa error hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild new file mode 100644 index 000000000000..2d0ac4fd0d00 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs eutils + +MISC_VER=27 +SHELL_VER=149 +DEV_VER=53.1 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Snow Leopard 10.6.3" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} + epatch "${FILESDIR}"/${PN}-6-w64.patch + # deal with OSX Lion + cd "${S}"/developer_cmds-${DEV_VER} + sed -i -e 's/getline/ugetline/g' unifdef/unifdef.c || die +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include /d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Snow Leopard version) + for t in asa hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild b/sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild new file mode 100644 index 000000000000..b641f648e384 --- /dev/null +++ b/sys-apps/darwin-miscutils/darwin-miscutils-9.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit toolchain-funcs eutils + +MISC_VER=31 +SHELL_VER=162 +DEV_VER=55 + +DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Lion 10.7" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz + http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR} + +src_prepare() { + cd "${S}"/shell_cmds-${SHELL_VER} + epatch "${FILESDIR}"/${PN}-6-w64.patch +} + +src_compile() { + local flags=( + ${CFLAGS} + -I. + -D__FBSDID=__RCSID + -Wsystem-headers + -Du_int=uint32_t + -include stdint.h + ${LDFLAGS} + ) + + local TS=${S}/misc_cmds-${MISC_VER} + # tsort is provided by coreutils + for t in leave units calendar; do + cd "${TS}/${t}" + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done + # compile cal separately + cd "${TS}/ncal" + echo "in ${TS}/ncal:" + echo "$(tc-getCC) ${flags[@]} -c calendar.c" + $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c easter.c" + $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -c ncal.c" + $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" + echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" + $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" + + TS=${S}/shell_cmds-${SHELL_VER} + # only pick those tools not provided by coreutils, findutils + for t in \ + alias apply getopt hostname jot kill killall \ + lastcomm renice script shlock time whereis; + do + echo "in ${TS}/${t}:" + echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" + cd "${TS}/${t}" + $(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" + done + cd "${TS}/w" + sed -i -e '/#include /d' w.c || die + echo "in ${TS}/w:" + echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" + $(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ + || die "failed to compile w" + + TS=${S}/developer_cmds-${DEV_VER} + # only pick those tools that do not conflict (no ctags and indent) + # do not install lorder, mkdep and vgrind as they are a non-prefix-aware + # shell scripts + # don't install rpcgen, as it is heavily related to the OS it runs + # on (and this is the Snow Leopard version) + for t in asa hexdump unifdef what ; do + echo "in ${TS}/${t}:" + cd "${TS}/${t}" || die + echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c + $(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" + done +} + +src_install() { + mkdir -p "${ED}"/bin + mkdir -p "${ED}"/usr/bin + + local TS=${S}/misc_cmds-${MISC_VER} + for t in leave units calendar ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done + # copy cal separately + cp "${TS}/ncal/cal" "${ED}"/usr/bin/ + dosym /usr/bin/cal /usr/bin/ncal + doman "${TS}/ncal/ncal.1" + dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 + + TS=${S}/shell_cmds-${SHELL_VER} + for t in \ + alias apply getopt jot killall lastcomm \ + renice script shlock time w whereis; + do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1" + [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8" + done + cp "${TS}/w/w" "${ED}"/usr/bin/uptime + doman "${TS}/w/uptime.1" + for t in hostname kill; do + cp "${TS}/${t}/${t}" "${ED}"/bin/ + doman "${TS}/${t}/${t}.1" + done + + TS=${S}/developer_cmds-${DEV_VER} + for t in asa hexdump unifdef what ; do + cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ + doman "${TS}/${t}/${t}.1" + done +} diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch new file mode 100644 index 000000000000..391dceb39188 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-error.patch @@ -0,0 +1,14 @@ +--- developer_cmds-48/error/error.h ++++ developer_cmds-48/error/error.h +@@ -194,11 +194,7 @@ + */ + extern int nerrors; + extern Eptr er_head; +-#ifdef __APPLE__ +-__private_extern__ +-#else + extern +-#endif + Eptr *errors; + /* + * Resources for each of the files mentioned diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch new file mode 100644 index 000000000000..0605310bff42 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-stdlib.patch @@ -0,0 +1,20 @@ +--- misc_cmds-23/leave/leave.c ++++ misc_cmds-23/leave/leave.c +@@ -34,6 +34,7 @@ + */ + + #include ++#include + #ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1980, 1988, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +--- shell_cmds-118/alias/alias.c ++++ shell_cmds-118/alias/alias.c +@@ -3,6 +3,7 @@ + the shell scripts. It does not lead to any deliverable. Do not remove this + file from this (..../shell_cmds/alias) directory. + */ ++#include + int main() + { + exit(0); diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch new file mode 100644 index 000000000000..f6db3753d930 --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-5-w.patch @@ -0,0 +1,10 @@ +--- shell_cmds-118/w/w.c ++++ shell_cmds-118/w/w.c +@@ -75,7 +75,6 @@ + #include + #endif + #include +-#include + #include + #include + #include diff --git a/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch b/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch new file mode 100644 index 000000000000..77c194e6df9b --- /dev/null +++ b/sys-apps/darwin-miscutils/files/darwin-miscutils-6-w64.patch @@ -0,0 +1,17 @@ +grobian@gentoo.org: +The provided libresolv library is faulty for 64-bits, or this call is +doing something wrong. It is highly undocumented, so it feels like +messing around with some pointers is not going to work. Doing this in +64-bits mode, at least results in a nice Bus Error. + +--- shell_cmds-118/w/w.c ++++ shell_cmds-118/w/w.c +@@ -262,7 +262,7 @@ + argc -= optind; + argv += optind; + +-#if !TARGET_OS_EMBEDDED ++#if !defined(TARGET_OS_EMBEDDED) && !defined(__LP64__) + if (!(_res.options & RES_INIT)) + res_init(); + _res.retrans = 2; /* resolver timeout to 2 seconds per try */ diff --git a/sys-apps/darwin-miscutils/metadata.xml b/sys-apps/darwin-miscutils/metadata.xml new file mode 100644 index 000000000000..4561e552bd04 --- /dev/null +++ b/sys-apps/darwin-miscutils/metadata.xml @@ -0,0 +1,5 @@ + + + + prefix + diff --git a/sys-apps/dbus/Manifest b/sys-apps/dbus/Manifest new file mode 100644 index 000000000000..93b8c20642ad --- /dev/null +++ b/sys-apps/dbus/Manifest @@ -0,0 +1,3 @@ +DIST dbus-1.8.16.tar.gz 1866436 SHA256 7f795268efd343ff0498786acb35097564390d40b1b6158daf1b4f742b522b07 SHA512 79e0fb21912fe5644e1babf96fc2a64595edef6524ef50d54f6beb8cd0f1224b8484a52a7815494b40bd00bf048176002ab35443c0bb6bd04abdc3c60599f1d5 WHIRLPOOL 5e992caf51c0fb24885099b957ce01205a249118c5db27c5161e6d45ae85a889d7f26d32dfa03a207025e87e233f74c6cffd09a5ccc44d4e598d3d535b8d4247 +DIST dbus-1.8.18.tar.gz 1868625 SHA256 36f2eb9c777a3c71562573da36a147e900a642afcd44d2b0470d992a4898c4f2 SHA512 4995246af3f940b939231a4af6ba743902e1260e1d1cca607d5b36c1cda4e5b1d586dd99e2b45c5058e04cf49e81217c68395fb1b22302438d9acb6a08e7d82e WHIRLPOOL 294ce01e260928388d2ac78e46bb00bc1305486ed11a19fa457d2581845ad15e64ae229ce8b778a3835722a1520ec234b0b8c7691cb3f98744181b652cf14a3c +DIST dbus-1.8.20.tar.gz 1871722 SHA256 5c4fbf4c64621c96e871da91d2b729a5b00536e116d3c4612a469d924b1b703a SHA512 d63c29267e0445e329dc811e72d7858847fbae260920fd359b1fa889f08dead2a8b380e372718994daa92a262af970d1fcc58034fbcb8ffb3026ab5f30f63067 WHIRLPOOL 9eaf3ab12396159e119cfe3435fc5d160440dab4c4abce4d506450f6db59b72e6e4feba43b1ee9fd304a8e514983186a8e61f3a1f0c917c2c72891f72167201e diff --git a/sys-apps/dbus/dbus-1.8.16.ebuild b/sys-apps/dbus/dbus-1.8.16.ebuild new file mode 100644 index 000000000000..1bba9db1416d --- /dev/null +++ b/sys-apps/dbus/dbus-1.8.16.ebuild @@ -0,0 +1,248 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit autotools eutils linux-info flag-o-matic python-any-r1 readme.gentoo systemd virtualx user multilib-minimal + +DESCRIPTION="A message bus system, a simple way for applications to talk to each other" +HOMEPAGE="http://dbus.freedesktop.org/" +SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz" + +LICENSE="|| ( AFL-2.1 GPL-2 )" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="debug doc selinux static-libs systemd test X" + +CDEPEND=">=dev-libs/expat-2 + selinux? ( + sys-libs/libselinux + ) + systemd? ( sys-apps/systemd:0= ) + X? ( + x11-libs/libX11 + x11-libs/libXt + ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r4 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${CDEPEND} + app-text/xmlto + app-text/docbook-xml-dtd:4.4 + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( + >=dev-libs/glib-2.24 + ${PYTHON_DEPS} + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-dbus ) +" + +DOC_CONTENTS=" + Some applications require a session bus in addition to the system + bus. Please see \`man dbus-launch\` for more information. +" + +# out of sources build dir for make check +TBD=${WORKDIR}/${P}-tests-build + +pkg_setup() { + enewgroup messagebus + enewuser messagebus -1 -1 -1 messagebus + + use test && python-any-r1_pkg_setup + + if use kernel_linux; then + CONFIG_CHECK="~EPOLL" + linux-info_pkg_setup + fi +} + +src_prepare() { + # Tests were restricted because of this + sed -i \ + -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \ + -e '/"dispatch"/d' \ + bus/test-main.c || die + + epatch_user + + # required for asneeded patch but also for bug 263909, cross-compile so + # don't remove eautoreconf + eautoreconf +} + +multilib_src_configure() { + local docconf myconf + + # so we can get backtraces from apps + case ${CHOST} in + *-mingw*) + # error: unrecognized command line option '-rdynamic' wrt #488036 + ;; + *) + append-flags -rdynamic + ;; + esac + + # libaudit is *only* used in DBus wrt SELinux support, so disable it, if + # not on an SELinux profile. + myconf=( + --localstatedir="${EPREFIX}/var" + --docdir="${EPREFIX}/usr/share/doc/${PF}" + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + $(use_enable static-libs static) + $(use_enable debug verbose-mode) + --disable-asserts + --disable-checks + $(use_enable selinux) + $(use_enable selinux libaudit) + $(use_enable kernel_linux inotify) + $(use_enable kernel_FreeBSD kqueue) + $(use_enable systemd) + --disable-embedded-tests + --disable-modular-tests + $(use_enable debug stats) + --with-session-socket-dir="${EPREFIX}"/tmp + --with-system-pid-file="${EPREFIX}"/var/run/dbus.pid + --with-system-socket="${EPREFIX}"/var/run/dbus/system_bus_socket + --with-dbus-user=messagebus + $(use_with X x) + "$(systemd_with_unitdir)" + ) + + if [[ ${CHOST} == *-darwin* ]]; then + myconf+=( + --enable-launchd + --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents + ) + fi + + if multilib_is_native_abi; then + docconf=( + --enable-xml-docs + $(use_enable doc doxygen-docs) + ) + else + docconf=( + --disable-xml-docs + --disable-doxygen-docs + ) + myconf+=( + --disable-selinux + --disable-libaudit + --disable-systemd + --without-x + + # expat is used for the daemon only + # fake the check for multilib library build + ac_cv_lib_expat_XML_ParserCreate_MM=yes + ) + fi + + einfo "Running configure in ${BUILD_DIR}" + ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}" + + if multilib_is_native_abi && use test; then + mkdir "${TBD}" || die + cd "${TBD}" || die + einfo "Running configure in ${TBD}" + ECONF_SOURCE="${S}" econf "${myconf[@]}" \ + $(use_enable test asserts) \ + $(use_enable test checks) \ + $(use_enable test embedded-tests) \ + $(has_version dev-libs/dbus-glib && echo --enable-modular-tests) + fi +} + +multilib_src_compile() { + if multilib_is_native_abi; then + # after the compile, it uses a selinuxfs interface to + # check if the SELinux policy has the right support + use selinux && addwrite /selinux/access + + einfo "Running make in ${BUILD_DIR}" + emake + + if use test; then + einfo "Running make in ${TBD}" + emake -C "${TBD}" + fi + else + emake -C dbus libdbus-1.la + fi +} + +src_test() { + DBUS_VERBOSE=1 Xemake -j1 -C "${TBD}" check +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" install + else + emake DESTDIR="${D}" install-pkgconfigDATA + emake DESTDIR="${D}" -C dbus \ + install-libLTLIBRARIES install-dbusincludeHEADERS \ + install-nodist_dbusarchincludeHEADERS + fi +} + +multilib_src_install_all() { + newinitd "${FILESDIR}"/dbus.initd dbus + + if use X; then + # dbus X session script (#77504) + # turns out to only work for GDM (and startx). has been merged into + # other desktop (kdm and such scripts) + exeinto /etc/X11/xinit/xinitrc.d + doexe "${FILESDIR}"/80-dbus + fi + + # needs to exist for dbus sessions to launch + keepdir /usr/share/dbus-1/services + keepdir /etc/dbus-1/{session,system}.d + # machine-id symlink from pkg_postinst() + keepdir /var/lib/dbus + # let the init script create the /var/run/dbus directory + rm -rf "${ED}"/var/run + + dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO + readme.gentoo_create_doc + + prune_libtool_files --all +} + +pkg_postinst() { + readme.gentoo_print_elog + + # Ensure unique id is generated and put it in /etc wrt #370451 but symlink + # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse + # dependencies with hardcoded paths (although the known ones got fixed already) + dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id + ln -sf "${EROOT%/}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id + + if [[ ${CHOST} == *-darwin* ]]; then + local plist="org.freedesktop.dbus-session.plist" + elog + elog + elog "For MacOS/Darwin we now ship launchd support for dbus." + elog "This enables autolaunch of dbus at session login and makes" + elog "dbus usable under MacOS/Darwin." + elog + elog "The launchd plist file ${plist} has been" + elog "installed in ${EPREFIX}/Library/LaunchAgents." + elog "For it to be used, you will have to do all of the following:" + elog " + cd ~/Library/LaunchAgents" + elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}" + elog " + logout and log back in" + elog + elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS" + elog "specified and refused to start otherwise, then export the" + elog "the following to your environment:" + elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\"" + fi +} diff --git a/sys-apps/dbus/dbus-1.8.18.ebuild b/sys-apps/dbus/dbus-1.8.18.ebuild new file mode 100644 index 000000000000..824ceb85a73f --- /dev/null +++ b/sys-apps/dbus/dbus-1.8.18.ebuild @@ -0,0 +1,252 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils linux-info flag-o-matic python-any-r1 readme.gentoo systemd virtualx user multilib-minimal + +DESCRIPTION="A message bus system, a simple way for applications to talk to each other" +HOMEPAGE="http://dbus.freedesktop.org/" +SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz" + +LICENSE="|| ( AFL-2.1 GPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="debug doc selinux static-libs systemd test X" + +CDEPEND=" + >=dev-libs/expat-2 + selinux? ( + sys-libs/libselinux + ) + systemd? ( sys-apps/systemd:0= ) + X? ( + x11-libs/libX11 + x11-libs/libXt + ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r4 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + ) +" +DEPEND="${CDEPEND} + app-text/xmlto + app-text/docbook-xml-dtd:4.4 + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( + >=dev-libs/glib-2.24:2 + ${PYTHON_DEPS} + ) +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-dbus ) +" + +DOC_CONTENTS=" + Some applications require a session bus in addition to the system + bus. Please see \`man dbus-launch\` for more information. +" + +# out of sources build dir for make check +TBD=${WORKDIR}/${P}-tests-build + +pkg_setup() { + enewgroup messagebus + enewuser messagebus -1 -1 -1 messagebus + + use test && python-any-r1_pkg_setup + + if use kernel_linux; then + CONFIG_CHECK="~EPOLL" + linux-info_pkg_setup + fi +} + +src_prepare() { + # Tests were restricted because of this + sed -i \ + -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \ + -e '/"dispatch"/d' \ + bus/test-main.c || die + + epatch_user + + # required for asneeded patch but also for bug 263909, cross-compile so + # don't remove eautoreconf + eautoreconf +} + +multilib_src_configure() { + local docconf myconf + + # so we can get backtraces from apps + case ${CHOST} in + *-mingw*) + # error: unrecognized command line option '-rdynamic' wrt #488036 + ;; + *) + append-flags -rdynamic + ;; + esac + + # libaudit is *only* used in DBus wrt SELinux support, so disable it, if + # not on an SELinux profile. + myconf=( + --localstatedir="${EPREFIX}/var" + --docdir="${EPREFIX}/usr/share/doc/${PF}" + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + $(use_enable static-libs static) + $(use_enable debug verbose-mode) + --disable-asserts + --disable-checks + $(use_enable selinux) + $(use_enable selinux libaudit) + $(use_enable kernel_linux inotify) + $(use_enable kernel_FreeBSD kqueue) + $(use_enable systemd) + --disable-embedded-tests + --disable-modular-tests + $(use_enable debug stats) + --with-session-socket-dir="${EPREFIX}"/tmp + --with-system-pid-file="${EPREFIX}"/var/run/dbus.pid + --with-system-socket="${EPREFIX}"/var/run/dbus/system_bus_socket + --with-dbus-user=messagebus + $(use_with X x) + "$(systemd_with_unitdir)" + ) + + if [[ ${CHOST} == *-darwin* ]]; then + myconf+=( + --enable-launchd + --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents + ) + fi + + if multilib_is_native_abi; then + docconf=( + --enable-xml-docs + $(use_enable doc doxygen-docs) + ) + else + docconf=( + --disable-xml-docs + --disable-doxygen-docs + ) + myconf+=( + --disable-selinux + --disable-libaudit + --disable-systemd + --without-x + + # expat is used for the daemon only + # fake the check for multilib library build + ac_cv_lib_expat_XML_ParserCreate_MM=yes + ) + fi + + einfo "Running configure in ${BUILD_DIR}" + ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}" + + if multilib_is_native_abi && use test; then + mkdir "${TBD}" || die + cd "${TBD}" || die + einfo "Running configure in ${TBD}" + ECONF_SOURCE="${S}" econf "${myconf[@]}" \ + $(use_enable test asserts) \ + $(use_enable test checks) \ + $(use_enable test embedded-tests) \ + $(has_version dev-libs/dbus-glib && echo --enable-modular-tests) + fi +} + +multilib_src_compile() { + if multilib_is_native_abi; then + # after the compile, it uses a selinuxfs interface to + # check if the SELinux policy has the right support + use selinux && addwrite /selinux/access + + einfo "Running make in ${BUILD_DIR}" + emake + + if use test; then + einfo "Running make in ${TBD}" + emake -C "${TBD}" + fi + else + emake -C dbus libdbus-1.la + fi +} + +src_test() { + DBUS_VERBOSE=1 Xemake -j1 -C "${TBD}" check +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" install + else + emake DESTDIR="${D}" install-pkgconfigDATA + emake DESTDIR="${D}" -C dbus \ + install-libLTLIBRARIES install-dbusincludeHEADERS \ + install-nodist_dbusarchincludeHEADERS + fi +} + +multilib_src_install_all() { + newinitd "${FILESDIR}"/dbus.initd dbus + + if use X; then + # dbus X session script (#77504) + # turns out to only work for GDM (and startx). has been merged into + # other desktop (kdm and such scripts) + exeinto /etc/X11/xinit/xinitrc.d + doexe "${FILESDIR}"/80-dbus + fi + + # needs to exist for dbus sessions to launch + keepdir /usr/share/dbus-1/services + keepdir /etc/dbus-1/{session,system}.d + # machine-id symlink from pkg_postinst() + keepdir /var/lib/dbus + # let the init script create the /var/run/dbus directory + rm -rf "${ED}"/var/run + + dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO + readme.gentoo_create_doc + + prune_libtool_files --all +} + +pkg_postinst() { + readme.gentoo_print_elog + + # Ensure unique id is generated and put it in /etc wrt #370451 but symlink + # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse + # dependencies with hardcoded paths (although the known ones got fixed already) + dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id + ln -sf "${EROOT%/}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id + + if [[ ${CHOST} == *-darwin* ]]; then + local plist="org.freedesktop.dbus-session.plist" + elog + elog + elog "For MacOS/Darwin we now ship launchd support for dbus." + elog "This enables autolaunch of dbus at session login and makes" + elog "dbus usable under MacOS/Darwin." + elog + elog "The launchd plist file ${plist} has been" + elog "installed in ${EPREFIX}/Library/LaunchAgents." + elog "For it to be used, you will have to do all of the following:" + elog " + cd ~/Library/LaunchAgents" + elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}" + elog " + logout and log back in" + elog + elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS" + elog "specified and refused to start otherwise, then export the" + elog "the following to your environment:" + elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\"" + fi +} diff --git a/sys-apps/dbus/dbus-1.8.20.ebuild b/sys-apps/dbus/dbus-1.8.20.ebuild new file mode 100644 index 000000000000..824ceb85a73f --- /dev/null +++ b/sys-apps/dbus/dbus-1.8.20.ebuild @@ -0,0 +1,252 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils linux-info flag-o-matic python-any-r1 readme.gentoo systemd virtualx user multilib-minimal + +DESCRIPTION="A message bus system, a simple way for applications to talk to each other" +HOMEPAGE="http://dbus.freedesktop.org/" +SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz" + +LICENSE="|| ( AFL-2.1 GPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="debug doc selinux static-libs systemd test X" + +CDEPEND=" + >=dev-libs/expat-2 + selinux? ( + sys-libs/libselinux + ) + systemd? ( sys-apps/systemd:0= ) + X? ( + x11-libs/libX11 + x11-libs/libXt + ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r4 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + ) +" +DEPEND="${CDEPEND} + app-text/xmlto + app-text/docbook-xml-dtd:4.4 + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( + >=dev-libs/glib-2.24:2 + ${PYTHON_DEPS} + ) +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-dbus ) +" + +DOC_CONTENTS=" + Some applications require a session bus in addition to the system + bus. Please see \`man dbus-launch\` for more information. +" + +# out of sources build dir for make check +TBD=${WORKDIR}/${P}-tests-build + +pkg_setup() { + enewgroup messagebus + enewuser messagebus -1 -1 -1 messagebus + + use test && python-any-r1_pkg_setup + + if use kernel_linux; then + CONFIG_CHECK="~EPOLL" + linux-info_pkg_setup + fi +} + +src_prepare() { + # Tests were restricted because of this + sed -i \ + -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \ + -e '/"dispatch"/d' \ + bus/test-main.c || die + + epatch_user + + # required for asneeded patch but also for bug 263909, cross-compile so + # don't remove eautoreconf + eautoreconf +} + +multilib_src_configure() { + local docconf myconf + + # so we can get backtraces from apps + case ${CHOST} in + *-mingw*) + # error: unrecognized command line option '-rdynamic' wrt #488036 + ;; + *) + append-flags -rdynamic + ;; + esac + + # libaudit is *only* used in DBus wrt SELinux support, so disable it, if + # not on an SELinux profile. + myconf=( + --localstatedir="${EPREFIX}/var" + --docdir="${EPREFIX}/usr/share/doc/${PF}" + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + $(use_enable static-libs static) + $(use_enable debug verbose-mode) + --disable-asserts + --disable-checks + $(use_enable selinux) + $(use_enable selinux libaudit) + $(use_enable kernel_linux inotify) + $(use_enable kernel_FreeBSD kqueue) + $(use_enable systemd) + --disable-embedded-tests + --disable-modular-tests + $(use_enable debug stats) + --with-session-socket-dir="${EPREFIX}"/tmp + --with-system-pid-file="${EPREFIX}"/var/run/dbus.pid + --with-system-socket="${EPREFIX}"/var/run/dbus/system_bus_socket + --with-dbus-user=messagebus + $(use_with X x) + "$(systemd_with_unitdir)" + ) + + if [[ ${CHOST} == *-darwin* ]]; then + myconf+=( + --enable-launchd + --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents + ) + fi + + if multilib_is_native_abi; then + docconf=( + --enable-xml-docs + $(use_enable doc doxygen-docs) + ) + else + docconf=( + --disable-xml-docs + --disable-doxygen-docs + ) + myconf+=( + --disable-selinux + --disable-libaudit + --disable-systemd + --without-x + + # expat is used for the daemon only + # fake the check for multilib library build + ac_cv_lib_expat_XML_ParserCreate_MM=yes + ) + fi + + einfo "Running configure in ${BUILD_DIR}" + ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}" + + if multilib_is_native_abi && use test; then + mkdir "${TBD}" || die + cd "${TBD}" || die + einfo "Running configure in ${TBD}" + ECONF_SOURCE="${S}" econf "${myconf[@]}" \ + $(use_enable test asserts) \ + $(use_enable test checks) \ + $(use_enable test embedded-tests) \ + $(has_version dev-libs/dbus-glib && echo --enable-modular-tests) + fi +} + +multilib_src_compile() { + if multilib_is_native_abi; then + # after the compile, it uses a selinuxfs interface to + # check if the SELinux policy has the right support + use selinux && addwrite /selinux/access + + einfo "Running make in ${BUILD_DIR}" + emake + + if use test; then + einfo "Running make in ${TBD}" + emake -C "${TBD}" + fi + else + emake -C dbus libdbus-1.la + fi +} + +src_test() { + DBUS_VERBOSE=1 Xemake -j1 -C "${TBD}" check +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" install + else + emake DESTDIR="${D}" install-pkgconfigDATA + emake DESTDIR="${D}" -C dbus \ + install-libLTLIBRARIES install-dbusincludeHEADERS \ + install-nodist_dbusarchincludeHEADERS + fi +} + +multilib_src_install_all() { + newinitd "${FILESDIR}"/dbus.initd dbus + + if use X; then + # dbus X session script (#77504) + # turns out to only work for GDM (and startx). has been merged into + # other desktop (kdm and such scripts) + exeinto /etc/X11/xinit/xinitrc.d + doexe "${FILESDIR}"/80-dbus + fi + + # needs to exist for dbus sessions to launch + keepdir /usr/share/dbus-1/services + keepdir /etc/dbus-1/{session,system}.d + # machine-id symlink from pkg_postinst() + keepdir /var/lib/dbus + # let the init script create the /var/run/dbus directory + rm -rf "${ED}"/var/run + + dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO + readme.gentoo_create_doc + + prune_libtool_files --all +} + +pkg_postinst() { + readme.gentoo_print_elog + + # Ensure unique id is generated and put it in /etc wrt #370451 but symlink + # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse + # dependencies with hardcoded paths (although the known ones got fixed already) + dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id + ln -sf "${EROOT%/}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id + + if [[ ${CHOST} == *-darwin* ]]; then + local plist="org.freedesktop.dbus-session.plist" + elog + elog + elog "For MacOS/Darwin we now ship launchd support for dbus." + elog "This enables autolaunch of dbus at session login and makes" + elog "dbus usable under MacOS/Darwin." + elog + elog "The launchd plist file ${plist} has been" + elog "installed in ${EPREFIX}/Library/LaunchAgents." + elog "For it to be used, you will have to do all of the following:" + elog " + cd ~/Library/LaunchAgents" + elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}" + elog " + logout and log back in" + elog + elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS" + elog "specified and refused to start otherwise, then export the" + elog "the following to your environment:" + elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\"" + fi +} diff --git a/sys-apps/dbus/files/80-dbus b/sys-apps/dbus/files/80-dbus new file mode 100644 index 000000000000..5593e2cd7390 --- /dev/null +++ b/sys-apps/dbus/files/80-dbus @@ -0,0 +1,13 @@ +#!/bin/bash + +# launches a session dbus instance + +dbuslaunch="`which dbus-launch 2>/dev/null`" +if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then + if [ -n "$command" ]; then + command="$dbuslaunch --exit-with-session $command" + else + eval `$dbuslaunch --sh-syntax --exit-with-session` + fi +fi + diff --git a/sys-apps/dbus/files/dbus.initd b/sys-apps/dbus/files/dbus.initd new file mode 100644 index 000000000000..58838ccb1796 --- /dev/null +++ b/sys-apps/dbus/files/dbus.initd @@ -0,0 +1,50 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +extra_started_commands="reload" + +depend() { + need localmount + after bootmisc +} + +start() { + ebegin "Starting D-BUS system messagebus" + /usr/bin/dbus-uuidgen --ensure=/etc/machine-id + + # We need to test if /var/run/dbus exists, since script will fail if it does not + [ ! -e /var/run/dbus ] && mkdir /var/run/dbus + + start-stop-daemon --start --pidfile /var/run/dbus.pid --exec /usr/bin/dbus-daemon -- --system + eend $? +} + +stop() { + local retval + + ebegin "Stopping D-BUS system messagebus" + + start-stop-daemon --stop --pidfile /var/run/dbus.pid + retval=$? + + eend ${retval} + + [ -S /var/run/dbus/system_bus_socket ] && rm -f /var/run/dbus/system_bus_socket + + return ${retval} +} + +reload() { + local retval + + ebegin "Reloading D-BUS messagebus config" + + /usr/bin/dbus-send --print-reply --system --type=method_call \ + --dest=org.freedesktop.DBus \ + / org.freedesktop.DBus.ReloadConfig > /dev/null + retval=$? + eend ${retval} + return ${retval} +} diff --git a/sys-apps/dbus/metadata.xml b/sys-apps/dbus/metadata.xml new file mode 100644 index 000000000000..70f327cffe8b --- /dev/null +++ b/sys-apps/dbus/metadata.xml @@ -0,0 +1,14 @@ + + + + freedesktop + + freedesktop-bugs@gentoo.org + + + Build with sys-apps/systemd at_console support + + + cpe:/a:freedesktop:dbus + + diff --git a/sys-apps/dcfldd/Manifest b/sys-apps/dcfldd/Manifest new file mode 100644 index 000000000000..e15898b1fb50 --- /dev/null +++ b/sys-apps/dcfldd/Manifest @@ -0,0 +1 @@ +DIST dcfldd-1.3.4-1.tar.gz 163141 SHA256 f5143a184da56fd5ac729d6d8cbcf9f5da8e1cf4604aa9fb97c59553b7e6d5f8 diff --git a/sys-apps/dcfldd/dcfldd-1.3.4.1.ebuild b/sys-apps/dcfldd/dcfldd-1.3.4.1.ebuild new file mode 100644 index 000000000000..42f1a2aa4e3e --- /dev/null +++ b/sys-apps/dcfldd/dcfldd-1.3.4.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit versionator + +My_PV=$(replace_version_separator 3 '-') + +DESCRIPTION="enhanced dd with features for forensics and security" +HOMEPAGE="http://dcfldd.sourceforge.net/" +SRC_URI="mirror://sourceforge/dcfldd/${PN}-${My_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-${My_PV}" + +src_install() { + make install DESTDIR="${D}" || die "make install failed" + dodoc AUTHORS ChangeLog README +} diff --git a/sys-apps/dcfldd/metadata.xml b/sys-apps/dcfldd/metadata.xml new file mode 100644 index 000000000000..961146344a8d --- /dev/null +++ b/sys-apps/dcfldd/metadata.xml @@ -0,0 +1,8 @@ + + + + forensics + + dcfldd + + diff --git a/sys-apps/dchroot/Manifest b/sys-apps/dchroot/Manifest new file mode 100644 index 000000000000..62f764be1b3d --- /dev/null +++ b/sys-apps/dchroot/Manifest @@ -0,0 +1 @@ +DIST dchroot_0.12.1.tar.gz 20287 SHA256 b42bf3521299c845345db2ba140af8acddec2b0f1492df481367f8bcf25328c3 SHA512 4c0b9e30c68f7ff953a259b4d21f0fab58b6a15dd8ebf0666267879114c0fce37a9fc38d71e5047003676c1ec4211feb0d2c51aa44def81d0d5a40815fd1c600 WHIRLPOOL 7542e2f77a922216482d489b4b9e630778f01c8313b6b966c36c12909a9111d2cd86b2bb4c393e3cf3f4bae35fd1f78c97162af42e3ee4f30894e5571903b13f diff --git a/sys-apps/dchroot/dchroot-0.12.1.ebuild b/sys-apps/dchroot/dchroot-0.12.1.ebuild new file mode 100644 index 000000000000..665be41e5172 --- /dev/null +++ b/sys-apps/dchroot/dchroot-0.12.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit toolchain-funcs + +DESCRIPTION="Utility for managing chroots for non-root users" +HOMEPAGE="http://packages.debian.org/unstable/admin/dchroot" +SRC_URI="mirror://debian/pool/main/d/dchroot/dchroot_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/help2man" +RDEPEND="!dev-util/schroot[dchroot]" + +src_prepare() { + sed -i \ + -e '/^all:/s:$: docs:' \ + -e '/^CFLAGS/s:-O2:@CFLAGS@:' \ + -e '/@CFLAGS@/ s:@CFLAGS@:@CFLAGS@ @LDFLAGS@:' \ + Makefile.in || die "sed failed" +} + +src_compile() { + emake CC="$(tc-getCC)" || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc README TODO +} diff --git a/sys-apps/dchroot/metadata.xml b/sys-apps/dchroot/metadata.xml new file mode 100644 index 000000000000..d9cd2cad66c2 --- /dev/null +++ b/sys-apps/dchroot/metadata.xml @@ -0,0 +1,7 @@ + + + + +maintainer-needed@gentoo.org + + diff --git a/sys-apps/debianutils/Manifest b/sys-apps/debianutils/Manifest new file mode 100644 index 000000000000..76e283848cd4 --- /dev/null +++ b/sys-apps/debianutils/Manifest @@ -0,0 +1,4 @@ +DIST debianutils_4.3.2.tar.gz 201772 SHA256 0062d774306a6acc34d3b855a5c4eeb845653b0cd34dbb5c13aa00b4ecb8af22 SHA512 f174e8b487450d5434835d55fc6008fd596049e075eda07afc06293022d290dcf2c9dbd1fb8f40f1f88c2e3095a7fd9fedfa16992c72e6c2b0cce79faadad9a0 WHIRLPOOL 255fc83df32ca7cfb950d04c96f24610a6f00cb1e515bbb0ca1391fcaec17ff9a37a00a233bb4ff87b66fbd7ac2195aa9423b2bbf6c42c8f9898835bebd486eb +DIST debianutils_4.3.3.tar.gz 218494 SHA256 2df2571c0530beeb2ea11e9aa2a24ab66dff2a868c8ba5e868278af4ad7afd1d SHA512 c4c19e66bb858b9c0983460e11e54280fc09bbeb84a17a20021437d379b6190c2086107c4120f81a747e82d22ad4b538de2a78ba6a3118c5f5f786261e44b52f WHIRLPOOL b55aa163ea3b99f0d33cd22b9fc9d2820c5533a535a9f105ae772f9ca13c581d399863b542b0d76abb45b5dad50fb2957b7b74ecefcf575abcd18a394e4315e7 +DIST debianutils_4.3.4.tar.gz 223671 SHA256 1739976cb62b85e641ee36859a87dfb8e4c3214e1043b6bb00b56b87e96a19f5 SHA512 28012e85b5c488efecb8e61f61228994ffcfc8ce33bb3f616f08550d5bf86d08778f13f3bb8d893c649144e31d61a7a8b114596c5c5c762ef8552e55b06906c8 WHIRLPOOL f7b21c8d90197f7d65b91e5f9b48f8e51f37c4a657b9d985084803bddf2880be502c579375ded6cbb35b90f3710aa18917763ab231f2a13ccabdb9333c16cad3 +DIST debianutils_4.4.tar.gz 272098 SHA256 190850cdd6b5302e0a1ba1aaed1bc7074d67d3bd8d04c613f242f7145afa53a6 SHA512 78c51a7da586c6f23bf40810fd9bcaedc90648e6043c199f347cf5772f9c83ab646f22c2746ba6eddd7df8d6a31b01dc25f5bcb21a53a173aa5549138d14a9ca WHIRLPOOL 9fe7f16d921247eb74a56a865264d14b0cddb9025c1a4d761798494908c948bce7958ea2ee4db3a1b8800add41596ee9dfe6665603bd26a1c7bfd926a74f7f67 diff --git a/sys-apps/debianutils/debianutils-4.3.2.ebuild b/sys-apps/debianutils/debianutils-4.3.2.ebuild new file mode 100644 index 000000000000..96c44c4694e1 --- /dev/null +++ b/sys-apps/debianutils/debianutils-4.3.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic + +DESCRIPTION="A selection of tools from Debian" +HOMEPAGE="http://packages.qa.debian.org/d/debianutils.html" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="BSD GPL-2 SMAIL" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="kernel_linux static" + +PDEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-freebsd/freebsd-ubin )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.4.2-no-bs-namespace.patch +} + +src_configure() { + use static && append-ldflags -static + default +} + +src_install() { + into / + dobin tempfile run-parts + if use kernel_linux ; then + dosbin installkernel + fi + + into /usr + dosbin savelog + + doman tempfile.1 run-parts.8 savelog.8 + use kernel_linux && doman installkernel.8 + cd debian + dodoc changelog control + keepdir /etc/kernel/postinst.d +} diff --git a/sys-apps/debianutils/debianutils-4.3.3.ebuild b/sys-apps/debianutils/debianutils-4.3.3.ebuild new file mode 100644 index 000000000000..d17342eba583 --- /dev/null +++ b/sys-apps/debianutils/debianutils-4.3.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic + +DESCRIPTION="A selection of tools from Debian" +HOMEPAGE="http://packages.qa.debian.org/d/debianutils.html" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="BSD GPL-2 SMAIL" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="kernel_linux static" + +PDEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-freebsd/freebsd-ubin )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.4.2-no-bs-namespace.patch +} + +src_configure() { + use static && append-ldflags -static + default +} + +src_install() { + into / + dobin tempfile run-parts + if use kernel_linux ; then + dosbin installkernel + fi + + into /usr + dosbin savelog + + doman tempfile.1 run-parts.8 savelog.8 + use kernel_linux && doman installkernel.8 + cd debian + dodoc changelog control + keepdir /etc/kernel/postinst.d +} diff --git a/sys-apps/debianutils/debianutils-4.3.4.ebuild b/sys-apps/debianutils/debianutils-4.3.4.ebuild new file mode 100644 index 000000000000..1f386b75dc68 --- /dev/null +++ b/sys-apps/debianutils/debianutils-4.3.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic + +DESCRIPTION="A selection of tools from Debian" +HOMEPAGE="http://packages.qa.debian.org/d/debianutils.html" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="BSD GPL-2 SMAIL" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux" +IUSE="kernel_linux static" + +PDEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-freebsd/freebsd-ubin )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.4.2-no-bs-namespace.patch +} + +src_configure() { + use static && append-ldflags -static + default +} + +src_install() { + into / + dobin tempfile run-parts + if use kernel_linux ; then + dosbin installkernel + fi + + into /usr + dosbin savelog + + doman tempfile.1 run-parts.8 savelog.8 + use kernel_linux && doman installkernel.8 + cd debian + dodoc changelog control + keepdir /etc/kernel/postinst.d +} diff --git a/sys-apps/debianutils/debianutils-4.4.ebuild b/sys-apps/debianutils/debianutils-4.4.ebuild new file mode 100644 index 000000000000..126fa01d68ad --- /dev/null +++ b/sys-apps/debianutils/debianutils-4.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic + +DESCRIPTION="A selection of tools from Debian" +HOMEPAGE="http://packages.qa.debian.org/d/debianutils.html" +SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="BSD GPL-2 SMAIL" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux" +IUSE="kernel_linux static" + +PDEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-freebsd/freebsd-ubin )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.4.2-no-bs-namespace.patch +} + +src_configure() { + use static && append-ldflags -static + default +} + +src_install() { + into / + dobin tempfile run-parts + if use kernel_linux ; then + dosbin installkernel + fi + + into /usr + dosbin savelog + + doman tempfile.1 run-parts.8 savelog.8 + use kernel_linux && doman installkernel.8 + cd debian + dodoc changelog control + keepdir /etc/kernel/postinst.d +} diff --git a/sys-apps/debianutils/files/debianutils-3.4.2-no-bs-namespace.patch b/sys-apps/debianutils/files/debianutils-3.4.2-no-bs-namespace.patch new file mode 100644 index 000000000000..94a84b8fb9cd --- /dev/null +++ b/sys-apps/debianutils/files/debianutils-3.4.2-no-bs-namespace.patch @@ -0,0 +1,30 @@ +Allow dots in the names, bug #95173. Patch by Kerin Millar. +Re-sourced for 3.4.2 + +--- a/run-parts.8 ++++ b/run-parts.8 +@@ -25,9 +25,10 @@ + .IR directory . + Other files and directories are silently ignored. + +-If neither the \-\-lsbsysinit option nor the \-\-regex option is given +-then the names must consist entirely of ASCII upper- and lower-case +-letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens. ++If neither the \-\-lsbsysinit option nor the \-\-regex option is given then the ++names must consist entirely of ASCII upper- and lower-case letters, ASCII ++digits, ASCII underscores, and ASCII minus-hyphens. However, the name must not ++begin with a period. + + If the \-\-lsbsysinit option is given, then the names must not end + in .dpkg\-old or .dpkg\-dist or .dpkg\-new or .dpkg\-tmp, and must +--- a/run-parts.c ++++ b/run-parts.c +@@ -501,7 +501,7 @@ + != 0) + pt_regex = &tradre; + +- } else if ( (err = regcomp(&classicalre, "^[a-zA-Z0-9_-]+$", ++ } else if ( (err = regcomp(&classicalre, "^[a-zA-Z0-9_-][a-zA-Z0-9._-]+$", + REG_EXTENDED | REG_NOSUB)) != 0) + pt_regex = &classicalre; + diff --git a/sys-apps/debianutils/metadata.xml b/sys-apps/debianutils/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/debianutils/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/diffutils/Manifest b/sys-apps/diffutils/Manifest new file mode 100644 index 000000000000..49003a7fb2c6 --- /dev/null +++ b/sys-apps/diffutils/Manifest @@ -0,0 +1 @@ +DIST diffutils-3.3.tar.xz 1197832 SHA256 a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c SHA512 b04b998717e45e8fd1ba675957dad1909beeed68ffc41c0d9bbaddaf78965f9e63af5a8d8811bb94f33a3cddcad2fe1ad794e52e545def9ce96c092999a74a83 WHIRLPOOL 8fd3b179afdc3fd127cee8829535b0fc6d949443645e8df80fa45c2fa44a732ea652259b644d81a9be14d4c7f7c3b5bad7b8861934a6bc691cd02a34c0200ed3 diff --git a/sys-apps/diffutils/diffutils-3.3.ebuild b/sys-apps/diffutils/diffutils-3.3.ebuild new file mode 100644 index 000000000000..922ff619ff22 --- /dev/null +++ b/sys-apps/diffutils/diffutils-3.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit flag-o-matic + +DESCRIPTION="Tools to make diffs and compare files" +HOMEPAGE="http://www.gnu.org/software/diffutils/" +SRC_URI="mirror://gnu-alpha/diffutils/${P}.tar.xz + mirror://gnu/diffutils/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls static" + +DEPEND="app-arch/xz-utils + nls? ( sys-devel/gettext )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) + +src_prepare() { + # Disable gnulib build test that has no impact on the source. + # Re-enable w/next version bump (and gnulib is updated). #554728 + [[ ${PV} != "3.3" ]] && die "re-enable test #554728" + echo 'exit 0' > gnulib-tests/test-update-copyright.sh || die + + sed -i 's:@mkdir_p@:@MKDIR_P@:g' po/Makefile.in.in || die #464604 +} + +src_configure() { + use static && append-ldflags -static + + # Disable automagic dependency over libsigsegv; see bug #312351. + export ac_cv_libsigsegv=no + + econf \ + --with-packager="Gentoo" \ + --with-packager-version="${PVR}" \ + --with-packager-bug-reports="http://bugs.gentoo.org/" \ + $(use_enable nls) +} + +src_test() { + # explicitly allow parallel testing + emake check +} diff --git a/sys-apps/diffutils/metadata.xml b/sys-apps/diffutils/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/diffutils/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/dmapi/Manifest b/sys-apps/dmapi/Manifest new file mode 100644 index 000000000000..01e9ed5090d6 --- /dev/null +++ b/sys-apps/dmapi/Manifest @@ -0,0 +1 @@ +DIST dmapi-2.2.12.tar.gz 367318 SHA256 b18e34f47374f6adf7c164993c26df36986a009b86aa004ef9444102653aea69 SHA512 aa44c0c7857158fed198deb9d1e00abaab549e3c22a7ce0e24e6088146bde56ecf967405b1b61a589460981ddcfaffbb1e9a2e677088efec317e3a7cb44abe4f WHIRLPOOL 5209b3a3b8afaf55eb26588cd8ffe085f58849b0b4a159851c0ffeefa0f8cf5aad53d9bea927099f3fced101e017867c538a081667ad684df5f2ff6685eac19e diff --git a/sys-apps/dmapi/dmapi-2.2.12-r1.ebuild b/sys-apps/dmapi/dmapi-2.2.12-r1.ebuild new file mode 100644 index 000000000000..54291171b34a --- /dev/null +++ b/sys-apps/dmapi/dmapi-2.2.12-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs multilib multilib-minimal + +DESCRIPTION="XFS data management API library" +HOMEPAGE="http://oss.sgi.com/projects/xfs/" +SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz + ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" +IUSE="static-libs" + +RDEPEND="sys-fs/xfsprogs" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + include/builddefs.in \ + || die + + multilib_copy_sources +} + +multilib_src_configure() { + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + --libexecdir=/usr/$(get_libdir) \ + $(use_enable static-libs static) +} + +multilib_src_install() { + emake DESTDIR="${D}" install install-dev + multilib_is_native_abi && gen_usr_ldscript -a dm +} + +multilib_src_install_all() { + prune_libtool_files --all + rm "${ED}"/usr/share/doc/${PF}/COPYING +} diff --git a/sys-apps/dmapi/dmapi-2.2.12.ebuild b/sys-apps/dmapi/dmapi-2.2.12.ebuild new file mode 100644 index 000000000000..7b357aa2f049 --- /dev/null +++ b/sys-apps/dmapi/dmapi-2.2.12.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs multilib + +DESCRIPTION="XFS data management API library" +HOMEPAGE="http://oss.sgi.com/projects/xfs/" +SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz + ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" +IUSE="static-libs" + +RDEPEND="sys-fs/xfsprogs" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -i \ + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ + include/builddefs.in \ + || die +} + +src_configure() { + export OPTIMIZER=${CFLAGS} + export DEBUG=-DNDEBUG + + econf \ + --libexecdir=/usr/$(get_libdir) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install install-dev + gen_usr_ldscript -a dm + find "${ED}"/usr '(' -name '*.la' -o -name COPYING ')' -delete +} diff --git a/sys-apps/dmapi/metadata.xml b/sys-apps/dmapi/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/dmapi/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/dmidecode/Manifest b/sys-apps/dmidecode/Manifest new file mode 100644 index 000000000000..8e527c5702dd --- /dev/null +++ b/sys-apps/dmidecode/Manifest @@ -0,0 +1 @@ +DIST dmidecode-2.12.tar.bz2 55191 SHA256 913ff3055d563a62a420789b8ee33b038de9afa18ea61254760ddf8ab87a5088 SHA512 15d5a6dca04de48267f969f6866079915964a8a3abad083b1720a4425723f9c100770d05c0d475df9609c5b54741f231a587761d1beb1ae6de4b2836d60724c4 WHIRLPOOL 139841a9efd07ecfcb012a24e2c3ea00c79d66828a5d5aa1eeb8b230c1b84f310e5f9282403af9f530f7ead41922f7a3e8a6e8b93e46d7403d69975b95d6a406 diff --git a/sys-apps/dmidecode/dmidecode-2.12-r1.ebuild b/sys-apps/dmidecode/dmidecode-2.12-r1.ebuild new file mode 100644 index 000000000000..fffd494439e1 --- /dev/null +++ b/sys-apps/dmidecode/dmidecode-2.12-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit flag-o-matic toolchain-funcs eutils + +DESCRIPTION="DMI (Desktop Management Interface) table related utilities" +HOMEPAGE="http://www.nongnu.org/dmidecode/" +SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-solaris" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-dmidecode )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}/${PV}-supported-smbios-version.patch" + sed -i \ + -e "/^prefix/s:/usr/local:${EPREFIX}/usr:" \ + -e "/^docdir/s:dmidecode:${PF}:" \ + -e '/^PROGRAMS !=/d' \ + Makefile || die +} + +src_compile() { + emake \ + CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "dmidecode needs root privileges to read /dev/xsvc" + einfo "To make dmidecode useful, either run as root, or chown and setuid the binary." + einfo "Note that /usr/sbin/ptrconf and /usr/sbin/ptrdiag give similar" + einfo "information without requiring root privileges." + fi +} diff --git a/sys-apps/dmidecode/files/2.12-supported-smbios-version.patch b/sys-apps/dmidecode/files/2.12-supported-smbios-version.patch new file mode 100644 index 000000000000..84feaca79ef9 --- /dev/null +++ b/sys-apps/dmidecode/files/2.12-supported-smbios-version.patch @@ -0,0 +1,55 @@ +diff -uNr dmidecode-2.12.ORIG/dmidecode.c dmidecode-2.12/dmidecode.c +--- dmidecode-2.12.ORIG/dmidecode.c 2014-05-06 14:24:27.703057950 +0100 ++++ dmidecode-2.12/dmidecode.c 2014-05-06 14:24:43.136058719 +0100 +@@ -69,7 +69,7 @@ + #define out_of_spec "" + static const char *bad_index = ""; + +-#define SUPPORTED_SMBIOS_VER 0x0207 ++#define SUPPORTED_SMBIOS_VER 0x0208 + + /* + * Type-independant Stuff +@@ -712,7 +712,6 @@ + { 0x3D, "Opteron 6200" }, + { 0x3E, "Opteron 4200" }, + { 0x3F, "FX" }, +- + { 0x40, "MIPS" }, + { 0x41, "MIPS R4000" }, + { 0x42, "MIPS R4200" }, +@@ -729,7 +728,6 @@ + { 0x4D, "Opteron 6300" }, + { 0x4E, "Opteron 3300" }, + { 0x4F, "FirePro" }, +- + { 0x50, "SPARC" }, + { 0x51, "SuperSPARC" }, + { 0x52, "MicroSPARC II" }, +@@ -1176,7 +1174,7 @@ + "Socket LGA1356-3" /* 0x2C */ + }; + +- if (code >= 0x01 && code <= 0x2A) ++ if (code >= 0x01 && code <= 0x2C) + return upgrade[code - 0x01]; + return out_of_spec; + } +@@ -2236,7 +2234,7 @@ + if (code == 0) + printf(" Unknown"); + else +- printf(" %.3f V", (float)(i16)code / 1000); ++ printf(" %.3f V", (float)code / 1000); + } + + static const char *dmi_memory_device_form_factor(u8 code) +@@ -2338,7 +2336,7 @@ + { + int i; + +- for (i = 1; i <= 14; i++) ++ for (i = 1; i <= 15; i++) + if (code & (1 << i)) + printf(" %s", detail[i - 1]); + } diff --git a/sys-apps/dmidecode/metadata.xml b/sys-apps/dmidecode/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/dmidecode/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/dmtcp/Manifest b/sys-apps/dmtcp/Manifest new file mode 100644 index 000000000000..dcf81fbe5a26 --- /dev/null +++ b/sys-apps/dmtcp/Manifest @@ -0,0 +1 @@ +DIST dmtcp-1.2.6.tar.gz 936928 SHA256 ede0ef3544f08befe2b3df45d9087b4bfa02d52074cf805181c857f5de9fbfca SHA512 cc14e344b8a479be436c5ada90d15c3693436a0e009f03755d13cd86c645249e22258eade79c5b92e801866ec7fe5907956d12384bebb8c330450f6ba26c84a0 WHIRLPOOL d64ca8143c9943925c1a85ada9b54fe98da4722d57b42d4298ef1cf35782816d300f9aefa0e67fb3046d1f4fdc7c2fdd74450710e375ce4a78cdeed7e2f6d4f3 diff --git a/sys-apps/dmtcp/dmtcp-1.2.6.ebuild b/sys-apps/dmtcp/dmtcp-1.2.6.ebuild new file mode 100644 index 000000000000..1ae1ab542fd3 --- /dev/null +++ b/sys-apps/dmtcp/dmtcp-1.2.6.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit elisp-common eutils multilib + +DESCRIPTION="DMTCP is the Distributed MultiThreaded Checkpointing tool" +HOMEPAGE="http://dmtcp.sourceforge.net/index.html" +SRC_URI="mirror://sourceforge/dmtcp/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug emacs fast mpi trace" + +RDEPEND="sys-libs/readline + app-arch/gzip + sys-kernel/linux-headers + emacs? ( dev-lisp/clisp ) + mpi? ( virtual/mpi ) + || ( app-shells/dash + app-shells/zsh + app-shells/tcsh + )" + +DEPEND="${RDEPEND} + sys-devel/patch" + +src_configure() { + local myconf="--disable-stale-socket-handling" + + if use debug; then + use trace && myconf=" ${myconf} --enable-ptrace-support" + myconf=" ${myconf} --disable-pid-virtualization" + fi + + use fast && myconf=" ${myconf} --disable-pid-virtualization \ + --enable-forked-checkpointing \ + --enable-allocator" + + use mpi && myconf=" ${myconf} --with-mpich=/usr/bin" + + econf $(use_enable debug) $myconf +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc TODO QUICK-START ${PN}/README + + dodir /usr/share/${PF}/examples + mv "${D}"usr/$(get_libdir)/${PN}/examples "${D}"usr/share/${PF}/examples +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sys-apps/dmtcp/files/dmtcp-1.2.1-gcc46.patch b/sys-apps/dmtcp/files/dmtcp-1.2.1-gcc46.patch new file mode 100644 index 000000000000..fd013e3b6ae7 --- /dev/null +++ b/sys-apps/dmtcp/files/dmtcp-1.2.1-gcc46.patch @@ -0,0 +1,21 @@ +--- a/dmtcp/src/Makefile.am ++++ b/dmtcp/src/Makefile.am +@@ -66,7 +66,7 @@ + + dmtcp_inspector_SOURCES = dmtcp_inspector.cpp + +-dmtcphijack_so_LDFLAGS = -shared -avoid-version -module ++dmtcphijack_so_LDFLAGS = -shared -module + + #dmtcp_nocheckpoint_LDFLAGS = -static + +--- a/dmtcp/src/dmtcpalloc.h ++++ b/dmtcp/src/dmtcpalloc.h +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + #define DMTCPSTRING dmtcp::string + #define DMTCPVECTOR(T) dmtcp::vector diff --git a/sys-apps/dmtcp/metadata.xml b/sys-apps/dmtcp/metadata.xml new file mode 100644 index 000000000000..154329b9ce83 --- /dev/null +++ b/sys-apps/dmtcp/metadata.xml @@ -0,0 +1,12 @@ + + + + dev-tools + + Enable experimental performance options such as mmap allocator. + Enable ptrace support (only valid with debug enabled). + + + dmtcp + + diff --git a/sys-apps/dnotify/Manifest b/sys-apps/dnotify/Manifest new file mode 100644 index 000000000000..a0944bbb67d1 --- /dev/null +++ b/sys-apps/dnotify/Manifest @@ -0,0 +1 @@ +DIST dnotify-0.18.0.tar.gz 187909 RMD160 76836ad6025149d1063b20d438bd81100f818acb SHA1 47e36a7f01c65ea68e3e7955c617bd3187f4d24d SHA256 2c1a1aeb3b6471d9c17b769e86235fed4020f2009c6f6841728b94020df67bf1 diff --git a/sys-apps/dnotify/dnotify-0.18.0.ebuild b/sys-apps/dnotify/dnotify-0.18.0.ebuild new file mode 100644 index 000000000000..74d8613ac83d --- /dev/null +++ b/sys-apps/dnotify/dnotify-0.18.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils + +DESCRIPTION="Execute a command when the contents of a directory change" +HOMEPAGE="http://directory.fsf.org/project/dnotify/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc -sparc x86" +IUSE="nls" + +RDEPEND="" +DEPEND="nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-nls.patch \ + "${FILESDIR}"/${P}-glibc-212.patch +} + +src_configure() { + econf \ + $(use_enable nls) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS TODO NEWS README +} diff --git a/sys-apps/dnotify/files/dnotify-0.18.0-glibc-212.patch b/sys-apps/dnotify/files/dnotify-0.18.0-glibc-212.patch new file mode 100644 index 000000000000..6cc6e6f40092 --- /dev/null +++ b/sys-apps/dnotify/files/dnotify-0.18.0-glibc-212.patch @@ -0,0 +1,12 @@ +http://bugs.gentoo.org/336649 + +--- src/main.c ++++ src/main.c +@@ -19,6 +19,7 @@ + + #include + #include ++#include + #include + #include + #include diff --git a/sys-apps/dnotify/files/dnotify-0.18.0-nls.patch b/sys-apps/dnotify/files/dnotify-0.18.0-nls.patch new file mode 100644 index 000000000000..7721ac1ee411 --- /dev/null +++ b/sys-apps/dnotify/files/dnotify-0.18.0-nls.patch @@ -0,0 +1,10 @@ +--- src/gettext.h.orig 2006-01-27 18:23:31.000000000 +0100 ++++ src/gettext.h 2006-01-27 18:25:07.000000000 +0100 +@@ -24,6 +24,7 @@ + + /* Get declarations of GNU message catalog functions. */ + # include ++# include + + #else + diff --git a/sys-apps/dnotify/metadata.xml b/sys-apps/dnotify/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/dnotify/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/dog/Manifest b/sys-apps/dog/Manifest new file mode 100644 index 000000000000..938907b76a9d --- /dev/null +++ b/sys-apps/dog/Manifest @@ -0,0 +1 @@ +DIST dog-1.7.tar.gz 30433 RMD160 dd8867a5a8ff7208b92df8bc23a9b6b48cc74816 SHA1 a1af9c76daa0c9768cdf0c31839b3004e6ccc417 SHA256 6c5386d1b6401d6410baa8f0da343de5625cd3d59b6273dcee81997c372522ca diff --git a/sys-apps/dog/dog-1.7-r4.ebuild b/sys-apps/dog/dog-1.7-r4.ebuild new file mode 100644 index 000000000000..2bd8abc03dcd --- /dev/null +++ b/sys-apps/dog/dog-1.7-r4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="Dog is better than cat" +# the best HOMEPAGE we have. +HOMEPAGE="http://packages.gentoo.org/package/sys-apps/dog" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris" +IUSE="" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-check-ctime.diff \ + "${FILESDIR}"/${PV}-manpage-touchup.patch \ + "${FILESDIR}"/${P}-64bit-goodness.patch \ + "${FILESDIR}"/${P}-strfry.patch + + if [[ "${CHOST}" == *-solaris* ]] + then + sed -i '/gcc.*-o dog/s/$/ -lsocket/' \ + Makefile || die "sed Makefile failed" + fi + + sed -i \ + -e 's,^CFLAGS,#CFLAGS,' \ + -e "s,gcc,$(tc-getCC)," \ + -e 's:-o dog:$(LDFLAGS) -o dog:g' \ + Makefile || die "sed Makefile failed" +} + +src_install() { + dobin dog || die + doman dog.1 || die + dodoc README AUTHORS || die +} diff --git a/sys-apps/dog/files/1.7-manpage-touchup.patch b/sys-apps/dog/files/1.7-manpage-touchup.patch new file mode 100644 index 000000000000..324c82696705 --- /dev/null +++ b/sys-apps/dog/files/1.7-manpage-touchup.patch @@ -0,0 +1,18 @@ +The correct syntax of the -w option does not have a space between +the -w and the cols ... the manpage seems to imply differently though +so let's fix it. + +http://bugs.gentoo.org/show_bug.cgi?id=69660 + +--- dog.1 ++++ dog.1 +@@ -8,3 +8,3 @@ + .B dog +-[\-AbBeEnstTuv] [\-w cols] [\-l lines] ++[\-AbBeEnstTuv] [\-w] [\-l lines] + [\-\-show\-all] [\-\-number\-nonblank] [\-\-no\-blanks] [\-\-bind=port] +@@ -64,3 +64,3 @@ + .TP +-.I \-w n ++.I \-w + Print first n characters of each line (default=80) diff --git a/sys-apps/dog/files/dog-1.7-64bit-goodness.patch b/sys-apps/dog/files/dog-1.7-64bit-goodness.patch new file mode 100644 index 000000000000..9143761852c1 --- /dev/null +++ b/sys-apps/dog/files/dog-1.7-64bit-goodness.patch @@ -0,0 +1,33 @@ +diff -ur dog-1.7/dog.c dog-1.7-64bit/dog.c +--- dog-1.7/dog.c 2000-06-21 18:04:43.000000000 +0200 ++++ dog-1.7-64bit/dog.c 2005-05-23 10:40:58.613766328 +0200 +@@ -38,22 +38,13 @@ + #include + #include + +-// this is fun +-#if defined(__alpha) +-#define uint16 unsigned short +-#define int16 short +-#define uint32 unsigned int +-#define int32 int +-#define uint64 unsigned long +-#define int64 long +-#else +-#define uint16 unsigned short +-#define int16 short +-#define uint32 unsigned long +-#define int32 long +-#define uint64 unsigned long long +-#define int64 long long +-#endif ++#define uint16 uint16_t ++#define int16 int16_t ++#define uint32 uint32_t ++#define int32 int32_t ++#define uint64 uint64_t ++#define int64 int64_t ++ + #if defined(__STDC__) + #define __dog_signed signed + #else diff --git a/sys-apps/dog/files/dog-1.7-check-ctime.diff b/sys-apps/dog/files/dog-1.7-check-ctime.diff new file mode 100644 index 000000000000..43f8aa0a8c91 --- /dev/null +++ b/sys-apps/dog/files/dog-1.7-check-ctime.diff @@ -0,0 +1,53 @@ +diff --exclude='*~' --exclude='.*' -I '# $Id$ +--- dog-1.7.orig/dog.c 2005-05-13 08:01:37.000000000 -0400 ++++ dog-1.7/dog.c 2005-05-13 08:30:38.000000000 -0400 +@@ -36,6 +36,7 @@ + #include + #include "getopt.h" + #include ++#include + #include + + // this is fun +@@ -1321,26 +1322,35 @@ + InetSockAddr sa; + int newsock; + uint32 ipAddr; +- int k; ++ socklen_t k; + time_t curr_time; + char curr_date[64]; + + k = sizeof(sa); + while ((newsock=accept(sock,(struct sockaddr*)&sa,&k)) != -1) { + if (!no_bind_header) { ++ char *result = NULL; + ipAddr = ntohl(sa.addr); + time(&curr_time); +- strcpy(curr_date,ctime(&curr_time)); ++ if (!(result = ctime(&curr_time))) { ++ perror("ctime"); ++ goto done; ++ } ++ strncpy(curr_date, result, sizeof(curr_date) - 1); + while (!isalnum(curr_date[strlen(curr_date)-1])) { + curr_date[strlen(curr_date)-1] = 0; + } + printf("# %s from %d.%d.%d.%d:%d\n",curr_date,(int)ipAddr>>24,(int)(ipAddr>>16)&0xff,(int)(ipAddr>>8)&0xff,(int)ipAddr&0xff,ntohs(sa.port)); + } +- straight_dump = newsock; +- DumpThings(argc,argv,hang_up_bind ? -1 : newsock); +- if (hang_up_bind) { ++ ++ goto done; ++ ++ done: ++ straight_dump = newsock; ++ DumpThings(argc,argv,hang_up_bind ? -1 : newsock); ++ if (hang_up_bind) { + close(newsock); +- } ++ } + } + } + diff --git a/sys-apps/dog/files/dog-1.7-strfry.patch b/sys-apps/dog/files/dog-1.7-strfry.patch new file mode 100644 index 000000000000..b62b815aed50 --- /dev/null +++ b/sys-apps/dog/files/dog-1.7-strfry.patch @@ -0,0 +1,13 @@ +See Gentoo bug 251675. Upstream appears to be dead. + +--- dog.c.orig 2009-04-09 23:29:16.307661147 -0500 ++++ dog.c 2009-04-09 23:30:11.353664890 -0500 +@@ -552,7 +552,7 @@ + + // strfry() + #if ALLOW_STRFRY +- if (opt_strfry) { ++ if (opt_strfry && str_len > 0) { + strfry(str); + } + #endif diff --git a/sys-apps/dog/metadata.xml b/sys-apps/dog/metadata.xml new file mode 100644 index 000000000000..40149c995561 --- /dev/null +++ b/sys-apps/dog/metadata.xml @@ -0,0 +1,5 @@ + + + + shell-tools + diff --git a/sys-apps/dstat/Manifest b/sys-apps/dstat/Manifest new file mode 100644 index 000000000000..472eb7f68f95 --- /dev/null +++ b/sys-apps/dstat/Manifest @@ -0,0 +1,2 @@ +DIST dstat-0.6.9.tar.bz2 74060 SHA256 edb2c17d081ee2b0b4fc2c57c2ed6dc36628853abd76c838026e99b3d1ea897c +DIST dstat-0.7.2.tar.bz2 85870 SHA256 34a986d9d7c028bd9dcb6b2ef1c740f7220de5c9cf976870a2b62aca23b33bae SHA512 276447c0f5492e4d2ac78f9f5b1d08e3565d26d02a7e6a22ef70f77b20f84d2b9ba806212860886139d401e4dfc2453c0dbc9ed82398ddec0ee75f5999080624 WHIRLPOOL 1f263026b137ac3f6bfb70d8840a52769505a6c55301607a4a6afae36fd084326922bf3f8edf5399df004a3d8f7dce165b5613e6729dc2944e8e6bf1674d2cb4 diff --git a/sys-apps/dstat/dstat-0.6.9-r1.ebuild b/sys-apps/dstat/dstat-0.6.9-r1.ebuild new file mode 100644 index 000000000000..5f129b427b09 --- /dev/null +++ b/sys-apps/dstat/dstat-0.6.9-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +PYTHON_DEPEND="2" + +inherit python eutils + +DESCRIPTION="Versatile replacement for vmstat, iostat and ifstat" +HOMEPAGE="http://dag.wieers.com/home-made/dstat/" +SRC_URI="http://dag.wieers.com/home-made/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ~ppc ~ppc64 sparc x86" +IUSE="" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-CVE-2009-3894.patch # 293497 +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc \ + AUTHORS ChangeLog README TODO \ + examples/{mstat,read}.py docs/*.txt + dohtml docs/*.html +} + +pkg_postinst() { + python_mod_optimize /usr/share/dstat +} + +pkg_postrm() { + python_mod_cleanup /usr/share/dstat +} diff --git a/sys-apps/dstat/dstat-0.7.2-r1.ebuild b/sys-apps/dstat/dstat-0.7.2-r1.ebuild new file mode 100644 index 000000000000..3f93d849ceff --- /dev/null +++ b/sys-apps/dstat/dstat-0.7.2-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +PYTHON_DEPEND="2" + +inherit python eutils + +DESCRIPTION="Versatile replacement for vmstat, iostat and ifstat" +HOMEPAGE="http://dag.wieers.com/home-made/dstat/" +SRC_URI="http://dag.wieers.com/home-made/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="wifi" + +RDEPEND="wifi? ( net-wireless/python-wifi )" +DEPEND="" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_compile() { + true +} + +src_install() { + emake DESTDIR="${ED}" install + python_convert_shebangs 2 "${ED}usr/bin/dstat" + + dodoc \ + AUTHORS ChangeLog README TODO \ + examples/{mstat,read}.py docs/*.txt + dohtml docs/*.html +} + +pkg_postinst() { + python_mod_optimize /usr/share/dstat +} + +pkg_postrm() { + python_mod_cleanup /usr/share/dstat +} diff --git a/sys-apps/dstat/files/dstat-0.6.9-CVE-2009-3894.patch b/sys-apps/dstat/files/dstat-0.6.9-CVE-2009-3894.patch new file mode 100644 index 000000000000..042552b9a3bd --- /dev/null +++ b/sys-apps/dstat/files/dstat-0.6.9-CVE-2009-3894.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/show_bug.cgi?id=293497 + +Index: dstat-0.6.9/dstat +=================================================================== +--- dstat-0.6.9.orig/dstat ++++ dstat-0.6.9/dstat +@@ -28,8 +28,6 @@ try: + inspath('/usr/local/share/dstat/') + inspath('/usr/share/dstat/') + inspath(os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/') # binary path + /plugins/ +- inspath(os.getcwd() + '/plugins/') # current path + /plugins/ +- inspath(os.getcwd()) # current path + inspath(os.path.expanduser('~/.dstat/')) # home + /.dstat/ + except KeyboardInterrupt, e: + pass diff --git a/sys-apps/dstat/metadata.xml b/sys-apps/dstat/metadata.xml new file mode 100644 index 000000000000..4903eb22ef7c --- /dev/null +++ b/sys-apps/dstat/metadata.xml @@ -0,0 +1,20 @@ + + + + + wschlich@gentoo.org + Wolfram Schlich + + +Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat overcomes +some of the limitations and adds some extra features. + +Dstat allows you to view all of your system resources instantly, you can eg. +compare disk usage in combination with interrupts from your IDE controller, or +compare the network bandwidth numbers directly with the disk throughput (in the +same interval). + + + Enable wireless network functions + + diff --git a/sys-apps/dtc/Manifest b/sys-apps/dtc/Manifest new file mode 100644 index 000000000000..7fc19d27d520 --- /dev/null +++ b/sys-apps/dtc/Manifest @@ -0,0 +1,3 @@ +DIST dtc-1.4.1.tar.xz 107920 SHA256 77992ad8eac7b68f553d0ba58e5b51604ac803d126196c99e3ae38aaae28bb94 SHA512 63df730e65f62b8c9648cfee5461809188f4198cbf98de25fbe5cb7f2f43c405266abb740501740f59847dc6faf0588bcbc734d08ae5430b05c2601e070d6d05 WHIRLPOOL 93e9ed26024e4650bb2de6323ea639a3e52622aa3891a9f9404959b600d2c1cbc633d18e30d3629ac54ae662e8c58a7d0ca7910a9b323cd8dd4ff6e43a3fdf67 +DIST dtc-v1.3.0.tgz 108540 SHA256 4da48956d812e221f68d1d538cd58ca8ed7412af4ab9ef42a702db9173c372fe SHA512 4506eb4c3eaccabbf6773a3b0cbf3b174560e5004cf8af9f88448ad1371d1c57d793f078b2bd99b63714df538e74d6dfe16f112bc8283d412b1026f5f5c8220e WHIRLPOOL 4e87da05024d94998999a5e0090f91e4af4a66937dc6d5deec9bf7dd320fd9e732d30ccb6195dd0ce924c0f3c817d6af4731761e08dbc0e365e85ad8719e7935 +DIST dtc-v1.4.0.tar.xz 105160 SHA256 6df33a5da65fd43e0bc265a6c99104ca2962a97cf2d78171ed10d68e546ce198 SHA512 d0021c27e3614776db72c3d84cf05b98b1c49e14991ce12db6a90e9ac7d8aa248064f071c7a3b5bc9a20e9b22f070187778faa49bb3a5d0916afdfd9a929b743 WHIRLPOOL 366dd030aeaf042a7b60c7f900befaac124799d2db02c272d513615e08b208de26ab678c2dc48187f52f19bc2d5bcdf9b5694521298122706726e11ddaaa2afe diff --git a/sys-apps/dtc/dtc-1.3.0-r1.ebuild b/sys-apps/dtc/dtc-1.3.0-r1.ebuild new file mode 100644 index 000000000000..02bacac2b7cd --- /dev/null +++ b/sys-apps/dtc/dtc-1.3.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +MY_P="${PN}-v${PV}" + +inherit multilib toolchain-funcs eutils +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.jdl.com/software/dtc.git" + inherit git-2 +else + SRC_URI="http://www.jdl.com/software/${MY_P}.tgz" + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="Open Firmware device-trees compiler" +HOMEPAGE="http://git.jdl.com/gitweb/?p=dtc.git" + +LICENSE="GPL-2" +SLOT="0" +IUSE="static-libs" + +RDEPEND="" +DEPEND="sys-devel/flex + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-fdtdump.patch #372895 + sed -i \ + -e '/^CFLAGS =/s:=:+=:' \ + -e '/^CPPFLAGS =/s:=:+=:' \ + -e 's:-Werror::' \ + -e 's:-g -Os::' \ + -e '/^PREFIX =/s:=.*:= /usr:' \ + -e "/^LIBDIR =/s:=.*:= /usr/$(get_libdir):" \ + Makefile || die + tc-export AR CC + export V=1 +} + +src_test() { + emake check +} + +src_install() { + emake DESTDIR="${D}" install + use static-libs || find "${ED}" -name '*.a' -delete + dodoc Documentation/manual.txt +} diff --git a/sys-apps/dtc/dtc-1.3.0.ebuild b/sys-apps/dtc/dtc-1.3.0.ebuild new file mode 100644 index 000000000000..3ea96bc5d330 --- /dev/null +++ b/sys-apps/dtc/dtc-1.3.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit toolchain-funcs + +MY_P="${PN}-v${PV}" + +DESCRIPTION="Open Firmware device-trees compiler" +HOMEPAGE="http://www.t2-project.org/packages/dtc.html" +SRC_URI="http://www.jdl.com/software/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86" +IUSE="" + +RDEPEND="" +DEPEND="sys-devel/flex + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i -e "s:CFLAGS =:CFLAGS +=:" \ + -e "s:CPPFLAGS =:CPPFLAGS +=:" \ + -e "s:-Werror::" \ + -e "s:-g -Os::" \ + Makefile || die +} + +src_compile() { + tc-export AR CC + emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" +} + +src_test() { + emake check +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \ + install + dodoc Documentation/manual.txt +} diff --git a/sys-apps/dtc/dtc-1.4.0.ebuild b/sys-apps/dtc/dtc-1.4.0.ebuild new file mode 100644 index 000000000000..af5971fa62e2 --- /dev/null +++ b/sys-apps/dtc/dtc-1.4.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +MY_P="${PN}-v${PV}" + +inherit multilib toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.jdl.com/software/dtc.git" + inherit git-2 +else + SRC_URI="http://www.jdl.com/software/${MY_P}.tar.xz" + KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" +fi + +DESCRIPTION="Open Firmware device-trees compiler" +HOMEPAGE="http://git.jdl.com/gitweb/?p=dtc.git" + +LICENSE="GPL-2" +SLOT="0" +IUSE="static-libs" + +RDEPEND="" +DEPEND="app-arch/xz-utils + sys-devel/flex + sys-devel/bison" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e '/^CFLAGS =/s:=:+=:' \ + -e '/^CPPFLAGS =/s:=:+=:' \ + -e 's:-Werror::' \ + -e 's:-g -Os::' \ + -e '/^PREFIX =/s:=.*:= /usr:' \ + -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \ + Makefile || die + tc-export AR CC + export V=1 +} + +src_test() { + emake check +} + +src_install() { + emake DESTDIR="${D}" install + use static-libs || find "${ED}" -name '*.a' -delete + dodoc Documentation/manual.txt +} diff --git a/sys-apps/dtc/dtc-1.4.1-r1.ebuild b/sys-apps/dtc/dtc-1.4.1-r1.ebuild new file mode 100644 index 000000000000..a4f80e253c20 --- /dev/null +++ b/sys-apps/dtc/dtc-1.4.1-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit multilib toolchain-funcs eutils +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/dtc/dtc.git" + inherit git-2 +else + SRC_URI="mirror://kernel/software/utils/${PN}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="Open Firmware device tree compiler" +HOMEPAGE="http://devicetree.org/Device_Tree_Compiler" + +LICENSE="GPL-2" +SLOT="0" +IUSE="static-libs" + +RDEPEND="" +DEPEND="app-arch/xz-utils + sys-devel/flex + sys-devel/bison" + +src_prepare() { + epatch "${FILESDIR}"/${P}-missing-syms.patch + epatch "${FILESDIR}"/${P}-echo-n.patch + sed -i \ + -e '/^CFLAGS =/s:=:+=:' \ + -e '/^CPPFLAGS =/s:=:+=:' \ + -e 's:-Werror::' \ + -e 's:-g -Os::' \ + -e "/^PREFIX =/s:=.*:= ${EPREFIX}/usr:" \ + -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \ + Makefile || die + tc-export AR CC + export V=1 +} + +src_test() { + # Enable parallel tests. + emake check +} + +src_install() { + default + use static-libs || find "${ED}" -name '*.a' -delete + dodoc Documentation/manual.txt +} diff --git a/sys-apps/dtc/dtc-1.4.1.ebuild b/sys-apps/dtc/dtc-1.4.1.ebuild new file mode 100644 index 000000000000..97f68422844b --- /dev/null +++ b/sys-apps/dtc/dtc-1.4.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit multilib toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/dtc/dtc.git" + inherit git-2 +else + SRC_URI="mirror://kernel/software/utils/${PN}/${P}.tar.xz" + KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86" +fi + +DESCRIPTION="Open Firmware device tree compiler" +HOMEPAGE="http://devicetree.org/Device_Tree_Compiler" + +LICENSE="GPL-2" +SLOT="0" +IUSE="static-libs" + +RDEPEND="" +DEPEND="app-arch/xz-utils + sys-devel/flex + sys-devel/bison" + +src_prepare() { + sed -i \ + -e '/^CFLAGS =/s:=:+=:' \ + -e '/^CPPFLAGS =/s:=:+=:' \ + -e 's:-Werror::' \ + -e 's:-g -Os::' \ + -e "/^PREFIX =/s:=.*:= ${EPREFIX}/usr:" \ + -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \ + Makefile || die + tc-export AR CC + export V=1 +} + +src_test() { + emake check +} + +src_install() { + emake DESTDIR="${D}" install + use static-libs || find "${ED}" -name '*.a' -delete + dodoc Documentation/manual.txt +} diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild new file mode 100644 index 000000000000..7550c05bc8b8 --- /dev/null +++ b/sys-apps/dtc/dtc-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit multilib toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/dtc/dtc.git" + inherit git-2 +else + SRC_URI="mirror://kernel/software/utils/${PN}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="Open Firmware device tree compiler" +HOMEPAGE="http://devicetree.org/Device_Tree_Compiler" + +LICENSE="GPL-2" +SLOT="0" +IUSE="static-libs" + +RDEPEND="" +DEPEND="app-arch/xz-utils + sys-devel/flex + sys-devel/bison" + +src_prepare() { + sed -i \ + -e '/^CFLAGS =/s:=:+=:' \ + -e '/^CPPFLAGS =/s:=:+=:' \ + -e 's:-Werror::' \ + -e 's:-g -Os::' \ + -e "/^PREFIX =/s:=.*:= ${EPREFIX}/usr:" \ + -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \ + Makefile || die + tc-export AR CC + export V=1 +} + +src_test() { + emake check +} + +src_install() { + emake DESTDIR="${D}" install + use static-libs || find "${ED}" -name '*.a' -delete + dodoc Documentation/manual.txt +} diff --git a/sys-apps/dtc/files/dtc-1.3.0-fdtdump.patch b/sys-apps/dtc/files/dtc-1.3.0-fdtdump.patch new file mode 100644 index 000000000000..0bb1c8c88742 --- /dev/null +++ b/sys-apps/dtc/files/dtc-1.3.0-fdtdump.patch @@ -0,0 +1,118 @@ +https://bugs.gentoo.org/372895 + +From 8f459c5d72673e1a3a119ac58a7eee56236fca73 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Tue, 25 Oct 2011 17:29:24 -0400 +Subject: [PATCH] fdtdump: rename from ftdump + +The freetype package already installs a binary named "ftdump", so the dtc +package conflicts with that. So rename the newer dtc tool to "fdtdump". +This even makes a bit more sense: + ftdump: [F]lat device [T]ree [dump] + fdtdump: [F]lat [D]evice [T]ree [dump] + +Signed-off-by: Mike Frysinger +Acked-by: David Gibson +--- + .gitignore | 2 +- + Documentation/manual.txt | 10 +++++----- + Makefile | 6 +++--- + Makefile.utils | 6 +++--- + ftdump.c => fdtdump.c | 2 +- + 5 files changed, 13 insertions(+), 13 deletions(-) + rename ftdump.c => fdtdump.c (97%) + +diff --git a/Documentation/manual.txt b/Documentation/manual.txt +index f8a8a7b..14508f3 100644 +--- a/Documentation/manual.txt ++++ b/Documentation/manual.txt +@@ -21,7 +21,7 @@ III - libfdt + + IV - Utility Tools + 1) convert-dtsv0 -- Conversion to Version 1 +- 1) ftdump ++ 1) fdtdump + + + I - "dtc", the device tree compiler +@@ -643,10 +643,10 @@ a new file with a "v1" appended the filename. + Comments, empty lines, etc. are preserved. + + +-2) ftdump -- Flat Tree dumping utility ++2) fdtdump -- Flat Device Tree dumping utility + +-The ftdump program prints a readable version of a flat device tree file. ++The fdtdump program prints a readable version of a flat device tree file. + +-The syntax of the ftdump command line is: ++The syntax of the fdtdump command line is: + +- ftdump ++ fdtdump +diff --git a/Makefile b/Makefile +index b32409b..4582f5d 100644 +--- a/Makefile ++++ b/Makefile +@@ -109,7 +109,7 @@ include Makefile.utils + + BIN += convert-dtsv0 + BIN += dtc +-BIN += ftdump ++BIN += fdtdump + + SCRIPTS = dtdiff + +@@ -119,7 +119,7 @@ all: $(BIN) libfdt + ifneq ($(DEPTARGETS),) + -include $(DTC_OBJS:%.o=%.d) + -include $(CONVERT_OBJS:%.o=%.d) +--include $(FTDUMP_OBJS:%.o=%.d) ++-include $(FDTDUMP_OBJS:%.o=%.d) + endif + + +@@ -178,7 +178,7 @@ convert-dtsv0: $(CONVERT_OBJS) + @$(VECHO) LD $@ + $(LINK.c) -o $@ $^ + +-ftdump: $(FTDUMP_OBJS) ++fdtdump: $(FDTDUMP_OBJS) + + + # +diff --git a/Makefile.utils b/Makefile.utils +index 0ed9297..fae5b00 100644 +--- a/Makefile.ftdump ++++ b/Makefile.ftdump +@@ -4,8 +4,8 @@ + # into other systems of Makefiles. + # + +-FTDUMP_SRCS = \ +- ftdump.c ++FDTDUMP_SRCS = \ ++ fdtdump.c + +-FTDUMP_GEN_SRCS = ++FDTDUMP_GEN_SRCS = + +-FTDUMP_OBJS = $(FTDUMP_SRCS:%.c=%.o) $(FTDUMP_GEN_SRCS:%.c=%.o) ++FDTDUMP_OBJS = $(FDTDUMP_SRCS:%.c=%.o) $(FDTDUMP_GEN_SRCS:%.c=%.o) +diff --git a/ftdump.c b/fdtdump.c +similarity index 97% +rename from ftdump.c +rename to fdtdump.c +index cc55fe2..207a46d 100644 +--- a/ftdump.c ++++ b/fdtdump.c +@@ -1,5 +1,5 @@ + /* +- * ftdump.c - Contributed by Pantelis Antoniou ++ * fdtdump.c - Contributed by Pantelis Antoniou + */ + + #include +-- +1.7.12.4 + diff --git a/sys-apps/dtc/files/dtc-1.4.1-echo-n.patch b/sys-apps/dtc/files/dtc-1.4.1-echo-n.patch new file mode 100644 index 000000000000..cd45b952a49e --- /dev/null +++ b/sys-apps/dtc/files/dtc-1.4.1-echo-n.patch @@ -0,0 +1,95 @@ +From ed3d76cd1c8f91f5e86424e899448d6221b0f76c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Wed, 6 May 2015 01:53:39 -0400 +Subject: [PATCH] tests: convert `echo -n` to `printf` + +The -n option is not standard in POSIX, so convert to printf which should +work the same in every shell. + +Signed-off-by: Mike Frysinger +--- + tests/run_tests.sh | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/tests/run_tests.sh b/tests/run_tests.sh +index c870432..0dda54a 100755 +--- a/tests/run_tests.sh ++++ b/tests/run_tests.sh +@@ -42,20 +42,20 @@ base_run_test() { + + shorten_echo () { + limit=32 +- echo -n "$1" ++ printf "$1" + shift + for x; do + if [ ${#x} -le $limit ]; then +- echo -n " $x" ++ printf " $x" + else + short=$(echo "$x" | head -c$limit) +- echo -n " \"$short\"...<${#x} bytes>" ++ printf " \"$short\"...<${#x} bytes>" + fi + done + } + + run_test () { +- echo -n "$@: " ++ printf "$@: " + if [ -n "$VALGRIND" -a -f $1.supp ]; then + VGSUPP="--suppressions=$1.supp" + fi +@@ -63,7 +63,7 @@ run_test () { + } + + run_sh_test () { +- echo -n "$@: " ++ printf "$@: " + base_run_test sh "$@" + } + +@@ -106,12 +106,12 @@ wrap_error () { + + run_wrap_error_test () { + shorten_echo "$@" +- echo -n " {!= 0}: " ++ printf " {!= 0}: " + base_run_test wrap_error "$@" + } + + run_dtc_test () { +- echo -n "dtc $@: " ++ printf "dtc $@: " + base_run_test wrap_test $VALGRIND $DTC "$@" + } + +@@ -126,7 +126,7 @@ asm_to_so_test () { + run_fdtget_test () { + expect="$1" + shift +- echo -n "fdtget-runtest.sh "$expect" $@: " ++ printf "fdtget-runtest.sh "$expect" $@: " + base_run_test sh fdtget-runtest.sh "$expect" "$@" + } + +@@ -134,14 +134,14 @@ run_fdtput_test () { + expect="$1" + shift + shorten_echo fdtput-runtest.sh "$expect" "$@" +- echo -n ": " ++ printf ": " + base_run_test sh fdtput-runtest.sh "$expect" "$@" + } + + run_fdtdump_test() { + file="$1" + shorten_echo fdtdump-runtest.sh "$file" +- echo -n ": " ++ printf ": " + base_run_test sh fdtdump-runtest.sh "$file" + } + +-- +2.4.0 + diff --git a/sys-apps/dtc/files/dtc-1.4.1-missing-syms.patch b/sys-apps/dtc/files/dtc-1.4.1-missing-syms.patch new file mode 100644 index 000000000000..7057be7bd8ac --- /dev/null +++ b/sys-apps/dtc/files/dtc-1.4.1-missing-syms.patch @@ -0,0 +1,30 @@ +From a4b093f7366fdb429ca1781144d3985fa50d0fbb Mon Sep 17 00:00:00 2001 +From: Julien Grall +Date: Tue, 17 Mar 2015 16:00:34 +0000 +Subject: [PATCH] libfdt: Add missing functions to shared library + +The commit 4e76ec7 "libfdt: Add fdt_next_subnode() to permit easy +subnode iteration" adds new functions (fdt_{first,next}_subnode) but +forgot to mark them as 'global' in the shared library. + +Signed-off-by: Julien Grall +--- + libfdt/version.lds | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libfdt/version.lds b/libfdt/version.lds +index 80b322b..941208e 100644 +--- a/libfdt/version.lds ++++ b/libfdt/version.lds +@@ -54,6 +54,8 @@ LIBFDT_1.2 { + fdt_get_property_by_offset; + fdt_getprop_by_offset; + fdt_next_property_offset; ++ fdt_first_subnode; ++ fdt_next_subnode; + + local: + *; +-- +2.4.0 + diff --git a/sys-apps/dtc/metadata.xml b/sys-apps/dtc/metadata.xml new file mode 100644 index 000000000000..ccba990cce68 --- /dev/null +++ b/sys-apps/dtc/metadata.xml @@ -0,0 +1,8 @@ + + + +ppc64 + + lu_zero@gentoo.org + + diff --git a/sys-apps/ed/Manifest b/sys-apps/ed/Manifest new file mode 100644 index 000000000000..098f79c08eac --- /dev/null +++ b/sys-apps/ed/Manifest @@ -0,0 +1,3 @@ +DIST ed-1.10.tar.lz 63717 SHA256 9540092c12309b2f4a294fdb8f5bd25f1ad5906a627518486e7733576a637e9a SHA512 b9c59de852609930d2a872f3d9af9ac12be8e80f3d2af49e3626cd909ba46ed4a4260844c636562cd479c5529a116055705260327f61304d8eaf88db6a60059a WHIRLPOOL 7130abba638202e06e078b9e60c9f83e6216fc0cd73891df08eda4a06044b9783a8f974b70dfb8452bdbc7c090bea3776c45b743e7a05bf9988197b51de729d8 +DIST ed-1.11.tar.gz 88303 SHA256 141dba3311e6295898d1b64e86263e40b8e85e3ab4ee4954859a3d3017511041 SHA512 09d86be3442a2e7eba0d1a008752a988324d3fa3e7870c3fffb00cb96f3433b3af3506105a1a6bc97a66754d994f6613c7a233417a4ddc32129adab055ad46b0 WHIRLPOOL 79fcb5436d0bcf9899a9af2abe3911000af136ff28e296ad9c26bf9717bf31f97a843700093baf598f4b5ed892f4a4cdfd2179381fcc4ecd53a55094877f7344 +DIST ed-1.12.tar.gz 87974 SHA256 f2c126d6ec1e5ccfccba05c749d6adf45e84011523ff0c31f595ad41ba892c84 SHA512 546a60e53b45c6416e91239a672e97ee9ce499e4c6d998e278a3870364da0b312e9d3fe681b1c11783d1f3342449502f3ac4d9eb3172c5e7c3b202d82fcb5989 WHIRLPOOL 6d94863786a06f508285ff7e4ca1dbf581a70a109359c101efefe22f070cb3bab46b16bea6110ed9d3894ccdab815ba8b3ff1119ccfe0cf6ea3257e1d27f0980 diff --git a/sys-apps/ed/ed-1.10.ebuild b/sys-apps/ed/ed-1.10.ebuild new file mode 100644 index 000000000000..241de6ff4df7 --- /dev/null +++ b/sys-apps/ed/ed-1.10.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs unpacker + +DESCRIPTION="Your basic line editor" +HOMEPAGE="http://www.gnu.org/software/ed/" +SRC_URI="mirror://gnu/ed/${P}.tar.lz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="$(unpacker_src_uri_depends) + sys-apps/texinfo" +RDEPEND="" + +src_configure() { + # Upstream configure script is moronic. + econf \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${CFLAGS} ${LDFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + --bindir="${EPREFIX}/bin" +} diff --git a/sys-apps/ed/ed-1.11.ebuild b/sys-apps/ed/ed-1.11.ebuild new file mode 100644 index 000000000000..206311ba7d47 --- /dev/null +++ b/sys-apps/ed/ed-1.11.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="Your basic line editor" +HOMEPAGE="http://www.gnu.org/software/ed/" +#SRC_URI="mirror://gnu/ed/${P}.tar.lz" +# Using gzip instead -- the filesize diff is small and lzip uncommon #545344 +SRC_URI="http://fossies.org/linux/privat/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="sys-apps/texinfo" +RDEPEND="" + +src_configure() { + # Upstream configure script is moronic. + econf \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${CFLAGS} ${LDFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + --bindir="${EPREFIX}/bin" +} diff --git a/sys-apps/ed/ed-1.12.ebuild b/sys-apps/ed/ed-1.12.ebuild new file mode 100644 index 000000000000..206311ba7d47 --- /dev/null +++ b/sys-apps/ed/ed-1.12.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="Your basic line editor" +HOMEPAGE="http://www.gnu.org/software/ed/" +#SRC_URI="mirror://gnu/ed/${P}.tar.lz" +# Using gzip instead -- the filesize diff is small and lzip uncommon #545344 +SRC_URI="http://fossies.org/linux/privat/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND="sys-apps/texinfo" +RDEPEND="" + +src_configure() { + # Upstream configure script is moronic. + econf \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${CFLAGS} ${LDFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + --bindir="${EPREFIX}/bin" +} diff --git a/sys-apps/ed/files/ed-1.5-build.patch b/sys-apps/ed/files/ed-1.5-build.patch new file mode 100644 index 000000000000..83ee9c20cfb6 --- /dev/null +++ b/sys-apps/ed/files/ed-1.5-build.patch @@ -0,0 +1,32 @@ +http://lists.gnu.org/archive/html/bug-ed/2008-12/msg00001.html + +2007-04-16 Mike Frysinger + + * Do not set CC/CXX/CPPFLAGS/LDFLAGS to "" so that user can + override if they so choose. + * Only set CFLAGS/CXXFLAGS if user did not specify any. + +--- ed-1.0/configure ++++ ed-1.0/configure +@@ -26,10 +26,6 @@ + mandir='$(datadir)/man' + sysconfdir='$(prefix)/etc' + program_prefix= +-CC= +-CPPFLAGS= +-CFLAGS='-Wall -W -O2' +-LDFLAGS= + + # Loop over all args + while [ -n "$1" ] ; do +@@ -105,6 +101,10 @@ + esac + done + ++# Defaults if the user did not select any ++if [ x"${CFLAGS+set}" != xset ] ; then ++ CFLAGS='-Wall -W -O2' ++fi + # Find the source files, if location was not specified. + srcdirtext= + if [ -z "${srcdir}" ] ; then diff --git a/sys-apps/ed/metadata.xml b/sys-apps/ed/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/ed/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/edac-utils/Manifest b/sys-apps/edac-utils/Manifest new file mode 100644 index 000000000000..64f13b635f4e --- /dev/null +++ b/sys-apps/edac-utils/Manifest @@ -0,0 +1 @@ +DIST edac-utils-0.18.tar.gz 285909 SHA256 2a027dbde6c3095807c9fbfa0025bedad38fc839e9967707c1986089ff4c8750 SHA512 5c81b11c28e8fb3198f2d656171493877393024d9e31233c252d358d8029aa83065e7b66ea87d742518f710466c9ba7dfcf57a1641374ce169cf95fd379101fa WHIRLPOOL e7af26138378e784c36c43d85b0d2449b5d5606d217dc8bc217f0720effb0fd6d5c4ab5b933e3e38cfadd5e5e51b47559d1a947bcc3df2ec8c8138eec7507b58 diff --git a/sys-apps/edac-utils/edac-utils-0.18.ebuild b/sys-apps/edac-utils/edac-utils-0.18.ebuild new file mode 100644 index 000000000000..9229f96e9564 --- /dev/null +++ b/sys-apps/edac-utils/edac-utils-0.18.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Userspace helper for Linux kernel EDAC drivers" +HOMEPAGE="https://github.com/grondo/edac-utils" +SRC_URI="https://github.com/grondo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64" +IUSE="debug" + +DEPEND="sys-fs/sysfsutils" +RDEPEND="${DEPEND} + sys-apps/dmidecode" + +src_configure() { + econf \ + --disable-static \ + $(use_enable debug) +} + +src_install() { + default + + # We don't need this init.d file + # Modules should be loaded by adding them to /etc/conf.d/modules + # The rest is done via the udev-rule + rm -rf "${D}/etc/init.d" + + prune_libtool_files +} + +pkg_postinst() { + elog "There must be an entry for your mainboard in /etc/edac/labels.db" + elog "in case you want nice labels in /sys/module/*_edac/" + elog "Run the following command to check whether such an entry is already available:" + elog " edac-ctl --print-labels" +} diff --git a/sys-apps/edac-utils/metadata.xml b/sys-apps/edac-utils/metadata.xml new file mode 100644 index 000000000000..1e6fed43bcf5 --- /dev/null +++ b/sys-apps/edac-utils/metadata.xml @@ -0,0 +1,11 @@ + + + + + dev-zero@gentoo.org + Tiziano Müller + + + grondo/edac-utils + + diff --git a/sys-apps/elfix/Manifest b/sys-apps/elfix/Manifest new file mode 100644 index 000000000000..71ba474647dc --- /dev/null +++ b/sys-apps/elfix/Manifest @@ -0,0 +1,2 @@ +DIST elfix-0.8.4.tar.gz 374742 SHA256 374be66da3dddef485bbb5e95bfcab6fd0c2db478255bddd10079730ada5260b SHA512 10aacc3fff33c934e2d4487d174a2b0cec10ffb7a35fc72b160c786f82f0355f3a2dea716bc7fb929d2919cc32a26844f37f9d73064b755098bdaa72e8075bda WHIRLPOOL b04e099f188c0b76d8c07abd76559c1313854aa83a03ad69afb72674d93cde6ce538ae10d0fea3be5495937e72a4b98fdd36efbb2e3aa8ff23c1d9f7f943c1ae +DIST elfix-0.9.0.tar.gz 372014 SHA256 8b547d987edb2f7dc23ddf30f959d7d051a9ed49810f983b8fe6c489fe731cf0 SHA512 fd9bab90d745f77429c902acd2a14f615132731b3c38929dce764f1e5f7ee8f6478a6fef7ce0cb38e7ebd9181ba57965ff0c97da5e01d0fbf2cfb940ed691ebf WHIRLPOOL c09fa2193b990a506cae17f370ec10fa6302e17d2a165e42eceb88644f8a92e297c839ad788204e213d8205695b65557a7dcef5f6417177c434c8d0a34bd5eb7 diff --git a/sys-apps/elfix/elfix-0.8.4.ebuild b/sys-apps/elfix/elfix-0.8.4.ebuild new file mode 100644 index 000000000000..15bc8083ce0d --- /dev/null +++ b/sys-apps/elfix/elfix-0.8.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="A suite of tools to work with ELF objects on Hardened Gentoo" +HOMEPAGE="http://www.gentoo.org/proj/en/hardened/pax-quickstart.xml + http://dev.gentoo.org/~blueness/elfix/" +SRC_URI="http://dev.gentoo.org/~blueness/elfix/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="+ptpax +xtpax" + +REQUIRED_USE="|| ( ptpax xtpax )" + +# These only work with a properly configured PaX kernel +RESTRICT="test" + +DEPEND="~dev-python/pypax-${PV}[ptpax=,xtpax=] + ptpax? ( dev-libs/elfutils ) + xtpax? ( sys-apps/attr )" + +RDEPEND="${DEPEND}" + +src_configure() { + rm -f "${S}/scripts/setup.py" + econf --disable-tests \ + $(use_enable ptpax) \ + $(use_enable xtpax) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS ChangeLog INSTALL README THANKS TODO +} diff --git a/sys-apps/elfix/elfix-0.9.0-r1.ebuild b/sys-apps/elfix/elfix-0.9.0-r1.ebuild new file mode 100644 index 000000000000..38150a85e180 --- /dev/null +++ b/sys-apps/elfix/elfix-0.9.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils + +DESCRIPTION="A suite of tools to work with ELF objects on Hardened Gentoo" +HOMEPAGE="http://www.gentoo.org/proj/en/hardened/pax-quickstart.xml + http://dev.gentoo.org/~blueness/elfix/" +SRC_URI="http://dev.gentoo.org/~blueness/elfix/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="+ptpax +xtpax" + +REQUIRED_USE="|| ( ptpax xtpax )" + +# These only work with a properly configured PaX kernel +RESTRICT="test" + +DEPEND="~dev-python/pypax-${PV}[ptpax=,xtpax=] + ptpax? ( dev-libs/elfutils ) + xtpax? ( sys-apps/attr )" + +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-backport-fix-paxmark_sh.patch + epatch "${FILESDIR}"/${P}-backport-fix-revdep-pax.patch +} + +src_configure() { + rm -f "${S}/scripts/setup.py" + econf --disable-tests \ + $(use_enable ptpax) \ + $(use_enable xtpax) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS ChangeLog INSTALL README THANKS TODO +} diff --git a/sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch b/sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch new file mode 100644 index 000000000000..86be00ee46c2 --- /dev/null +++ b/sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch @@ -0,0 +1,57 @@ +From 84ca11706f804d6c808d932700a90cc8eaab2f15 Mon Sep 17 00:00:00 2001 +From: "Anthony G. Basile" +Date: Sun, 21 Dec 2014 10:37:00 -0500 +Subject: [PATCH 1/2] scripts/paxmark.sh: source make.conf and properly set + PAX_MARKINGS + +--- + ChangeLog | 6 ++++++ + scripts/paxmark.sh | 6 +++--- + 2 files changed, 9 insertions(+), 3 deletions(-) + +diff --git a/ChangeLog b/ChangeLog +index f64e57a..d9993b1 100644 +--- a/ChangeLog ++++ b/ChangeLog +@@ -1,3 +1,9 @@ ++2014-12-22 ++ ++ * scripts/paxmark.sh: remove erroneous elog functions ++ * scripts/paxmark.sh: source /etc/portage/make.conf for PAX_MARKINGS ++ and correct logic to default to PT only if no PAX_MARKINGS are set. ++ Reported by Karl-Johan Karlsson + + 2014-10-03 + +diff --git a/scripts/paxmark.sh b/scripts/paxmark.sh +index 9ec077a..408e6aa 100755 +--- a/scripts/paxmark.sh ++++ b/scripts/paxmark.sh +@@ -53,7 +53,6 @@ paxmarksh() { + scanelf -Xxz ${flags} "$f" >/dev/null 2>&1 + #We failed to set PT_PAX flags + elif [[ ${PAX_MARKINGS} != "none" ]]; then +- elog "Failed to set PT_PAX markings -${flags} ${f}." + ret=1 + fi + done +@@ -79,7 +78,6 @@ paxmarksh() { + + #We failed to set XATTR_PAX flags + if [[ ${PAX_MARKINGS} != "none" ]]; then +- elog "Failed to set XATTR_PAX markings -${flags} ${f}." + ret=1 + fi + done +@@ -88,5 +86,7 @@ paxmarksh() { + return ${ret} + } + +-PAX_MARKINGS=${PAX_MARKINGS:="PT XT"} ++MAKE_CONF="/etc/portage/make.conf" ++[[ -e $MAKE_CONF ]] && source $MAKE_CONF ++PAX_MARKINGS=${PAX_MARKINGS:="PT"} + paxmarksh "$@" +-- +2.0.5 + diff --git a/sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch b/sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch new file mode 100644 index 000000000000..e92769eece76 --- /dev/null +++ b/sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch @@ -0,0 +1,25 @@ +From 581b53b3c1ca3166dc394d1f4b08260bd088c346 Mon Sep 17 00:00:00 2001 +From: "Anthony G. Basile" +Date: Mon, 22 Dec 2014 12:30:12 -0500 +Subject: [PATCH 2/2] scripts/revdep-pax: change .get_maps() to .get_graph() + +--- + scripts/revdep-pax | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/revdep-pax b/scripts/revdep-pax +index a718fd6..7c1cf85 100755 +--- a/scripts/revdep-pax ++++ b/scripts/revdep-pax +@@ -465,7 +465,7 @@ def run_soname(name, verbose, use_soname, mark, allyes, executable_only): + shell_path = os.getenv('PATH').split(':') + + (object_linkings, object_reverse_linkings, +- library2soname, soname2library) = LinkGraph().get_maps() ++ library2soname, soname2library) = LinkGraph().get_graph() + + if use_soname: + soname = name +-- +2.0.5 + diff --git a/sys-apps/elfix/metadata.xml b/sys-apps/elfix/metadata.xml new file mode 100644 index 000000000000..870245044b50 --- /dev/null +++ b/sys-apps/elfix/metadata.xml @@ -0,0 +1,13 @@ + + + + hardened + + blueness@gentoo.org + Anthony G. Basile + + + Enable XATTR_PAX_FLAGS support. + Enable PT_PAX_FLAGS support. + + diff --git a/sys-apps/entropy-server/Manifest b/sys-apps/entropy-server/Manifest new file mode 100644 index 000000000000..520d012e476c --- /dev/null +++ b/sys-apps/entropy-server/Manifest @@ -0,0 +1 @@ +DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5 diff --git a/sys-apps/entropy-server/entropy-server-254.ebuild b/sys-apps/entropy-server/entropy-server-254.ebuild new file mode 100644 index 000000000000..8a90ea005fc1 --- /dev/null +++ b/sys-apps/entropy-server/entropy-server-254.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 bash-completion-r1 + +DESCRIPTION="Entropy Package Manager server-side tools" +HOMEPAGE="http://www.sabayon.org" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+matter" + +SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2" + +S="${WORKDIR}/entropy-${PV}/server" + +RDEPEND="~sys-apps/entropy-${PV}[${PYTHON_USEDEP}] + matter? ( ~app-admin/matter-${PV}[entropy] ) + ${PYTHON_DEPS} + " +DEPEND="app-text/asciidoc" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + newbashcomp "${S}/eit-completion.bash" eit + + python_optimize "${D}/usr/lib/entropy/server" +} diff --git a/sys-apps/entropy-server/metadata.xml b/sys-apps/entropy-server/metadata.xml new file mode 100644 index 000000000000..7a9ce413fd0d --- /dev/null +++ b/sys-apps/entropy-server/metadata.xml @@ -0,0 +1,12 @@ + + + + + lxnay@gentoo.org + Fabio Erculiani + + + Pull in app-admin/matter + + + diff --git a/sys-apps/entropy/Manifest b/sys-apps/entropy/Manifest new file mode 100644 index 000000000000..520d012e476c --- /dev/null +++ b/sys-apps/entropy/Manifest @@ -0,0 +1 @@ +DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5 diff --git a/sys-apps/entropy/entropy-254.ebuild b/sys-apps/entropy/entropy-254.ebuild new file mode 100644 index 000000000000..4fe9e8d7b03a --- /dev/null +++ b/sys-apps/entropy/entropy-254.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit eutils python-single-r1 user + +DESCRIPTION="Entropy Package Manager foundation library" +HOMEPAGE="http://www.sabayon.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86" + +IUSE="" +SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2" + +RDEPEND=">=app-misc/pax-utils-0.7 + dev-db/sqlite:3[soundex(+)] + net-misc/rsync + sys-apps/diffutils + sys-apps/sandbox + >=sys-apps/portage-2.1.9[${PYTHON_USEDEP}] + sys-devel/gettext + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + dev-util/intltool" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +S="${S}/lib" + +REPO_CONFPATH="${ROOT}/etc/entropy/repositories.conf" +REPO_D_CONFPATH="${ROOT}/etc/entropy/repositories.conf.d" +ENTROPY_CACHEDIR="${ROOT}/var/lib/entropy/caches" + +pkg_setup() { + python-single-r1_pkg_setup + # Can: + # - update repos + # - update security advisories + # - handle on-disk cache (atm) + enewgroup entropy || die "failed to create entropy group" + # Create unprivileged entropy user + enewgroup entropy-nopriv || die "failed to create entropy-nopriv group" + enewuser entropy-nopriv -1 -1 -1 entropy-nopriv || die "failed to create entropy-nopriv user" +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="usr/lib" install || die "make install failed" + + python_optimize "${D}/usr/lib/entropy/lib/entropy" +} + +pkg_postinst() { + for ex_conf in "${REPO_D_CONFPATH}"/_entropy_sabayon-limbo.example; do + real_conf="${ex_conf%.example}" + if [ -f "${real_conf}" ] || [ -f "${real_conf/_}" ]; then + # skip installation then + continue + fi + elog "Installing: ${real_conf}" + cp "${ex_conf}" "${real_conf}" -p + done + + # Copy config file over + if [ -f "${REPO_CONFPATH}.example" ] && [ ! -f "${REPO_CONFPATH}" ]; then + elog "Copying ${REPO_CONFPATH}.example over to ${REPO_CONFPATH}" + cp "${REPO_CONFPATH}.example" "${REPO_CONFPATH}" -p + fi + + if [ -d "${ENTROPY_CACHEDIR}" ]; then + einfo "Purging current Entropy cache" + rm -rf "${ENTROPY_CACHEDIR}"/* + fi + + # Fixup Entropy Resources Lock, and /etc/entropy/packages + # files permissions. This fixes unprivileged Entropy Library usage + local res_file="${ROOT}"/var/lib/entropy/client/database/*/.using_resources + if [ -f "${res_file}" ]; then + chown root:entropy "${res_file}" + chmod g+rw "${res_file}" + chmod o+r "${res_file}" + fi + local pkg_files="package.mask package.unmask package.mask.d package.unmask.d" + local pkg_file + for pkg_file in ${pkg_files}; do + pkg_file="${ROOT}/etc/entropy/packages/${pkg_file}" + recursive="" + if [ -d "${pkg_file}" ]; then + recursive="-R" + fi + if [ -e "${pkg_file}" ]; then + chown ${recursive} root:entropy "${pkg_file}" + chmod ${recursive} go+r "${pkg_file}" + fi + done + + # Setup Entropy Library directories ownership + chown root:entropy "${ROOT}/var/lib/entropy" # no recursion + chown root:entropy "${ROOT}/var/lib/entropy/client/packages" # no recursion + chown root:entropy "${ROOT}/var/log/entropy" # no recursion + + echo + elog "If you want to enable Entropy packages delta download support, please" + elog "install dev-util/bsdiff." + echo +} diff --git a/sys-apps/entropy/metadata.xml b/sys-apps/entropy/metadata.xml new file mode 100644 index 000000000000..187f7a710efe --- /dev/null +++ b/sys-apps/entropy/metadata.xml @@ -0,0 +1,11 @@ + + + + + lxnay@gentoo.org + Fabio Erculiani + + + + + diff --git a/sys-apps/epoch/Manifest b/sys-apps/epoch/Manifest new file mode 100644 index 000000000000..ee8d4bb3ccb6 --- /dev/null +++ b/sys-apps/epoch/Manifest @@ -0,0 +1,8 @@ +DIST epoch-1.0.1.tar.gz 63180 SHA256 40bc17c6d1efcbd709489bcb4920595dde7c4dce49a027487453740eef6a8d8f SHA512 6b2532e86b489eb9e192194bb3d59edd2383e99ceea0bd09c60b64783260171540921a20cf235dd086423d16110b6bbd9974f134c28205635934f1700835d86c WHIRLPOOL 436a11beb0c0ede496ce4ffbf49600e5713962690691c8deb26082f5ff2faea9f5210917ddeca86d1d75e05187fefc39073d4db68144723e2f6d29a7f3980aeb +DIST epoch-1.0.tar.gz 62623 SHA256 32d858de4c9a5f0996a0561b46dda72e3ac3744a2c65bf6006bb9f8d4aec9e2c SHA512 6d174d6065472c24516d7cbcbd84e51abbec4c062354d6caaf736e167f0a17db5c1c757d5e73222551b26b75aec6649933d55052c831bbabd9bdfd11014ccd5e WHIRLPOOL 6028f6f53d1fdabf360cc2a28542affa8385952009ee44e5855f46b3588654741ed553aa1e9f8275b0cd90b212a9f4bc0f125f57270bbfa5ece9538c4a36acda +DIST epoch-1.0_rc1.tar.gz 50606 SHA256 074b39766b51a3b59ea4cb9673db3b3ad35e425f2aecf6b5ff880d2651aff7e9 SHA512 cbf8fad0657061b06fa19ae03e666d71fa8a8afab57cf6202570d3b6093f1a5c09aa40dda9798be1dd3a64fc73ed88474b974c98283533f1a1a67f0e6010b6a8 WHIRLPOOL 915698cb9901e9e2d740d13a12e435964cf007d8bee5a8c73dba3c3188939e07a38f1075f88db0dbf761b43982e2a434a66ba42d4c85f82af6c634af4ac6473c +DIST epoch-1.0_rc2.tar.gz 54826 SHA256 740f32bbf5bae4daf78295c7f237bd4f11da5f9d77430b6bdbb7bea9a742a86b SHA512 f8a835cbcfd391d53f69a7e0ec97bbe3c63e5ae1d4abe19d48f419d131786fbcbc7959fe09059ffd753bfc573bf3b9b7f7ae84797bdf87d545f58289a5c7fcd1 WHIRLPOOL 4efbe5f34d27a1109999d2ad3675a9aa055209f11682f182c984c6f9619b992028e876565ace7e77b93cbcbbee53d96cb6a2a65dd7196e7931da1e5c3d8f4cd6 +DIST epoch-1.1.1.tar.gz 64969 SHA256 98a410ba66952bfc1c326fafd8ceeaf23262e3c3a9768cde4e80f208a37586b2 SHA512 0cfd8ee6c6b211d85d268ef8ac00a029ca4db4931077d81ec82478d7a56e84205f6c7712e58545369b9da2f99e93d99f7f29494c7be902b1f2c16574d6b7b431 WHIRLPOOL d32aaa494f107171ac2ce8cdc8f3349a3d905e2d600239e74221bed84ae65112fbe4344c33f2f4fb123db8478ed7740ab7e662b3fb9d8c262bc564fb1806d1ce +DIST epoch-1.2.0.tar.gz 66380 SHA256 26147efd855a157d6774111e8171deaa7ce0f8df34ea13910d88fef54bec4b6f SHA512 d017e9f7078bd10596212769a8927f93f0ceb8a34beaf39b7708632bce55f107aa49904de68cfb9ee7aefc40ba28a455a0aecfe7c1afe838bf9e4144ea65544a WHIRLPOOL d49ec73337816b86512757f5a07ca1fbc660bb315e7a997efa36f776806f001fe73e87af4dd0ce0d5a3ba1b8683d775d9783c83072990ffc4c4f9b48dc89d4e7 +DIST epoch-1.2.1.tar.gz 66718 SHA256 9ad6573ca71599f17cf6a567eef902cd1caadb5b5460764ae7bb4e16fa3a9423 SHA512 2d0c767165ec41452d1dabf338c8ea31772f1a8cd1e1dbd60c8469f2f235bb1f0cb60b467189f1fd1079dfc223b0687c1cfe5e729e1142ebc63323b1f9c0cf93 WHIRLPOOL 3c6382f6b2dfd0260f2a036403e995a7bca0b2ceb60a740c3294d736e091c6f9d21541f87a42019bfa25817135ea12bfaf59662ecd2eb85a1e126b9b2ad4c9d7 +DIST epoch_1.2.2.tar.gz 229377 SHA256 3c8bdc4e3ddcaf2410f2c6082cab61f0957dfacf5c14300dadc6c22afd5bca8b SHA512 9e3e38ef95c20237a3db4f47c9464f27e893a665f0692200d89e96b12f6b2e3af9b84d951356b7b354f19ea4fbe372e2e0ba406fdfeb8819914d46cfed3024a3 WHIRLPOOL 1235b63f15435ccdfaf451aca11bd7ab07bc1e0ea148c6430e4b896d7c5838966000c85fabcc03ed86e92a28b46814db80fea528881bce0aa8653af3492d1533 diff --git a/sys-apps/epoch/epoch-1.0.1.ebuild b/sys-apps/epoch/epoch-1.0.1.ebuild new file mode 100644 index 000000000000..65a09318efb2 --- /dev/null +++ b/sys-apps/epoch/epoch-1.0.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.0.ebuild b/sys-apps/epoch/epoch-1.0.ebuild new file mode 100644 index 000000000000..65a09318efb2 --- /dev/null +++ b/sys-apps/epoch/epoch-1.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.0_rc1.ebuild b/sys-apps/epoch/epoch-1.0_rc1.ebuild new file mode 100644 index 000000000000..fa2d19e3ebf5 --- /dev/null +++ b/sys-apps/epoch/epoch-1.0_rc1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${P}-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.0_rc2.ebuild b/sys-apps/epoch/epoch-1.0_rc2.ebuild new file mode 100644 index 000000000000..5610bec2df34 --- /dev/null +++ b/sys-apps/epoch/epoch-1.0_rc2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0_rc1-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.1.1.ebuild b/sys-apps/epoch/epoch-1.1.1.ebuild new file mode 100644 index 000000000000..65a09318efb2 --- /dev/null +++ b/sys-apps/epoch/epoch-1.1.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.2.0.ebuild b/sys-apps/epoch/epoch-1.2.0.ebuild new file mode 100644 index 000000000000..e6b06bfdd67f --- /dev/null +++ b/sys-apps/epoch/epoch-1.2.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.2.1.ebuild b/sys-apps/epoch/epoch-1.2.1.ebuild new file mode 100644 index 000000000000..af7b6bbbfaf7 --- /dev/null +++ b/sys-apps/epoch/epoch-1.2.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 arm x86" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.2.2.ebuild b/sys-apps/epoch/epoch-1.2.2.ebuild new file mode 100644 index 000000000000..6057021a6703 --- /dev/null +++ b/sys-apps/epoch/epoch-1.2.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="http://universe2.us/${PN}_${PV}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +S="${WORKDIR}/${PN}_${PV}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-9999.ebuild b/sys-apps/epoch/epoch-9999.ebuild new file mode 100644 index 000000000000..27c1d77c884d --- /dev/null +++ b/sys-apps/epoch/epoch-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils linux-info git-r3 + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +EGIT_REPO_URI="https://github.com/Subsentient/epoch.git" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch b/sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch new file mode 100644 index 000000000000..92842722225a --- /dev/null +++ b/sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch @@ -0,0 +1,10 @@ +--- a/buildepoch.sh ++++ b/buildepoch.sh +@@ -53,6 +53,6 @@ + } + +-NEED_EMPTY_CFLAGS="0" ++NEED_EMPTY_CFLAGS="1" + outdir="../built" + + if [ "$CC" == "" ]; then diff --git a/sys-apps/epoch/files/epoch-1.0_rc1-epoch.conf b/sys-apps/epoch/files/epoch-1.0_rc1-epoch.conf new file mode 100644 index 000000000000..e0550d48709c --- /dev/null +++ b/sys-apps/epoch/files/epoch-1.0_rc1-epoch.conf @@ -0,0 +1,77 @@ +BootBannerText=Welcome! +BootBannerColor=RED + +Hostname=FILE /etc/hostname +DefaultRunlevel=boot +EnableLogging=true +MountVirtual=procfs sysfs devpts+ devshm+ + +ObjectID=mountrun + ObjectDescription=Mounting /run + ObjectStartCommand=mount /run + ObjectStartPriority=1 + ObjectStopPriority=0 + ObjectEnabled=true + ObjectOptions=RAWDESCRIPTION + ObjectRunlevels=boot + +ObjectID=mounttmp + ObjectDescription=Mounting /tmp + ObjectStartCommand=mount /tmp + ObjectStartPriority=1 + ObjectStopPriority=0 + ObjectEnabled=true + ObjectOptions=RAWDESCRIPTION + ObjectRunlevels=boot + +ObjectID=rwfs + ObjectDescription=read-write support on / + ObjectStartCommand=/bin/mount -o remount,rw / + ObjectStopCommand=/bin/mount -o remount,ro / + ObjectStartPriority=2 + ObjectStopPriority=5 + ObjectEnabled=true + ObjectRunlevels=boot + +ObjectID=getty1 + ObjectDescription=agetty on /dev/tty1 + ObjectStartCommand=agetty --noclear tty1 & + ObjectStopCommand=NONE + ObjectStartPriority=3 + ObjectStopPriority=0 + ObjectEnabled=true + ObjectOptions=SERVICE AUTORESTART + ObjectRunlevels=boot + +ObjectID=extrafs + ObjectDescription=extra filesystems and swaps + ObjectStartCommand=mount -a && swapon -a + ObjectStopCommand=swapoff -a && umount -a -r -t nodevtmpfs,notmpfs,nosysfs,noproc + ObjectStartPriority=4 + ObjectStopPriority=4 + ObjectEnabled=true + ObjectRunlevels=boot + +ObjectID=killall5_soft + ObjectDescription=Terminating all processes + ObjectStopCommand=killall5 -15 && sleep 1 + ObjectStartPriority=0 + ObjectStopPriority=1 + ObjectEnabled=true + ObjectOptions=HALTONLY RAWDESCRIPTION + +ObjectID=sync + ObjectDescription=Syncing + ObjectStopCommand=/bin/sync + ObjectStartPriority=0 + ObjectStopPriority=2 + ObjectEnabled=true + ObjectOptions=HALTONLY RAWDESCRIPTION + +ObjectID=killall5 + ObjectDescription=Killing all processes + ObjectStopCommand=killall5 -9 && sleep 1 + ObjectStartPriority=0 + ObjectStopPriority=3 + ObjectEnabled=true + ObjectOptions=HALTONLY RAWDESCRIPTION diff --git a/sys-apps/epoch/files/epoch-1.0_rc1-fix-CFLAGS.patch b/sys-apps/epoch/files/epoch-1.0_rc1-fix-CFLAGS.patch new file mode 100644 index 000000000000..a603c565297f --- /dev/null +++ b/sys-apps/epoch/files/epoch-1.0_rc1-fix-CFLAGS.patch @@ -0,0 +1,11 @@ +--- a/buildepoch.sh ++++ b/buildepoch.sh +@@ -53,7 +53,7 @@ + } + + MEMBUS_SIZE_SET="0" +-NEED_EMPTY_CFLAGS="0" ++NEED_EMPTY_CFLAGS="1" + outdir="../built" + + if [ "$CC" == "" ]; then diff --git a/sys-apps/epoch/metadata.xml b/sys-apps/epoch/metadata.xml new file mode 100644 index 000000000000..85647838a974 --- /dev/null +++ b/sys-apps/epoch/metadata.xml @@ -0,0 +1,27 @@ + + + + + amynka@gentoo.org + + + alicef@gentoo.org + Alice Ferrazzi + + + Epoch is an init system (analogous to systemd or upstart) + for Linux by Subsentient. It is intended as a lightweight + solution for lightweight distributions + that don't want a huge mess just to boot up. + + It has one unified configuration file, is very small in size, + and it has no external dependencies besides glibc or similar, + and although installing a shell for /bin/sh is strongly recommended. + + + Subsentient/epoch + http://universe2.us/epochconfig.html + https://github.com/Subsentient/epoch/issues + https://github.com/Subsentient/epoch/commits/master + + diff --git a/sys-apps/etckeeper/Manifest b/sys-apps/etckeeper/Manifest new file mode 100644 index 000000000000..ab6ad43aeb2a --- /dev/null +++ b/sys-apps/etckeeper/Manifest @@ -0,0 +1,3 @@ +DIST etckeeper-1.11.tar.gz 48100 SHA256 a58b84af8307623f8c59acd6b161bf781909a1dac4b82853baa3098d47decabc SHA512 f9ae79dfee4d97195b0a40ef319d75242662b9717d0293ac9722a7728e22374b6425391e91076ab5e0e4524a16c211511a2857b867d3610ff5c6b2bc561c96a7 WHIRLPOOL 174b857dce5d4ecdb26a01e030c312f57aeb9d1db3eaede5ead4c7e3a08ce05695ca528d226ce1847d28eb14a7360990bb21bb777a710f3b56ab5594ffd01301 +DIST etckeeper-1.18.1.tar.gz 56366 SHA256 80adee6e17bfc41359ffb85a401d9a510ae25956950adbfdd07a0bda36d99e9b SHA512 5b5019d3f8c22ee0486c9102d7dbdc7e86921d432df49c15733e5ed23651c2be87b52e295208be691ef1e44a515d960fcf4f812eaca17f2806e2f5055222ca35 WHIRLPOOL 890b38f761f49a5a4713fa850bc18e09688ed8fb04d9b41f3727f868448fb1ba1ecf92750df777fc6011a3f88abeb8756105fbdc60ebf6fd3e693360764fb27c +DIST etckeeper-1.18.tar.gz 56203 SHA256 f9d9eedb2b66c4c40e16824e0899755226543b7c124756f5e0168353fc194d36 SHA512 439a3316b938fe78ab8f0032964ea62392098ca37043960995713f5ca698efb1df4e2c57177ebf3036ec1a8652157ecf990316fd68fd6376bb090b3f0bc42131 WHIRLPOOL 27998338d8bdd9cf32ba443b1cffd45e83b9ca77eb84fead4dfff9c1413425435b15b9be7f18360488ce149f2aba208041cd89f1d2d4b6f5bf8fc5e01130641a diff --git a/sys-apps/etckeeper/etckeeper-1.11-r1.ebuild b/sys-apps/etckeeper/etckeeper-1.11-r1.ebuild new file mode 100644 index 000000000000..cc387fe2fc9b --- /dev/null +++ b/sys-apps/etckeeper/etckeeper-1.11-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils bash-completion-r1 prefix python-r1 + +DESCRIPTION="A collection of tools to let /etc be stored in a repository" +HOMEPAGE="http://kitenet.net/~joey/code/etckeeper/" +SRC_URI="https://github.com/joeyh/etckeeper/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64 ~arm x86" +SLOT="0" +IUSE="bazaar cron" +REQUIRED_USE="bazaar? ( ${PYTHON_REQUIRED_USE} )" + +VCS_DEPEND="dev-vcs/git + dev-vcs/mercurial + dev-vcs/darcs" +DEPEND="bazaar? ( dev-vcs/bzr )" +RDEPEND="${DEPEND} + app-portage/portage-utils + cron? ( virtual/cron ) + bazaar? ( ${PYTHON_DEPS} ) + !bazaar? ( || ( ${VCS_DEPEND} ) )" + +src_prepare(){ + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_compile() { + : +} + +src_install(){ + emake DESTDIR="${ED}" install + + bzr_install() { + ${PYTHON} ./${PN}-bzr/__init__.py install --root="${ED}" || + die "bzr support installation failed!" + } + use bazaar && python_foreach_impl bzr_install + + if use prefix; then + doenvd "${FILESDIR}"/99${PN} + eprefixify "${ED%/}"/etc/env.d/99${PN} + fi + + newbashcomp bash_completion ${PN} + dodoc README TODO + docinto examples + dodoc "${FILESDIR}"/bashrc + + if use cron ; then + exeinto /etc/cron.daily + newexe debian/cron.daily etckeeper + fi +} + +pkg_postinst(){ + elog "${PN} supports the following VCS: ${VCS_DEPEND}" + elog " dev-vcs/bzr" + elog "This ebuild just ensures at least one is installed!" + elog "For dev-vcs/bzr you need to enable 'bazaar' useflag." + elog + elog "You may want to adjust your /etc/portage/bashrc" + elog "see the example file in /usr/share/doc/${PF}/examples" + elog + elog "To initialise your etc-dir as a repository run:" + elog "${PN} init -d /etc" +} diff --git a/sys-apps/etckeeper/etckeeper-1.18.1.ebuild b/sys-apps/etckeeper/etckeeper-1.18.1.ebuild new file mode 100644 index 000000000000..404763e640a3 --- /dev/null +++ b/sys-apps/etckeeper/etckeeper-1.18.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils bash-completion-r1 prefix python-r1 + +DESCRIPTION="A collection of tools to let /etc be stored in a repository" +HOMEPAGE="https://etckeeper.branchable.com/" +SRC_URI="https://github.com/joeyh/etckeeper/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~x86" +SLOT="0" +IUSE="bazaar cron" +REQUIRED_USE="bazaar? ( ${PYTHON_REQUIRED_USE} )" + +VCS_DEPEND="dev-vcs/git + dev-vcs/mercurial + dev-vcs/darcs" +DEPEND="bazaar? ( dev-vcs/bzr )" +RDEPEND="${DEPEND} + app-portage/portage-utils + cron? ( virtual/cron ) + bazaar? ( ${PYTHON_DEPS} ) + !bazaar? ( || ( ${VCS_DEPEND} ) )" + +src_prepare(){ + epatch "${FILESDIR}"/${PN}-1.18-gentoo.patch +} + +src_compile() { + : +} + +src_install(){ + emake DESTDIR="${ED}" install + + bzr_install() { + ${PYTHON} ./${PN}-bzr/__init__.py install --root="${ED}" || + die "bzr support installation failed!" + } + use bazaar && python_foreach_impl bzr_install + + if use prefix; then + doenvd "${FILESDIR}"/99${PN} + eprefixify "${ED%/}"/etc/env.d/99${PN} + fi + + newbashcomp bash_completion ${PN} + dodoc doc/README.mdwn + docinto examples + newdoc "${FILESDIR}"/bashrc-r1 bashrc + + if use cron ; then + exeinto /etc/cron.daily + newexe debian/cron.daily etckeeper + fi +} + +pkg_postinst(){ + elog "${PN} supports the following VCS: ${VCS_DEPEND}" + elog " dev-vcs/bzr" + elog "This ebuild just ensures at least one is installed!" + elog "For dev-vcs/bzr you need to enable 'bazaar' useflag." + elog + elog "You may want to adjust your /etc/portage/bashrc" + elog "see the example file in /usr/share/doc/${PF}/examples" + elog + elog "To initialise your etc-dir as a repository run:" + elog "${PN} init -d /etc" +} diff --git a/sys-apps/etckeeper/etckeeper-1.18.ebuild b/sys-apps/etckeeper/etckeeper-1.18.ebuild new file mode 100644 index 000000000000..7b310675edd7 --- /dev/null +++ b/sys-apps/etckeeper/etckeeper-1.18.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils bash-completion-r1 prefix python-r1 + +DESCRIPTION="A collection of tools to let /etc be stored in a repository" +HOMEPAGE="https://etckeeper.branchable.com/" +SRC_URI="https://github.com/joeyh/etckeeper/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~x86" +SLOT="0" +IUSE="bazaar cron" +REQUIRED_USE="bazaar? ( ${PYTHON_REQUIRED_USE} )" + +VCS_DEPEND="dev-vcs/git + dev-vcs/mercurial + dev-vcs/darcs" +DEPEND="bazaar? ( dev-vcs/bzr )" +RDEPEND="${DEPEND} + app-portage/portage-utils + cron? ( virtual/cron ) + bazaar? ( ${PYTHON_DEPS} ) + !bazaar? ( || ( ${VCS_DEPEND} ) )" + +src_prepare(){ + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_compile() { + : +} + +src_install(){ + emake DESTDIR="${ED}" install + + bzr_install() { + ${PYTHON} ./${PN}-bzr/__init__.py install --root="${ED}" || + die "bzr support installation failed!" + } + use bazaar && python_foreach_impl bzr_install + + if use prefix; then + doenvd "${FILESDIR}"/99${PN} + eprefixify "${ED%/}"/etc/env.d/99${PN} + fi + + newbashcomp bash_completion ${PN} + dodoc doc/README.mdwn + docinto examples + newdoc "${FILESDIR}"/bashrc-r1 bashrc + + if use cron ; then + exeinto /etc/cron.daily + newexe debian/cron.daily etckeeper + fi +} + +pkg_postinst(){ + elog "${PN} supports the following VCS: ${VCS_DEPEND}" + elog " dev-vcs/bzr" + elog "This ebuild just ensures at least one is installed!" + elog "For dev-vcs/bzr you need to enable 'bazaar' useflag." + elog + elog "You may want to adjust your /etc/portage/bashrc" + elog "see the example file in /usr/share/doc/${PF}/examples" + elog + elog "To initialise your etc-dir as a repository run:" + elog "${PN} init -d /etc" +} diff --git a/sys-apps/etckeeper/files/99etckeeper b/sys-apps/etckeeper/files/99etckeeper new file mode 100644 index 000000000000..9848af2d7713 --- /dev/null +++ b/sys-apps/etckeeper/files/99etckeeper @@ -0,0 +1 @@ +ETCKEEPER_CONF_DIR="@GENTOO_PORTAGE_EPREFIX@/etc/etckeeper" diff --git a/sys-apps/etckeeper/files/bashrc b/sys-apps/etckeeper/files/bashrc new file mode 100644 index 000000000000..ce53621a22ac --- /dev/null +++ b/sys-apps/etckeeper/files/bashrc @@ -0,0 +1,4 @@ +case "${EBUILD_PHASE}" in + preinst|prerm) etckeeper pre-install ;; + postinst|postrm) etckeeper post-install ;; +esac diff --git a/sys-apps/etckeeper/files/bashrc-r1 b/sys-apps/etckeeper/files/bashrc-r1 new file mode 100644 index 000000000000..f581790ecc85 --- /dev/null +++ b/sys-apps/etckeeper/files/bashrc-r1 @@ -0,0 +1,4 @@ +case "${EBUILD_PHASE}" in + setup|prerm) etckeeper pre-install ;; + postinst|postrm) etckeeper post-install ;; +esac diff --git a/sys-apps/etckeeper/files/etckeeper-1.11-gentoo.patch b/sys-apps/etckeeper/files/etckeeper-1.11-gentoo.patch new file mode 100644 index 000000000000..9ac14b9c8337 --- /dev/null +++ b/sys-apps/etckeeper/files/etckeeper-1.11-gentoo.patch @@ -0,0 +1,64 @@ +Original patch by Luke-Jr (luke-jr+gentoobugs@utopios.org) +Minor fixes by Manuel Rueger (mrueg@rueg.eu) + +https://bugs.gentoo.org/show_bug.cgi?id=216114 +Gentoo specific additions + +--- Makefile ++++ Makefile +@@ -23,7 +23,6 @@ + $(INSTALL_DATA) $(CONFFILE) $(DESTDIR)$(etcdir)/etckeeper/etckeeper.conf + $(INSTALL_EXE) etckeeper $(DESTDIR)$(bindir)/etckeeper + $(INSTALL_DATA) etckeeper.8 $(DESTDIR)$(mandir)/man8/etckeeper.8 +- $(INSTALL_DATA) bash_completion $(DESTDIR)$(etcdir)/bash_completion.d/etckeeper + ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt) + $(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper + mkdir -p $(DESTDIR)$(etcdir)/cruft/filters-unex +@@ -39,7 +37,6 @@ + ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),zypper) + $(INSTALL_DATA) zypper-etckeeper.py $(DESTDIR)$(prefix)/lib/zypp/plugins/commit/zypper-etckeeper.py + endif +- -./etckeeper-bzr/__init__.py install --root=$(DESTDIR) ${PYTHON_INSTALL_OPTS} || echo "** bzr support not installed" + echo "** installation successful" + + clean: etckeeper.spec +--- etckeeper.conf ++++ etckeeper.conf +@@ -31,11 +31,13 @@ + + # The high-level package manager that's being used. + # (apt, pacman-g2, yum, zypper etc) +-HIGHLEVEL_PACKAGE_MANAGER=apt ++# For gentoo this is emerge ++HIGHLEVEL_PACKAGE_MANAGER=emerge + + # The low-level package manager that's being used. + # (dpkg, rpm, pacman, pacman-g2, etc) +-LOWLEVEL_PACKAGE_MANAGER=dpkg ++# For gentoo this is qlist ++LOWLEVEL_PACKAGE_MANAGER=qlist + + # To push each commit to a remote, put the name of the remote here. + # (eg, "origin" for git). +--- list-installed.d/50list-installed ++++ list-installed.d/50list-installed +@@ -9,4 +9,6 @@ + rpm -qa --qf "%|epoch?{%{epoch}}:{0}|:%{name}-%{version}-%{release}.%{arch}\n" | sort + elif [ "$LOWLEVEL_PACKAGE_MANAGER" = pacman ]; then + pacman -Q ++elif [ "$LOWLEVEL_PACKAGE_MANAGER" = qlist ]; then ++ qlist -ICv + fi +--- update-ignore.d/01update-ignore ++++ update-ignore.d/01update-ignore +@@ -99,6 +99,10 @@ + ignore "*.pacorig" + ignore "*.pacsave" + nl ++ elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "qlist" ]; then ++ comment "new and old versions of conffiles, stored by emerge" ++ ignore "*._cfg*" ++ nl + fi + + comment "old versions of files" diff --git a/sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch b/sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch new file mode 100644 index 000000000000..a5018bd77d1a --- /dev/null +++ b/sys-apps/etckeeper/files/etckeeper-1.18-gentoo.patch @@ -0,0 +1,86 @@ +From 385d0e828d57e4998dd62fa34d5d929768fb894d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Manuel=20R=C3=BCger?= +Date: Sun, 12 Apr 2015 23:39:30 +0200 +Subject: [PATCH] Support Gentoo's package managers. + + +diff --git a/Makefile b/Makefile +index c95d51a..4be900e 100644 +--- a/Makefile ++++ b/Makefile +@@ -28,7 +28,6 @@ install: etckeeper.version + mkdir -p $(DESTDIR)$(mandir)/man8 + $(INSTALL_DATA) etckeeper.8 $(DESTDIR)$(mandir)/man8/etckeeper.8 + mkdir -p $(DESTDIR)$(etcdir)/bash_completion.d +- $(INSTALL_DATA) bash_completion $(DESTDIR)$(etcdir)/bash_completion.d/etckeeper + ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt) + mkdir -p $(DESTDIR)$(etcdir)/apt/apt.conf.d + $(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper +@@ -52,7 +51,6 @@ ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),zypper) + mkdir -p $(DESTDIR)$(prefix)/lib/zypp/plugins/commit + $(INSTALL) zypper-etckeeper.py $(DESTDIR)$(prefix)/lib/zypp/plugins/commit/zypper-etckeeper.py + endif +- -$(PYTHON) ./etckeeper-bzr/__init__.py install --root=$(DESTDIR) ${PYTHON_INSTALL_OPTS} || echo "** bzr support not installed" + echo "** installation successful" + + clean: etckeeper.spec etckeeper.version +diff --git a/etckeeper.conf b/etckeeper.conf +index 2aec35e..0a9c88b 100644 +--- a/etckeeper.conf ++++ b/etckeeper.conf +@@ -31,11 +31,21 @@ DARCS_COMMIT_OPTIONS="-a" + + # The high-level package manager that's being used. + # (apt, pacman-g2, yum, dnf, zypper etc) +-HIGHLEVEL_PACKAGE_MANAGER=apt ++#HIGHLEVEL_PACKAGE_MANAGER=apt ++ ++# Gentoo specific: ++# For portage this is emerge ++# For paludis this is cave ++HIGHLEVEL_PACKAGE_MANAGER=emerge + + # The low-level package manager that's being used. + # (dpkg, rpm, pacman, pacman-g2, etc) +-LOWLEVEL_PACKAGE_MANAGER=dpkg ++#LOWLEVEL_PACKAGE_MANAGER=dpkg ++ ++# Gentoo specific: ++# For portage this is qlist ++# For paludis this is cave ++LOWLEVEL_PACKAGE_MANAGER=qlist + + # To push each commit to a remote, put the name of the remote here. + # (eg, "origin" for git). Space-separated lists of multiple remotes +diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed +index 2ac569a..91718d4 100755 +--- a/list-installed.d/50list-installed ++++ b/list-installed.d/50list-installed +@@ -17,5 +17,9 @@ else + rpm -qa --qf "%|epoch?{%{epoch}}:{0}|:%{name}-%{version}-%{release}.%{arch}\n" | sort + elif [ "$LOWLEVEL_PACKAGE_MANAGER" = pacman ]; then + pacman -Q ++ elif [ "$LOWLEVEL_PACKAGE_MANAGER" = qlist ]; then ++ qlist -ICv ++ elif [ "$LOWLEVEL_PACKAGE_MANAGER" = cave ]; then ++ cave print-packages -r installed + fi + fi +diff --git a/update-ignore.d/01update-ignore b/update-ignore.d/01update-ignore +index 098fab8..88243ea 100755 +--- a/update-ignore.d/01update-ignore ++++ b/update-ignore.d/01update-ignore +@@ -99,6 +99,10 @@ writefile () { + ignore "*.pacorig" + ignore "*.pacsave" + nl ++ elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "qlist" -o "$LOWLEVEL_PACKAGE_MANAGER" = "cave" ]; then ++ comment "new and old versions of conffiles, stored by emerge" ++ ignore "._cfg*" ++ nl + fi + + comment "old versions of files" +-- +2.3.5 + diff --git a/sys-apps/etckeeper/metadata.xml b/sys-apps/etckeeper/metadata.xml new file mode 100644 index 000000000000..8c1183f2a543 --- /dev/null +++ b/sys-apps/etckeeper/metadata.xml @@ -0,0 +1,22 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + Support dev-vcs/bzr based repository + + Install cron script + + etckeeper is a collection of tools to let /etc be stored in + a git, mercurial, darcs, or bzr repository. It can hook into portage to + automatically commit changes made to /etc during package upgrades. It tracks + file metadata that revison control systems do not normally support, but that + is important for /etc, such as the permissions of /etc/shadow. + + + joeyh/etckeeper + + diff --git a/sys-apps/ethtool/Manifest b/sys-apps/ethtool/Manifest new file mode 100644 index 000000000000..a192ab3cd5c5 --- /dev/null +++ b/sys-apps/ethtool/Manifest @@ -0,0 +1,12 @@ +DIST ethtool-2.6.39.tar.bz2 169029 SHA256 9c437ddfa0410273a076e414a8818fb322f3cb686aca537b915c868044819df4 +DIST ethtool-3.0.tar.bz2 170196 SHA256 095844d67c1dbe4a2ce3bebc72841475fcee23be0359802e594a202b25ffad7d SHA512 8a1ae1fa50a28c9fd525f19b695b739bc6f896575315a281cc4b751241385c949d8960e402796b5f36450861063546f037516d41daaea099e7b14ff38f4f1fdb WHIRLPOOL e0b2e86b664af0163d8f41b2966205a011056c73cf882cf259ccf5d57958f1e62259059854721f9bd3b15df3209937798334f745db24d39402e90ddd6d350c09 +DIST ethtool-3.10.tar.xz 184888 SHA256 f88d941b63a0e51613bde5498d42f4ee2eefa332064e7a8dd80069a341dc1c40 SHA512 b7a28e70f92854abb47e61cd927d93b2716407b77d20253e0b21d225e7033d466772677215d2c7b1a811504e8d00e438b47abcf2448c79488dc677bb0ce2183b WHIRLPOOL 424933cb753b92cd26b7694f9849b25f206d094097be21c44f5c8a96b2bb256cc45f6d9c86348267e5eb1ed075a1159aabf2caa3867651818847c0600fdd0f73 +DIST ethtool-3.12.1.tar.xz 186744 SHA256 616ec632cddcba7240a23582b05380b69f1b359280e8db3fe3bb46498b621149 SHA512 1e51660ed8c33af4c8509e52d835c906fcb644f841874e360f06a606219ff5f51340bdcb25cdbfff66f982e328c4c51297a3ad9851e9bea52156c20d0ac12526 WHIRLPOOL 73cbf7f0dbce244c834f737efccad6eb5e3bc916db37711348e9c6ff181278b03f166e11b39c36bba5fb80375cf46a65901a4013d9eea6affc39e44975a77295 +DIST ethtool-3.13.tar.xz 193780 SHA256 5a5657e213f100f4aa3f33ee5f5f5907fa3440fed41aae09d0cb21f9ad92e71f SHA512 91afe0ee1e99a6a6212e4e4bca339719d46493b46dae5f1a2f516e1794750c9f46777cc3fa030e88d9694a59dfbd65fa9f24510b808bb8b5b8eaca3215bd60c0 WHIRLPOOL 3b2e432f8ee8110de7abcc794dda7244bd866366e404aab18ca28345df34e8a1fab2ae110c459c9c14fca7f13fe1cb74fe9d75c6d49e9e4614432f6e2d7296aa +DIST ethtool-3.14.tar.xz 194360 SHA256 434e2b70ef91b186b8287077692163112f6936e8e2aabd9199eb9473ca516707 SHA512 745feeb4fa3bfcee40c9299f7f6102646029e8079f8ed9904a348f09ab5f23b17d929c65cf892d38fe38b629d8dedf8706c1902993da3c24337c52e65bb161de WHIRLPOOL 031a433bfb8f61ec783827a35c2c5d8a5b49afdb918026f7ff3077e4731a448a625dec5f769f92d76aa2388cce725ea45b10f494998a9d1b0875d75e4bde5652 +DIST ethtool-3.15.tar.xz 195440 SHA256 88d3690e255a02363953cc375055b688b162d21efc7ef3836b5447477ce26f9a SHA512 e9f6375d065b83c5142a89a30483fa4a4f90eafe81f690c5f7b33a389b6fa2a16156f222ca932c31596ebfa418009ded755b0d3e09e5fa881f5c58fb57c9a543 WHIRLPOOL 20129f3626c756557b49328dad5b7cf6c3e89210459e46df020a15934db8450ff0ef14d6378e20aae88e94d8d3c5234effb42f9d1d039720e3a62b454d5f68fa +DIST ethtool-3.16.tar.xz 198760 SHA256 d6e0dd3fa904c3ad87487c66a4a8fde1ebc4194979ca5755df4b2efb247ca286 SHA512 5f3790872eef14c20b4e1c59e9f318f18811022fa2b1c345699c815acf942e91288bb08d6e7d36d8b4f33101e52c832522d5118146f9e0f5d98cdf2f9c0d0d30 WHIRLPOOL 43195f66cfe97c0066bedb05e46342d5da8efc36bdb307d20e787b17777e20d781f7beecb2cbc161ed9d7efdd81c54796a47bbdf927aa761ce64d3bb3f203606 +DIST ethtool-3.18.tar.xz 198780 SHA256 813ffe59fddd2db423c578448b10e33e2e2d4cc2ba780f1f0c603642b20342f6 SHA512 06fba3458c69bd414f5c5edaba006f39e0777614521e5dc37859d1947d3069f7c04f8ea2513f16a930183fb98fc4b6e7cc374a2070787a750673cbf01943eb62 WHIRLPOOL 9c235b7c01f846601a714b8c774e217b1f5f5097dd561adeada940aaeea15f7ccb76232be3536c486fd14486ca5a18f0658bfed2096c173718fc7a188d7ce1ee +DIST ethtool-3.4.2.tar.bz2 200731 SHA256 e2cb6e7977c804b0fa387ba41a04772d37efeb237f27de59eace06792a47a187 SHA512 43714a643c741ef46132e06f6f407bbf77c7787a6fcfe6b9b73165883ea498890ee23d34662255c6fbaeba924d2f8e8cd5160c33c960492dcf5e4a94d2bb68a9 WHIRLPOOL ffaecb40293f15c2e33f85fc6a6318ce1ce82b5db0395e6a0ead0deb45ef39d765c3dd91e66e4b0e83d33b07b98c5ac30e821f9800fff56b788bb46351ce204c +DIST ethtool-3.8.tar.xz 184168 SHA256 510df229ffb27bc030bf60d6181a021e9d3707a082d6565b6daae3d352ee2c95 SHA512 ce003286651f225baf631d7a760f910297a5cd083887f8d96dcc302c2597cb5c3774c58ab34ea55fd9c12d17493bab09fc5cddfc6b383235b818198d5e8d751e WHIRLPOOL c0314b0293b43fc8fdaf6462140a7d56e87b9d6bb03cd5eb9589a5bc26ee006c17764e9cb8c36ff4aacaa54ff10bb9971086ac4a9e25c50cebff966eb15e0595 +DIST ethtool-4.0.tar.xz 199548 SHA256 904887acc7d2f9c35dec04eb0e8a727a3205f346af4f4c95560ea3798de5ecff SHA512 708f7df17f04339d1f6e9f80e0e9b4d7855fd71b974a833e5644ee4b7a431032ce70ceac85e37e59847eb0bea4226c0467b12605e16a005f83d75c33367a6ef2 WHIRLPOOL c1649c83146ded3d245d1e96783f1fc79d51f2d2fdbf877eed6968d5c7a37d4bb3855d45d4110369199d95bc8a4b807fe4707265f89e4a8e1e883b843739e322 diff --git a/sys-apps/ethtool/ethtool-2.6.39.ebuild b/sys-apps/ethtool/ethtool-2.6.39.ebuild new file mode 100644 index 000000000000..a47b539a1cd6 --- /dev/null +++ b/sys-apps/ethtool/ethtool-2.6.39.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" diff --git a/sys-apps/ethtool/ethtool-3.0.ebuild b/sys-apps/ethtool/ethtool-3.0.ebuild new file mode 100644 index 000000000000..b88ea5357449 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.0.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 sh ~sparc x86" +IUSE="" diff --git a/sys-apps/ethtool/ethtool-3.10.ebuild b/sys-apps/ethtool/ethtool-3.10.ebuild new file mode 100644 index 000000000000..30d30ded8542 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.10.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.12.1.ebuild b/sys-apps/ethtool/ethtool-3.12.1.ebuild new file mode 100644 index 000000000000..f51a3a470052 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.12.1.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.13.ebuild b/sys-apps/ethtool/ethtool-3.13.ebuild new file mode 100644 index 000000000000..77e118c72c59 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.13.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.14.ebuild b/sys-apps/ethtool/ethtool-3.14.ebuild new file mode 100644 index 000000000000..77e118c72c59 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.14.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.15.ebuild b/sys-apps/ethtool/ethtool-3.15.ebuild new file mode 100644 index 000000000000..77e118c72c59 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.15.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.16.ebuild b/sys-apps/ethtool/ethtool-3.16.ebuild new file mode 100644 index 000000000000..77e118c72c59 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.16.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.18.ebuild b/sys-apps/ethtool/ethtool-3.18.ebuild new file mode 100644 index 000000000000..bc1f28d26e1b --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.18.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-3.4.2.ebuild b/sys-apps/ethtool/ethtool-3.4.2.ebuild new file mode 100644 index 000000000000..c9ca05ac04a2 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.4.2.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" diff --git a/sys-apps/ethtool/ethtool-3.8.ebuild b/sys-apps/ethtool/ethtool-3.8.ebuild new file mode 100644 index 000000000000..7743a4fd6213 --- /dev/null +++ b/sys-apps/ethtool/ethtool-3.8.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/ethtool-4.0.ebuild b/sys-apps/ethtool/ethtool-4.0.ebuild new file mode 100644 index 000000000000..300b62bef733 --- /dev/null +++ b/sys-apps/ethtool/ethtool-4.0.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +DESCRIPTION="Utility for examining and tuning ethernet-based network interfaces" +HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" +SRC_URI="mirror://kernel/software/network/ethtool/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" + +DEPEND="app-arch/xz-utils" diff --git a/sys-apps/ethtool/metadata.xml b/sys-apps/ethtool/metadata.xml new file mode 100644 index 000000000000..5977c7f15c18 --- /dev/null +++ b/sys-apps/ethtool/metadata.xml @@ -0,0 +1,16 @@ + + + +base-system + + ethtool is a Linux utility for controlling network drivers and hardware, + particularly for wired Ethernet devices. It can be used to: + * Get identification and diagnostic information + * Get extended device statistics + * Control speed, duplex, autonegotiation and flow control for Ethernet devices + * Control checksum offload and other hardware offload features + * Control DMA ring sizes and interrupt moderation + * Control receive queue selection for multiqueue devices + * Upgrade firmware in flash memory + + diff --git a/sys-apps/fakechroot/Manifest b/sys-apps/fakechroot/Manifest new file mode 100644 index 000000000000..b7ae94b30a4e --- /dev/null +++ b/sys-apps/fakechroot/Manifest @@ -0,0 +1 @@ +DIST fakechroot_2.17.2.orig.tar.gz 463307 SHA256 038f631c6013b34426ac0b6a38b613083818065b4d20ae87598ea14589ec8c7c SHA512 bcdcf8e77aae46b567acddb80e6817a118c7ef250ba7b6962982e60a6a5e3b8c1eeef950dc33335f31466c3f53ab6b7260bc64a1da9c4b156a44d811ef8cccd0 WHIRLPOOL 69e170a044af5e06494d42a1cd2fa359b9101224bd71f8413949ba0e12396d6a877b82e35734d8c8d0a576e508c47a71ecd2eb6272951cfa95a88298764417c5 diff --git a/sys-apps/fakechroot/fakechroot-2.17.2.ebuild b/sys-apps/fakechroot/fakechroot-2.17.2.ebuild new file mode 100644 index 000000000000..0aeedf8a5c7e --- /dev/null +++ b/sys-apps/fakechroot/fakechroot-2.17.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Provide a faked chroot environment without requiring root privileges" +HOMEPAGE="http://fakechroot.alioth.debian.org/" +SRC_URI="mirror://debian/pool/main/f/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RESTRICT="test" + +src_configure() { + econf --disable-static +} + +src_install() { + emake DESTDIR="${D}" install + dodoc NEWS.md README.md THANKS + find "${D}" -name '*.la' -exec rm -f '{}' + +} diff --git a/sys-apps/fakechroot/metadata.xml b/sys-apps/fakechroot/metadata.xml new file mode 100644 index 000000000000..4f3f7b2bd973 --- /dev/null +++ b/sys-apps/fakechroot/metadata.xml @@ -0,0 +1,9 @@ + + + + proxy-maintainers + + anthoine.bourgeois@gmail.com + Maintainer, assign bugs + + diff --git a/sys-apps/fakeroot-ng/Manifest b/sys-apps/fakeroot-ng/Manifest new file mode 100644 index 000000000000..b4949b015fb8 --- /dev/null +++ b/sys-apps/fakeroot-ng/Manifest @@ -0,0 +1,3 @@ +DIST fakeroot-ng-0.17-gcc47.patch.xz 8576 SHA256 17e4f38208636ca43064e05a1139186305c212567376f280218dcfda7b35a946 SHA512 053b825e3362683f20867fcb2120e19612537b7f597fefcec913408092d200b31fcf43c2911000dc4710a5b77e0a0c8d93734fe1a9aa42bd503dfc6e75b0d7fb WHIRLPOOL eed844cf50f9d32006694a30a72daa283e637659b94152e4416ce65df96ee8bca0763b2282e1ee86f5ebc8d38677b10286124e6334f7119a8b57adcf66424db1 +DIST fakeroot-ng-0.17.tar.gz 194791 SHA256 b7898db2ba2275b3fe7c38487915b154d1d4ddc994e7be2777e794dc6186bfe1 SHA512 bc6caab529feaf0e75f7ed0c5160ebda87d113c34001cabf20565f51fd66078d4363115ddd32d23106f4b47ce6e85b9defabf108ce2f35280d7b413fa7148686 WHIRLPOOL 28ca3e6626c467b00ce7e26a6bef741dc002971be7c6e839ca3afa981d557e4fbf1fade91a05f5dab503e95549602af275c5735883caf7e94a128f4135bad6ef +DIST fakeroot-ng-0.18.tar.gz 207870 SHA256 189eacda630752980d40e34b2c01ce23d839daab3d691a4706bb9eac79f7e144 SHA512 8ece6830d229b92537d9c0a2eb42cb9ec4ae6b83453303004dded5eab0707b9ae8eaa2c71aac6ea68226c43cf08db6b0939a9422aab32948f5ecb185ee01d854 WHIRLPOOL 38e2758dd2747056479c1fd920961a10adbc1d8797fb5b02f32167af22de7458c91df36d7ea73305df86ee91d093506f280bde8c23d7b4a6c0e3fa2b36154060 diff --git a/sys-apps/fakeroot-ng/fakeroot-ng-0.17.ebuild b/sys-apps/fakeroot-ng/fakeroot-ng-0.17.ebuild new file mode 100644 index 000000000000..0c17b9a899f3 --- /dev/null +++ b/sys-apps/fakeroot-ng/fakeroot-ng-0.17.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="A utility to run commands with fake root privileges" +HOMEPAGE="http://sourceforge.net/projects/fakerootng/" +SRC_URI="mirror://sourceforge/${PN//-/}/${PF}.tar.gz + http://dev.gentoo.org/~ssuominen/${P}-gcc47.patch.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_prepare() { + epatch "${WORKDIR}"/${P}-gcc47.patch +} diff --git a/sys-apps/fakeroot-ng/fakeroot-ng-0.18-r1.ebuild b/sys-apps/fakeroot-ng/fakeroot-ng-0.18-r1.ebuild new file mode 100644 index 000000000000..ca200a202c69 --- /dev/null +++ b/sys-apps/fakeroot-ng/fakeroot-ng-0.18-r1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A utility to run commands with fake root privileges" +HOMEPAGE="http://sourceforge.net/projects/fakerootng/" +SRC_URI="mirror://sourceforge/${PN//-/}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-gcc-4.8.2.patch +} diff --git a/sys-apps/fakeroot-ng/fakeroot-ng-0.18.ebuild b/sys-apps/fakeroot-ng/fakeroot-ng-0.18.ebuild new file mode 100644 index 000000000000..f185b58f7fd5 --- /dev/null +++ b/sys-apps/fakeroot-ng/fakeroot-ng-0.18.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A utility to run commands with fake root privileges" +HOMEPAGE="http://sourceforge.net/projects/fakerootng/" +SRC_URI="mirror://sourceforge/${PN//-/}/${PF}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DOCS="AUTHORS ChangeLog NEWS README" diff --git a/sys-apps/fakeroot-ng/files/fakeroot-ng-gcc-4.8.2.patch b/sys-apps/fakeroot-ng/files/fakeroot-ng-gcc-4.8.2.patch new file mode 100644 index 000000000000..50df56d51bdb --- /dev/null +++ b/sys-apps/fakeroot-ng/files/fakeroot-ng-gcc-4.8.2.patch @@ -0,0 +1,10 @@ +--- 1/arch/linux/i386/platform_specific.h ++++ 1/arch/linux/i386/platform_specific.h +@@ -2,6 +2,7 @@ + #define PLATFORM_SPECIFIC_H + + #include ++#include + #include + #include + diff --git a/sys-apps/fakeroot-ng/metadata.xml b/sys-apps/fakeroot-ng/metadata.xml new file mode 100644 index 000000000000..0841cba5b9ee --- /dev/null +++ b/sys-apps/fakeroot-ng/metadata.xml @@ -0,0 +1,12 @@ + + + + proxy-maintainers + + anthoine.bourgeois@gmail.com + Maintainer, assign bugs + + + fakerootng + + diff --git a/sys-apps/fakeroot/Manifest b/sys-apps/fakeroot/Manifest new file mode 100644 index 000000000000..1e33a114419a --- /dev/null +++ b/sys-apps/fakeroot/Manifest @@ -0,0 +1,4 @@ +DIST fakeroot_1.18.4.orig.tar.bz2 309298 SHA256 0a359efa3e9496c33234b3e9c89306a09bb4da9d33de43c261f1d8447e6ebea2 SHA512 497292fe21d18a37eadd657fbe01db8902f4b8d87d63605928efd59789f4c14737997b9f0abc4d794dbef78066b952064bdb2dd9f0910ec75349d7dd313cd058 WHIRLPOOL cef9846747a7ef1712658cc39c5374a3921dd27b9f9540080c4be7b7eab75722c0710a0640900c51852910b0db2d44d5605f61e5c18981d56abc835269a11626 +DIST fakeroot_1.19.orig.tar.bz2 312304 SHA256 eafa6885535ff57a42248aec090fe17cfa5ca85b62cefa0d13637c9de8996868 SHA512 ff3f50cdf168deafab337d3d98299ccd4129ed2a9befa5f28171d92c2ddfa08c8f42424f32b3fbcbb1f83c16f22952e571946f4152246d08b0d18bab77c458e9 WHIRLPOOL 4fcce88f114a87a07698eede3ab384621bfff4cc3fa478c5b162e95c4901bc75647c7e7c69c8196885d96acd0658b5f3cba50e46973e010d0e4adc3f49729e00 +DIST fakeroot_1.20.2.orig.tar.bz2 326910 SHA256 7c0a164d19db3efa9e802e0fc7cdfeff70ec6d26cdbdc4338c9c2823c5ea230c SHA512 1ac231f995774aa40f43c4325cd9e6de45365963277c32a85776690c3e7fd281ac410f3d91395dc1e5e5ca3b143e89914e048632011a3985ead216e870852231 WHIRLPOOL b39d8682e13d69648f60ff70853b2588b9e638112b8874794e1c6bccb6c060868ee81031887cb7aacf78d2fa2ec9f00c4103655d24406d001e076c43b4ca6c1d +DIST fakeroot_1.20.orig.tar.bz2 321491 SHA256 2297b7e79487cf0bbc64ff6d3d02446d895e82e2b26467c74fd1119011f6f098 SHA512 b041ab87559f784041f05bfa9d5186ceaafebbcbd03057ede62bf420551e337ceec4b7101854937e206c6389ac2c0719545d5971457edaf564856bb44ce7b4b6 WHIRLPOOL 00b55e38004b3bb843e06299e014fb776150efc398b42099fa1772c4999aa3282a244c0987123f33aee9f844351dd9a31cf6c218c3439aebf1cba2c633a2b7bb diff --git a/sys-apps/fakeroot/fakeroot-1.18.4.ebuild b/sys-apps/fakeroot/fakeroot-1.18.4.ebuild new file mode 100644 index 000000000000..9fb41a9a14fc --- /dev/null +++ b/sys-apps/fakeroot/fakeroot-1.18.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="A fake root environment by means of LD_PRELOAD and SysV IPC (or TCP) trickery" +HOMEPAGE="http://packages.qa.debian.org/f/fakeroot.html" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ppc sparc x86 ~amd64-linux ~x86-linux" +IUSE="acl static-libs test" + +RDEPEND="" +DEPEND="${RDEPEND} + acl? ( sys-apps/acl ) + test? ( app-arch/sharutils )" + +DOCS="AUTHORS BUGS DEBUG README doc/README.saving" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.18.4-no-acl_h.patch +} + +src_configure() { + export ac_cv_header_sys_acl_h=$(usex acl) + + econf \ + $(use_enable static-libs static) +} + +src_install() { + default + use static-libs || find "${ED}" -name '*.la' -exec rm -f {} + +} diff --git a/sys-apps/fakeroot/fakeroot-1.19.ebuild b/sys-apps/fakeroot/fakeroot-1.19.ebuild new file mode 100644 index 000000000000..788b77b8a2c8 --- /dev/null +++ b/sys-apps/fakeroot/fakeroot-1.19.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="A fake root environment by means of LD_PRELOAD and SysV IPC (or TCP) trickery" +HOMEPAGE="http://packages.qa.debian.org/f/fakeroot.html" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ppc sparc x86 ~amd64-linux ~x86-linux" +IUSE="acl static-libs test" + +DEPEND="acl? ( sys-apps/acl ) + test? ( app-arch/sharutils ) + sys-libs/libcap" + +DOCS="AUTHORS BUGS DEBUG README doc/README.saving" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.19-no-acl_h.patch +} + +src_configure() { + export ac_cv_header_sys_acl_h=$(usex acl) + + econf \ + $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} diff --git a/sys-apps/fakeroot/fakeroot-1.20.2.ebuild b/sys-apps/fakeroot/fakeroot-1.20.2.ebuild new file mode 100644 index 000000000000..25cbea37a3aa --- /dev/null +++ b/sys-apps/fakeroot/fakeroot-1.20.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils flag-o-matic + +DESCRIPTION="A fake root environment by means of LD_PRELOAD and SysV IPC (or TCP) trickery" +HOMEPAGE="http://packages.qa.debian.org/f/fakeroot.html" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ppc sparc x86 ~amd64-linux ~x86-linux" +IUSE="acl debug static-libs test" + +DEPEND="acl? ( sys-apps/acl ) + test? ( app-arch/sharutils ) + sys-libs/libcap" + +DOCS="AUTHORS BUGS DEBUG README doc/README.saving" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.19-no-acl_h.patch +} + +src_configure() { + export ac_cv_header_sys_acl_h=$(usex acl) + + use debug && append-cppflags "-DLIBFAKEROOT_DEBUGGING" + econf \ + $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} diff --git a/sys-apps/fakeroot/fakeroot-1.20.ebuild b/sys-apps/fakeroot/fakeroot-1.20.ebuild new file mode 100644 index 000000000000..7f05451d4270 --- /dev/null +++ b/sys-apps/fakeroot/fakeroot-1.20.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils flag-o-matic + +DESCRIPTION="A fake root environment by means of LD_PRELOAD and SysV IPC (or TCP) trickery" +HOMEPAGE="http://packages.qa.debian.org/f/fakeroot.html" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="acl debug static-libs test" + +DEPEND="acl? ( sys-apps/acl ) + test? ( app-arch/sharutils ) + sys-libs/libcap" + +DOCS="AUTHORS BUGS DEBUG README doc/README.saving" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.19-no-acl_h.patch +} + +src_configure() { + export ac_cv_header_sys_acl_h=$(usex acl) + + use debug && append-cppflags "-DLIBFAKEROOT_DEBUGGING" + econf \ + $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} diff --git a/sys-apps/fakeroot/files/fakeroot-1.18.4-no-acl_h.patch b/sys-apps/fakeroot/files/fakeroot-1.18.4-no-acl_h.patch new file mode 100644 index 000000000000..dbd9dd7758e9 --- /dev/null +++ b/sys-apps/fakeroot/files/fakeroot-1.18.4-no-acl_h.patch @@ -0,0 +1,35 @@ +http://bugs.gentoo.org/424419 + +--- libfakeroot.c ++++ libfakeroot.c +@@ -1551,6 +1551,7 @@ + return fakeroot_disabled; + } + ++#ifdef HAVE_SYS_ACL_H + #ifdef HAVE_ACL_T + int acl_set_fd(int fd, acl_t acl) { + errno = ENOTSUP; +@@ -1561,6 +1562,7 @@ + errno = ENOTSUP; + return -1; + } ++#endif /* HAVE_ACL_T */ + #endif /* HAVE_SYS_ACL_H */ + + #ifdef HAVE_FTS_READ +--- wrapfunc.inp ++++ wrapfunc.inp +@@ -167,10 +167,12 @@ + #endif /* HAVE_UNLINKAT */ + #endif /* HAVE_FSTATAT */ + ++#ifdef HAVE_SYS_ACL_H + #ifdef HAVE_ACL_T + acl_set_fd;int;(int fd, acl_t acl);(fd, acl) + acl_set_file;int;(const char *path_p, acl_type_t type, acl_t acl);(path_p, type, acl) + #endif /* HAVE_ACL_T */ ++#endif /* HAVE_SYS_ACL_H */ + + #ifdef HAVE_FTS_READ + fts_read;FTSENT *;(FTS *ftsp);(ftsp) diff --git a/sys-apps/fakeroot/files/fakeroot-1.19-no-acl_h.patch b/sys-apps/fakeroot/files/fakeroot-1.19-no-acl_h.patch new file mode 100644 index 000000000000..d208b8ffa43b --- /dev/null +++ b/sys-apps/fakeroot/files/fakeroot-1.19-no-acl_h.patch @@ -0,0 +1,37 @@ +http://bugs.gentoo.org/424419 + +--- fakeroot-1.19/libfakeroot.c ++++ fakeroot-1.19/libfakeroot.c +@@ -1908,6 +1908,7 @@ + return fakeroot_disabled; + } + ++#ifdef HAVE_SYS_ACL_H + #ifdef HAVE_ACL_T + acl_t acl_get_fd(int fd) { + errno = ENOTSUP; +@@ -1926,6 +1927,7 @@ + errno = ENOTSUP; + return -1; + } ++#endif /* HAVE_ACL_T */ + #endif /* HAVE_SYS_ACL_H */ + + #ifdef HAVE_FTS_READ +--- fakeroot-1.19/wrapfunc.inp ++++ fakeroot-1.19/wrapfunc.inp +@@ -206,12 +206,14 @@ + #endif /* HAVE_UNLINKAT */ + #endif /* HAVE_FSTATAT */ + ++#ifdef HAVE_SYS_ACL_H + #ifdef HAVE_ACL_T + acl_get_fd;acl_t;(int fd);(fd) + acl_get_file;acl_t;(const char *path_p, acl_type_t type);(path_p, type) + acl_set_fd;int;(int fd, acl_t acl);(fd, acl) + acl_set_file;int;(const char *path_p, acl_type_t type, acl_t acl);(path_p, type, acl) + #endif /* HAVE_ACL_T */ ++#endif /* HAVE_SYS_ACL_H */ + + #ifdef HAVE_FTS_READ + fts_read;FTSENT *;(FTS *ftsp);(ftsp) diff --git a/sys-apps/fakeroot/metadata.xml b/sys-apps/fakeroot/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/fakeroot/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/fbset/Manifest b/sys-apps/fbset/Manifest new file mode 100644 index 000000000000..b16b512cd8b9 --- /dev/null +++ b/sys-apps/fbset/Manifest @@ -0,0 +1 @@ +DIST fbset-2.1.tar.gz 27721 SHA256 40ff4ab0247b75138a0887ed40f81c1a6184f340b77126c16d074b1075b41c20 SHA512 7e0380760f77b0db7dcc128f6375a3ed8da4b8521d1926faba27812c5cb20e6f1a62f3a539591a81a6b7e7986940db4cd83e03d6de487e0ab7f0760ed1d21b28 WHIRLPOOL a45b2b1031cd9fc626b318a4df1d697ccc710f86eeba9f7013b738a23f7910d4c73ca5b4bad8ed07a18cf5b60aa8d7a3dbb56424bf56a8346f2c7d94fd97d957 diff --git a/sys-apps/fbset/fbset-2.1.ebuild b/sys-apps/fbset/fbset-2.1.ebuild new file mode 100644 index 000000000000..a4244f2bde06 --- /dev/null +++ b/sys-apps/fbset/fbset-2.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs flag-o-matic eutils + +DESCRIPTION="A utility to set the framebuffer videomode" +HOMEPAGE="http://users.telenet.be/geertu/Linux/fbdev/" +SRC_URI="http://users.telenet.be/geertu/Linux/fbdev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" +IUSE="static" + +DEPEND="sys-devel/bison + sys-devel/flex" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-build.patch" +} + +src_compile() { + use static && append-ldflags -static + tc-export CC + emake || die "emake failed" +} + +src_install() { + dobin fbset modeline2fb || die "dobin failed" + doman *.[58] + dodoc etc/fb.modes.* INSTALL +} diff --git a/sys-apps/fbset/files/fbset-2.1-build.patch b/sys-apps/fbset/files/fbset-2.1-build.patch new file mode 100644 index 000000000000..94a323bb39ac --- /dev/null +++ b/sys-apps/fbset/files/fbset-2.1-build.patch @@ -0,0 +1,21 @@ +Index: fbset-2.1/Makefile +=================================================================== +--- fbset-2.1.orig/Makefile ++++ fbset-2.1/Makefile +@@ -2,7 +2,6 @@ + # Linux Frame Buffer Device Configuration + # + +-CC = gcc -Wall -O2 -I. + BISON = bison -d + FLEX = flex + INSTALL = install +@@ -20,6 +19,8 @@ lex.yy.o: lex.yy.c fbset.h modes.tab.h + lex.yy.c: modes.l + $(FLEX) modes.l + ++modes.tab.h: modes.tab.c ++ + modes.tab.c: modes.y + $(BISON) modes.y + diff --git a/sys-apps/fbset/metadata.xml b/sys-apps/fbset/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/fbset/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest new file mode 100644 index 000000000000..6355ea5e3d1a --- /dev/null +++ b/sys-apps/file/Manifest @@ -0,0 +1,3 @@ +DIST file-5.22.tar.gz 732556 SHA256 c4e3a8e44cb888c5e4b476e738503e37fb9de3b25a38c143e214bfc12109fc0b SHA512 e9f1648c3b490bac642a2a9e01d31a8bd49c3e2a1feea1b25869aa1d5e37aa99bbf3fdc5d301618a8b97aec046f10e400a57f8a1d0dd61d3583830aaf3fcbda8 WHIRLPOOL de9ce9305fd824d85128617e196fe6b02ea470b63eb2a35d31e857f7cf91e09f85166aaa72695aaf4a7516413b3a146db85588e7da65f32b131a477b3dece176 +DIST file-5.23.tar.gz 737618 SHA256 2c8ab3ff143e2cdfb5ecee381752f80a79e0b4cfe9ca4cc6e1c3e5ec15e6157c SHA512 30c4177819bc453854da644122ef5c1b7a9cba9b5ff6ee8e02eb889064203d75ce59cf3b08a41653e72f5567d442062fd65bb08c1670d294d36f10004ab28d5f WHIRLPOOL a222f85317e99929affb5daa3baf4090eadce92fb1f390ee26ccfbfa289309f602075ac0b45205417126979229188b27be553595b03180fb34989381d0b4bddc +DIST file-5.24.tar.gz 737911 SHA256 802cb3de2e49e88ef97cdcb52cd507a0f25458112752e398445cea102bc750ce SHA512 9b804bbba1a77e183dbd68d4e2380d1d7e8a4dbdc6992adabab0e6fee4689f3ea8d262e5645224f4c97d7aaf988fe55c2a143c776111d9107e519692b81e6e8d WHIRLPOOL cd9efe3b4ae6a2276f431d4d22f959ab26511515d530ee7a698b547d30d89ee10854f1e7f758be068e06c7d40bc27b04ec6e92640faf1a0eb4be17344b713df5 diff --git a/sys-apps/file/file-5.22-r1.ebuild b/sys-apps/file/file-5.22-r1.ebuild new file mode 100644 index 000000000000..e1583992dd32 --- /dev/null +++ b/sys-apps/file/file-5.22-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) +DISTUTILS_OPTIONAL=1 + +inherit eutils distutils-r1 libtool toolchain-funcs multilib-minimal + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/glensc/file.git" + inherit autotools git-r3 +else + SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz + ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +DESCRIPTION="identify a file's format by scanning binary data for patterns" +HOMEPAGE="http://www.darwinsys.com/file/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="python static-libs zlib" + +DEPEND="python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r21 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +RDEPEND="${DEPEND} + python? ( !dev-python/python-magic )" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + elibtoolize + + # don't let python README kill main README #60043 + mv python/README{,.python} +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=$(usex zlib) \ + ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + $(use_enable static-libs static) +} + +src_configure() { + # when cross-compiling, we need to build up our own file + # because people often don't keep matching host/target + # file versions #362941 + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + mkdir -p "${WORKDIR}"/build + cd "${WORKDIR}"/build + tc-export_build_env BUILD_C{C,XX} + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=no \ + ac_cv_lib_z_gzopen=no \ + CHOST=${CBUILD} \ + CFLAGS=${BUILD_CFLAGS} \ + CXXFLAGS=${BUILD_CXXFLAGS} \ + CPPFLAGS=${BUILD_CPPFLAGS} \ + LDFLAGS="${BUILD_LDFLAGS} -static" \ + CC=${BUILD_CC} \ + CXX=${BUILD_CXX} \ + econf --disable-shared + fi + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi ; then + emake + else + emake -C src libmagic.la + fi +} + +src_compile() { + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + emake -C "${WORKDIR}"/build/src file + PATH="${WORKDIR}/build/src:${PATH}" + fi + multilib-minimal_src_compile + + use python && cd python && distutils-r1_src_compile +} + +multilib_src_install() { + if multilib_is_native_abi ; then + default + else + emake -C src install-{includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" + fi +} + +multilib_src_install_all() { + dodoc ChangeLog MAINT README + + use python && cd python && distutils-r1_src_install + prune_libtool_files +} diff --git a/sys-apps/file/file-5.22.ebuild b/sys-apps/file/file-5.22.ebuild new file mode 100644 index 000000000000..ce6174b7063a --- /dev/null +++ b/sys-apps/file/file-5.22.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +DISTUTILS_OPTIONAL=1 + +inherit eutils distutils-r1 libtool toolchain-funcs multilib-minimal + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/glensc/file.git" + inherit autotools git-r3 +else + SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz + ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +DESCRIPTION="identify a file's format by scanning binary data for patterns" +HOMEPAGE="http://www.darwinsys.com/file/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="python static-libs zlib" + +DEPEND="python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r21 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +RDEPEND="${DEPEND} + python? ( !dev-python/python-magic )" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + elibtoolize + + # don't let python README kill main README #60043 + mv python/README{,.python} +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=$(usex zlib) \ + ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + $(use_enable static-libs static) +} + +src_configure() { + # when cross-compiling, we need to build up our own file + # because people often don't keep matching host/target + # file versions #362941 + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + mkdir -p "${WORKDIR}"/build + cd "${WORKDIR}"/build + tc-export_build_env BUILD_C{C,XX} + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=no \ + ac_cv_lib_z_gzopen=no \ + CHOST=${CBUILD} \ + CFLAGS=${BUILD_CFLAGS} \ + CXXFLAGS=${BUILD_CXXFLAGS} \ + CPPFLAGS=${BUILD_CPPFLAGS} \ + LDFLAGS="${BUILD_LDFLAGS} -static" \ + CC=${BUILD_CC} \ + CXX=${BUILD_CXX} \ + econf --disable-shared + fi + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi ; then + emake + else + emake -C src libmagic.la + fi +} + +src_compile() { + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + emake -C "${WORKDIR}"/build/src file + PATH="${WORKDIR}/build/src:${PATH}" + fi + multilib-minimal_src_compile + + use python && cd python && distutils-r1_src_compile +} + +multilib_src_install() { + if multilib_is_native_abi ; then + default + else + emake -C src install-{includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" + fi +} + +multilib_src_install_all() { + dodoc ChangeLog MAINT README + + use python && cd python && distutils-r1_src_install + prune_libtool_files +} diff --git a/sys-apps/file/file-5.23.ebuild b/sys-apps/file/file-5.23.ebuild new file mode 100644 index 000000000000..e1583992dd32 --- /dev/null +++ b/sys-apps/file/file-5.23.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) +DISTUTILS_OPTIONAL=1 + +inherit eutils distutils-r1 libtool toolchain-funcs multilib-minimal + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/glensc/file.git" + inherit autotools git-r3 +else + SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz + ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +DESCRIPTION="identify a file's format by scanning binary data for patterns" +HOMEPAGE="http://www.darwinsys.com/file/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="python static-libs zlib" + +DEPEND="python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r21 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +RDEPEND="${DEPEND} + python? ( !dev-python/python-magic )" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + elibtoolize + + # don't let python README kill main README #60043 + mv python/README{,.python} +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=$(usex zlib) \ + ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + $(use_enable static-libs static) +} + +src_configure() { + # when cross-compiling, we need to build up our own file + # because people often don't keep matching host/target + # file versions #362941 + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + mkdir -p "${WORKDIR}"/build + cd "${WORKDIR}"/build + tc-export_build_env BUILD_C{C,XX} + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=no \ + ac_cv_lib_z_gzopen=no \ + CHOST=${CBUILD} \ + CFLAGS=${BUILD_CFLAGS} \ + CXXFLAGS=${BUILD_CXXFLAGS} \ + CPPFLAGS=${BUILD_CPPFLAGS} \ + LDFLAGS="${BUILD_LDFLAGS} -static" \ + CC=${BUILD_CC} \ + CXX=${BUILD_CXX} \ + econf --disable-shared + fi + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi ; then + emake + else + emake -C src libmagic.la + fi +} + +src_compile() { + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + emake -C "${WORKDIR}"/build/src file + PATH="${WORKDIR}/build/src:${PATH}" + fi + multilib-minimal_src_compile + + use python && cd python && distutils-r1_src_compile +} + +multilib_src_install() { + if multilib_is_native_abi ; then + default + else + emake -C src install-{includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" + fi +} + +multilib_src_install_all() { + dodoc ChangeLog MAINT README + + use python && cd python && distutils-r1_src_install + prune_libtool_files +} diff --git a/sys-apps/file/file-5.24.ebuild b/sys-apps/file/file-5.24.ebuild new file mode 100644 index 000000000000..e1583992dd32 --- /dev/null +++ b/sys-apps/file/file-5.24.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) +DISTUTILS_OPTIONAL=1 + +inherit eutils distutils-r1 libtool toolchain-funcs multilib-minimal + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/glensc/file.git" + inherit autotools git-r3 +else + SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz + ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +DESCRIPTION="identify a file's format by scanning binary data for patterns" +HOMEPAGE="http://www.darwinsys.com/file/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="python static-libs zlib" + +DEPEND="python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r21 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +RDEPEND="${DEPEND} + python? ( !dev-python/python-magic )" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + elibtoolize + + # don't let python README kill main README #60043 + mv python/README{,.python} +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=$(usex zlib) \ + ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + $(use_enable static-libs static) +} + +src_configure() { + # when cross-compiling, we need to build up our own file + # because people often don't keep matching host/target + # file versions #362941 + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + mkdir -p "${WORKDIR}"/build + cd "${WORKDIR}"/build + tc-export_build_env BUILD_C{C,XX} + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=no \ + ac_cv_lib_z_gzopen=no \ + CHOST=${CBUILD} \ + CFLAGS=${BUILD_CFLAGS} \ + CXXFLAGS=${BUILD_CXXFLAGS} \ + CPPFLAGS=${BUILD_CPPFLAGS} \ + LDFLAGS="${BUILD_LDFLAGS} -static" \ + CC=${BUILD_CC} \ + CXX=${BUILD_CXX} \ + econf --disable-shared + fi + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi ; then + emake + else + emake -C src libmagic.la + fi +} + +src_compile() { + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + emake -C "${WORKDIR}"/build/src file + PATH="${WORKDIR}/build/src:${PATH}" + fi + multilib-minimal_src_compile + + use python && cd python && distutils-r1_src_compile +} + +multilib_src_install() { + if multilib_is_native_abi ; then + default + else + emake -C src install-{includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" + fi +} + +multilib_src_install_all() { + dodoc ChangeLog MAINT README + + use python && cd python && distutils-r1_src_install + prune_libtool_files +} diff --git a/sys-apps/file/file-9999.ebuild b/sys-apps/file/file-9999.ebuild new file mode 100644 index 000000000000..e1583992dd32 --- /dev/null +++ b/sys-apps/file/file-9999.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) +DISTUTILS_OPTIONAL=1 + +inherit eutils distutils-r1 libtool toolchain-funcs multilib-minimal + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/glensc/file.git" + inherit autotools git-r3 +else + SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz + ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +DESCRIPTION="identify a file's format by scanning binary data for patterns" +HOMEPAGE="http://www.darwinsys.com/file/" + +LICENSE="BSD-2" +SLOT="0" +IUSE="python static-libs zlib" + +DEPEND="python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20131008-r21 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" +RDEPEND="${DEPEND} + python? ( !dev-python/python-magic )" + +src_prepare() { + [[ ${PV} == "9999" ]] && eautoreconf + elibtoolize + + # don't let python README kill main README #60043 + mv python/README{,.python} +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=$(usex zlib) \ + ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + $(use_enable static-libs static) +} + +src_configure() { + # when cross-compiling, we need to build up our own file + # because people often don't keep matching host/target + # file versions #362941 + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + mkdir -p "${WORKDIR}"/build + cd "${WORKDIR}"/build + tc-export_build_env BUILD_C{C,XX} + ECONF_SOURCE=${S} \ + ac_cv_header_zlib_h=no \ + ac_cv_lib_z_gzopen=no \ + CHOST=${CBUILD} \ + CFLAGS=${BUILD_CFLAGS} \ + CXXFLAGS=${BUILD_CXXFLAGS} \ + CPPFLAGS=${BUILD_CPPFLAGS} \ + LDFLAGS="${BUILD_LDFLAGS} -static" \ + CC=${BUILD_CC} \ + CXX=${BUILD_CXX} \ + econf --disable-shared + fi + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi ; then + emake + else + emake -C src libmagic.la + fi +} + +src_compile() { + if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then + emake -C "${WORKDIR}"/build/src file + PATH="${WORKDIR}/build/src:${PATH}" + fi + multilib-minimal_src_compile + + use python && cd python && distutils-r1_src_compile +} + +multilib_src_install() { + if multilib_is_native_abi ; then + default + else + emake -C src install-{includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" + fi +} + +multilib_src_install_all() { + dodoc ChangeLog MAINT README + + use python && cd python && distutils-r1_src_install + prune_libtool_files +} diff --git a/sys-apps/file/metadata.xml b/sys-apps/file/metadata.xml new file mode 100644 index 000000000000..d05cbc00cc09 --- /dev/null +++ b/sys-apps/file/metadata.xml @@ -0,0 +1,8 @@ + + + +base-system + + http://bugs.gw.com/ + + diff --git a/sys-apps/findutils/Manifest b/sys-apps/findutils/Manifest new file mode 100644 index 000000000000..65f4c71f5fa0 --- /dev/null +++ b/sys-apps/findutils/Manifest @@ -0,0 +1,3 @@ +DIST findutils-4.4.2.tar.gz 2149838 SHA256 434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a SHA512 262d0a8301158e6541b9f24e4e043d8d8c1b196b18dbe59c3bedcf17b50c95708e33ab23a07e3bfb947ad495faafffdca3c296fb525794ca60f2dfd682f228c1 WHIRLPOOL 2af1467403ece2f290be6b9f69db013d386427ab553efcf750ce36bf608fab0d37708209c22bf61b8a82f41aa13bf25a247c62f78dc95446290b7a4bd35d3393 +DIST findutils-4.5.12.tar.gz 3236073 SHA256 df859eebad68c216204363f163c0e4200208ce7348f3658564a120e32e4f63de SHA512 d909ca2d3629f871e6f79e99cf547f76ea73dad773972923c177267c272a7c82e308cca22e5c8746e6aca33dee8110f1af390fbe2abf93544e5917e6475ab2f8 WHIRLPOOL 046ef3394c0834800139c1c5a6c9caddbbf36190d27bb28bd2afa212c00bbbef6c959441f2afc36c058d3cee279d3b6c971192ff442e796ee7e72edfb76b2730 +DIST findutils-4.5.14.tar.gz 3536727 SHA256 0de3cf625a5c9f154eee3171e072515ffdde405244dd00502af617ac57b73ae2 SHA512 e26f0d58c316202d99d7dcc1c4d4d40591150dcf198dff2dab0f8ef5e4dc039a5ff42ef536bfc08d860f39ee4bd8215591b4cb460ff45f73007040fc5f99e66b WHIRLPOOL 116b725ffb76562a3f1e9bbfa475a791b873746a7ae362eea1a97f3b701c6e32508eafb10fe47a3ad8f56ef0e67fb04a5d98a7baf5371646945718e7aff5ad60 diff --git a/sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch b/sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch new file mode 100644 index 000000000000..9ff86f6b84a6 --- /dev/null +++ b/sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch @@ -0,0 +1,26 @@ +newer gnulib has rewritten these checks in a way that works for the x32, +and for the targets we care about, these checks won't return false. so +just drop them to make our life simpler. + +https://sites.google.com/site/x32abi/x32-patches + +--- findutils-4.4.2/gnulib/lib/getdate.c.x32 2009-05-10 14:23:57.000000000 -0700 ++++ findutils-4.4.2/gnulib/lib/getdate.c 2011-12-05 11:41:18.130675712 -0800 +@@ -114,7 +114,6 @@ + wraps around, but there's no portable way to check for that at + compile-time. */ + verify (TYPE_IS_INTEGER (time_t)); +-verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX); + + /* An integer value, and the number of digits in its textual + representation. */ +--- findutils-4.4.2/gnulib/lib/mktime.c.x32 2009-05-10 14:25:13.000000000 -0700 ++++ findutils-4.4.2/gnulib/lib/mktime.c 2011-12-05 11:49:38.368589386 -0800 +@@ -166,7 +166,5 @@ ydhms_diff (long int year1, long int yda + { + verify (C99_integer_division, -1 / 2 == 0); +- verify (long_int_year_and_yday_are_wide_enough, +- INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); + + /* Compute intervening leap days correctly even if year is negative. + Take care to avoid integer overflow here. */ diff --git a/sys-apps/findutils/files/findutils-4.4.2-selinux.diff b/sys-apps/findutils/files/findutils-4.4.2-selinux.diff new file mode 100644 index 000000000000..66c9c412a0af --- /dev/null +++ b/sys-apps/findutils/files/findutils-4.4.2-selinux.diff @@ -0,0 +1,464 @@ +diff -purN findutils-4.4.2.orig/find/Makefile.am findutils-4.4.2/find/Makefile.am +--- findutils-4.4.2.orig/find/Makefile.am 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/Makefile.am 2010-04-25 03:58:33.762402367 +0000 +@@ -2,6 +2,7 @@ AUTOMAKE_OPTIONS = std-options + localedir = $(datadir)/locale + # noinst_PROGRAMS = regexprops + # regexprops_SOURCES = regexprops.c ++DEFS = @DEFS@ -I. -I$(srcdir) -I.. -DWITH_SELINUX + + noinst_LIBRARIES = libfindtools.a + libfindtools_a_SOURCES = finddata.c fstype.c parser.c pred.c tree.c util.c +@@ -26,7 +27,7 @@ endif + + EXTRA_DIST = defs.h $(man_MANS) + INCLUDES = -I../gnulib/lib -I$(top_srcdir)/lib -I$(top_srcdir)/gnulib/lib -I../intl -DLOCALEDIR=\"$(localedir)\" +-LDADD = ./libfindtools.a ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@ @LIB_CLOCK_GETTIME@ @FINDLIBS@ ++LDADD = ./libfindtools.a ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@ @LIB_CLOCK_GETTIME@ @FINDLIBS@ -lselinux + man_MANS = find.1 + SUBDIRS = . testsuite + +diff -purN findutils-4.4.2.orig/find/Makefile.in findutils-4.4.2/find/Makefile.in +--- findutils-4.4.2.orig/find/Makefile.in 2009-05-16 15:28:13.000000000 +0000 ++++ findutils-4.4.2/find/Makefile.in 2010-04-25 03:58:33.762402367 +0000 +@@ -275,7 +275,7 @@ CPP = @CPP@ + CPPFLAGS = @CPPFLAGS@ + CYGPATH_W = @CYGPATH_W@ + DEFAULT_ARG_SIZE = @DEFAULT_ARG_SIZE@ +-DEFS = @DEFS@ ++DEFS = @DEFS@ -I. -I$(srcdir) -I.. -DWITH_SELINUX + DEPDIR = @DEPDIR@ + DIRENT_H = @DIRENT_H@ + ECHO_C = @ECHO_C@ +@@ -607,7 +607,7 @@ libfindtools_a_SOURCES = finddata.c fsty + @WITH_FTS_TRUE@oldfind_SOURCES = find.c + @WITH_FTS_FALSE@ftsfind_SOURCES = ftsfind.c + EXTRA_DIST = defs.h $(man_MANS) +-LDADD = ./libfindtools.a ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@ @LIB_CLOCK_GETTIME@ @FINDLIBS@ ++LDADD = ./libfindtools.a ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@ @LIB_CLOCK_GETTIME@ @FINDLIBS@ -lselinux + man_MANS = find.1 + SUBDIRS = . testsuite + all: all-recursive +diff -purN findutils-4.4.2.orig/find/defs.h findutils-4.4.2/find/defs.h +--- findutils-4.4.2.orig/find/defs.h 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/defs.h 2010-04-25 03:58:33.762402367 +0000 +@@ -91,6 +91,9 @@ int get_statinfo PARAMS((const char *pat + #define MODE_RWX (S_IXUSR | S_IXGRP | S_IXOTH | MODE_RW) + #define MODE_ALL (S_ISUID | S_ISGID | S_ISVTX | MODE_RWX) + ++#ifdef WITH_SELINUX ++#include ++#endif /*WITH_SELINUX*/ + + struct predicate; + struct options; +@@ -315,6 +318,9 @@ struct predicate + struct samefile_file_id samefileid; /* samefile */ + mode_t type; /* type */ + struct format_val printf_vec; /* printf fprintf fprint ls fls print0 fprint0 print */ ++#ifdef WITH_SELINUX ++ security_context_t scontext; /* scontext */ ++#endif /*WITH_SELINUX*/ + } args; + + /* The next predicate in the user input sequence, +@@ -459,7 +465,9 @@ PREDICATEFUNCTION pred_used; + PREDICATEFUNCTION pred_user; + PREDICATEFUNCTION pred_writable; + PREDICATEFUNCTION pred_xtype; +- ++#ifdef WITH_SELINUX ++PREDICATEFUNCTION pred_scontext; ++#endif /* WITH_SELINUX */ + + + int launch PARAMS((const struct buildcmd_control *ctl, +@@ -605,10 +613,13 @@ struct options + */ + unsigned short optimisation_level; + +- + /* How should we quote filenames in error messages and so forth? + */ + enum quoting_style err_quoting_style; ++ ++#ifdef WITH_SELINUX ++ int (*x_getfilecon)(); ++#endif /* WITH_SELINUX */ + }; + extern struct options options; + +diff -purN findutils-4.4.2.orig/find/find.1 findutils-4.4.2/find/find.1 +--- findutils-4.4.2.orig/find/find.1 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/find.1 2010-04-25 03:58:33.762402367 +0000 +@@ -934,6 +934,10 @@ checks the type of the file that + .B \-type + does not check. + ++.IP "\-context \fIscontext\fR" ++.IP "\--context \fIscontext\fR" ++(SELinux only) File has the security context \fIscontext\fR. ++ + .SS ACTIONS + .IP "\-delete\fR" + Delete files; true if removal succeeded. If the removal failed, an +@@ -1354,6 +1358,8 @@ File's type (like in + U=unknown type (shouldn't happen) + .IP %Y + File's type (like %y), plus follow symlinks: L=loop, N=nonexistent ++.IP %Z ++(SELinux only) file's security context. + .PP + A `%' character followed by any other character is discarded, but the + other character is printed (don't rely on this, as further format +diff -purN findutils-4.4.2.orig/find/find.c findutils-4.4.2/find/find.c +--- findutils-4.4.2.orig/find/find.c 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/find.c 2010-04-25 03:58:33.764899827 +0000 +@@ -1270,7 +1270,7 @@ process_path (char *pathname, char *name + static void + process_dir (char *pathname, char *name, int pathlen, const struct stat *statp, char *parent) + { +- int subdirs_left; /* Number of unexamined subdirs in PATHNAME. */ ++ int subdirs_left=0; /* Number of unexamined subdirs in PATHNAME. */ + boolean subdirs_unreliable; /* if true, cannot use dir link count as subdir limif (if false, it may STILL be unreliable) */ + unsigned int idx; /* Which entry are we on? */ + struct stat stat_buf; +diff -purN findutils-4.4.2.orig/find/parser.c findutils-4.4.2/find/parser.c +--- findutils-4.4.2.orig/find/parser.c 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/parser.c 2010-04-25 03:58:33.764899827 +0000 +@@ -53,6 +53,13 @@ + #include + #include + ++#ifdef WITH_SELINUX ++#include ++int optionh_getfilecon(const char *name, security_context_t *p); ++int optionl_getfilecon(const char *name, security_context_t *p); ++int optionp_getfilecon(const char *name, security_context_t *p); ++#endif /*WITH_SELINUX*/ ++ + #if ENABLE_NLS + # include + # define _(Text) gettext (Text) +@@ -155,6 +162,9 @@ static boolean parse_noignore_race PARAM + static boolean parse_warn PARAMS((const struct parser_table*, char *argv[], int *arg_ptr)); + static boolean parse_xtype PARAMS((const struct parser_table*, char *argv[], int *arg_ptr)); + static boolean parse_quit PARAMS((const struct parser_table*, char *argv[], int *arg_ptr)); ++#ifdef WITH_SELINUX ++static boolean parse_scontext PARAMS((const struct parser_table*, char *argv[], int *arg_ptr)); ++#endif /*WITH_SELINUX*/ + + boolean parse_print PARAMS((const struct parser_table*, char *argv[], int *arg_ptr)); + +@@ -340,6 +350,8 @@ static struct parser_table const parse_t + {ARG_TEST, "-help", parse_help, NULL}, /* GNU */ + {ARG_TEST, "version", parse_version, NULL}, /* GNU */ + {ARG_TEST, "-version", parse_version, NULL}, /* GNU */ ++ {ARG_TEST, "context", parse_scontext, pred_scontext}, /* SELinux */ ++ {ARG_TEST, "-context", parse_scontext, pred_scontext}, /* SELinux */ + {0, 0, 0, 0} + }; + +@@ -451,10 +463,16 @@ set_follow_state(enum SymlinkOption opt) + case SYMLINK_ALWAYS_DEREF: /* -L */ + options.xstat = optionl_stat; + options.no_leaf_check = true; ++#ifdef WITH_SELINUX ++ options.x_getfilecon = optionl_getfilecon; ++#endif /* WITH_SELINUX */ + break; + + case SYMLINK_NEVER_DEREF: /* -P (default) */ + options.xstat = optionp_stat; ++#ifdef WITH_SELINUX ++ options.x_getfilecon = optionp_getfilecon; ++#endif /* WITH_SELINUX */ + /* Can't turn no_leaf_check off because the user might have specified + * -noleaf anyway + */ +@@ -463,6 +481,9 @@ set_follow_state(enum SymlinkOption opt) + case SYMLINK_DEREF_ARGSONLY: /* -H */ + options.xstat = optionh_stat; + options.no_leaf_check = true; ++#ifdef WITH_SELINUX ++ options.x_getfilecon = optionh_getfilecon; ++#endif /* WITH_SELINUX */ + } + } + options.symlink_handling = opt; +@@ -670,6 +691,94 @@ collect_arg_stat_info(char **argv, int * + + The predicate structure is updated with the new information. */ + ++#ifdef WITH_SELINUX ++ ++static int ++fallback_getfilecon(const char *name, security_context_t *p, int prev_rv) ++{ ++ /* Our original getfilecon() call failed. Perhaps we can't follow a ++ * symbolic link. If that might be the problem, lgetfilecon() the link. ++ * Otherwise, admit defeat. ++ */ ++ switch (errno) ++ { ++ case ENOENT: ++ case ENOTDIR: ++#ifdef DEBUG_STAT ++ fprintf(stderr, "fallback_getfilecon(): getfilecon(%s) failed; falling back on lgetfilecon()\n", name); ++#endif ++ return lgetfilecon(name, p); ++ ++ case EACCES: ++ case EIO: ++ case ELOOP: ++ case ENAMETOOLONG: ++#ifdef EOVERFLOW ++ case EOVERFLOW: /* EOVERFLOW is not #defined on UNICOS. */ ++#endif ++ default: ++ return prev_rv; ++ } ++} ++ ++ ++/* optionh_getfilecon() implements the getfilecon operation when the ++ * -H option is in effect. ++ * ++ * If the item to be examined is a command-line argument, we follow ++ * symbolic links. If the getfilecon() call fails on the command-line ++ * item, we fall back on the properties of the symbolic link. ++ * ++ * If the item to be examined is not a command-line argument, we ++ * examine the link itself. ++ */ ++int ++optionh_getfilecon(const char *name, security_context_t *p) ++{ ++ if (0 == state.curdepth) ++ { ++ /* This file is from the command line; deference the link (if it ++ * is a link). ++ */ ++ int rv = getfilecon(name, p); ++ if (0 == rv) ++ return 0; /* success */ ++ else ++ return fallback_getfilecon(name, p, rv); ++ } ++ else ++ { ++ /* Not a file on the command line; do not derefernce the link. ++ */ ++ return lgetfilecon(name, p); ++ } ++} ++ ++/* optionl_getfilecon() implements the getfilecon operation when the ++ * -L option is in effect. That option makes us examine the thing the ++ * symbolic link points to, not the symbolic link itself. ++ */ ++int ++optionl_getfilecon(const char *name, security_context_t *p) ++{ ++ int rv = getfilecon(name, p); ++ if (0 == rv) ++ return 0; /* normal case. */ ++ else ++ return fallback_getfilecon(name, p, rv); ++} ++ ++/* optionp_getfilecon() implements the stat operation when the -P ++ * option is in effect (this is also the default). That option makes ++ * us examine the symbolic link itself, not the thing it points to. ++ */ ++int ++optionp_getfilecon(const char *name, security_context_t *p) ++{ ++ return lgetfilecon(name, p); ++} ++#endif /* WITH_SELINUX */ ++ + + static boolean + parse_and (const struct parser_table* entry, char **argv, int *arg_ptr) +@@ -1128,6 +1237,10 @@ tests (N can be +N or -N or N): -amin N + -readable -writable -executable\n\ + -wholename PATTERN -size N[bcwkMG] -true -type [bcdpflsD] -uid N\n\ + -used N -user NAME -xtype [bcdpfls]\n")); ++#ifdef WITH_SELINUX ++ puts (_("\ ++ -context CONTEXT\n")); ++#endif /*WITH_SELINUX*/ + puts (_("\ + actions: -delete -print0 -printf FORMAT -fprintf FILE FORMAT -print \n\ + -fprint0 FILE -fprint FILE -ls -fls FILE -prune -quit\n\ +@@ -2552,6 +2665,29 @@ parse_version (const struct parser_table + exit (0); + } + ++#ifdef WITH_SELINUX ++ ++static boolean ++parse_scontext ( const struct parser_table* entry, char **argv, int *arg_ptr) ++{ ++ struct predicate *our_pred; ++ ++ if ( (argv == NULL) || (argv[*arg_ptr] == NULL) ) ++ return( false ); ++ ++ our_pred = insert_primary(entry); ++ our_pred->need_stat = false; ++#ifdef DEBUG ++ our_pred->p_name = find_pred_name (pred_scontext); ++#endif /*DEBUG*/ ++ our_pred->args.scontext = argv[*arg_ptr];; ++ ++ (*arg_ptr)++; ++ return( true ); ++} ++ ++#endif /*WITH_SELINUX*/ ++ + static boolean + parse_xdev (const struct parser_table* entry, char **argv, int *arg_ptr) + { +@@ -2803,7 +2939,11 @@ insert_fprintf (struct format_val *vec, + if (*scan2 == '.') + for (scan2++; ISDIGIT (*scan2); scan2++) + /* Do nothing. */ ; ++#ifdef WITH_SELINUX ++ if (strchr ("abcdDfFgGhHiklmMnpPsStuUyYZ", *scan2)) ++#else + if (strchr ("abcdDfFgGhHiklmMnpPsStuUyY", *scan2)) ++#endif + { + segmentp = make_segment (segmentp, format, scan2 - format, + KIND_FORMAT, *scan2, 0, +diff -purN findutils-4.4.2.orig/find/pred.c findutils-4.4.2/find/pred.c +--- findutils-4.4.2.orig/find/pred.c 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/pred.c 2010-04-25 03:58:33.764899827 +0000 +@@ -48,6 +48,14 @@ + #include "error.h" + #include "verify.h" + ++#ifdef WITH_SELINUX ++#include ++#endif /*WITH_SELINUX*/ ++ ++#ifndef FNM_CASEFOLD ++#define FNM_CASEFOLD (1<<4) ++#endif /*FNM_CASEFOLD*/ ++ + #if ENABLE_NLS + # include + # define _(Text) gettext (Text) +@@ -230,6 +238,9 @@ struct pred_assoc pred_table[] = + {pred_user, "user "}, + {pred_writable, "writable "}, + {pred_xtype, "xtype "}, ++#ifdef WITH_SELINUX ++ {pred_scontext, "context"}, ++#endif /*WITH_SELINUX*/ + {0, "none "} + }; + #endif +@@ -1054,6 +1065,26 @@ do_fprintf(struct format_val *dest, + mode_to_filetype(stat_buf->st_mode & S_IFMT)); + } + break; ++#ifdef WITH_SELINUX ++ case 'Z': /* SELinux security context */ ++ { ++ security_context_t scontext; ++ int rv; ++ rv = (*options.x_getfilecon)(state.rel_pathname, &scontext); ++ ++ if ( rv < 0 ) { ++ fprintf(stderr, "getfileconf(%s): %s", ++ pathname, strerror(errno)); ++ fflush(stderr); ++ } ++ else { ++ segment->text[segment->text_len] = 's'; ++ checked_fprintf (dest, segment->text, scontext); ++ freecon(scontext); ++ } ++ } ++ break ; ++#endif /* WITH_SELINUX */ + } + /* end of KIND_FORMAT case */ + break; +@@ -1844,6 +1875,31 @@ pred_xtype (const char *pathname, struct + */ + return (pred_type (pathname, &sbuf, pred_ptr)); + } ++ ++ ++#ifdef WITH_SELINUX ++ ++boolean ++pred_scontext (const char *pathname, struct stat *stat_buf, struct predicate *pred_ptr) ++{ ++ int rv; ++ security_context_t scontext; ++ ++ rv = (* options.x_getfilecon)(state.rel_pathname, &scontext); ++ ++ if ( rv < 0 ) { ++ (void) fprintf(stderr, "getfilecon(%s): %s\n", pathname, strerror(errno)); ++ (void) fflush(stderr); ++ return ( false ); ++ } ++ ++ rv = (fnmatch(pred_ptr->args.scontext, scontext,0)==0); ++ freecon(scontext); ++ return rv; ++} ++ ++#endif /*WITH_SELINUX*/ ++ + + /* 1) fork to get a child; parent remembers the child pid + 2) child execs the command requested +diff -purN findutils-4.4.2.orig/find/tree.c findutils-4.4.2/find/tree.c +--- findutils-4.4.2.orig/find/tree.c 2009-05-16 15:17:01.000000000 +0000 ++++ findutils-4.4.2/find/tree.c 2010-04-25 03:58:33.764899827 +0000 +@@ -1195,6 +1195,10 @@ build_expression_tree(int argc, char *ar + const struct parser_table *entry_close, *entry_print, *entry_open; + int i, oldi; + ++#ifdef WITH_SELINUX ++ int is_selinux_enabled_flag = is_selinux_enabled()>0; ++#endif /* WITH_SELINUX */ ++ + predicates = NULL; + + /* Find where in ARGV the predicates begin by skipping the list of +@@ -1230,6 +1234,16 @@ build_expression_tree(int argc, char *ar + } + + predicate_name = argv[i]; ++ ++#ifdef WITH_SELINUX ++ if (! is_selinux_enabled_flag) { ++ if ((strncmp(predicate_name,"-context",strlen("-context"))==0) || ++ (strncmp(predicate_name,"--context",strlen("--context"))==0)) { ++ error (1, 0,_("Error: invalid predicate %s: the kernel is not selinux-enabled.\n"),predicate_name); ++ } ++ } ++#endif ++ + parse_entry = find_parser (predicate_name); + if (parse_entry == NULL) + { +@@ -1434,6 +1448,9 @@ get_new_pred (const struct parser_table + last_pred->need_stat = true; + last_pred->need_type = true; + last_pred->args.str = NULL; ++#ifdef WITH_SELINUX ++ last_pred->args.scontext = NULL; ++#endif + last_pred->pred_next = NULL; + last_pred->pred_left = NULL; + last_pred->pred_right = NULL; diff --git a/sys-apps/findutils/files/findutils-4.5.14-test-bashisms.patch b/sys-apps/findutils/files/findutils-4.5.14-test-bashisms.patch new file mode 100644 index 000000000000..0bfe7017b8b4 --- /dev/null +++ b/sys-apps/findutils/files/findutils-4.5.14-test-bashisms.patch @@ -0,0 +1,66 @@ +From 284afcb4a01996bb1a56f87da1e7c541fd0a903c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sat, 4 Apr 2015 18:34:51 -0400 +Subject: [PATCH] test: fix bashisms + +These test scripts use #!/bin/sh, but then try to use bash-specific +[[...]] tests. Change them to [...] instead. + +Reported-by: Paolo Pedroni +URL: https://bugs.gentoo.org/531020 + +* find/testsuite/binary_locations.sh: Change [[...]] to [...]. +* find/testsuite/sv-34079.sh: Likewise. +--- + find/testsuite/binary_locations.sh | 6 +++--- + find/testsuite/sv-34079.sh | 4 ++-- + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/find/testsuite/binary_locations.sh b/find/testsuite/binary_locations.sh +index 96943a0..238d57f 100644 +--- a/find/testsuite/binary_locations.sh ++++ b/find/testsuite/binary_locations.sh +@@ -1,15 +1,15 @@ + # Source this file, don't execute it. + +-if [[ -z "${testname}" ]]; then ++if [ -z "${testname}" ]; then + echo 'Please set $testname before sourcing binary_locations.sh.' >&2 + exit 1 + fi + + parent="$(cd .. && pwd)" +-if [[ -f "${parent}/ftsfind" ]]; then ++if [ -f "${parent}/ftsfind" ]; then + ftsfind="${parent}/ftsfind" + oldfind="${parent}/find" +-elif [[ -f "${parent}/oldfind" ]]; then ++elif [ -f "${parent}/oldfind" ]; then + ftsfind="${parent}/find" + oldfind="${parent}/oldfind" + else +diff --git a/find/testsuite/sv-34079.sh b/find/testsuite/sv-34079.sh +index 5773a3f..928a9af 100755 +--- a/find/testsuite/sv-34079.sh ++++ b/find/testsuite/sv-34079.sh +@@ -41,7 +41,7 @@ make_test_data() { + } + + +-if [[ -n "${RUN_VERY_EXPENSIVE_TESTS}" ]]; then ++if [ -n "${RUN_VERY_EXPENSIVE_TESTS}" ]; then + if outdir=$(mktemp -d); then + # Create some test files. + bad="" +@@ -64,7 +64,7 @@ if [[ -n "${RUN_VERY_EXPENSIVE_TESTS}" ]]; then + bad="failed to set up the test in ${outdir}" + fi + rm -rf "${outdir}" || exit 1 +- if [[ -n "${bad}" ]]; then ++ if [ -n "${bad}" ]; then + echo "${bad}" >&2 + exit 1 + fi +-- +2.3.5 + diff --git a/sys-apps/findutils/findutils-4.4.2-r1.ebuild b/sys-apps/findutils/findutils-4.4.2-r1.ebuild new file mode 100644 index 000000000000..276afcfeea6f --- /dev/null +++ b/sys-apps/findutils/findutils-4.4.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic toolchain-funcs multilib + +SELINUX_PATCH="findutils-4.4.2-selinux.diff" + +DESCRIPTION="GNU utilities for finding files" +HOMEPAGE="http://www.gnu.org/software/findutils/" +SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz + mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="nls selinux static" + +RDEPEND="selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gnulib-date-x32.patch + + # Don't build or install locate because it conflicts with slocate, + # which is a secure version of locate. See bug 18729 + sed -i '/^SUBDIRS/s/locate//' Makefile.in + + use selinux && epatch "${FILESDIR}/${SELINUX_PATCH}" +} + +src_compile() { + use static && append-ldflags -static + + local myconf + use userland_GNU || myconf=" --program-prefix=g" + + econf \ + $(use_enable nls) \ + --libexecdir=/usr/$(get_libdir)/find \ + ${myconf} \ + || die "configure failed" + emake AR="$(tc-getAR)" || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc NEWS README TODO ChangeLog +} diff --git a/sys-apps/findutils/findutils-4.4.2-r2.ebuild b/sys-apps/findutils/findutils-4.4.2-r2.ebuild new file mode 100644 index 000000000000..9e7d463ebd6f --- /dev/null +++ b/sys-apps/findutils/findutils-4.4.2-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +SELINUX_PATCH="findutils-4.4.2-selinux.diff" + +DESCRIPTION="GNU utilities for finding files" +HOMEPAGE="http://www.gnu.org/software/findutils/" +SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz + mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="debug nls selinux static" + +RDEPEND="selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gnulib-date-x32.patch + + # Don't build or install locate because it conflicts with slocate, + # which is a secure version of locate. See bug 18729 + sed -i '/^SUBDIRS/s/locate//' Makefile.in + + use selinux && epatch "${FILESDIR}/${SELINUX_PATCH}" +} + +src_configure() { + use static && append-ldflags -static + + program_prefix=$(usex userland_GNU '' g) + econf \ + --program-prefix=${program_prefix} \ + $(use_enable debug) \ + $(use_enable nls) \ + --libexecdir='$(libdir)'/find +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + + # We don't need this, so punt it. + rm "${ED}"/usr/bin/${program_prefix}oldfind || die +} diff --git a/sys-apps/findutils/findutils-4.5.12.ebuild b/sys-apps/findutils/findutils-4.5.12.ebuild new file mode 100644 index 000000000000..267db222cc40 --- /dev/null +++ b/sys-apps/findutils/findutils-4.5.12.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils flag-o-matic toolchain-funcs multilib + +DESCRIPTION="GNU utilities for finding files" +HOMEPAGE="http://www.gnu.org/software/findutils/" +SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls selinux static" + +RDEPEND="selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + # Don't build or install locate because it conflicts with slocate, + # which is a secure version of locate. See bug 18729 + sed -i '/^SUBDIRS/s/locate//' Makefile.in +} + +src_configure() { + use static && append-ldflags -static + + program_prefix=$(usex userland_GNU '' g) + econf \ + --with-packager="Gentoo" \ + --with-packager-version="${PVR}" \ + --with-packager-bug-reports="http://bugs.gentoo.org/" \ + --program-prefix=${program_prefix} \ + $(use_enable nls) \ + $(use_with selinux) \ + --libexecdir='$(libdir)'/find +} + +src_install() { + emake DESTDIR="${D}" install + dodoc NEWS README TODO ChangeLog + + # We don't need this, so punt it. + rm "${ED}"/usr/bin/${program_prefix}oldfind \ + "${ED}"/usr/share/man/man1/${program_prefix}oldfind.1 || die +} diff --git a/sys-apps/findutils/findutils-4.5.14-r1.ebuild b/sys-apps/findutils/findutils-4.5.14-r1.ebuild new file mode 100644 index 000000000000..c520ee26744e --- /dev/null +++ b/sys-apps/findutils/findutils-4.5.14-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="GNU utilities for finding files" +HOMEPAGE="http://www.gnu.org/software/findutils/" +SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug nls selinux static" + +RDEPEND="selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-test-bashisms.patch #531020 + # Don't build or install locate because it conflicts with slocate, + # which is a secure version of locate. See bug 18729 + sed -i '/^SUBDIRS/s/locate//' Makefile.in + + # Disable gnulib build test that has no impact on the source. + # Re-enable w/next version bump (and gnulib is updated). #554728 + [[ ${PV} != "4.5.14" ]] && die "re-enable test #554728" + echo 'exit 0' > tests/test-update-copyright.sh || die +} + +src_configure() { + use static && append-ldflags -static + + program_prefix=$(usex userland_GNU '' g) + econf \ + --with-packager="Gentoo" \ + --with-packager-version="${PVR}" \ + --with-packager-bug-reports="http://bugs.gentoo.org/" \ + --program-prefix=${program_prefix} \ + $(use_enable debug) \ + $(use_enable nls) \ + $(use_with selinux) \ + --libexecdir='$(libdir)'/find +} + +src_install() { + default + + # We don't need this, so punt it. + rm "${ED}"/usr/bin/${program_prefix}oldfind \ + "${ED}"/usr/share/man/man1/${program_prefix}oldfind.1 || die +} diff --git a/sys-apps/findutils/findutils-4.5.14.ebuild b/sys-apps/findutils/findutils-4.5.14.ebuild new file mode 100644 index 000000000000..267db222cc40 --- /dev/null +++ b/sys-apps/findutils/findutils-4.5.14.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils flag-o-matic toolchain-funcs multilib + +DESCRIPTION="GNU utilities for finding files" +HOMEPAGE="http://www.gnu.org/software/findutils/" +SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls selinux static" + +RDEPEND="selinux? ( sys-libs/libselinux ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + # Don't build or install locate because it conflicts with slocate, + # which is a secure version of locate. See bug 18729 + sed -i '/^SUBDIRS/s/locate//' Makefile.in +} + +src_configure() { + use static && append-ldflags -static + + program_prefix=$(usex userland_GNU '' g) + econf \ + --with-packager="Gentoo" \ + --with-packager-version="${PVR}" \ + --with-packager-bug-reports="http://bugs.gentoo.org/" \ + --program-prefix=${program_prefix} \ + $(use_enable nls) \ + $(use_with selinux) \ + --libexecdir='$(libdir)'/find +} + +src_install() { + emake DESTDIR="${D}" install + dodoc NEWS README TODO ChangeLog + + # We don't need this, so punt it. + rm "${ED}"/usr/bin/${program_prefix}oldfind \ + "${ED}"/usr/share/man/man1/${program_prefix}oldfind.1 || die +} diff --git a/sys-apps/findutils/metadata.xml b/sys-apps/findutils/metadata.xml new file mode 100644 index 000000000000..b122af87724d --- /dev/null +++ b/sys-apps/findutils/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + cpe:/a:gnu:findutils + + diff --git a/sys-apps/flashrom/Manifest b/sys-apps/flashrom/Manifest new file mode 100644 index 000000000000..a33ff6f703cd --- /dev/null +++ b/sys-apps/flashrom/Manifest @@ -0,0 +1,3 @@ +DIST flashrom-0.9.6.1.tar.bz2 368133 SHA256 6f7b588cce74c90b4fe9c9c794de105de76e0323442fb5770b1aeab81e9d560a SHA512 335243ca869a49521b6404004496cdba16f11da4f5321bbc8786635bbc7a0fe7215de2015d67200da68d398ed270d9a2ad9308ca9f762790e39b9f0602e53529 WHIRLPOOL f55f53cc6f06b627d8561e369bca32f1b62dc8de9a35963c01575b31f3190cf1be3b7114db8552b7f9f87c971960f1d16fe284d44e8d2db3da2996431d08598c +DIST flashrom-0.9.7.tar.bz2 408883 SHA256 5a55212d00791981a9a1cb0cdca9d9e58bea6d399864251e7b410b4d3d6137e9 SHA512 a226c1ac3f9c7822b74ca14b7f9b53013110b2cdb66b1f936593c693ee54f19d643cc3a97a9635c05f2c959aca817668006f609ddb503a84d0bf5d510065674e WHIRLPOOL 97472148f97b86dc3b6661fe0368f492584308a8e86f2376bd3eb6e285a02dfcf231f2d917f30a734e90fbc9baf3899329c04ea245048d647077c50646ecd17d +DIST flashrom-0.9.8.tar.bz2 473902 SHA256 13dc7c895e583111ecca370363a3527d237d178a134a94b20db7df177c05f934 SHA512 1a1c4513bac7cdf91326ab68b822034101e688bfab0dc0b5698f664fc766027229128c55eed94f302cac05d949647cdec6a103a423c3861b047cf0ff7cc0b509 WHIRLPOOL 61381faeff133065c195e37d9cf9eced6f5ff4c3dc6103abcca8186d11de9e1523e4fcfd173f34dfa44c78ad731db25a771d670bf5cd808f00ed5e80697c5c35 diff --git a/sys-apps/flashrom/flashrom-0.9.6.1.ebuild b/sys-apps/flashrom/flashrom-0.9.6.1.ebuild new file mode 100644 index 000000000000..cf7ffd954634 --- /dev/null +++ b/sys-apps/flashrom/flashrom-0.9.6.1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://flashrom.org/flashrom/trunk" + inherit subversion +else + SRC_URI="http://download.flashrom.org/releases/${P}.tar.bz2" + KEYWORDS="amd64 arm x86" +fi + +DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips" +HOMEPAGE="http://flashrom.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atahpt +bitbang_spi +buspirate_spi +dediprog doc +drkaiser ++dummy ft2232_spi +gfxnvidia +internal +nic3com +nicintel +nicintel_spi +nicnatsemi nicrealtek +ogp_spi rayer_spi ++pony_spi +satasii satamv +serprog +wiki" + +COMMON_DEPEND="atahpt? ( sys-apps/pciutils ) + dediprog? ( virtual/libusb:0 ) + drkaiser? ( sys-apps/pciutils ) + ft2232_spi? ( dev-embedded/libftdi ) + gfxnvidia? ( sys-apps/pciutils ) + internal? ( sys-apps/pciutils ) + nic3com? ( sys-apps/pciutils ) + nicintel? ( sys-apps/pciutils ) + nicintel_spi? ( sys-apps/pciutils ) + nicnatsemi? ( sys-apps/pciutils ) + nicrealtek? ( sys-apps/pciutils ) + rayer_spi? ( sys-apps/pciutils ) + satasii? ( sys-apps/pciutils ) + satamv? ( sys-apps/pciutils ) + ogp_spi? ( sys-apps/pciutils )" +RDEPEND="${COMMON_DEPEND} + internal? ( sys-apps/dmidecode )" +DEPEND="${COMMON_DEPEND} + sys-apps/diffutils" + +_flashrom_enable() { + local c="CONFIG_${2:-$(echo $1 | tr [:lower:] [:upper:])}" + args+=" $c=$(usex $1 yes no)" +} +flashrom_enable() { + local u + for u in "$@" ; do _flashrom_enable $u ; done +} + +src_compile() { + local progs=0 + local args="" + + # Programmer + flashrom_enable \ + atahpt bitbang_spi buspirate_spi dediprog drkaiser \ + ft2232_spi gfxnvidia nic3com nicintel nicintel_spi nicnatsemi nicrealtek \ + ogp_spi rayer_spi pony_spi \ + satasii satamv serprog \ + internal dummy + _flashrom_enable wiki PRINT_WIKI + + # You have to specify at least one programmer, and if you specify more than + # one programmer you have to include either dummy or internal in the list. + for prog in ${IUSE//[+-]} ; do + case ${prog} in + internal|dummy|wiki) continue ;; + esac + + use ${prog} && : $(( progs++ )) + done + if [ $progs -ne 1 ] ; then + if ! use internal && ! use dummy ; then + ewarn "You have to specify at least one programmer, and if you specify" + ewarn "more than one programmer, you have to enable either dummy or" + ewarn "internal as well. 'internal' will be the default now." + args+=" CONFIG_INTERNAL=yes" + fi + fi + + # WARNERROR=no, bug 347879 + tc-export AR CC RANLIB + emake WARNERROR=no ${args} || die +} + +src_install() { + dosbin flashrom || die + doman flashrom.8 + dodoc ChangeLog README + + if use doc; then + dodoc Documentation/*.txt + fi +} diff --git a/sys-apps/flashrom/flashrom-0.9.7.ebuild b/sys-apps/flashrom/flashrom-0.9.7.ebuild new file mode 100644 index 000000000000..11ecdf371b7a --- /dev/null +++ b/sys-apps/flashrom/flashrom-0.9.7.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://flashrom.org/flashrom/trunk" + inherit subversion +else + SRC_URI="http://download.flashrom.org/releases/${P}.tar.bz2" + KEYWORDS="amd64 arm ~mips x86" +fi + +DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips" +HOMEPAGE="http://flashrom.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atahpt +bitbang_spi +buspirate_spi +dediprog +drkaiser ++dummy ft2232_spi +gfxnvidia +internal +linux_spi +nic3com +nicintel ++nicintel_spi nicnatsemi nicrealtek +ogp_spi rayer_spi ++pony_spi +satasii satamv +serprog static tools usbblaster +wiki" + +LIB_DEPEND="atahpt? ( sys-apps/pciutils[static-libs(+)] ) + dediprog? ( virtual/libusb:0[static-libs(+)] ) + drkaiser? ( sys-apps/pciutils[static-libs(+)] ) + ft2232_spi? ( dev-embedded/libftdi[static-libs(+)] ) + gfxnvidia? ( sys-apps/pciutils[static-libs(+)] ) + internal? ( sys-apps/pciutils[static-libs(+)] ) + nic3com? ( sys-apps/pciutils[static-libs(+)] ) + nicintel? ( sys-apps/pciutils[static-libs(+)] ) + nicintel_spi? ( sys-apps/pciutils[static-libs(+)] ) + nicnatsemi? ( sys-apps/pciutils[static-libs(+)] ) + nicrealtek? ( sys-apps/pciutils[static-libs(+)] ) + rayer_spi? ( sys-apps/pciutils[static-libs(+)] ) + satasii? ( sys-apps/pciutils[static-libs(+)] ) + satamv? ( sys-apps/pciutils[static-libs(+)] ) + usbblaster? ( dev-embedded/libftdi[static-libs(+)] ) + ogp_spi? ( sys-apps/pciutils[static-libs(+)] )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + sys-apps/diffutils" +RDEPEND+=" internal? ( sys-apps/dmidecode )" + +_flashrom_enable() { + local c="CONFIG_${2:-$(echo $1 | tr [:lower:] [:upper:])}" + args+=" $c=$(usex $1 yes no)" +} +flashrom_enable() { + local u + for u in "$@" ; do _flashrom_enable $u ; done +} + +src_compile() { + local progs=0 + local args="" + + # Programmer + flashrom_enable \ + atahpt bitbang_spi buspirate_spi dediprog drkaiser \ + ft2232_spi gfxnvidia linux_spi nic3com nicintel \ + nicintel_spi nicnatsemi nicrealtek ogp_spi rayer_spi \ + pony_spi satasii satamv serprog usbblaster \ + internal dummy + _flashrom_enable wiki PRINT_WIKI + _flashrom_enable static STATIC + + # You have to specify at least one programmer, and if you specify more than + # one programmer you have to include either dummy or internal in the list. + for prog in ${IUSE//[+-]} ; do + case ${prog} in + internal|dummy|wiki) continue ;; + esac + + use ${prog} && : $(( progs++ )) + done + if [[ ${progs} -ne 1 ]] ; then + if ! use internal && ! use dummy ; then + ewarn "You have to specify at least one programmer, and if you specify" + ewarn "more than one programmer, you have to enable either dummy or" + ewarn "internal as well. 'internal' will be the default now." + args+=" CONFIG_INTERNAL=yes" + fi + fi + + # WARNERROR=no, bug 347879 + tc-export AR CC RANLIB + emake WARNERROR=no ${args} +} + +src_test() { + if [[ -d tests ]] ; then + pushd tests >/dev/null + ./tests.py || die + popd >/dev/null + fi +} + +src_install() { + dosbin flashrom + doman flashrom.8 + dodoc ChangeLog README Documentation/*.txt + + if use tools; then + if use amd64; then + dosbin util/ich_descriptors_tool/ich_descriptors_tool + elif use x86; then + dosbin util/ich_descriptors_tool/ich_descriptors_tool + fi + fi +} diff --git a/sys-apps/flashrom/flashrom-0.9.8.ebuild b/sys-apps/flashrom/flashrom-0.9.8.ebuild new file mode 100644 index 000000000000..d442c9c1f993 --- /dev/null +++ b/sys-apps/flashrom/flashrom-0.9.8.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://flashrom.org/flashrom/trunk" + inherit subversion +else + SRC_URI="http://download.flashrom.org/releases/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" +fi + +DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips" +HOMEPAGE="http://flashrom.org/" + +LICENSE="GPL-2" +SLOT="0" +# The defaults match the upstream Makefile. +# Note: Do not list bitbang_spi as it is not a programmer; it's a backend used +# by some other spi programmers. +IUSE_PROGRAMMERS="atahpt +atavia +buspirate_spi dediprog +drkaiser +dummy ++ft2232_spi +gfxnvidia +internal +it8212 +linux_spi mstarddc_spi +nic3com ++nicintel +nicintel_eeprom +nicintel_spi nicnatsemi +nicrealtek +ogp_spi ++pickit2_spi +pony_spi +rayer_spi +satamv +satasii +serprog +usbblaster_spi" +IUSE="${IUSE_PROGRAMMERS} +internal_dmi static tools +wiki" + +LIB_DEPEND="atahpt? ( sys-apps/pciutils[static-libs(+)] ) + atavia? ( sys-apps/pciutils[static-libs(+)] ) + dediprog? ( virtual/libusb:0[static-libs(+)] ) + drkaiser? ( sys-apps/pciutils[static-libs(+)] ) + ft2232_spi? ( dev-embedded/libftdi[static-libs(+)] ) + gfxnvidia? ( sys-apps/pciutils[static-libs(+)] ) + it8212? ( sys-apps/pciutils[static-libs(+)] ) + internal? ( sys-apps/pciutils[static-libs(+)] ) + nic3com? ( sys-apps/pciutils[static-libs(+)] ) + nicintel? ( sys-apps/pciutils[static-libs(+)] ) + nicintel_eeprom? ( sys-apps/pciutils[static-libs(+)] ) + nicintel_spi? ( sys-apps/pciutils[static-libs(+)] ) + nicnatsemi? ( sys-apps/pciutils[static-libs(+)] ) + nicrealtek? ( sys-apps/pciutils[static-libs(+)] ) + ogp_spi? ( sys-apps/pciutils[static-libs(+)] ) + pickit2_spi? ( virtual/libusb:0[static-libs(+)] ) + rayer_spi? ( sys-apps/pciutils[static-libs(+)] ) + satamv? ( sys-apps/pciutils[static-libs(+)] ) + satasii? ( sys-apps/pciutils[static-libs(+)] ) + usbblaster_spi? ( dev-embedded/libftdi[static-libs(+)] )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + sys-apps/diffutils" +RDEPEND+=" !internal_dmi? ( sys-apps/dmidecode )" + +_flashrom_enable() { + local c="CONFIG_${2:-$(echo "$1" | tr [:lower:] [:upper:])}" + args+=( "${c}=$(usex $1 yes no)" ) +} +flashrom_enable() { + local u + for u ; do _flashrom_enable "${u}" ; done +} + +src_prepare() { + sed -i \ + -e 's:pkg-config:$(PKG_CONFIG):' \ + Makefile || die +} + +src_compile() { + # Help keep things in sync. + local sprogs=$(echo $( + grep -o 'CONFIG_[A-Z0-9_]*' flashrom.c | \ + sort -u | \ + sed 's:^CONFIG_::' | \ + tr '[:upper:]' '[:lower:]')) + local eprogs=$(echo ${IUSE_PROGRAMMERS//[+-]}) + if [[ ${sprogs} != "${eprogs}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "IUSE set to: ${eprogs}" + eerror "flashrom.c : ${sprogs}" + die "sync IUSE to the list of source programmers" + fi + + # Turn USE flags into CONFIG_xxx settings. + local args=() + flashrom_enable ${eprogs} + _flashrom_enable wiki PRINT_WIKI + _flashrom_enable static STATIC + + # You have to specify at least one programmer, and if you specify more than + # one programmer you have to include either dummy or internal in the list. + # We pick dummy as the default because internal requires libpci. + if ! use internal && ! use dummy ; then + if [[ ${#args[@]} -ne 1 ]] ; then + ewarn "You have to specify at least one programmer, and if you specify" + ewarn "more than one programmer, you have to enable either dummy or" + ewarn "internal as well. 'dummy' will be the default now." + args+=( CONFIG_DUMMY=yes ) + fi + fi + + tc-export AR CC PKG_CONFIG RANLIB + emake WARNERROR=no "${args[@]}" +} + +src_test() { + if [[ -d tests ]] ; then + pushd tests >/dev/null + ./tests.py || die + popd >/dev/null + fi +} + +src_install() { + dosbin flashrom + doman flashrom.8 + dodoc ChangeLog README Documentation/*.txt + + if use tools ; then + if use amd64 ; then + dosbin util/ich_descriptors_tool/ich_descriptors_tool + elif use x86 ; then + dosbin util/ich_descriptors_tool/ich_descriptors_tool + fi + fi +} diff --git a/sys-apps/flashrom/flashrom-9999.ebuild b/sys-apps/flashrom/flashrom-9999.ebuild new file mode 100644 index 000000000000..549680e63a91 --- /dev/null +++ b/sys-apps/flashrom/flashrom-9999.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://flashrom.org/flashrom/trunk" + inherit subversion +else + SRC_URI="http://download.flashrom.org/releases/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" +fi + +DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips" +HOMEPAGE="http://flashrom.org/" + +LICENSE="GPL-2" +SLOT="0" +# The defaults match the upstream Makefile. +# Note: Do not list bitbang_spi as it is not a programmer; it's a backend used +# by some other spi programmers. +IUSE_PROGRAMMERS="atahpt +atavia +buspirate_spi dediprog +drkaiser +dummy ++ft2232_spi +gfxnvidia +internal +it8212 +linux_spi mstarddc_spi +nic3com ++nicintel +nicintel_eeprom +nicintel_spi nicnatsemi +nicrealtek +ogp_spi ++pickit2_spi +pony_spi +rayer_spi +satamv +satasii +serprog +usbblaster_spi" +IUSE="${IUSE_PROGRAMMERS} +internal_dmi static tools +wiki" + +LIB_DEPEND="atahpt? ( sys-apps/pciutils[static-libs(+)] ) + atavia? ( sys-apps/pciutils[static-libs(+)] ) + dediprog? ( virtual/libusb:0[static-libs(+)] ) + drkaiser? ( sys-apps/pciutils[static-libs(+)] ) + ft2232_spi? ( dev-embedded/libftdi[static-libs(+)] ) + gfxnvidia? ( sys-apps/pciutils[static-libs(+)] ) + it8212? ( sys-apps/pciutils[static-libs(+)] ) + internal? ( sys-apps/pciutils[static-libs(+)] ) + nic3com? ( sys-apps/pciutils[static-libs(+)] ) + nicintel? ( sys-apps/pciutils[static-libs(+)] ) + nicintel_eeprom? ( sys-apps/pciutils[static-libs(+)] ) + nicintel_spi? ( sys-apps/pciutils[static-libs(+)] ) + nicnatsemi? ( sys-apps/pciutils[static-libs(+)] ) + nicrealtek? ( sys-apps/pciutils[static-libs(+)] ) + ogp_spi? ( sys-apps/pciutils[static-libs(+)] ) + pickit2_spi? ( virtual/libusb:0[static-libs(+)] ) + rayer_spi? ( sys-apps/pciutils[static-libs(+)] ) + satamv? ( sys-apps/pciutils[static-libs(+)] ) + satasii? ( sys-apps/pciutils[static-libs(+)] ) + usbblaster_spi? ( dev-embedded/libftdi[static-libs(+)] )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + sys-apps/diffutils" +RDEPEND+=" !internal_dmi? ( sys-apps/dmidecode )" + +_flashrom_enable() { + local c="CONFIG_${2:-$(echo "$1" | tr [:lower:] [:upper:])}" + args+=( "${c}=$(usex $1 yes no)" ) +} +flashrom_enable() { + local u + for u ; do _flashrom_enable "${u}" ; done +} + +src_prepare() { + sed -i \ + -e 's:pkg-config:$(PKG_CONFIG):' \ + Makefile || die +} + +src_compile() { + # Help keep things in sync. + local sprogs=$(echo $( + grep -o 'CONFIG_[A-Z0-9_]*' flashrom.c | \ + sort -u | \ + sed 's:^CONFIG_::' | \ + tr '[:upper:]' '[:lower:]')) + local eprogs=$(echo ${IUSE_PROGRAMMERS//[+-]}) + if [[ ${sprogs} != "${eprogs}" ]] ; then + eerror "The ebuild needs to be kept in sync." + eerror "IUSE set to: ${eprogs}" + eerror "flashrom.c : ${sprogs}" + die "sync IUSE to the list of source programmers" + fi + + # Turn USE flags into CONFIG_xxx settings. + local args=() + flashrom_enable ${eprogs} + _flashrom_enable wiki PRINT_WIKI + _flashrom_enable static STATIC + + # You have to specify at least one programmer, and if you specify more than + # one programmer you have to include either dummy or internal in the list. + # We pick dummy as the default because internal requires libpci. + if ! use internal && ! use dummy ; then + if [[ ${#args[@]} -ne 1 ]] ; then + ewarn "You have to specify at least one programmer, and if you specify" + ewarn "more than one programmer, you have to enable either dummy or" + ewarn "internal as well. 'dummy' will be the default now." + args+=( CONFIG_DUMMY=yes ) + fi + fi + + tc-export AR CC PKG_CONFIG RANLIB + emake WARNERROR=no "${args[@]}" +} + +src_test() { + if [[ -d tests ]] ; then + pushd tests >/dev/null + ./tests.py || die + popd >/dev/null + fi +} + +src_install() { + dosbin flashrom + doman flashrom.8 + dodoc README Documentation/*.txt + + if use tools ; then + if use amd64 ; then + dosbin util/ich_descriptors_tool/ich_descriptors_tool + elif use x86 ; then + dosbin util/ich_descriptors_tool/ich_descriptors_tool + fi + fi +} diff --git a/sys-apps/flashrom/metadata.xml b/sys-apps/flashrom/metadata.xml new file mode 100644 index 000000000000..2501995b300b --- /dev/null +++ b/sys-apps/flashrom/metadata.xml @@ -0,0 +1,60 @@ + + + + proxy-maintainers + + idl0r@gentoo.org + Christian Ruppert + + + peter@stuge.se + Please CC on all bugs + + + Highpoint (HPT) ATA/RAID controller support + Support for VIA VT6421A SATA controllers + Bitbanging SPI infrastructure + Enable Bus Pirate SPI programmer + Dediprog SF100 support + Enable Dr. Kaiser programmer + Enable dummy tracing + Enable ftdi programmer, flashing through FTDI/SPI USB interface + Enable NVIDIA programmer + Enable internal/onboard support + Enable internal DMI decoding rather than use sys-apps/dmidecode + Support for ITE IT8212F ATA/RAID controllers + Enable support for Linux userspace spidev interface + Support for SPI flash ROMs accessible through DDC in MSTAR-equipped displays + Enable 3Com NIC programmer + Support for Intel NICs + Support for EEPROMs on Intel Gigabit network cards + Support for SPI on Intel NICs + Support for National Semiconductor NICs + Support for Realtek NICs + Enable support for OGP (Open Graphics Project) SPI flashing + SUpport for SPI flash ROMs accessible via Microchip PICkit2 + Enable support for SI-Prog like hardware by Lancos + RayeR SPIPGM hardware support + Enable programmer for SiI SATA controllers + Enable programmer for Marvell SATA controllers + Enable Serial Flasher programmer + Install additional tools + Enable support for Altera USB-Blaster dongles + Enable support for Altera USB-Blaster dongles + Enable wiki informations, like supported devices etc. + + +flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various other programmer devices. + + Supports more than 380 flash chips, 260 chipsets, 450 mainboards, 50 PCI devices, 12 USB devices and various parallel/serial port-based programmers. + Supports parallel, LPC, FWH and SPI flash interfaces and various chip packages (DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, TSOP40, TSOP48, BGA and more) + No physical access needed, root access is sufficient (not needed for some programmers). + No bootable floppy disk, bootable CD-ROM or other media needed. + No keyboard or monitor needed. Simply reflash remotely via SSH. + No instant reboot needed. Reflash your chip in a running system, verify it, be happy. The new firmware will be present next time you boot. + Crossflashing and hotflashing is possible as long as the flash chips are electrically and logically compatible (same protocol). Great for recovery. + Scriptability. Reflash a whole pool of identical machines at the same time from the command line. It is recommended to check flashrom output and error codes. + Speed. flashrom is often much faster than most vendor flash tools. + Portability. Supports DOS, Linux, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, Solaris, Mac OS X, and other Unix-like OSes. Partial Windows support is available (no internal programmer support at the moment, hence no "BIOS flashing"). + + diff --git a/sys-apps/flock/Manifest b/sys-apps/flock/Manifest new file mode 100644 index 000000000000..f8b338879199 --- /dev/null +++ b/sys-apps/flock/Manifest @@ -0,0 +1 @@ +DIST flock-2.19.tar.gz 5452 SHA256 9716618042a753cc4bd6e787d0886ea5fce8a167d5ce62421cee2c09ea86fbda SHA512 f6b3e88731e343a7845b5354668b24a6c0d4bbf75ba992f73cfdacb814ceb95088371a162935d41ca22fd648493a79f9b3dbfd045af497449fad7ea5c48be21f WHIRLPOOL 5cc9fabbfdc78b9b23c5b60e49d268a5cac392831a48ccad92652034ba5c9f34a5873cc93f293e0eb5c4f0ecdf5f559f72f72f3e8e7ea280e57ab707b7206c4d diff --git a/sys-apps/flock/flock-2.19.ebuild b/sys-apps/flock/flock-2.19.ebuild new file mode 100644 index 000000000000..06eab4f4bf91 --- /dev/null +++ b/sys-apps/flock/flock-2.19.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit freebsd + +DESCRIPTION="Manage locks from shell scripts" +HOMEPAGE="http://svnweb.freebsd.org/ports/head/sysutils/flock/" +SRC_URI="http://www.zonov.org/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64-fbsd ~x86-fbsd" +IUSE="" + +RDEPEND="" +DEPEND="sys-freebsd/freebsd-mk-defs + virtual/pmake" diff --git a/sys-apps/flock/metadata.xml b/sys-apps/flock/metadata.xml new file mode 100644 index 000000000000..ecedda4aa2cc --- /dev/null +++ b/sys-apps/flock/metadata.xml @@ -0,0 +1,5 @@ + + + +bsd + diff --git a/sys-apps/fwcrv/Manifest b/sys-apps/fwcrv/Manifest new file mode 100644 index 000000000000..321f392cf7bc --- /dev/null +++ b/sys-apps/fwcrv/Manifest @@ -0,0 +1 @@ +DIST fwcrv-0.1.0.tar.gz 76154 RMD160 df46067779b5440ba99da6120a89b8ef0f21f4cb SHA1 8c48a332acbe4def9816549f2c8f47255fb81d8f SHA256 f6585c20149c95a7ea7d3cef8ccf30fe2211ca3d892ce0b265ada4163b351a36 diff --git a/sys-apps/fwcrv/files/fwcrv-0.1.0-endian.patch b/sys-apps/fwcrv/files/fwcrv-0.1.0-endian.patch new file mode 100644 index 000000000000..565a15736d9b --- /dev/null +++ b/sys-apps/fwcrv/files/fwcrv-0.1.0-endian.patch @@ -0,0 +1,47 @@ +diff -ruN src/functions.c /tmp/src/functions.c +--- src/functions.c 2002-11-14 23:46:11.000000000 +0100 ++++ src.new/functions.c 2006-03-22 11:51:03.000000000 +0100 +@@ -59,7 +59,7 @@ + byte ParseCommandLineOptions( int ArgCount, char *ArgValue[], byte *Mode, byte *ReadLength ) + { + int i; +- char *ArgString; ++ unsigned char *ArgString; + byte Node_ID; + + Node_ID = 0; // Default Node_ID used is 0 +diff -ruN src/functions.h /tmp/src/functions.h +--- src/functions.h 2001-06-21 01:11:43.000000000 +0200 ++++ src.new/functions.h 2006-03-22 11:47:48.000000000 +0100 +@@ -16,18 +16,29 @@ + * byte2 = bits 08-15 (on ix86, bits 16-23) + * byte3 = bits 00-07 (on ix86, bits 24-31) + * *****************************************************************************************************/ ++ ++#if __BYTE_ORDER == __BIG_ENDIAN ++ ++#define QBYTE3( q ) ( (byte) ( q >> 24 ) ) ++#define QBYTE2( q ) ( (byte) ( q >> 16 ) ) ++#define QBYTE1( q ) ( (byte) ( q >> 8 ) ) ++#define QBYTE0( q ) ( (byte) q ) ++ ++#else ++ + #define QBYTE0( q ) ( (byte) ( q >> 24 ) ) + #define QBYTE1( q ) ( (byte) ( q >> 16 ) ) + #define QBYTE2( q ) ( (byte) ( q >> 8 ) ) + #define QBYTE3( q ) ( (byte) q ) + ++#endif ++ + /* Macro pour inverser les octets a l'interieur d'un quadlet */ + #define QSWAP( q ) ( ( q << 24 ) & 0xFF000000 ) + \ + ( ( q << 8 ) & 0x00FF0000 ) + \ + ( ( q >> 8 ) & 0x0000FF00 ) + \ + ( ( q >> 24 ) & 0x000000FF ) + +- + /* ****************************************************************************************************** + * ParseCommandLineOptions + * Initialisation of the different options passed as arguments on the command line + diff --git a/sys-apps/fwcrv/fwcrv-0.1.0.ebuild b/sys-apps/fwcrv/fwcrv-0.1.0.ebuild new file mode 100644 index 000000000000..f6dceea1b7b7 --- /dev/null +++ b/sys-apps/fwcrv/fwcrv-0.1.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="FireWire CSR Config ROM Viewer" +HOMEPAGE="http://www.hugovil.com/en/fwcrv/" +SRC_URI="http://www.hugovil.com/repository/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~ppc" +IUSE="" +DEPEND="sys-libs/libraw1394" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-endian.patch +} + +src_compile() { + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS README src/testdata.txt TODO +} diff --git a/sys-apps/fwcrv/metadata.xml b/sys-apps/fwcrv/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/fwcrv/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/fwts/Manifest b/sys-apps/fwts/Manifest new file mode 100644 index 000000000000..692b8dc611f0 --- /dev/null +++ b/sys-apps/fwts/Manifest @@ -0,0 +1,2 @@ +DIST fwts-V14.12.00.tar.gz 3089700 SHA256 9fbc6d1bb8cff8c445d4b2ad0c080e7711564a35982e8a946156b7258e82f2ec SHA512 594cfdadcef031216807eccbf7f5a741643ff33322d84994027afdd08923fa423e1dd2621b9093034e7ac99cc2147b9dcb8b6f4dc2662b10232e55a3261aa91e WHIRLPOOL 2be8d45034e4337b6366d8fcd535010412f02d25859f041cb348b693c5e92822c1a0806a37b77ea4815899b7f03d946326caaec64e91d8d09baaba5301cae353 +DIST fwts_15.03.01.orig.tar.gz 3097112 SHA256 9926baa672159e7990abcfd10c003db8dc0db6a45212189e00ae217504c1fa26 SHA512 3f27b21d67dd7db64547c19e2d74fc909aa5d64fc3aedf0fbca403111bb5578c97a0c7f930b540bcb48f48da8a47e4e02bd679170d7b003b40a49f8358be6033 WHIRLPOOL 2a347785105c02611cec7566643b2b8d5d81c555737e4f5a34b3564dafb938a3fa0bb4d575e0da4c216fbd518c44fddcd243dc07bbd5b0a8cd7a4321f0e01b9a diff --git a/sys-apps/fwts/fwts-14.12.00.ebuild b/sys-apps/fwts/fwts-14.12.00.ebuild new file mode 100644 index 000000000000..eab1f2a1788e --- /dev/null +++ b/sys-apps/fwts/fwts-14.12.00.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools +DESCRIPTION="Firmware Test Suite" +HOMEPAGE="https://wiki.ubuntu.com/Kernel/Reference/fwts" +SRC_URI="http://fwts.ubuntu.com/release/${PN}-V${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="dev-libs/json-c + dev-libs/glib:2 + dev-libs/libpcre + sys-apps/pciutils + sys-power/iasl + sys-power/pmtools + sys-apps/dmidecode" +DEPEND="${RDEPEND} + sys-devel/libtool" + +S=${WORKDIR} + +src_prepare(){ + sed -i -e 's/-Wall -Werror/-Wall/' configure.ac {,src/,src/lib/src/}Makefile.am || die + sed -i -e 's:/usr/bin/lspci:'$(type -p lspci)':' src/lib/include/fwts_binpaths.h || die + + # Fix json-c includes + if has_version '>=dev-libs/json-c-0.10-r1'; then + sed -e 's/^#include /#include /' \ + -i src/lib/include/fwts_json.h \ + src/utilities/kernelscan.c || die + sed -e 's/-ljson/-ljson-c/'\ + -i src/Makefile.am\ + src/lib/src/Makefile.am\ + src/utilities/Makefile.am || die + + eautoreconf +} diff --git a/sys-apps/fwts/metadata.xml b/sys-apps/fwts/metadata.xml new file mode 100644 index 000000000000..cfeca1024cfd --- /dev/null +++ b/sys-apps/fwts/metadata.xml @@ -0,0 +1,11 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + ubuntu + + diff --git a/sys-apps/fxload/Manifest b/sys-apps/fxload/Manifest new file mode 100644 index 000000000000..5dcf9c807750 --- /dev/null +++ b/sys-apps/fxload/Manifest @@ -0,0 +1 @@ +DIST fxload-2008_10_13.tar.gz 23926 SHA256 0cc8bfd2a7cbba2f68e0c5767477634922287943c91dd9fcf029fc8b9d577858 SHA512 f8a654c51a392ac95672a24962ac3b83ea4e0cb62d51a0696f6bdfdefbc7b5cfb033aa9cd80ee676a6bb00061bd635d7eb3920769f982188d8733c862838bc32 WHIRLPOOL c7242c937babebbbba90294e9b638976ede727f7243f52798b5bf69a9ac2919c819d071e57e5d61f999c6bf5a419d925552e88edde5b35f038a780373ea28277 diff --git a/sys-apps/fxload/fxload-20081013-r1.ebuild b/sys-apps/fxload/fxload-20081013-r1.ebuild new file mode 100644 index 000000000000..935a5eacedcf --- /dev/null +++ b/sys-apps/fxload/fxload-20081013-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +# source maintainers named it fxload-YYYY_MM_DD instead of fxload-YYYYMMDD +MY_P="${PN}-${PV:0:4}_${PV:4:2}_${PV:6:2}" +DESCRIPTION="USB firmware uploader" +HOMEPAGE="http://linux-hotplug.sourceforge.net/" +SRC_URI="mirror://sourceforge/linux-hotplug/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ia64 ppc ppc64 sparc x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:' \ + Makefile || die +} + +src_compile() { + tc-export CC + emake RPM_OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake prefix="${D}" install + dodoc README.txt +} diff --git a/sys-apps/fxload/metadata.xml b/sys-apps/fxload/metadata.xml new file mode 100644 index 000000000000..7dbc2f2a420a --- /dev/null +++ b/sys-apps/fxload/metadata.xml @@ -0,0 +1,11 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + + linux-hotplug + + diff --git a/sys-apps/gawk/Manifest b/sys-apps/gawk/Manifest new file mode 100644 index 000000000000..aaeb0a1f6369 --- /dev/null +++ b/sys-apps/gawk/Manifest @@ -0,0 +1,4 @@ +DIST gawk-3.1.8.tar.bz2 1984129 SHA256 5dbc7b2c4c328711337c2aacd09a122c7313122262e3ff034590f014067412b4 SHA512 a8046c1a5a6ffc8bd90cc6062d97ba6301b7a707f4a34a06355a83aaaea2ccdf4c4476563fc6f444b529a2d8d3a2de2126b53434ba50aad8bd898fb3299904dd WHIRLPOOL e24079d7c2aee57e48db2ef76df4c217ea0fa435304a563c6df8d0442f8a5e5e4cff2141809f68430939d66a3a6eda981edefa94b2b8c85e5f0a3ee7ba8a7649 +DIST gawk-4.0.2.tar.xz 1626808 SHA256 21e1f28c51b5160f0a4bf1a735c6109b46a3bd6a43de808eabc21c17bb026d13 SHA512 069f68b6792521d94d4003764006ad8fbe9a17c60a88212629204d9a5eb3f662903fff6d91dd3c1834597b76c18f9d3231c93a033f456c59c0571ac13eb77b27 WHIRLPOOL 8b2916d964c5fa67a46c0a5fc39d424b03e6b39a3335ad796a224feb760528631199c1ec6ee2b6719bdc014ab190ddf38092211685020c92851d617e6ca08690 +DIST gawk-4.1.2.tar.xz 2279136 SHA256 ea8b53c5834ee27012fecba7273f97fca7104884975cf81ddae6f85c5581f481 SHA512 89aed50a4bd335bd6a3045b1b738c76788f3d8d5745153683c990f021e424c31d8a3b2599f8e57f18f64022d5d1b57f4766ccf1a7d2a1b9fb4b20dabdf099117 WHIRLPOOL 254900ce8ce9992551e89ed5ccf6ba9b0bdb8324643d0c84573404c59d3d756aa64de2d054194d424958f9aa4c52bd9b12ba6185ada0d39b38cd046e1192c336 +DIST gawk-4.1.3.tar.xz 2311268 SHA256 e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625 SHA512 8b9470a1bba397353f10e4e652e8589a637a49e8235fb39ca7681ae662fd27cd140c193d0634179c800f99e19b0e49aef55dfa6612f9695ba80760a36936a1c3 WHIRLPOOL ddcd0f218a08c7d54beaaa28db3a965c57b1d394dd294f142970cbf3b4777a407bbb491b7442f9e4de0b7435167919e76b16f4c5ab28eb62758a3d44d11a49e1 diff --git a/sys-apps/gawk/files/filefuncs/Makefile b/sys-apps/gawk/files/filefuncs/Makefile new file mode 100644 index 000000000000..615ae02512ca --- /dev/null +++ b/sys-apps/gawk/files/filefuncs/Makefile @@ -0,0 +1,57 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# Author: Martin Schlemmer +# $Id$ + +CC ?= gcc +LD = $(CC) + +MAJORVER = 0 +MINORVER = 0.1 + +AWKINCDIR = /usr/include/awk +DESTDIR = + +TARGET = filefuncs +TARGET_LIB = $(TARGET).so.$(MAJORVER).$(MINORVER) + +LIBDIR = lib + +# Gentoo specific cruft, you like it dont ya idiot +ifdef D +DESTDIR = $(D) +endif +ifdef S +AWKINCDIR = $(S) +endif + +DOIT = yes +ifeq ($(USERLAND),Darwin) +DOIT = no +endif + +ifeq ($(DOIT),yes) + +all: $(TARGET_LIB) + +$(TARGET).o: $(TARGET).c + $(CC) $(CFLAGS) $(CPPFLAGS) -shared -Wall -DHAVE_CONFIG_H -c -O2 -fPIC -I$(AWKINCDIR) $^ + +$(TARGET_LIB): $(TARGET).o + $(LD) $(LDFLAGS) -o $@ -shared -Wl,-soname -Wl,$(TARGET).so.$(MAJORVER) $^ + +install: $(TARGET_LIB) + install -m 0755 -d $(DESTDIR)/$(LIBDIR)/rcscripts + install -m 0755 $(TARGET_LIB) $(DESTDIR)/$(LIBDIR)/rcscripts + ln -s $(TARGET_LIB) $(DESTDIR)/$(LIBDIR)/rcscripts/$(TARGET).so.$(MAJORVER) + ln -s $(TARGET_LIB) $(DESTDIR)/$(LIBDIR)/rcscripts/$(TARGET).so + +clean: + rm -f $(TARGET) + rm -f *.o *~ core + +else + +all install clean: + +endif diff --git a/sys-apps/gawk/files/filefuncs/filefuncs.c b/sys-apps/gawk/files/filefuncs/filefuncs.c new file mode 100644 index 000000000000..fcab2a62912d --- /dev/null +++ b/sys-apps/gawk/files/filefuncs/filefuncs.c @@ -0,0 +1,485 @@ +/* + * filefuncs.c - Builtin functions that provide initial minimal iterface + * to the file system. + * + * Arnold Robbins, update for 3.1, Mon Nov 23 12:53:39 EST 1998 + */ + +/* + * Copyright (C) 2001 the Free Software Foundation, Inc. + * + * This file is part of GAWK, the GNU implementation of the + * AWK Programming Language. + * + * GAWK is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * GAWK is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + */ + +/* + * Copyright 1999-2004 Gentoo Foundation + * Distributed under the terms of the GNU General Public License v2 + * Author: Martin Schlemmer , Nov 2002 + * $Id$ + * + * Extended with: do_symlink() + * do_unlink() + * do_mkdir() + * do_rmdir() + * + * for use in the Gentoo rcscripts + * + */ + +#include "awk.h" + +#include + +/* do_chdir --- provide dynamically loaded chdir() builtin for gawk */ + +static NODE * +do_chdir(tree) +NODE *tree; +{ + NODE *newdir; + int ret = -1; + + if (do_lint && tree->param_cnt > 1) + lintwarn("chdir: called with too many arguments"); + + newdir = get_argument(tree, 0); + if (newdir != NULL) { + (void) force_string(newdir); + ret = chdir(newdir->stptr); + if (ret < 0) + update_ERRNO(); + + free_temp(newdir); + } else if (do_lint) + lintwarn("chdir: called with no arguments"); + + + /* Set the return value */ + set_value(tmp_number((AWKNUM) ret)); + + /* Just to make the interpreter happy */ + return tmp_number((AWKNUM) 0); +} + +/* do_symlink --- provide dynamically loaded symlink() builtin for gawk */ + +static NODE * +do_symlink(tree) +NODE *tree; +{ + NODE *oldpath, *newpath; + int ret = -1; + + if (do_lint && tree->param_cnt > 2) + lintwarn("symlink: called with too many arguments"); + + oldpath = get_argument(tree, 0); + newpath = get_argument(tree, 1); + if ((oldpath != NULL) && (newpath)) { + (void) force_string(oldpath); + (void) force_string(newpath); + ret = symlink(oldpath->stptr, newpath->stptr); + if (ret < 0) + update_ERRNO(); + + free_temp(oldpath); + free_temp(newpath); + } else if (do_lint) + lintwarn("symlink: called with not enough arguments"); + + /* Set the return value */ + set_value(tmp_number((AWKNUM) ret)); + + /* Just to make the interpreter happy */ + return tmp_number((AWKNUM) 0); +} + +/* do_unlink --- provide dynamically loaded unlink() builtin for gawk */ + +static NODE * +do_unlink(tree) +NODE *tree; +{ + NODE *pathname; + int ret = -1; + + if (do_lint && tree->param_cnt > 1) + lintwarn("unlink: called with too many arguments"); + + pathname = get_argument(tree, 0); + if (pathname != NULL) { + (void) force_string(pathname); + ret = unlink(pathname->stptr); + if (ret < 0) + update_ERRNO(); + + free_temp(pathname); + } else if (do_lint) + lintwarn("unlink: called with no arguments"); + + /* Set the return value */ + set_value(tmp_number((AWKNUM) ret)); + + /* Just to make the interpreter happy */ + return tmp_number((AWKNUM) 0); +} + +/* do_mkdir --- provide dynamically loaded mkdir() builtin for gawk */ + +static NODE * +do_mkdir(tree) +NODE *tree; +{ + NODE *pathname, *mode; + int ret = -1; + + if (do_lint && tree->param_cnt > 2) + lintwarn("mkdir: called with too many arguments"); + + pathname = get_argument(tree, 0); + mode = get_argument(tree, 1); + if ((pathname != NULL) && (mode != NULL)) { + (void) force_string(pathname); + (void) force_number(mode); + ret = mkdir(pathname->stptr, mode->numbr); + if (ret < 0) + update_ERRNO(); + + free_temp(pathname); + free_temp(mode); + } else if (do_lint) + lintwarn("mkdir: called with not enough arguments"); + + /* Set the return value */ + set_value(tmp_number((AWKNUM) ret)); + + /* Just to make the interpreter happy */ + return tmp_number((AWKNUM) 0); +} + +/* do_rmdir --- provide dynamically loaded rmdir() builtin for gawk */ + +static NODE * +do_rmdir(tree) +NODE *tree; +{ + NODE *pathname; + int ret = -1; + + if (do_lint && tree->param_cnt > 1) + lintwarn("rmdir: called with too many arguments"); + + pathname = get_argument(tree, 0); + if (pathname != NULL) { + (void) force_string(pathname); + ret = rmdir(pathname->stptr); + if (ret < 0) + update_ERRNO(); + + free_temp(pathname); + } else if (do_lint) + lintwarn("rmdir: called with no arguments"); + + /* Set the return value */ + set_value(tmp_number((AWKNUM) ret)); + + /* Just to make the interpreter happy */ + return tmp_number((AWKNUM) 0); +} + +/* format_mode --- turn a stat mode field into something readable */ + +static char * +format_mode(fmode) +unsigned long fmode; +{ + static char outbuf[12]; + int i; + + strcpy(outbuf, "----------"); + /* first, get the file type */ + i = 0; + switch (fmode & S_IFMT) { +#ifdef S_IFSOCK + case S_IFSOCK: + outbuf[i] = 's'; + break; +#endif +#ifdef S_IFLNK + case S_IFLNK: + outbuf[i] = 'l'; + break; +#endif + case S_IFREG: + outbuf[i] = '-'; /* redundant */ + break; + case S_IFBLK: + outbuf[i] = 'b'; + break; + case S_IFDIR: + outbuf[i] = 'd'; + break; +#ifdef S_IFDOOR /* Solaris weirdness */ + case S_IFDOOR: + outbuf[i] = 'D'; + break; +#endif /* S_IFDOOR */ + case S_IFCHR: + outbuf[i] = 'c'; + break; +#ifdef S_IFIFO + case S_IFIFO: + outbuf[i] = 'p'; + break; +#endif + } + + i++; + if ((fmode & S_IRUSR) != 0) + outbuf[i] = 'r'; + i++; + if ((fmode & S_IWUSR) != 0) + outbuf[i] = 'w'; + i++; + if ((fmode & S_IXUSR) != 0) + outbuf[i] = 'x'; + i++; + + if ((fmode & S_IRGRP) != 0) + outbuf[i] = 'r'; + i++; + if ((fmode & S_IWGRP) != 0) + outbuf[i] = 'w'; + i++; + if ((fmode & S_IXGRP) != 0) + outbuf[i] = 'x'; + i++; + + if ((fmode & S_IROTH) != 0) + outbuf[i] = 'r'; + i++; + if ((fmode & S_IWOTH) != 0) + outbuf[i] = 'w'; + i++; + if ((fmode & S_IXOTH) != 0) + outbuf[i] = 'x'; + i++; + + outbuf[i] = '\0'; + + if ((fmode & S_ISUID) != 0) { + if (outbuf[3] == 'x') + outbuf[3] = 's'; + else + outbuf[3] = 'S'; + } + + /* setgid without execute == locking */ + if ((fmode & S_ISGID) != 0) { + if (outbuf[6] == 'x') + outbuf[6] = 's'; + else + outbuf[6] = 'l'; + } + + if ((fmode & S_ISVTX) != 0) { + if (outbuf[9] == 'x') + outbuf[9] = 't'; + else + outbuf[9] = 'T'; + } + + return outbuf; +} + +/* do_stat --- provide a stat() function for gawk */ + +static NODE * +do_stat(tree) +NODE *tree; +{ + NODE *file, *array; + struct stat sbuf; + int ret; + NODE **aptr; + char *pmode; /* printable mode */ + char *type = "unknown"; + + /* check arg count */ + if (tree->param_cnt != 2) + fatal( + "stat: called with incorrect number of arguments (%d), should be 2", + tree->param_cnt); + + /* directory is first arg, array to hold results is second */ + file = get_argument(tree, 0); + array = get_argument(tree, 1); + + /* empty out the array */ + assoc_clear(array); + + /* lstat the file, if error, set ERRNO and return */ + (void) force_string(file); + ret = lstat(file->stptr, & sbuf); + if (ret < 0) { + update_ERRNO(); + + set_value(tmp_number((AWKNUM) ret)); + + free_temp(file); + return tmp_number((AWKNUM) 0); + } + + /* fill in the array */ + aptr = assoc_lookup(array, tmp_string("name", 4), FALSE); + *aptr = dupnode(file); + + aptr = assoc_lookup(array, tmp_string("dev", 3), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_dev); + + aptr = assoc_lookup(array, tmp_string("ino", 3), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_ino); + + aptr = assoc_lookup(array, tmp_string("mode", 4), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_mode); + + aptr = assoc_lookup(array, tmp_string("nlink", 5), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_nlink); + + aptr = assoc_lookup(array, tmp_string("uid", 3), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_uid); + + aptr = assoc_lookup(array, tmp_string("gid", 3), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_gid); + + aptr = assoc_lookup(array, tmp_string("size", 4), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_size); + + aptr = assoc_lookup(array, tmp_string("blocks", 6), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_blocks); + + aptr = assoc_lookup(array, tmp_string("atime", 5), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_atime); + + aptr = assoc_lookup(array, tmp_string("mtime", 5), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_mtime); + + aptr = assoc_lookup(array, tmp_string("ctime", 5), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_ctime); + + /* for block and character devices, add rdev, major and minor numbers */ + if (S_ISBLK(sbuf.st_mode) || S_ISCHR(sbuf.st_mode)) { + aptr = assoc_lookup(array, tmp_string("rdev", 4), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_rdev); + + aptr = assoc_lookup(array, tmp_string("major", 5), FALSE); + *aptr = make_number((AWKNUM) major(sbuf.st_rdev)); + + aptr = assoc_lookup(array, tmp_string("minor", 5), FALSE); + *aptr = make_number((AWKNUM) minor(sbuf.st_rdev)); + } + +#ifdef HAVE_ST_BLKSIZE + aptr = assoc_lookup(array, tmp_string("blksize", 7), FALSE); + *aptr = make_number((AWKNUM) sbuf.st_blksize); +#endif /* HAVE_ST_BLKSIZE */ + + aptr = assoc_lookup(array, tmp_string("pmode", 5), FALSE); + pmode = format_mode(sbuf.st_mode); + *aptr = make_string(pmode, strlen(pmode)); + + /* for symbolic links, add a linkval field */ + if (S_ISLNK(sbuf.st_mode)) { + char buf[BUFSIZ*2]; + int linksize; + + linksize = readlink(file->stptr, buf, sizeof buf); + /* should make this smarter */ + if (linksize == sizeof(buf)) + fatal("size of symbolic link too big"); + buf[linksize] = '\0'; + + aptr = assoc_lookup(array, tmp_string("linkval", 7), FALSE); + *aptr = make_string(buf, linksize); + } + + /* add a type field */ + switch (sbuf.st_mode & S_IFMT) { +#ifdef S_IFSOCK + case S_IFSOCK: + type = "socket"; + break; +#endif +#ifdef S_IFLNK + case S_IFLNK: + type = "symlink"; + break; +#endif + case S_IFREG: + type = "file"; + break; + case S_IFBLK: + type = "blockdev"; + break; + case S_IFDIR: + type = "directory"; + break; +#ifdef S_IFDOOR + case S_IFDOOR: + type = "door"; + break; +#endif + case S_IFCHR: + type = "chardev"; + break; +#ifdef S_IFIFO + case S_IFIFO: + type = "fifo"; + break; +#endif + } + + aptr = assoc_lookup(array, tmp_string("type", 4), FALSE); + *aptr = make_string(type, strlen(type)); + + free_temp(file); + + /* Set the return value */ + set_value(tmp_number((AWKNUM) ret)); + + /* Just to make the interpreter happy */ + return tmp_number((AWKNUM) 0); +} + +/* dlload --- load new builtins in this library */ + +NODE * +dlload(tree, dl) +NODE *tree; +void *dl; +{ + make_builtin("chdir", do_chdir, 1); + make_builtin("symlink", do_symlink, 2); + make_builtin("unlink", do_unlink, 1); + make_builtin("mkdir", do_mkdir, 2); + make_builtin("rmdir", do_rmdir, 1); + make_builtin("stat", do_stat, 2); + + return tmp_number((AWKNUM) 0); +} + diff --git a/sys-apps/gawk/files/gawk-4.1.0-ports.patch b/sys-apps/gawk/files/gawk-4.1.0-ports.patch new file mode 100644 index 000000000000..9aba7e8a2df3 --- /dev/null +++ b/sys-apps/gawk/files/gawk-4.1.0-ports.patch @@ -0,0 +1,189 @@ +AIX port, bug#490266. + +This is from 2 upstream commits: + +http://git.savannah.gnu.org/cgit/gawk.git/commit/?h=gawk-4.1-stable&id=21c8b6d547b12942775d675ead2994992285c04c +http://git.savannah.gnu.org/cgit/gawk.git/commit/?h=gawk-4.1-stable&id=29e3ae329c550b884169b7db20775cd74b95b77a + +#diff --git a/extension/ChangeLog b/extension/ChangeLog +#index e01d6d1..4d1af22 100644 +#--- a/extension/ChangeLog +#+++ b/extension/ChangeLog +#@@ -1,3 +1,20 @@ +#+2013-10-23 Michael Haubenwallner +#+ +#+ Fix portability for AIX. +#+ +#+ * inplace.c (_XOPEN_SOURCE): Define when not defined yet. +#+ (_XOPEN_SOURCE_EXTENDED): Ditto. Needs to define a number. +#+ +#+2013-06-10 Arnold D. Robbins +#+ +#+ * configure.ac (AC_HEADER_MAJOR): New macro added. +#+ Add check for limits.h header. +#+ * filefuncs.c: Add the right stuff to get the major/minor macros. +#+ * readdir.c: Add include of limits.h appropriately wrapped. +#+ +#+ Thanks to ICHII Takashi for the reports +#+ and pointers. +#+ +# 2013-05-09 Arnold D. Robbins +# +# * 4.1.0: Release tar ball made. +#diff --git a/extension/configure.ac b/extension/configure.ac +#index 53ed588..3ad03ed 100644 +#--- a/extension/configure.ac +#+++ b/extension/configure.ac +#@@ -64,7 +64,8 @@ else +# AC_MSG_RESULT([no]) +# fi +# +#-AC_CHECK_HEADERS(dirent.h fnmatch.h time.h sys/time.h sys/select.h) +#+AC_HEADER_MAJOR +#+AC_CHECK_HEADERS(dirent.h fnmatch.h limits.h time.h sys/time.h sys/select.h) +# +# AC_CHECK_FUNCS(fdopendir fnmatch gettimeofday \ +# getdtablesize nanosleep select GetSystemTimeAsFileTime) +diff --git a/extension/configh.in b/extension/configh.in +index 9162ce4..02954ee 100644 +--- a/extension/configh.in ++++ b/extension/configh.in +@@ -66,6 +66,9 @@ + /* Define to 1 if you have the header file. */ + #undef HAVE_INTTYPES_H + ++/* Define to 1 if you have the header file. */ ++#undef HAVE_LIMITS_H ++ + /* Define to 1 if you have the header file. */ + #undef HAVE_MEMORY_H + +@@ -109,6 +112,14 @@ + */ + #undef LT_OBJDIR + ++/* Define to 1 if `major', `minor', and `makedev' are declared in . ++ */ ++#undef MAJOR_IN_MKDEV ++ ++/* Define to 1 if `major', `minor', and `makedev' are declared in ++ . */ ++#undef MAJOR_IN_SYSMACROS ++ + /* Name of package */ + #undef PACKAGE + +diff --git a/extension/configure b/extension/configure +index f848b9b..c3f8f1c 100755 +--- a/extension/configure ++++ b/extension/configure +@@ -13885,7 +13885,57 @@ else + $as_echo "no" >&6; } + fi + +-for ac_header in dirent.h fnmatch.h time.h sys/time.h sys/select.h ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 ++$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } ++if ${ac_cv_header_sys_types_h_makedev+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++return makedev(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ac_cv_header_sys_types_h_makedev=yes ++else ++ ac_cv_header_sys_types_h_makedev=no ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 ++$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } ++ ++if test $ac_cv_header_sys_types_h_makedev = no; then ++ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" ++if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : ++ ++$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h ++ ++fi ++ ++ ++ ++ if test $ac_cv_header_sys_mkdev_h = no; then ++ ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" ++if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : ++ ++$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h ++ ++fi ++ ++ ++ fi ++fi ++ ++for ac_header in dirent.h fnmatch.h limits.h time.h sys/time.h sys/select.h + do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +diff --git a/extension/filefuncs.c b/extension/filefuncs.c +index 1e8fc8d..9e637aa 100644 +--- a/extension/filefuncs.c ++++ b/extension/filefuncs.c +@@ -46,6 +46,12 @@ + #include + #include + ++#ifdef MAJOR_IN_MKDEV ++#include ++#elif defined(MAJOR_IN_SYSMACROS) ++#include ++#endif ++ + #include "gawkapi.h" + + #include "gettext.h" +diff --git a/extension/inplace.c b/extension/inplace.c +index ded4746..69d452a 100644 +--- a/extension/inplace.c ++++ b/extension/inplace.c +@@ -27,8 +27,12 @@ + #include + #endif + +-#define _XOPEN_SOURCE +-#define _XOPEN_SOURCE_EXTENDED ++#ifndef _XOPEN_SOURCE ++# define _XOPEN_SOURCE ++#endif ++#ifndef _XOPEN_SOURCE_EXTENDED ++# define _XOPEN_SOURCE_EXTENDED 1 ++#endif + + #include + #include +diff --git a/extension/readdir.c b/extension/readdir.c +index 5ca4dc6..c2a626a 100644 +--- a/extension/readdir.c ++++ b/extension/readdir.c +@@ -44,6 +44,10 @@ + #include + #include + ++#ifdef HAVE_LIMITS_H ++#include ++#endif ++ + #ifdef HAVE_DIRENT_H + #include + #else diff --git a/sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch b/sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch new file mode 100644 index 000000000000..3bd267efd179 --- /dev/null +++ b/sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch @@ -0,0 +1,63 @@ +http://git.savannah.gnu.org/cgit/gawk.git/commit/?id=ac0ef52fe407b89c7968b927c7b2b513cc13963a + +--- gawk-4.1.3/configure 2015-05-19 15:38:35.000000000 +0200 ++++ gawk-4.1.3/configure 2015-05-19 15:38:35.000000000 +0200 +@@ -10825,7 +10825,46 @@ + + if test $_found_readline = yes ; then + case $host_os in +- *bsd* ) _combo="$_combo -ltermcap" ++ *bsd* ) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 ++$as_echo_n "checking for tgetent in -ltermcap... " >&6; } ++if ${ac_cv_lib_termcap_tgetent+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-ltermcap $LIBS" ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char tgetent (); ++int ++main () ++{ ++return tgetent (); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ac_cv_lib_termcap_tgetent=yes ++else ++ ac_cv_lib_termcap_tgetent=no ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 ++$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } ++if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : ++ _combo="$_combo -ltermcap" ++fi ++ + ;; + esac + +--- gawk-4.1.3/m4/readline.m4 2015-04-05 12:19:19.000000000 +0200 ++++ gawk-4.1.3/m4/readline.m4 2015-04-05 12:19:19.000000000 +0200 +@@ -92,7 +92,7 @@ + + if test $_found_readline = yes ; then + case $host_os in +- *bsd* ) _combo="$_combo -ltermcap" ++ *bsd* ) AC_CHECK_LIB(termcap, tgetent, _combo="$_combo -ltermcap") + ;; + esac + AC_DEFINE(HAVE_LIBREADLINE,1, diff --git a/sys-apps/gawk/gawk-3.1.8.ebuild b/sys-apps/gawk/gawk-3.1.8.ebuild new file mode 100644 index 000000000000..3d75e9eb59a4 --- /dev/null +++ b/sys-apps/gawk/gawk-3.1.8.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="GNU awk pattern-matching language" +HOMEPAGE="http://www.gnu.org/software/gawk/gawk.html" +SRC_URI="mirror://gnu/gawk/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" +IUSE="nls" + +RDEPEND="!>=virtual/awk-1" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +SFFS=${WORKDIR}/filefuncs + +src_unpack() { + unpack ${A} + + # Copy filefuncs module's source over ... + cp -r "${FILESDIR}"/filefuncs "${SFFS}" || die "cp failed" +} + +src_prepare() { + # use symlinks rather than hardlinks, and disable version links + sed -i \ + -e '/^LN =/s:=.*:= $(LN_S):' \ + -e '/install-exec-hook:/s|$|\nfoo:|' \ + Makefile.in doc/Makefile.in +} + +src_configure() { + export ac_cv_libsigsegv=no + econf \ + --libexec='$(libdir)/misc' \ + $(use_enable nls) \ + --enable-switch +} + +src_compile() { + emake || die + emake -C "${SFFS}" CC="$(tc-getCC)" || die "filefuncs emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + emake -C "${SFFS}" LIBDIR="$(get_libdir)" install || die + + # Keep important gawk in /bin + if use userland_GNU ; then + dodir /bin + mv "${D}"/usr/bin/gawk "${D}"/bin/ || die + dosym /bin/gawk /usr/bin/gawk + + # Provide canonical `awk` + dosym gawk /bin/awk + dosym gawk /usr/bin/awk + dosym gawk.1 /usr/share/man/man1/awk.1 + fi + + # Install headers + insinto /usr/include/awk + doins *.h || die + # We do not want 'acconfig.h' in there ... + rm -f "${D}"/usr/include/awk/acconfig.h + + dodoc AUTHORS ChangeLog FUTURES LIMITATIONS NEWS PROBLEMS POSIX.STD README README_d/*.* + for x in */ChangeLog ; do + newdoc ${x} ${x##*/}.${x%%/*} + done +} diff --git a/sys-apps/gawk/gawk-4.0.2.ebuild b/sys-apps/gawk/gawk-4.0.2.ebuild new file mode 100644 index 000000000000..0440ee376106 --- /dev/null +++ b/sys-apps/gawk/gawk-4.0.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="GNU awk pattern-matching language" +HOMEPAGE="http://www.gnu.org/software/gawk/gawk.html" +SRC_URI="mirror://gnu/gawk/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls readline" + +# older gawk's provided shared lib for baselayout-1 +RDEPEND="! + + +base-system + + use mpfr for high precision arithmetic (-M / --bignum) + + diff --git a/sys-apps/gentoo-functions/Manifest b/sys-apps/gentoo-functions/Manifest new file mode 100644 index 000000000000..07da3ad991f2 --- /dev/null +++ b/sys-apps/gentoo-functions/Manifest @@ -0,0 +1,5 @@ +DIST consoletype-1.0.sh 616 SHA256 b6f837be496024941b81402e6c11300eb4a53987368c5c6d9afb5fd8b1c34d28 SHA512 ab6edd0035ad2ac855bc7b94679a78aad63f647b906dfda39a9844b676e6cdfc872fd1fc897f6158a5709906905a4da5ce8b4665f9e2bc0bcd1e88bb9ecace07 WHIRLPOOL b2d5f13e7411d8e6b5c4dae875041a95bed3ed7b20e765971b86fd16b1a970e8ad10288683d2efa530ef8568c6c58a07f9fc5a4a1b6b00ee6ed731da90e472ed +DIST gentoo-functions-0.10.tar.gz 11432 SHA256 709c8b22f404001a512e47a7a4d3192070b3e150fb9d0f943de09736d665b0db SHA512 2622cede032089c7b8a2dec576e848852f9964e0198ab161f0ff5c426c542d0849bd3d30a40c296805bfec90b533c419df43c7975ed85678471483c827ca4cdb WHIRLPOOL 6559c62083eca8a016f005d1003c8a0b6e2c89836c130cec9e0a40575e1604039f669313547c63f6cf84f1a40cdd7249d227c6f0b57f282764df8d20ef239051 +DIST gentoo-functions-0.7.tar.bz2 10656 SHA256 0034ff7a65deb8df902683deb1662ce561b7f76ff8561b4ada46cfb18effc7f3 SHA512 7b7c779daeaa37476be488123222af591b357ce1071d8a68694797ce35c8f9c1492da55e4d3059443eb20e08cc7d88eee0e1914efa2b322628c3660c277f7a64 WHIRLPOOL 4b50d0cf0e355d267c2cb6db18211a8d48f48a248190e38227449ef01e39b3968b10a4276ca22b43af9d40706b804730ac81e6ba83efbfcc426a6781dd007cc1 +DIST gentoo-functions-0.8.tar.bz2 10647 SHA256 89dc0a3289a2e3312efb560e904add13ececdd5eb554151cb30d0b96f1bd8116 SHA512 34f04f5e7ecd888197b6486c131c346a84a6937501f68a54481ec3caacaee86e54345a6c34364a5953c55b1d4aeb4ca2173b70864cdd7b81e74964352132b322 WHIRLPOOL 6ba223987953fa1dd80b79590c5f72ab8b5d0eca47cc1df23559e295f03faa369a372e5c27ed47d19d605dfe072c22c7702f3d4443a8ea2489d25092274670f3 +DIST gentoo-functions-0.9.tar.gz 11439 SHA256 63e51e0288c82912e51c490512c695a2d77b86a3a7e02180e313d19978ba4a2c SHA512 c8b99448f6a295597e135803cd903e81fb3886de9dff725137a341cd667575e5269d3e0369ad3d19cd448ba0716e48b12752462f310f5e8c54e132777ceb684f WHIRLPOOL aa30d196161bec7c1a7bed89dda6faf56d5c7a7fe555ae8ded93a61d9b74551a6db81e696b28e2c7694c8ee2cf58758197d1616e4db31e5bfdc195ac43f70bf5 diff --git a/sys-apps/gentoo-functions/gentoo-functions-0.10.ebuild b/sys-apps/gentoo-functions/gentoo-functions-0.10.ebuild new file mode 100644 index 000000000000..b278aa927740 --- /dev/null +++ b/sys-apps/gentoo-functions/gentoo-functions-0.10.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/gentoo/${PN}.git" +else + SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +fi + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="base functions required by all gentoo systems" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +src_prepare() { + tc-export CC + append-lfs-flags +} + +src_install() { + emake install DESTDIR="${ED}" +} diff --git a/sys-apps/gentoo-functions/gentoo-functions-0.7.ebuild b/sys-apps/gentoo-functions/gentoo-functions-0.7.ebuild new file mode 100644 index 000000000000..56c6334f5497 --- /dev/null +++ b/sys-apps/gentoo-functions/gentoo-functions-0.7.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/gentoo/${PN}.git" +else + SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +fi + +inherit toolchain-funcs + +DESCRIPTION="base functions required by all gentoo systems" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +src_prepare() { + tc-export CC +} diff --git a/sys-apps/gentoo-functions/gentoo-functions-0.8.ebuild b/sys-apps/gentoo-functions/gentoo-functions-0.8.ebuild new file mode 100644 index 000000000000..f307bd17c402 --- /dev/null +++ b/sys-apps/gentoo-functions/gentoo-functions-0.8.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/gentoo/${PN}.git" +else + SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2 + prefix? ( http://dev.gentoo.org/~grobian/distfiles/consoletype-1.0.sh )" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +fi + +inherit toolchain-funcs + +DESCRIPTION="base functions required by all gentoo systems" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +src_prepare() { + tc-export CC + + # in prefix, use shell script, for the C-code doesn't compile + use prefix && cp "${DISTDIR}"/consoletype-1.0.sh consoletype +} + +src_install() { + emake install DESTDIR="${ED}" +} diff --git a/sys-apps/gentoo-functions/gentoo-functions-0.9.ebuild b/sys-apps/gentoo-functions/gentoo-functions-0.9.ebuild new file mode 100644 index 000000000000..f877ef4acdcd --- /dev/null +++ b/sys-apps/gentoo-functions/gentoo-functions-0.9.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/gentoo/${PN}.git" +else + SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +fi + +inherit toolchain-funcs + +DESCRIPTION="base functions required by all gentoo systems" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +src_prepare() { + tc-export CC +} + +src_install() { + emake install DESTDIR="${ED}" +} diff --git a/sys-apps/gentoo-functions/gentoo-functions-9999.ebuild b/sys-apps/gentoo-functions/gentoo-functions-9999.ebuild new file mode 100644 index 000000000000..96cc0d0c64db --- /dev/null +++ b/sys-apps/gentoo-functions/gentoo-functions-9999.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/gentoo/${PN}.git" +else + SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" +fi + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="base functions required by all gentoo systems" +HOMEPAGE="http://www.gentoo.org" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +src_prepare() { + tc-export CC + append-lfs-flags +} + +src_install() { + emake install DESTDIR="${ED}" +} diff --git a/sys-apps/gentoo-functions/metadata.xml b/sys-apps/gentoo-functions/metadata.xml new file mode 100644 index 000000000000..cf7649442a1a --- /dev/null +++ b/sys-apps/gentoo-functions/metadata.xml @@ -0,0 +1,20 @@ + + + + + williamh@gentoo.org + William Hubbs + + + blueness@gentoo.org + Anthony G. Basile + + base-system + + This package contains base shell functions which are required by + all Gentoo systems. + + + gentoo/gentoo-functions + + diff --git a/sys-apps/gentoo-systemd-integration/Manifest b/sys-apps/gentoo-systemd-integration/Manifest new file mode 100644 index 000000000000..5e59ca78471d --- /dev/null +++ b/sys-apps/gentoo-systemd-integration/Manifest @@ -0,0 +1,2 @@ +DIST gentoo-systemd-integration-2.tar.bz2 51951 SHA256 2466a11d9b6f6e8d726cb5549bc1c38d28d6742d596e2b2c455c9089c1baf7fd SHA512 dc962165516612ca0ff41fdbd53a420549967a3952640ae7d37aafdbb3543a9b37a928e0528fcbbce74e0ded970e311c350272856fc8a75d9c8dc94a960e3bbc WHIRLPOOL 0517b515b9d01605c46d95fc3e86bf38c200923e3b7df1dde59b875c3eeef232c7dec38833007a943390631cb8eeb4f7c89e79c4b8dab737eea8c63bb36341bf +DIST gentoo-systemd-integration-4.tar.bz2 52449 SHA256 7027bd2056449e5ec8f9fc3da81c0f157810d482bfa11be48903643335fc6bde SHA512 2f60a98062fc5b9c7247e5df77b8875e532d28b2b903a2770713bbcfb2706f0f1bd7809396dd49ff1cc41f69d8c3dceaef87909fa8683c458a5f818f5e05a574 WHIRLPOOL f87b8aa01f24fad4ff90e694fa03b718425bbb0c0dc8a00950b0ae81230f3b92255d07efc9161707a35c8f3e0e7664c57b7ae061ccc0d896bfc55a632a8b4f09 diff --git a/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-2.ebuild b/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-2.ebuild new file mode 100644 index 000000000000..4f63e11be5db --- /dev/null +++ b/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils systemd + +DESCRIPTION="systemd integration files for Gentoo" +HOMEPAGE="https://bitbucket.org/mgorny/gentoo-systemd-integration" +SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86" +IUSE="" + +RDEPEND=">=sys-apps/systemd-207" + +src_configure() { + local myeconfargs=( + "$(systemd_with_unitdir)" + # TODO: solve it better in the eclass + --with-systemdsystemgeneratordir="$(systemd_get_utildir)"/system-generators + ) + + autotools-utils_src_configure +} diff --git a/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-4.ebuild b/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-4.ebuild new file mode 100644 index 000000000000..af14c6a96ad3 --- /dev/null +++ b/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-4.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils systemd + +DESCRIPTION="systemd integration files for Gentoo" +HOMEPAGE="https://bitbucket.org/mgorny/gentoo-systemd-integration" +SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86" +IUSE="" + +RDEPEND=">=sys-apps/systemd-207 + !sys-fs/eudev + !sys-fs/udev" + +src_configure() { + local myeconfargs=( + "$(systemd_with_unitdir)" + # TODO: solve it better in the eclass + --with-systemdsystemgeneratordir="$(systemd_get_utildir)"/system-generators + ) + + autotools-utils_src_configure +} diff --git a/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-9999.ebuild b/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-9999.ebuild new file mode 100644 index 000000000000..7adc033f3c92 --- /dev/null +++ b/sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +#if LIVE +AUTOTOOLS_AUTORECONF=1 +EGIT_REPO_URI="http://bitbucket.org/mgorny/${PN}.git" +inherit git-2 +#endif + +inherit autotools-utils systemd + +DESCRIPTION="systemd integration files for Gentoo" +HOMEPAGE="https://bitbucket.org/mgorny/gentoo-systemd-integration" +SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND=">=sys-apps/systemd-207 + !sys-fs/eudev + !sys-fs/udev" + +#if LIVE +SRC_URI= +KEYWORDS= + +DEPEND="${DEPEND} + sys-devel/systemd-m4" +#endif + +src_configure() { + local myeconfargs=( + "$(systemd_with_unitdir)" + # TODO: solve it better in the eclass + --with-systemdsystemgeneratordir="$(systemd_get_utildir)"/system-generators + ) + + autotools-utils_src_configure +} diff --git a/sys-apps/gentoo-systemd-integration/metadata.xml b/sys-apps/gentoo-systemd-integration/metadata.xml new file mode 100644 index 000000000000..c46ecee5b0be --- /dev/null +++ b/sys-apps/gentoo-systemd-integration/metadata.xml @@ -0,0 +1,11 @@ + + + + + systemd@gentoo.org + Gentoo systemd team + + + mgorny/gentoo-systemd-integration + + diff --git a/sys-apps/gnome-disk-utility/Manifest b/sys-apps/gnome-disk-utility/Manifest new file mode 100644 index 000000000000..e1e84ccd6448 --- /dev/null +++ b/sys-apps/gnome-disk-utility/Manifest @@ -0,0 +1,2 @@ +DIST gnome-disk-utility-3.14.0.tar.xz 1426948 SHA256 85ee6453e56c97a5c33b7346849016f31df53f9acbe325a046d269242797d32b SHA512 ce4be64fbd4c72ad2a853a6ee06165b18f5d5e91d69654f2db813aec0d8e8294fc8e0ce84f20638a169468341cce4ca4bb2580d542a5228040df06733a1f2e4f WHIRLPOOL e4d57810527bdcec7f3dba200d6a2c60b15178ce38e6560c4447cfcc3286471cfecabd96fb8f508a3e5a9c3113275051afd478d0b4d7b3a81af3d5d4f3064e59 +DIST gnome-disk-utility-3.16.2.tar.xz 1432332 SHA256 4a495563a0142d2a64d9f573e5333a82d6c3c94ab5c8cd9b1878bfa36ae15353 SHA512 228187c1f3354c3a11dda3d4b85abed3e54bb7e5f105971f5d39f72fa52bcc9b44344c27148c604b2a87ed83942724187af90527e48acb9e9bc888922c34a53b WHIRLPOOL ef0b1b6f2cbeac1533798854796905909b866f45f9377bbd05060df1f615d81e0cb58a2e9d8bfbf3b9bef3d22d24cba45ec8d64ddbe63887bbbce75967ca1969 diff --git a/sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-kill-gsd-automagic.patch b/sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-kill-gsd-automagic.patch new file mode 100644 index 000000000000..c6d414c0ae97 --- /dev/null +++ b/sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-kill-gsd-automagic.patch @@ -0,0 +1,46 @@ +From cfefd62c7f23625fd1b07dacb35681bdf5aafa04 Mon Sep 17 00:00:00 2001 +From: Andreas Henriksson +Date: Fri, 5 Apr 2013 12:42:06 +0200 +Subject: [PATCH 1/2] Avoid needing gsd during build when --disable-gsd-plugin + is used + +PKG_CHECK_MODULES was previously unconditionally requiring +gnome-settings-daemon to be available, even when it was later +not going to be used because the --disable-gsd-plugin configure +switch was passed. + +Move the check to only require g-s-d when it's actually going to be +used. + +While at it, also fix the indentation of the msg_gsd_plugin=yes line. + +https://bugzilla.gnome.org/show_bug.cgi?id=697146 +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index cce9d62..d8f6198 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -120,7 +120,6 @@ PKG_CHECK_MODULES(LIBSECRET1, [libsecret-1 >= $LIBSECRET1_REQUIRED]) + PKG_CHECK_MODULES(PWQUALITY, [pwquality >= $PWQUALITY_REQUIRED]) + PKG_CHECK_MODULES(CANBERRA, [libcanberra-gtk3 >= $CANBERRA_REQUIRED]) + PKG_CHECK_MODULES(LIBDVDREAD, [dvdread >= $LIBDVDREAD_REQUIRED]) +-PKG_CHECK_MODULES(GSD_PLUGIN, [gnome-settings-daemon >= $GSD_PLUGIN_REQUIRED]) + PKG_CHECK_MODULES(LIBNOTIFY, [libnotify >= $LIBNOTIFY_REQUIRED]) + PKG_CHECK_MODULES(LIBLZMA, [liblzma >= $LIBLZMA_REQUIRED]) + +@@ -157,7 +156,8 @@ dnl ************************************* + AC_ARG_ENABLE(gsd_plugin, AS_HELP_STRING([--disable-gsd-plugin],[don't build gnome-settings-daemon plug-in])) + msg_gsd_plugin=no + if test "x$enable_gsd_plugin" != "xno"; then +- msg_gsd_plugin=yes ++ msg_gsd_plugin=yes ++ PKG_CHECK_MODULES(GSD_PLUGIN, [gnome-settings-daemon >= $GSD_PLUGIN_REQUIRED]) + fi + AM_CONDITIONAL(USE_GSD_PLUGIN, [test "$msg_gsd_plugin" = "yes"]) + +-- +1.8.3.2 + diff --git a/sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-raise-gsd-dependency.patch b/sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-raise-gsd-dependency.patch new file mode 100644 index 000000000000..f5ff3cec5359 --- /dev/null +++ b/sys-apps/gnome-disk-utility/files/gnome-disk-utility-3.10.0-raise-gsd-dependency.patch @@ -0,0 +1,35 @@ +From f05af64dd29a5119f36d0c34f0d6aa9f04567933 Mon Sep 17 00:00:00 2001 +From: Andreas Henriksson +Date: Fri, 5 Apr 2013 12:30:55 +0200 +Subject: [PATCH 2/2] Bump required version of gnome-settings-daemon to 3.8 + +Reported by Pacho Ramos in https://bugzilla.gnome.org/697146 +and from the references gentoo bug report: + +With gnome-base/gnome-settings-daemon-3.6.4: + +gdusdmanager.c: At top level: +gdusdmanager.c:42:1: error: unknown type name 'GduSdClass' +gdusdmanager.c:80:1: warning: 'gdu_sd_manager_start' defined but not used [-Wunused-function] +gdusdmanager.c:124:1: warning: 'gdu_sd_manager_new' defined but not used [-Wunused-function] +make[3]: *** [libgdu_sd_la-gdusdmanager.lo] Error 1 +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index d8f6198..2604798 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -109,7 +109,7 @@ LIBSECRET1_REQUIRED=0.7 + PWQUALITY_REQUIRED=1.0.0 + CANBERRA_REQUIRED=0.1 + LIBDVDREAD_REQUIRED=4.2.0 +-GSD_PLUGIN_REQUIRED=3.6 ++GSD_PLUGIN_REQUIRED=3.8 + LIBNOTIFY_REQUIRED=0.7 + LIBLZMA_REQUIRED=5.0.5 + +-- +1.8.3.2 + diff --git a/sys-apps/gnome-disk-utility/gnome-disk-utility-3.14.0.ebuild b/sys-apps/gnome-disk-utility/gnome-disk-utility-3.14.0.ebuild new file mode 100644 index 000000000000..8e2cad70fb2d --- /dev/null +++ b/sys-apps/gnome-disk-utility/gnome-disk-utility-3.14.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 + +DESCRIPTION="Disk Utility for GNOME using udisks" +HOMEPAGE="http://git.gnome.org/browse/gnome-disk-utility" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="fat +gnome systemd" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc x86" + +COMMON_DEPEND=" + >=dev-libs/glib-2.31:2 + >=sys-fs/udisks-2.1.1:2 + >=x11-libs/gtk+-3.12:3 + >=app-arch/xz-utils-5.0.5 + >=app-crypt/libsecret-0.7 + dev-libs/libpwquality + systemd? ( >=sys-apps/systemd-44:0= ) +" +RDEPEND="${COMMON_DEPEND} + >=media-libs/libdvdread-4.2.0 + >=media-libs/libcanberra-0.1[gtk3] + >=x11-libs/libnotify-0.7:= + >=x11-themes/gnome-icon-theme-symbolic-2.91 + fat? ( sys-fs/dosfstools ) + gnome? ( >=gnome-base/gnome-settings-daemon-3.8 ) +" +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.50 + dev-libs/libxslt + gnome-base/gnome-common + virtual/pkgconfig +" + +src_prepare() { + # Fix USE=-gnome, bug #478820 + epatch "${FILESDIR}"/${PN}-3.10.0-kill-gsd-automagic.patch + epatch "${FILESDIR}"/${PN}-3.10.0-raise-gsd-dependency.patch + + eautoreconf + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable gnome gsd-plugin) \ + $(use_enable systemd libsystemd-login) +} diff --git a/sys-apps/gnome-disk-utility/gnome-disk-utility-3.16.2.ebuild b/sys-apps/gnome-disk-utility/gnome-disk-utility-3.16.2.ebuild new file mode 100644 index 000000000000..6436197271aa --- /dev/null +++ b/sys-apps/gnome-disk-utility/gnome-disk-utility-3.16.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" + +inherit autotools eutils gnome2 + +DESCRIPTION="Disk Utility for GNOME using udisks" +HOMEPAGE="http://git.gnome.org/browse/gnome-disk-utility" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="fat +gnome systemd" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" + +COMMON_DEPEND=" + >=dev-libs/glib-2.31:2 + >=sys-fs/udisks-2.1.1:2 + >=x11-libs/gtk+-3.12:3 + >=app-arch/xz-utils-5.0.5 + >=app-crypt/libsecret-0.7 + dev-libs/libpwquality + systemd? ( >=sys-apps/systemd-44:0= ) +" +RDEPEND="${COMMON_DEPEND} + >=media-libs/libdvdread-4.2.0 + >=media-libs/libcanberra-0.1[gtk3] + >=x11-libs/libnotify-0.7:= + >=x11-themes/gnome-icon-theme-symbolic-2.91 + fat? ( sys-fs/dosfstools ) + gnome? ( >=gnome-base/gnome-settings-daemon-3.8 ) +" +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.50 + dev-libs/libxslt + gnome-base/gnome-common + virtual/pkgconfig +" + +src_prepare() { + # Fix USE=-gnome, bug #478820 + epatch "${FILESDIR}"/${PN}-3.10.0-kill-gsd-automagic.patch + epatch "${FILESDIR}"/${PN}-3.10.0-raise-gsd-dependency.patch + + eautoreconf + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable gnome gsd-plugin) \ + $(use_enable systemd libsystemd-login) +} diff --git a/sys-apps/gnome-disk-utility/metadata.xml b/sys-apps/gnome-disk-utility/metadata.xml new file mode 100644 index 000000000000..7ec8ee75a308 --- /dev/null +++ b/sys-apps/gnome-disk-utility/metadata.xml @@ -0,0 +1,9 @@ + + + +gnome + + Include FAT16/FAT32 support + (sys-fs/dosfstools) + + diff --git a/sys-apps/gpet/Manifest b/sys-apps/gpet/Manifest new file mode 100644 index 000000000000..b2cd49d4d077 --- /dev/null +++ b/sys-apps/gpet/Manifest @@ -0,0 +1 @@ +DIST gpet-0.4.tar.bz2 352653 SHA256 ff5c20718624b948062bef77f5083eddef2a7ef7ca66e09a8b003dfa3e9f632d SHA512 e373d57ab67d71fb750ee9af93893d036ff26f764f317328117745a4440c0559c2356866c09acfe579473e950e003744ae0a308df3b284d46097dcfe967c122e WHIRLPOOL db3d834460a06520275c0d5fdc005227e940277b8a0126eae38e483245688dd821370b63d995b131a46a1f43c88138de3d6ebe6a8cf3c5e46d7a3edca51bc358 diff --git a/sys-apps/gpet/gpet-0.4.ebuild b/sys-apps/gpet/gpet-0.4.ebuild new file mode 100644 index 000000000000..41ab10a9f17a --- /dev/null +++ b/sys-apps/gpet/gpet-0.4.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="GTK+ based TOMOYO policy editor" +HOMEPAGE="http://en.sourceforge.jp/projects/gpet/" +SRC_URI="mirror://sourceforge.jp/gpet/53178/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="gnome-base/gconf + sys-devel/gettext + x11-libs/cairo + x11-libs/gtk+:2 + x11-libs/pango" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig" diff --git a/sys-apps/gpet/metadata.xml b/sys-apps/gpet/metadata.xml new file mode 100644 index 000000000000..72088e816671 --- /dev/null +++ b/sys-apps/gpet/metadata.xml @@ -0,0 +1,10 @@ + + + + + naota@gentoo.org + + + gpet + + diff --git a/sys-apps/gptfdisk/Manifest b/sys-apps/gptfdisk/Manifest new file mode 100644 index 000000000000..f6f139879dad --- /dev/null +++ b/sys-apps/gptfdisk/Manifest @@ -0,0 +1,2 @@ +DIST gptfdisk-0.8.10.tar.gz 190666 SHA256 73e64151203ae0c347c488358e71ca582bb7fb7f0d66df86b71c42050390eb9b SHA512 3187bc231c3390a86f5b7b32270d5f0d1e6c7bccd9d1cbf100c29f4822afa73362aa1fbdd3b29f20c42d67ec51bd777b7b58b5791e31182b3860915bc695948f WHIRLPOOL f90b95f9f0cfba1b57b7dcfd2e39e475f322fa9ea2a85891ea70877e518bbed96dec8d4f61a8eeae3dbd2d36d276ce4bd2c2781eaa5135058cf544629f4cddbc +DIST gptfdisk-1.0.0.tar.gz 193521 SHA256 5b66956743a799fc0471cdb032665c1391e82f9c5b3f1d7d726d29fe2ba01d6c SHA512 d60660563268c20737415e1cfd4239fba0cc2ceb4c6ae86cc34e9550d969f9b88ac3d8c862d1790f6d644266b423eeb5d78540eec01a447b722793fba54f6afc WHIRLPOOL d7fbec9fd92eb0a871510f2c25d0057577f73668b68336148af86d549522845dda79423e8ddf306d2128153436467f618decb9b65a19a6bf6e89ce5187c67676 diff --git a/sys-apps/gptfdisk/gptfdisk-0.8.10.ebuild b/sys-apps/gptfdisk/gptfdisk-0.8.10.ebuild new file mode 100644 index 000000000000..ef98452440a9 --- /dev/null +++ b/sys-apps/gptfdisk/gptfdisk-0.8.10.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="GPT partition table manipulator for Linux" +HOMEPAGE="http://www.rodsbooks.com/gdisk/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="kernel_linux ncurses static" + +LIB_DEPEND="dev-libs/popt[static-libs(+)] + ncurses? ( >=sys-libs/ncurses-5.7-r7[static-libs(+)] ) + kernel_linux? ( sys-apps/util-linux[static-libs(+)] )" # libuuid +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + virtual/pkgconfig" + +src_prepare() { + tc-export CXX PKG_CONFIG + + if ! use ncurses; then + sed -i \ + -e '/^all:/s:cgdisk::' \ + Makefile || die + fi + + sed \ + -e '/g++/s:=:?=:g' \ + -e 's:-lncursesw:$(shell $(PKG_CONFIG) --libs ncursesw):g' \ + -i Makefile || die + + use static && append-ldflags -static +} + +src_install() { + dosbin gdisk sgdisk $(usex ncurses cgdisk '') fixparts + doman *.8 + dodoc NEWS README +} diff --git a/sys-apps/gptfdisk/gptfdisk-1.0.0.ebuild b/sys-apps/gptfdisk/gptfdisk-1.0.0.ebuild new file mode 100644 index 000000000000..f96d989e8ea5 --- /dev/null +++ b/sys-apps/gptfdisk/gptfdisk-1.0.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="GPT partition table manipulator for Linux" +HOMEPAGE="http://www.rodsbooks.com/gdisk/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="kernel_linux ncurses static" + +LIB_DEPEND="dev-libs/popt[static-libs(+)] + ncurses? ( >=sys-libs/ncurses-5.7-r7[static-libs(+)] ) + kernel_linux? ( sys-apps/util-linux[static-libs(+)] )" # libuuid +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + virtual/pkgconfig" + +src_prepare() { + tc-export CXX PKG_CONFIG + + if ! use ncurses; then + sed -i \ + -e '/^all:/s:cgdisk::' \ + Makefile || die + fi + + sed \ + -e '/g++/s:=:?=:g' \ + -e 's:-lncursesw:$(shell $(PKG_CONFIG) --libs ncursesw):g' \ + -i Makefile || die + + use static && append-ldflags -static +} + +src_install() { + dosbin gdisk sgdisk $(usex ncurses cgdisk '') fixparts + doman *.8 + dodoc NEWS README +} diff --git a/sys-apps/gptfdisk/metadata.xml b/sys-apps/gptfdisk/metadata.xml new file mode 100644 index 000000000000..4beceb120b3d --- /dev/null +++ b/sys-apps/gptfdisk/metadata.xml @@ -0,0 +1,15 @@ + + + + + alexxy@gentoo.org + Alexey Shvetsov + + + polynomial-c@gentoo.org + Lars Wendler + + + gptfdisk + + diff --git a/sys-apps/gradm/Manifest b/sys-apps/gradm/Manifest new file mode 100644 index 000000000000..6917fce6e546 --- /dev/null +++ b/sys-apps/gradm/Manifest @@ -0,0 +1,3 @@ +DIST gradm-3.1-201506081912.tar.gz 91410 SHA256 436e91a390579b6f96124bb69b2dd3411d8e55267e5208a0479796c6ad51abcc SHA512 99f0bc391e0a5a3f03ab8f72650e8248d66ce36cefe1662c3d960120a6dc61b900f0874f82ec742e33c32de36dfb12642f965fce530e640e7f3a171d60e4ed78 WHIRLPOOL 77966fa7be791d4dc305405e07e2b1d8aa57c51439f1e638ea945400150ff16f45bd2212a1e961b569e62826b7cf3690b4aa1833444019065e2c3a22a10b5734 +DIST gradm-3.1-201507041117.tar.gz 91468 SHA256 098e1978731d456c8c1db696fa0b67d6f1310a87a996083a1b627671b4e0c1f5 SHA512 507d97477a1b28a0097467aba3085759c606a7ef1fd3b91d09cd7ffb9523408276d4fe504c4bb9b036c0ee6066e3edef9ebe0fb17b2d7e1156937fb6ca813daf WHIRLPOOL 392976e30a5e2ed765ab6ba09c8d03935cb6bc0f18519fc7764fc127bf2fe2ba2aa88d5a026e7d1a46d0406af1af60e9045a2ffa677d94fa4e8bd004fbb5ef5a +DIST gradm-3.1-201507191652.tar.gz 91460 SHA256 2f14c357bf0459e502a4e108b76c3f6240aa484762d07bb1687796b9b9297a50 SHA512 94b655164369d3ae061ae74710db1098e743a435eecdee9faef77b39aa3fe58f552b4479e55c9546b3c25dea194dc490d9442fc404318628c77d1ecd05d6243e WHIRLPOOL 22041c8424bacccdb53eef953b2419a84b24318caac91e137c59b3b88a5ef57d32dfe31dcf8ddb0c36e35b935db0526b9778ac0650d6dfdf612a469ccdc17f78 diff --git a/sys-apps/gradm/files/respect-gentoo-env-r2.patch b/sys-apps/gradm/files/respect-gentoo-env-r2.patch new file mode 100644 index 000000000000..65d242e48e9e --- /dev/null +++ b/sys-apps/gradm/files/respect-gentoo-env-r2.patch @@ -0,0 +1,42 @@ +diff -Naur gradm2.orig/Makefile gradm2/Makefile +--- gradm2.orig/Makefile 2013-08-09 16:28:37.000000000 -0400 ++++ gradm2/Makefile 2013-08-10 07:57:12.000000000 -0400 +@@ -18,18 +18,18 @@ + BISON=/usr/bin/bison + #YACC := $(shell if [ -x $(BYACC) ]; then echo $(BYACC); else echo $(BISON); fi) + YACC=$(BISON) +-MKNOD=/bin/mknod ++MKNOD=true + #for dietlibc + #CC=/usr/bin/diet /usr/bin/gcc + CC=/usr/bin/gcc + FIND=/usr/bin/find +-STRIP=/usr/bin/strip ++STRIP=true + LIBS := $(shell if [ "`uname -m`" != "sparc64" -a "`uname -m`" != "x86_64" ]; then echo "-lfl" ; else echo "" ; fi) + OPT_FLAGS := -O2 + # for older versions of grsecurity, comment the above line and uncomment the below: + #OPT_FLAGS := $(shell if [ "`uname -m`" != "sparc64" ] && [ "`uname -m`" != "x86_64" ]; then echo "-O2" ; else echo "-O2 -m64" ; fi) +-CFLAGS := $(OPT_FLAGS) -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE +-LDFLAGS= ++CFLAGS := $(OPT_FLAGS) -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE $(CFLAGS) ++LDFLAGS+= + INSTALL = /usr/bin/install -c + + # FHS +@@ -167,10 +167,11 @@ + $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \ + fi \ + fi +- @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \ +- echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ +- echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ +- echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ ++ @mkdir -p $(DESTDIR)/lib/udev/rules.d ++ @if [ -d $(DESTDIR)/lib/udev/rules.d ] ; then \ ++ echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \ ++ echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \ ++ echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \ + fi + @if [ -f $(DESTDIR)/sbin/udevadm ] ; then \ + $(DESTDIR)/sbin/udevadm trigger --action=change ; \ diff --git a/sys-apps/gradm/files/respect-gentoo-env-r3.patch b/sys-apps/gradm/files/respect-gentoo-env-r3.patch new file mode 100644 index 000000000000..7c899b139745 --- /dev/null +++ b/sys-apps/gradm/files/respect-gentoo-env-r3.patch @@ -0,0 +1,42 @@ +diff -Naur gradm2.orig/Makefile gradm2/Makefile +--- gradm2.orig/Makefile 2013-08-09 16:28:37.000000000 -0400 ++++ gradm2/Makefile 2013-08-10 07:57:12.000000000 -0400 +@@ -18,18 +18,18 @@ + BISON=/usr/bin/bison + #YACC := $(shell if [ -x $(BYACC) ]; then echo $(BYACC); else echo $(BISON); fi) + YACC=$(BISON) +-MKNOD=/bin/mknod ++MKNOD=true + #for dietlibc + #CC=/usr/bin/diet /usr/bin/gcc + CC=/usr/bin/gcc + FIND=/usr/bin/find +-STRIP=/usr/bin/strip ++STRIP=true + LIBS := $(shell if [ "`uname -m`" != "sparc64" -a "`uname -m`" != "x86_64" ]; then echo "-lfl" ; else echo "" ; fi) + OPT_FLAGS := -O2 + # for older versions of grsecurity, comment the above line and uncomment the below: + #OPT_FLAGS := $(shell if [ "`uname -m`" != "sparc64" ] && [ "`uname -m`" != "x86_64" ]; then echo "-O2" ; else echo "-O2 -m64" ; fi) +-CFLAGS := $(OPT_FLAGS) -fPIE -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE +-LDFLAGS= -pie ++CFLAGS := $(OPT_FLAGS) -fPIE -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE $(CFLAGS) ++LDFLAGS+= -pie + INSTALL = /usr/bin/install -c + + # FHS +@@ -167,10 +167,11 @@ + $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \ + fi \ + fi +- @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \ +- echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ +- echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ +- echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ ++ @mkdir -p $(DESTDIR)/lib/udev/rules.d ++ @if [ -d $(DESTDIR)/lib/udev/rules.d ] ; then \ ++ echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \ ++ echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \ ++ echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/lib/udev/rules.d/80-grsec.rules ; \ + fi + @if [ -f $(DESTDIR)/sbin/udevadm ] ; then \ + $(DESTDIR)/sbin/udevadm trigger --action=change ; \ diff --git a/sys-apps/gradm/gradm-3.1.201506081912.ebuild b/sys-apps/gradm/gradm-3.1.201506081912.ebuild new file mode 100644 index 000000000000..15c8a9987271 --- /dev/null +++ b/sys-apps/gradm/gradm-3.1.201506081912.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit flag-o-matic toolchain-funcs versionator eutils udev + +MY_PV="$(replace_version_separator 2 -)" + +DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system" +HOMEPAGE="http://www.grsecurity.net/" +SRC_URI="http://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86" +IUSE="pam" + +RDEPEND="" +DEPEND=" + sys-devel/bison + sys-devel/flex + pam? ( virtual/pam )" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/respect-gentoo-env-r3.patch + sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die +} + +src_compile() { + local target + use pam || target="nopam" + + emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install + fperms 711 /sbin/gradm +} + +pkg_postinst() { + ewarn + ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode." + ewarn +} diff --git a/sys-apps/gradm/gradm-3.1.201507041117.ebuild b/sys-apps/gradm/gradm-3.1.201507041117.ebuild new file mode 100644 index 000000000000..15c8a9987271 --- /dev/null +++ b/sys-apps/gradm/gradm-3.1.201507041117.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit flag-o-matic toolchain-funcs versionator eutils udev + +MY_PV="$(replace_version_separator 2 -)" + +DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system" +HOMEPAGE="http://www.grsecurity.net/" +SRC_URI="http://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86" +IUSE="pam" + +RDEPEND="" +DEPEND=" + sys-devel/bison + sys-devel/flex + pam? ( virtual/pam )" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/respect-gentoo-env-r3.patch + sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die +} + +src_compile() { + local target + use pam || target="nopam" + + emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install + fperms 711 /sbin/gradm +} + +pkg_postinst() { + ewarn + ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode." + ewarn +} diff --git a/sys-apps/gradm/gradm-3.1.201507191652.ebuild b/sys-apps/gradm/gradm-3.1.201507191652.ebuild new file mode 100644 index 000000000000..51923e3ff1e6 --- /dev/null +++ b/sys-apps/gradm/gradm-3.1.201507191652.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit flag-o-matic toolchain-funcs versionator eutils udev + +MY_PV="$(replace_version_separator 2 -)" + +DESCRIPTION="Administrative interface for the grsecurity Role Based Access Control system" +HOMEPAGE="http://www.grsecurity.net/" +SRC_URI="http://dev.gentoo.org/~blueness/hardened-sources/gradm/${PN}-${MY_PV}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="pam" + +RDEPEND="" +DEPEND=" + sys-devel/bison + sys-devel/flex + pam? ( virtual/pam )" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/respect-gentoo-env-r3.patch + sed -i -e "s:/lib/udev:$(get_udevdir):" Makefile || die +} + +src_compile() { + local target + use pam || target="nopam" + + emake ${target} CC="$(tc-getCC)" OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install + fperms 711 /sbin/gradm +} + +pkg_postinst() { + ewarn + ewarn "Be sure to set a password with 'gradm -P' before enabling learning mode." + ewarn +} diff --git a/sys-apps/gradm/metadata.xml b/sys-apps/gradm/metadata.xml new file mode 100644 index 000000000000..e217c3733475 --- /dev/null +++ b/sys-apps/gradm/metadata.xml @@ -0,0 +1,9 @@ + + + + hardened + + blueness@gentoo.org + Anthony G. Basile + + diff --git a/sys-apps/grep/Manifest b/sys-apps/grep/Manifest new file mode 100644 index 000000000000..9bd956abcea4 --- /dev/null +++ b/sys-apps/grep/Manifest @@ -0,0 +1,2 @@ +DIST grep-2.21-heap_buffer_overrun.patch 3302 SHA256 4bc7e744fd34b268a798daf6a5aa85f55c141747149fa7b015eefbf9318ed478 SHA512 eaea33238f179b17dd152ed27a07c211646d9572be250eb7997c25ea0c8de232d21d8bc1b1e865b26545e6817e5c116e18d9115fb497d39426ac8212839f0f82 WHIRLPOOL 5ead7c22c8fe98289322a03685e9fc04e834a01144c55c9ea3b1970fa61b400ce669e6947cb3564fbbba5c7ddf079fd30e66352e4f6eed888e8fe883e369e601 +DIST grep-2.21.tar.xz 1261548 SHA256 5244a11c00dee8e7e5e714b9aaa053ac6cbfa27e104abee20d3c778e4bb0e5de SHA512 bc894325f89d37413c773d4812cb24180560037ccc8d72c015462043ef3479ea7eefd62557e3a9d191d6d94c68262563d3c68e634acd4e77ba56e96c92805dfd WHIRLPOOL 2272286c10695a51eecafcc5ca8986adb5486d4494b284904f588717c6fb06de37933faa5f62eabf0ecc856334b3a1179b864dedc06f223047471168d2d86bb0 diff --git a/sys-apps/grep/grep-2.21-r1.ebuild b/sys-apps/grep/grep-2.21-r1.ebuild new file mode 100644 index 000000000000..194baac7d3d5 --- /dev/null +++ b/sys-apps/grep/grep-2.21-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="GNU regular expression matcher" +HOMEPAGE="http://www.gnu.org/software/grep/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}.tar.xz + http://dev.gentoo.org/~polynomial-c/${P}-heap_buffer_overrun.patch" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls pcre static" + +LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) + nls? ( virtual/libintl ) + virtual/libiconv" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext ) + static? ( ${LIB_DEPEND} )" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) + +src_prepare() { + # Disable gnulib build test that has no impact on the source. + # Re-enable w/next version bump (and gnulib is updated). #554728 + [[ ${PV} != "2.21" ]] && die "re-enable test #554728" + echo 'exit 0' > gnulib-tests/test-update-copyright.sh || die + + sed -i \ + -e "s:@SHELL@:${EPREFIX}/bin/sh:g" \ + src/egrep.sh || die #523898 + + epatch "${DISTDIR}/${P}-heap_buffer_overrun.patch" +} + +src_configure() { + use static && append-ldflags -static + # Always use pkg-config to get lib info for pcre. + export ac_cv_search_pcre_compile=$( + usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" '' + ) + econf \ + --bindir="${EPREFIX}"/bin \ + $(use_enable nls) \ + $(use_enable pcre perl-regexp) +} diff --git a/sys-apps/grep/metadata.xml b/sys-apps/grep/metadata.xml new file mode 100644 index 000000000000..c9e284040953 --- /dev/null +++ b/sys-apps/grep/metadata.xml @@ -0,0 +1,8 @@ + + + +base-system + + cpe:/a:gnu:grep + + diff --git a/sys-apps/groff/Manifest b/sys-apps/groff/Manifest new file mode 100644 index 000000000000..05932d310e8d --- /dev/null +++ b/sys-apps/groff/Manifest @@ -0,0 +1,3 @@ +DIST groff-1.22.1-japanese.patch.bz2 52968 SHA256 cbdfdd7981f4e4e99839218bb4a6bc1b981cc23e946b6959fef15644d29c9f47 SHA512 883d15dd2f1420a067d35737c45431f33f05bbe3c7e7edab0e119416117b5d096972d71452eae94bfd3df23aa7d6595fc6e65208bd4fba86815162bdf9af8bef WHIRLPOOL e59bee5ddd2136e98b1881e695915e9da91db17fba68fc8508e2bd477a462499f2dfa6f569729a56620301b97e532a8585f9eacdc92ac92cdb87316b4c7687a0 +DIST groff-1.22.2.tar.gz 4019913 SHA256 380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076 SHA512 ea34db53f075b6816827b07ac3d6a19ed50529c939044337eb3124575ac3b41363e1d81bbd5bf552a7a10f6b1dd233d6e7acaf646e18cfe94464c59dc20ffe80 WHIRLPOOL 61f24635140f388672761822c696fb051fc26050da6d7d771a73af112f477cd65d934129786794cd39bc3dcb69a88c8dcb7e4739b980a73d68ec518f54aed861 +DIST groff-1.22.3.tar.gz 4188772 SHA256 3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5 SHA512 c526ab203d13a9c9d110bcd3149fe50d1cd0d309437e9e2731a7ce90d890507ebc0a2331899ecf4dba2938daa756b6094cf76fd347a0ded59797c70ccfd0c95c WHIRLPOOL 671b8f9641d5969d995616b7e7aaa5928cab9658b3017e1d87c39c507e32724350ab81f73475fc159bae0f305d106d944e490f1d7b53b8715a5367dc11140fdb diff --git a/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch b/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch new file mode 100644 index 000000000000..d85a8330d274 --- /dev/null +++ b/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch @@ -0,0 +1,24 @@ +format dashes as dashes so as to not confuse people + +http://bugs.gentoo.org/16108 +http://bugs.gentoo.org/17580 +http://bugs.gentoo.org/121502 + +--- tmac/man.local ++++ tmac/man.local +@@ -1,2 +1,6 @@ + .\" This file is loaded after an-old.tmac. + .\" Put any local modifications to an-old.tmac here. ++.if '\*[.T]'utf8' \{\ ++. char \- \N'45' ++. char - \N'45' ++.\} +--- tmac/mdoc.local ++++ tmac/mdoc.local +@@ -1,2 +1,6 @@ + .\" This file is loaded after doc.tmac. + .\" Put any local modifications to doc.tmac here. ++.if '\*[.T]'utf8' \{\ ++. char \- \N'45' ++. char - \N'45' ++.\} diff --git a/sys-apps/groff/files/groff-1.22.2-parallel-mom.patch b/sys-apps/groff/files/groff-1.22.2-parallel-mom.patch new file mode 100644 index 000000000000..7cf3c22295d5 --- /dev/null +++ b/sys-apps/groff/files/groff-1.22.2-parallel-mom.patch @@ -0,0 +1,96 @@ +From 9f3af719383ab525c86ee0f514e268ef8494330a Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Fri, 6 Dec 2013 20:40:10 -0500 +Subject: [PATCH] fix parallel build w/gropdf and mom examples + +The contrib/mom/examples/ directory uses the helper script from +src/devices/gropdf/. Currently though, parallel builds might fail +like so: + +... +make[2]: Entering directory `.../groff-1.22.2/contrib/mom' +GROFF_COMMAND_PREFIX= GROFF_BIN_PATH="`echo .../groff-1.22.2/src/roff/groff .../groff-1.22.2/src/roff/troff .../groff-1.22.2/src/devices/grops .../groff-1.22.2/src/devices/gropdf | sed -e 's| *|:|g'`" PDFMOM_BIN_PATH=".../groff-1.22.2/src/devices/gropdf" .../groff-1.22.2/src/devices/gropdf/pdfmom -F.../groff-1.22.2/font -F.../groff-1.22.2/font -M.../groff-1.22.2/tmac -M.../groff-1.22.2/tmac -M. examples/letter.mom >examples/letter.pdf +GROFF_COMMAND_PREFIX= GROFF_BIN_PATH="`echo .../groff-1.22.2/src/roff/groff .../groff-1.22.2/src/roff/troff .../groff-1.22.2/src/devices/grops .../groff-1.22.2/src/devices/gropdf | sed -e 's| *|:|g'`" PDFMOM_BIN_PATH=".../groff-1.22.2/src/devices/gropdf" .../groff-1.22.2/src/devices/gropdf/pdfmom -F.../groff-1.22.2/font -F.../groff-1.22.2/font -M.../groff-1.22.2/tmac -M.../groff-1.22.2/tmac -M. examples/mom-pdf.mom >examples/mom-pdf.pdf +/bin/sh: .../groff-1.22.2/src/devices/gropdf/pdfmom: No such file or directory +make[2]: *** [examples/letter.pdf] Error 127 +/bin/sh: .../groff-1.22.2/src/devices/gropdf/pdfmom: No such file or directory +make[2]: *** [examples/mom-pdf.pdf] Error 127 +make[2]: Leaving directory `.../groff-1.22.2/contrib/mom' +make[1]: *** [contrib/mom] Error 2 +... +make[2]: Entering directory `.../groff-1.22.2/src/devices/gropdf' +sed -f .../groff-1.22.2/arch/misc/shdeps.sed \ + -e "s|@VERSION@|1.22.2|" \ + -e "s|@PERLPATH@|/usr/bin/perl|" ./pdfmom.pl >pdfmom + +The top level makefile tries to account for this in general with OTHERDIRS, +but looks like src/devices/gropdf/ was added to this variable (which holds +contrib/mom/ too) because gropdf installs a shell script, and the other +prog vars require it to be a dir of things to compile. + +Declare a new prog var for holding shell scripts. + +URL: http://crbug.com/324116 +URL: https://bugs.gentoo.org/487276 +Signed-off-by: Mike Frysinger + +2013-12-06 Mike Frysinger + + * Makefile.in (SHPROGDIRS): Declare. + (PROGDIRS): Add $(SHPROGDIRS). + (OTHERDIRS): Delete src/devices/gropdf. + ($(SHPROGDIRS):): Add to existing rule. + ($(OTHERDIRS):): Depend on $(SHPROGDIRS). +--- + Makefile.in | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index a794de7..8e478af 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -602,12 +602,15 @@ CCPROGDIRS=\ + src/utils/addftinfo + CPROGDIRS=\ + src/utils/pfbtops ++SHPROGDIRS=\ ++ src/devices/gropdf + PROGDEPDIRS=\ + arch/misc + PROGDIRS=\ + $(PROGDEPDIRS) \ + $(CCPROGDIRS) \ + $(CPROGDIRS) \ ++ $(SHPROGDIRS) \ + $(XPROGDIRS) + DEVDIRS=\ + font/devps \ +@@ -637,7 +640,6 @@ OTHERDIRS=\ + contrib/glilypond \ + contrib/hdtbl \ + contrib/pdfmark \ +- src/devices/gropdf \ + font/devpdf \ + contrib/mom \ + contrib/gdiffmk +@@ -778,7 +780,7 @@ $(CCPROGDIRS): FORCE $(LIBDIRS) + -f $(top_srcdir)/Makefile.ccpg \ + -f Makefile.dep $(do) + +-$(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) ++$(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(SHPROGDIRS): FORCE $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) + @$(ENVSETUP); \ + if test $(srcdir) = .; then \ + srcdir=.; \ +@@ -809,7 +811,7 @@ $(GNULIBDIRS): FORCE + $(MAKE) ACLOCAL=: AUTOCONF=: AUTOHEADER=: AUTOMAKE=: $(do) ;; \ + esac + +-$(OTHERDIRS): $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) ++$(OTHERDIRS): $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) $(SHPROGDIRS) + + $(INCDIRS) $(PROGDEPDIRS) $(OTHERDIRS): FORCE + @$(ENVSETUP); \ +-- +1.8.4.3 + diff --git a/sys-apps/groff/files/groff-1.22.3-parallel-mom.patch b/sys-apps/groff/files/groff-1.22.3-parallel-mom.patch new file mode 100644 index 000000000000..10661ac27f2c --- /dev/null +++ b/sys-apps/groff/files/groff-1.22.3-parallel-mom.patch @@ -0,0 +1,11 @@ +--- groff-1.22.3/Makefile.in ++++ groff-1.22.3/Makefile.in +@@ -864,7 +864,7 @@ + -f $(top_srcdir)/Makefile.ccpg \ + -f Makefile.dep $(do) + +-$(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE \ ++$(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(SHPROGDIRS): FORCE \ + $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) + @$(ENVSETUP); \ + if test $(srcdir) = .; then \ diff --git a/sys-apps/groff/groff-1.22.2.ebuild b/sys-apps/groff/groff-1.22.2.ebuild new file mode 100644 index 000000000000..b35c761cca5b --- /dev/null +++ b/sys-apps/groff/groff-1.22.2.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit autotools eutils toolchain-funcs + +DESCRIPTION="Text formatter used for man pages" +HOMEPAGE="http://www.gnu.org/software/groff/groff.html" +SRC_URI="mirror://gnu/groff/${P}.tar.gz + linguas_ja? ( http://dev.gentoo.org/~naota/patch/${PN}-1.22.1-japanese.patch.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples X linguas_ja" + +RDEPEND=">=sys-apps/texinfo-4.7-r1 + X? ( + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu + x11-libs/libXaw + x11-libs/libSM + x11-libs/libICE + )" +DEPEND="${RDEPEND} + linguas_ja? ( virtual/yacc )" + +DOCS=( BUG-REPORT ChangeLog MORE.STUFF NEWS PROBLEMS PROJECTS README REVISION TODO VERSION ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.19.2-man-unicode-dashes.patch #16108 #17580 #121502 + epatch "${FILESDIR}"/${PN}-1.22.2-parallel-mom.patch #487276 + + # Make sure we can cross-compile this puppy + if tc-is-cross-compiler ; then + sed -i \ + -e '/^GROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/groff:' \ + -e '/^TROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/troff:' \ + -e '/^GROFF_BIN_PATH=/s:=.*:=:' \ + -e '/^GROFF_BIN_DIR=/s:=.*:=:' \ + contrib/*/Makefile.sub \ + doc/Makefile.in \ + doc/Makefile.sub || die "cross-compile sed failed" + fi + + local pfx=$(usex prefix ' Prefix' '') + cat <<-EOF >> tmac/mdoc.local + .ds volume-operating-system Gentoo${pfx} + .ds operating-system Gentoo${pfx}/${KERNEL} + .ds default-operating-system Gentoo${pfx}/${KERNEL} + EOF + + if use linguas_ja ; then + epatch "${WORKDIR}"/${PN}-1.22.1-japanese.patch #255292 #350534 #450796 + eautoconf + eautoheader + fi + + # make sure we don't get a crappy `g' nameprefix on UNIX systems with real + # troff (GROFF_G macro runs some test to see, its own troff doesn't satisfy) + sed -i -e 's/^[ \t]\+g=g$/g=/' configure || die +} + +src_configure() { + econf \ + --with-appresdir="${EPREFIX}"/usr/share/X11/app-defaults \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_with X x) \ + $(usex linguas_ja '--enable-japanese' '') +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + + # The following links are required for man #123674 + dosym eqn /usr/bin/geqn + dosym tbl /usr/bin/gtbl + + if ! use examples ; then + rm -rf "${ED}"/usr/share/doc/${PF}/examples + rm -f "${ED}"/usr/share/doc/${PF}/pdf/mom-pdf.pdf + fi +} diff --git a/sys-apps/groff/groff-1.22.3.ebuild b/sys-apps/groff/groff-1.22.3.ebuild new file mode 100644 index 000000000000..752dbe7f1e12 --- /dev/null +++ b/sys-apps/groff/groff-1.22.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Text formatter used for man pages" +HOMEPAGE="http://www.gnu.org/software/groff/groff.html" +SRC_URI="mirror://gnu/groff/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples X" + +RDEPEND=">=sys-apps/texinfo-4.7-r1 + X? ( + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu + x11-libs/libXaw + x11-libs/libSM + x11-libs/libICE + )" +DEPEND="${RDEPEND}" + +DOCS=( BUG-REPORT ChangeLog MORE.STUFF NEWS PROBLEMS PROJECTS README REVISION TODO VERSION ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.19.2-man-unicode-dashes.patch #16108 #17580 #121502 + epatch "${FILESDIR}"/${PN}-1.22.3-parallel-mom.patch #487276 + + # Make sure we can cross-compile this puppy + if tc-is-cross-compiler ; then + sed -i \ + -e '/^GROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/groff:' \ + -e '/^TROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/troff:' \ + -e '/^GROFF_BIN_PATH=/s:=.*:=:' \ + -e '/^GROFF_BIN_DIR=/s:=.*:=:' \ + contrib/*/Makefile.sub \ + doc/Makefile.in \ + doc/Makefile.sub || die "cross-compile sed failed" + fi + + local pfx=$(usex prefix ' Prefix' '') + cat <<-EOF >> tmac/mdoc.local + .ds volume-operating-system Gentoo${pfx} + .ds operating-system Gentoo${pfx}/${KERNEL} + .ds default-operating-system Gentoo${pfx}/${KERNEL} + EOF + + # make sure we don't get a crappy `g' nameprefix on UNIX systems with real + # troff (GROFF_G macro runs some test to see, its own troff doesn't satisfy) + sed -i -e 's/^[ \t]\+g=g$/g=/' configure || die +} + +src_configure() { + econf \ + --with-appresdir="${EPREFIX}"/usr/share/X11/app-defaults \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_with X x) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + + # The following links are required for man #123674 + dosym eqn /usr/bin/geqn + dosym tbl /usr/bin/gtbl + + use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples +} diff --git a/sys-apps/groff/metadata.xml b/sys-apps/groff/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/groff/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/gscanbus/Manifest b/sys-apps/gscanbus/Manifest new file mode 100644 index 000000000000..975c5ae1e911 --- /dev/null +++ b/sys-apps/gscanbus/Manifest @@ -0,0 +1 @@ +DIST gscanbus-0.8.tar.gz 215739 SHA256 5fd7c9e4b52a91cf3714ed284bf1fbf95ce45efe0413fce78649335f24278135 diff --git a/sys-apps/gscanbus/gscanbus-0.8.ebuild b/sys-apps/gscanbus/gscanbus-0.8.ebuild new file mode 100644 index 000000000000..a22c52fa23c7 --- /dev/null +++ b/sys-apps/gscanbus/gscanbus-0.8.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="a little bus scanning, testing, and topology visualizing tool for the Linux IEEE1394 subsystem" +HOMEPAGE="http://sourceforge.net/projects/gscanbus.berlios/" +SRC_URI="mirror://sourceforge/${PN}.berlios/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="sys-libs/libraw1394 + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS README TODO ) diff --git a/sys-apps/gscanbus/metadata.xml b/sys-apps/gscanbus/metadata.xml new file mode 100644 index 000000000000..e02aded30f16 --- /dev/null +++ b/sys-apps/gscanbus/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + gscanbus.berlios + + diff --git a/sys-apps/gsmartcontrol/Manifest b/sys-apps/gsmartcontrol/Manifest new file mode 100644 index 000000000000..85a7c9d95bb1 --- /dev/null +++ b/sys-apps/gsmartcontrol/Manifest @@ -0,0 +1 @@ +DIST gsmartcontrol-0.8.7.tar.bz2 684394 SHA256 708fa803243abb852ed52050fc82cd3592a798c02743342441996e77f19ffec6 SHA512 3258ddcb448460afeef8d617ab5bb4720c9b2444452bc45d6798ec645da4862236fbb3fe0116a1cc904f5353481df87603bd2b6d808f348c250bde3624c8403a WHIRLPOOL 24fb546c7175306c8cdd8906b506471d20668de0cd078a8205ec87eff50ce0eb52dc04b3b05e771f8789ef852e5f97675c7c224ab6450d90a3e2ac3e51578d2a diff --git a/sys-apps/gsmartcontrol/gsmartcontrol-0.8.7.ebuild b/sys-apps/gsmartcontrol/gsmartcontrol-0.8.7.ebuild new file mode 100644 index 000000000000..053a68bd3fed --- /dev/null +++ b/sys-apps/gsmartcontrol/gsmartcontrol-0.8.7.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit gnome2-utils + +DESCRIPTION="Hard disk drive health inspection tool" +HOMEPAGE="http://gsmartcontrol.sourceforge.net/home/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="|| ( GPL-2 GPL-3 ) Boost-1.0 BSD Unlicense ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +COMMON_DEPEND="dev-cpp/gtkmm:2.4 + dev-libs/libpcre + sys-apps/smartmontools" +RDEPEND="${COMMON_DEPEND} + x11-apps/xmessage" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + test? ( dev-util/gtk-builder-convert )" + +DOCS="TODO" # See 'dist_doc_DATA' value in Makefile.am + +src_configure() { + econf \ + --docdir=/usr/share/doc/${PF} \ + $(use test tests) +} + +src_install() { + default + rm -f "${ED}"/usr/share/doc/${PF}/LICENSE_* || die +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; } diff --git a/sys-apps/gsmartcontrol/metadata.xml b/sys-apps/gsmartcontrol/metadata.xml new file mode 100644 index 000000000000..77c4c35f6b24 --- /dev/null +++ b/sys-apps/gsmartcontrol/metadata.xml @@ -0,0 +1,12 @@ + + + + base-system + + ssuominen@gentoo.org + Samuli Suominen + + + gsmartcontrol + + diff --git a/sys-apps/hardened-shadow/Manifest b/sys-apps/hardened-shadow/Manifest new file mode 100644 index 000000000000..a8cea00a83f3 --- /dev/null +++ b/sys-apps/hardened-shadow/Manifest @@ -0,0 +1 @@ +DIST hardened-shadow-0.9.2.tar.gz 393648 SHA256 0561bf7059b3de7e97e968bb71a3ccac3dd944bf96f1d5de87798359e592aa00 diff --git a/sys-apps/hardened-shadow/hardened-shadow-0.9.2.ebuild b/sys-apps/hardened-shadow/hardened-shadow-0.9.2.ebuild new file mode 100644 index 000000000000..e005e84b1336 --- /dev/null +++ b/sys-apps/hardened-shadow/hardened-shadow-0.9.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools-utils eutils multilib user + +DESCRIPTION="Hardened implementation of user account utilities" +HOMEPAGE="http://code.google.com/p/hardened-shadow/" +SRC_URI="http://hardened-shadow.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="sys-libs/pam + !sys-apps/shadow" +RDEPEND="${DEPEND} + >=sys-auth/pambase-20120417" + +DOCS=( README ) + +pkg_setup() { + # The hardened-shadow group is needed at src_install time, + # so the only place we can create the group is pkg_setup. + enewgroup hardened-shadow +} + +src_install() { + autotools-utils_src_install + + # Remove pam.d files colliding with pambase. + rm -r "${ED}"/etc/pam.d || die +} diff --git a/sys-apps/hardened-shadow/metadata.xml b/sys-apps/hardened-shadow/metadata.xml new file mode 100644 index 000000000000..5dcc2c69c794 --- /dev/null +++ b/sys-apps/hardened-shadow/metadata.xml @@ -0,0 +1,11 @@ + + + + + phajdan.jr@gentoo.org + Pawel Hajdan jr + + + hardened-shadow + + diff --git a/sys-apps/haveged/Manifest b/sys-apps/haveged/Manifest new file mode 100644 index 000000000000..7bccce58bef0 --- /dev/null +++ b/sys-apps/haveged/Manifest @@ -0,0 +1,3 @@ +DIST haveged-1.5.tar.gz 243348 SHA256 f7d5a7e995befd4723811b331854fa53fe558546ba0c1dcb4675698e8db3702f SHA512 57952a79d4535267de15c42511991e2b06021db3b1ea90a45b30c5bd5ac65f6b9b6d66373d981280a3e7c0aff24dd6feae5640394e77f08a893dba5f31d86c91 WHIRLPOOL ef4c5acf8c787e18a436fe34ef2479658f325852e5717ad1a06bf19ecbe485e646a2bb132617417de26982d1d388b90293d3c8c31c0e7a0b0db570be80c5e5a4 +DIST haveged-1.7a.tar.gz 458671 SHA256 8e7b0779bd8a4b9b73769ddaf626918355e2a542d3ac35e5ec31b74a58b9b051 SHA512 e98740315b5c9920ec471587362ffd468d0b0f7183bc002982fbe25dfde2252a89f489e4d7604d7d6d2c14d67f3f0d1044de70ccdeaf587d8bdaacfd55669875 WHIRLPOOL f9f808a17767e33ec4285242ccb2fd41889fbe1ee693bd001d4a08e89bf47131d3f84040b566276522940b2a164aab2062b4c6fca18d0b737406814fc56524a3 +DIST haveged-1.9.1.tar.gz 474845 SHA256 9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715 SHA512 267d62cfeb886ea00fa412de1a91a34821460d0f4ad789dcfb3547018300e1cbf480917571b19652f2d449369293031d9534f9533bbf6a59560f4f10608c9cd2 WHIRLPOOL a930d0a007c91dbc3b7c83a1ccfb659f53aa3f151b8b3984dc7208697ddb1f73ce7012c7c968dd5295b2e90e62db03e1c582267c1b8b5230745735f462a1f757 diff --git a/sys-apps/haveged/files/haveged-conf.d b/sys-apps/haveged/files/haveged-conf.d new file mode 100644 index 000000000000..b469b4d52fdb --- /dev/null +++ b/sys-apps/haveged/files/haveged-conf.d @@ -0,0 +1,10 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +WATERMARK=1024 + +# -r0 is added always +HAVEGED_OPTS="-w ${WATERMARK} -v 1" + +# vim:ft=gentoo-conf-d: diff --git a/sys-apps/haveged/files/haveged-init.d.2 b/sys-apps/haveged/files/haveged-init.d.2 new file mode 100644 index 000000000000..bed95f0cc81f --- /dev/null +++ b/sys-apps/haveged/files/haveged-init.d.2 @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +command="/usr/sbin/${SVCNAME}" +command_args="-r 0 ${HAVEGED_OPTS}" +pidfile=/var/run/${SVCNAME}.pid + +depend() { + need localmount + use logger + provide entropy +} + +# vim:ft=gentoo-init-d: diff --git a/sys-apps/haveged/files/haveged-init.d.3 b/sys-apps/haveged/files/haveged-init.d.3 new file mode 100644 index 000000000000..7fbe1b6382b6 --- /dev/null +++ b/sys-apps/haveged/files/haveged-init.d.3 @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +pidfile=/run/${SVCNAME}.pid + +command="/usr/sbin/${SVCNAME}" +command_args="-r 0 ${HAVEGED_OPTS} -p ${pidfile}" + +depend() { + need localmount + use logger + provide entropy +} + +# vim:ft=gentoo-init-d: diff --git a/sys-apps/haveged/files/haveged.conf b/sys-apps/haveged/files/haveged.conf new file mode 100644 index 000000000000..8386a8c3cd3d --- /dev/null +++ b/sys-apps/haveged/files/haveged.conf @@ -0,0 +1,7 @@ +# Copyright 2013-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +WATERMARK=1024 + +# vim:ft=haveged.conf: diff --git a/sys-apps/haveged/files/service.gentoo b/sys-apps/haveged/files/service.gentoo new file mode 100644 index 000000000000..f896ed2a9b7a --- /dev/null +++ b/sys-apps/haveged/files/service.gentoo @@ -0,0 +1,12 @@ +[Unit] +Description=Entropy Daemon based on the HAVEGE algorithm +Documentation=man:haveged(8) http://www.issihosts.com/haveged/ + +[Service] +Type=forking +PIDFile=/run/haveged.pid +EnvironmentFile=/etc/haveged.conf +ExecStart=/usr/sbin/haveged -w ${WATERMARK} -v 1 -p /run/haveged.pid -r 0 + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/haveged/haveged-1.5.ebuild b/sys-apps/haveged/haveged-1.5.ebuild new file mode 100644 index 000000000000..b28b5484f045 --- /dev/null +++ b/sys-apps/haveged/haveged-1.5.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +DESCRIPTION="A simple entropy daemon using the HAVEGE algorithm" +HOMEPAGE="http://www.issihosts.com/haveged/" +SRC_URI="http://www.issihosts.com/haveged/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="sys-devel/gcc" +RDEPEND="sys-apps/openrc" + +src_configure() { + econf --bindir=/usr/sbin --enable-nistest +} + +src_test() { + emake check +} + +src_install() { + default + # This is a RedHat init script + rm -rf "${D}"/etc/init.d/haveged + # Install gentoo ones instead + newinitd "${FILESDIR}"/haveged-init.d.2 haveged + newconfd "${FILESDIR}"/haveged-conf.d haveged +} diff --git a/sys-apps/haveged/haveged-1.7a-r1.ebuild b/sys-apps/haveged/haveged-1.7a-r1.ebuild new file mode 100644 index 000000000000..8e112f310357 --- /dev/null +++ b/sys-apps/haveged/haveged-1.7a-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils systemd + +DESCRIPTION="A simple entropy daemon using the HAVEGE algorithm" +HOMEPAGE="http://www.issihosts.com/haveged/" +SRC_URI="http://www.issihosts.com/haveged/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="! + + + sysadmin + + blueness@gentoo.org + Anthony G. Basile + + diff --git a/sys-apps/hbaapi/Manifest b/sys-apps/hbaapi/Manifest new file mode 100644 index 000000000000..f609b7b7c345 --- /dev/null +++ b/sys-apps/hbaapi/Manifest @@ -0,0 +1,2 @@ +DIST hbaapi-2.2.Makefile.gz 1356 SHA256 62a4339c732437895932873810d2b4783b9f170b5af5be402f244b0908cefeec SHA512 1d02546c0dc9143baf1538f3b57e23da4a6b9e685e125c279afac252ae6b4dcd4c8890ed888f8177b5e86c3f76dfabcc9a8d489102c6c68a5d80bf5399118545 WHIRLPOOL 1871c0b71739e2ead12d8e3bbbe2b9630c99703b4b6798aa0b1927fa78133d984aa0d349025207108fd571d0d445fedad9717d4d6c7786989bc36cf0ece00021 +DIST hbaapi_src_2.2.tgz 30232 SHA256 c1b64243666e01c82c3f58e2b032fc76cbe6ced92d894bee2ea83ab99fc90c43 SHA512 83d8d3df0208f632016acac65bc03b9610eb47d98e99565e2bdbe543382b141c0b6d148272dffc421a36f16ee511027899ee2b70a04435a6ef221e0bc559e511 WHIRLPOOL cc8089f9ff9c29f594d5bf579e66400692b0f1455547df8cb1918fd83cef0c818d382978553c210cb5762f2c97010818984eb80f2f54a9719ae456e3fd5ab8d3 diff --git a/sys-apps/hbaapi/files/hba.conf b/sys-apps/hbaapi/files/hba.conf new file mode 100644 index 000000000000..347c24b80e36 --- /dev/null +++ b/sys-apps/hbaapi/files/hba.conf @@ -0,0 +1,43 @@ +# +# This file contains names and references to HBA libraries +# +# Format: +# +# +# +# The library name should be prepended with the domain of +# the manufacturer or driver author. +# +# 32bit/64bit implementation note: +# If a 32bit implementation tries to load a 64 bit library, +# the load will fail with the result that the 64 bit vendor +# library is ignored. +# Likewise, if a 64bit implementation tries to load a 32 bit library, +# the load will fail with the result that the 32 bit vendor +# library is ignored. + +#org.snia.sample32 /usr/lib/libsample.so +#com.qlogic.qla32 /usr/lib/libhbaapiqla.so +#com.emulex.lightpulse32 /usr/lib/libhbaapiemu.so +#com.emulex.lightpulse64 /usr/lib/sparcv9/libhbaapiemu.so +#JniHbaLib /opt/JNIsnia/Solaris/Jni/32bit/JniHbaLib.so +#JniHbaLib /opt/JNIsnia/Solaris/Jni/64bit/JniHbaLib.so + +#INSERT_LIB_MARKER - Do not edit this line - Gentoo will insert items after this + + +# Set a debug level (depends on compilation switches) +# +# Format: +# +# "debuglevel" +# +# 0 is default, 1 show vendor library opens, +# 2 shows function calls, 3 shows callback events +# +# Uncomment the next line to specify a level +#debuglevel 3 + + + + diff --git a/sys-apps/hbaapi/files/hbaapi-2.2-qa.patch b/sys-apps/hbaapi/files/hbaapi-2.2-qa.patch new file mode 100644 index 000000000000..240cc1d2d473 --- /dev/null +++ b/sys-apps/hbaapi/files/hbaapi-2.2-qa.patch @@ -0,0 +1,37 @@ +--- hbaapi_src_2.2.orig/HBAAPILIB.c ++++ hbaapi_src_2.2/HBAAPILIB.c +@@ -30,7 +30,6 @@ + + #ifdef WIN32 + #include +-#include + /* + * Next define forces entry points in the dll to be exported + * See hbaapi.h to see what it does. +@@ -40,6 +39,7 @@ + #include + #include + #endif ++#include + #include + #include + #include "hbaapi.h" +@@ -395,7 +395,7 @@ + GRAB_MUTEX(&_hbaapi_APSE_mutex); + GRAB_MUTEX(&_hbaapi_TE_mutex); + GRAB_MUTEX(&_hbaapi_LE_mutex); +- for(listp = cb_lists_array, found = 0; found == 0, *listp != NULL; listp++) { ++ for(listp = cb_lists_array, found = 0; found == 0 && *listp != NULL; listp++) { + lastp = *listp; + for(cbp=**listp; cbp != NULL; cbp = cbp->next) { + if(cbhandle != (HBA_CALLBACKHANDLE)cbp) { +--- hbaapi_src_2.2.orig/hbaapitest.c ++++ hbaapi_src_2.2/hbaapitest.c +@@ -28,6 +28,7 @@ + + + #include ++#include + #ifndef WIN32 + #include /* Dynamic library support for Solaris */ + #include diff --git a/sys-apps/hbaapi/hbaapi-2.2.ebuild b/sys-apps/hbaapi/hbaapi-2.2.ebuild new file mode 100644 index 000000000000..faad2eb0c5bf --- /dev/null +++ b/sys-apps/hbaapi/hbaapi-2.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils toolchain-funcs + +MY_PN="${PN}_src" +MY_P="${MY_PN}_${PV}" +DESCRIPTION="The Host Bus Adapter API for managing Fibre Channel Host Bus Adapters" +HOMEPAGE="http://hbaapi.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz + mirror://gentoo/${P}.Makefile.gz" + +LICENSE="SNIA" +SLOT="0" +KEYWORDS="~ppc ~x86 ~amd64" +IUSE="" + +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + mv "${WORKDIR}"/${P}.Makefile "${S}"/Makefile + + sed -i -e "s/-g -c/${CFLAGS} -c/" \ + -e "s/-shared/\0 ${LDFLAGS}/" \ + Makefile || die + + epatch "${FILESDIR}"/${P}-qa.patch +} + +src_compile() { + # not parallel safe! + emake -j1 CC="$(tc-getCC)" all +} + +src_install() { + into /usr + dolib.so libHBAAPI.so + dosbin hbaapitest + insinto /etc + doins "${FILESDIR}"/hba.conf + dodoc readme.txt +} diff --git a/sys-apps/hbaapi/metadata.xml b/sys-apps/hbaapi/metadata.xml new file mode 100644 index 000000000000..290c474f4b48 --- /dev/null +++ b/sys-apps/hbaapi/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + hbaapi + + diff --git a/sys-apps/hdparm/Manifest b/sys-apps/hdparm/Manifest new file mode 100644 index 000000000000..553b42276f2f --- /dev/null +++ b/sys-apps/hdparm/Manifest @@ -0,0 +1,4 @@ +DIST hdparm-9.39.tar.gz 126989 SHA256 72d550af4526aa96f0841c79321a0ee39d636cbaf1f294e52193e90c054b3cea SHA512 7332fb1c03faa9b916864640959d31a355d4c8daebdb97dc941375a2fb2499827546fd1f1cc1435b403da399e5f5a70a30e9384b4499bec8f45c9408ad074b3c WHIRLPOOL cb3ccbab588cf349a39f2df5844444bc0db51f8b3c75fa9068507382b46a92cc32dc3132e325820ea158182de5b65f46de2913bd58fd737a3242b33729d9c7df +DIST hdparm-9.45.tar.gz 129410 SHA256 23b01caa56a995cf0897877b6aff98ea622a5df255bc2894b1a7693387f38669 SHA512 2692382f16fe9a87b7c9673bea44b8a9512b2449aaf18090f09c9e761fadc153f71d9779d063218f6951797649c0758f97242b7327da6653ea53991bf3da9eb8 WHIRLPOOL 6c424e265b7845afeff26f87654fbefe7d563404f2dee59f976594a87b375124262864305a14655bf5379e77e21bea0d8fb179e099374d7e8f952199f569ee58 +DIST hdparm-9.47.tar.gz 130180 SHA256 4995545e2d4e5a1e6886e5032f353ed9472c17a56a88ee4b1334b142d5b1b757 SHA512 1a5164ef13b276ea0be25ac96710ec6292d73649eb20b2350ae4f3ea77e4816515cdca75316a4bcb8624a0fff725560c4a64fbde63d48b68c44bd02cb76c6a5e WHIRLPOOL 97279536cd14543380d287f5b9cd76934c11358ccdbfce1610ec0c85a522b49913a81926a9b042de776881c3160f4dec81988ca91cce7811f8a216e3736e47e7 +DIST hdparm-9.48.tar.gz 130277 SHA256 ce97b4a71cb04146f54cf6f69787e7f97ddfda9836dc803b459d3b3df3a4fbee SHA512 5b8908a762d892c403406da4798202bed95f035396e3c49f04da910fa53a6b442a7d7c9cb1e5d786d7c8c5a1b681c8d1db10f1bd8dad09600a6f3811fbf8afb7 WHIRLPOOL 4f17e6622a9c6516834b0487c0d73ba7aaaffcd5381cbcf03c01fa936924975c3fb7190052c4d1bba7a0b53a53fc9b910fe4c71440f4a556d533d43ecd474516 diff --git a/sys-apps/hdparm/files/hdparm-conf.d.3 b/sys-apps/hdparm/files/hdparm-conf.d.3 new file mode 100644 index 000000000000..a1ae626b3b05 --- /dev/null +++ b/sys-apps/hdparm/files/hdparm-conf.d.3 @@ -0,0 +1,26 @@ +# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm + +# +# Note that options such as -y which force *immediate* power saving options +# should generally not be placed here. The hdparm init.d script may run at +# anytime with respect to other init.d scripts that do system wide drive +# scans (like the hald script), so they will merely get spun right back up. +# If you wish to use these options, please use the local.start init.d script +# instead so that you're guaranteed that it will run last. +# + +# You can either set hdparm arguments for each drive using hdX_args, +# discX_args, cdromX_args and genericX_args, e.g. +# +# hda_args="-d1 -X66" +# disc1_args="-d1" +# cdrom0_args="-d1" + +# or you can set options for all PATA drives +pata_all_args="-d1" + +# or you can set options for all SATA drives +sata_all_args="" + +# or, you can set hdparm options for all drives +all_args="" diff --git a/sys-apps/hdparm/files/hdparm-init-8 b/sys-apps/hdparm/files/hdparm-init-8 new file mode 100644 index 000000000000..9bf23850a80d --- /dev/null +++ b/sys-apps/hdparm/files/hdparm-init-8 @@ -0,0 +1,61 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + before bootmisc +} + +do_hdparm() { + local e= + eval e=\$${extra_args} + [ -z "${args}${all_args}${e}" ] && return 0 + + if [ -n "${args:=${all_args} ${e}}" ] ; then + local orgdevice=$(readlink -f "${device}") + if [ -b "${orgdevice}" ] ; then + ebegin "Running hdparm on ${device}" + hdparm ${args} "${device}" > /dev/null + eend $? + fi + fi +} + +scan_nondevfs() { + # non-devfs compatible system + local device + + for device in /dev/hd* /dev/sd* /dev/cdrom* ; do + [ -e "${device}" ] || continue + case "${device}" in + *[0-9]) continue ;; + /dev/hd*) extra_args="pata_all_args" ;; + /dev/sd*) extra_args="sata_all_args" ;; + *) extra_args="_no_xtra_args" ;; + esac + + # check that the block device really exists by + # opening it for reading + local errmsg= status= nomed=1 + errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}") + status=$? + case ${errmsg} in + *": No medium found") nomed=0;; + esac + if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then + local conf_var="${device##*/}_args" + eval args=\$${conf_var} + do_hdparm + fi + done +} + +start() { + if get_bootparam "nohdparm" ; then + ewarn "Skipping hdparm init as requested in kernel cmdline" + return 0 + fi + + scan_nondevfs +} diff --git a/sys-apps/hdparm/hdparm-9.39.ebuild b/sys-apps/hdparm/hdparm-9.39.ebuild new file mode 100644 index 000000000000..a76d3f57e6c6 --- /dev/null +++ b/sys-apps/hdparm/hdparm-9.39.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="Utility to change hard drive performance parameters" +HOMEPAGE="http://sourceforge.net/projects/hdparm/" +SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" + +LICENSE="BSD GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +src_prepare() { + sed -i \ + -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ + -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ + Makefile || die "sed" +} + +src_compile() { + emake STRIP=: CC="$(tc-getCC)" +} + +src_install() { + into / + dosbin hdparm contrib/idectl + + newinitd "${FILESDIR}"/hdparm-init-8 hdparm + newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm + + doman hdparm.8 + dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig + docinto wiper + dodoc wiper/{README.txt,wiper.sh} +} diff --git a/sys-apps/hdparm/hdparm-9.45.ebuild b/sys-apps/hdparm/hdparm-9.45.ebuild new file mode 100644 index 000000000000..58ec50f1ed7f --- /dev/null +++ b/sys-apps/hdparm/hdparm-9.45.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Utility to change hard drive performance parameters" +HOMEPAGE="http://sourceforge.net/projects/hdparm/" +SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" + +LICENSE="BSD GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="static" + +src_prepare() { + use static && append-ldflags -static + sed -i \ + -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ + -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ + Makefile || die "sed" +} + +src_compile() { + emake STRIP=: CC="$(tc-getCC)" +} + +src_install() { + into / + dosbin hdparm contrib/idectl + + newinitd "${FILESDIR}"/hdparm-init-8 hdparm + newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm + + doman hdparm.8 + dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig + docinto wiper + dodoc wiper/{README.txt,wiper.sh} +} diff --git a/sys-apps/hdparm/hdparm-9.47.ebuild b/sys-apps/hdparm/hdparm-9.47.ebuild new file mode 100644 index 000000000000..56bf483cb47e --- /dev/null +++ b/sys-apps/hdparm/hdparm-9.47.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Utility to change hard drive performance parameters" +HOMEPAGE="http://sourceforge.net/projects/hdparm/" +SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" + +LICENSE="BSD GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="static" + +src_prepare() { + use static && append-ldflags -static + sed -i \ + -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ + -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ + Makefile || die "sed" +} + +src_compile() { + emake STRIP=: CC="$(tc-getCC)" +} + +src_install() { + into / + dosbin hdparm contrib/idectl + + newinitd "${FILESDIR}"/hdparm-init-8 hdparm + newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm + + doman hdparm.8 + dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig + docinto wiper + dodoc wiper/{README.txt,wiper.sh} +} diff --git a/sys-apps/hdparm/hdparm-9.48.ebuild b/sys-apps/hdparm/hdparm-9.48.ebuild new file mode 100644 index 000000000000..56bf483cb47e --- /dev/null +++ b/sys-apps/hdparm/hdparm-9.48.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Utility to change hard drive performance parameters" +HOMEPAGE="http://sourceforge.net/projects/hdparm/" +SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" + +LICENSE="BSD GPL-2" # GPL-2 only +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="static" + +src_prepare() { + use static && append-ldflags -static + sed -i \ + -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ + -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ + Makefile || die "sed" +} + +src_compile() { + emake STRIP=: CC="$(tc-getCC)" +} + +src_install() { + into / + dosbin hdparm contrib/idectl + + newinitd "${FILESDIR}"/hdparm-init-8 hdparm + newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm + + doman hdparm.8 + dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig + docinto wiper + dodoc wiper/{README.txt,wiper.sh} +} diff --git a/sys-apps/hdparm/metadata.xml b/sys-apps/hdparm/metadata.xml new file mode 100644 index 000000000000..5124b52e66e1 --- /dev/null +++ b/sys-apps/hdparm/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + hdparm + + diff --git a/sys-apps/heirloom-tools/Manifest b/sys-apps/heirloom-tools/Manifest new file mode 100644 index 000000000000..1b23e0ac46fd --- /dev/null +++ b/sys-apps/heirloom-tools/Manifest @@ -0,0 +1 @@ +DIST heirloom-070715.tar.bz2 1000080 SHA256 eb33f70bcc019b1d0e0a41f1d7552d45c57a16272e4e1c48634ec3e44496a30f SHA512 0b30b0f4c4c92a10ee2da263ea44666f445d96bac86ca4afb7bbb50d8278986e4145a7bcdf3ed9f75611bb956e93e16fc0e19874498ce3ae1a00e6fbb4f910c9 WHIRLPOOL be19c6833970b343f952f28821dea4f3571f6f348841a23b793ea587be65930a7e5fd41fe0ba2b617be343ea520d626e61cb98b7c42e0fe0e78b423c0be3ab83 diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715.ebuild new file mode 100644 index 000000000000..aded44391e41 --- /dev/null +++ b/sys-apps/heirloom-tools/heirloom-tools-070715.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit flag-o-matic toolchain-funcs + +# slightly broken +RESTRICT="test" + +DESCRIPTION="Heirloom toolchest - original Unix tools" +HOMEPAGE="http://heirloom.sourceforge.net/tools.html" +SRC_URI="http://downloads.sourceforge.net/project/heirloom/heirloom/${PV}/heirloom-${PV}.tar.bz2" + +LICENSE="CDDL GPL-2 LGPL-2.1 9base ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/ed + sys-libs/zlib[static-libs]" +RDEPEND="" + +S="${WORKDIR}/heirloom-${PV}" + +src_compile() { + append-cppflags -D_GNU_SOURCE + emake -j1 ||die +} + +src_install() { + # we don't want to strip here, so use "true" as noop + emake STRIP="true" ROOT="${D}" -j1 install || die +} + +pkg_postinst() { + elog "You may want to add /usr/5bin or /usr/ucb to \$PATH" + elog "to enable using the apps of heirloom toolchest by default." + elog "Man pages are installed in /usr/share/man/5man/" + elog "You may need to set \$MANPATH to access them." +} diff --git a/sys-apps/heirloom-tools/metadata.xml b/sys-apps/heirloom-tools/metadata.xml new file mode 100644 index 000000000000..24cbb90cf0c4 --- /dev/null +++ b/sys-apps/heirloom-tools/metadata.xml @@ -0,0 +1,8 @@ + + + + + patrick@gentoo.org + Patrick Lauer + + diff --git a/sys-apps/help2man/Manifest b/sys-apps/help2man/Manifest new file mode 100644 index 000000000000..8b80692a70d9 --- /dev/null +++ b/sys-apps/help2man/Manifest @@ -0,0 +1,3 @@ +DIST help2man-1.45.1.tar.xz 124236 SHA256 c70fc791e6d13240327955de355244371b00bb1c9e247d5693ed601b716467c2 SHA512 728f8d464369752ac680cafc151f84bc9edddae1fb57621d5179346dd50f735b8ced0b7f46456cb6201e43cfdeb33b3cc155513aa76152889501952277774c08 WHIRLPOOL 1ded36ab4eb934462bba4e1b3d3f6168411931465c8cc60ca0ca86afe505e3fdab6607cefdaed6f38b004d9ce6f91772cfe036c248d2c73fae452f73387a6455 +DIST help2man-1.46.6.tar.xz 171044 SHA256 615ff5ac38369ddb3707c5fd71672ab122639fd9cf6870de172e0127ed632caf SHA512 55bea01b80baf318e4350ee505bf67da9a7e76b7a5cbd861d0fd6e3afe47b82d1de8f1079d0df2f4ea8ec176d6ca95d5c847d8b1c118cf96ab59b06567c1204c WHIRLPOOL 91d4702d69457090ca58074c05763a085e5bd9da162253a14e86c618a619482e44d7d974c7b0fd0139927d5a67b48bc7160f50990bb622984b122d1bb6c7052c +DIST help2man-1.47.1.tar.xz 179164 SHA256 c59b26f60cb06e45b00e729dea721e7a17220e2c17d800eb428271a750382b06 SHA512 3ac99d2d2384aea9d396c7fb123f17b99c19db8f18085be3516cef56f2ecf06f16e6aa924b41b53f57eca8722dee029939677401dd69358cddc39fc59e0bcf12 WHIRLPOOL 75a21cfc55e2652a02f12075a3609dcb4c9f42fdea02fdbda0757cf2f107602e609f4ed9641351663fe177936353db0cb26b763bae92a83bbd2f6ffe0bf7e941 diff --git a/sys-apps/help2man/files/help2man-1.36.4-respect-LDFLAGS.patch b/sys-apps/help2man/files/help2man-1.36.4-respect-LDFLAGS.patch new file mode 100644 index 000000000000..e6d1f6f0811e --- /dev/null +++ b/sys-apps/help2man/files/help2man-1.36.4-respect-LDFLAGS.patch @@ -0,0 +1,11 @@ +--- Makefile.in ++++ Makefile.in +@@ -102,7 +102,7 @@ + + preload: $(preload).so + $(preload).so: $(srcdir)/$(preload).c +- $(CC) $(CFLAGS) -o $@ -fPIC -shared $? $(LIBS) ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -fPIC -shared $? $(LIBS) + + man: $(target).1 + $(target).1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m diff --git a/sys-apps/help2man/files/help2man-1.38.4-linguas.patch b/sys-apps/help2man/files/help2man-1.38.4-linguas.patch new file mode 100644 index 000000000000..080166c5060c --- /dev/null +++ b/sys-apps/help2man/files/help2man-1.38.4-linguas.patch @@ -0,0 +1,53 @@ +respect user LINGUAS + ++++ b/Makefile.in +@@ -16,7 +16,12 @@ + export VPATH = .:$(srcdir) + + DESTDIR = +-LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) ++ALL_LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) ++ifeq ($(LINGUAS),) ++INSTALL_LINGUAS = $(ALL_LINGUAS) ++else ++INSTALL_LINGUAS = $(filter $(LINGUAS),$(ALL_LINGUAS)) ++endif + + CC = @CC@ + PERL = @PERL@ +@@ -56,7 +62,7 @@ + $(INSTALL_PROGRAM) $(preload).so $(DESTDIR)$(pkglibdir) + + install_l10n: install_dirs msg_l10n man_l10n +- for lang in $(LINGUAS); \ ++ for lang in $(INSTALL_LINGUAS); \ + do \ + $(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ + $(INSTALL_DATA) $(call vpath_file,po/$$lang.gmo) \ +@@ -124,7 +130,7 @@ + $(MAKE) $(target).h2m + ./$(target) --include=$(target).h2m --output=$@ ./$(target) + +-msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(LINGUAS))) ++msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(ALL_LINGUAS))) + po/%.gmo: $(srcdir)/po/%.po + test -d po || mkdir po + $(MSGFMT) -o $@ $? +@@ -134,7 +140,7 @@ + $(MKINSTALLDIRS) localetmp/$$lang/LC_MESSAGES && \ + $(INSTALL_DATA) po/$$lang.gmo localetmp/$$lang/LC_MESSAGES/$(target).mo + +-man_l10n: $(addprefix $(target).,$(addsuffix .1,$(LINGUAS))) ++man_l10n: $(addprefix $(target).,$(addsuffix .1,$(ALL_LINGUAS))) + $(target).%.1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m.PL \ + $(srcdir)/po/%.po + lang=$(patsubst $(target).%.1,%,$@); \ +@@ -164,7 +170,7 @@ + ./config.status + + update-po: $(srcdir)/po/$(target).pot +- for lang in $(LINGUAS); \ ++ for lang in $(ALL_LINGUAS); \ + do \ + echo -n "Updating $$lang "; \ + msgmerge -U $(srcdir)/po/$$lang.po $(srcdir)/po/$(target).pot; \ diff --git a/sys-apps/help2man/files/help2man-1.46.1-linguas.patch b/sys-apps/help2man/files/help2man-1.46.1-linguas.patch new file mode 100644 index 000000000000..b4631bfa7cd7 --- /dev/null +++ b/sys-apps/help2man/files/help2man-1.46.1-linguas.patch @@ -0,0 +1,67 @@ +respect user LINGUAS + +--- help2man-1.46.1/Makefile.in ++++ help2man-1.46.1/Makefile.in +@@ -27,8 +27,15 @@ + export VPATH = .:$(srcdir) + + DESTDIR = +-LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) +-LINGUAS_TEXI = $(basename $(notdir $(wildcard $(srcdir)/po-texi/*.po))) ++ALL_LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) ++ALL_LINGUAS_TEXI = $(basename $(notdir $(wildcard $(srcdir)/po-texi/*.po))) ++ifeq ($(LINGUAS),) ++INSTALL_LINGUAS = $(ALL_LINGUAS) ++INSTALL_LINGUAS_TEXI = $(ALL_LINGUAS_TEXI) ++else ++INSTALL_LINGUAS = $(filter $(LINGUAS),$(ALL_LINGUAS)) ++INSTALL_LINGUAS_TEXI = $(filter $(LINGUAS),$(ALL_LINGUAS_TEXI)) ++endif + + CC = @CC@ + PERL = @PERL@ +@@ -80,7 +87,7 @@ + + install_l10n: install_dirs msg_l10n man_l10n info_l10n + set -e; \ +- for lang in $(LINGUAS); \ ++ for lang in $(INSTALL_LINGUAS); \ + do \ + $(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ + $(INSTALL_DATA) $$($(FIND_VPATH) po/$$lang.gmo) \ +@@ -89,7 +96,7 @@ + $(INSTALL_DATA) $$($(FIND_VPATH) $(target).$$lang.1) \ + $(DESTDIR)$(mandir)/$$lang/man1/$(target).1; \ + done; \ +- for lang in $(LINGUAS_TEXI); \ ++ for lang in $(INSTALL_LINGUAS_TEXI); \ + do \ + $(INSTALL_DATA) $$($(FIND_VPATH) $(target)-$$lang.info) \ + $(DESTDIR)$(infodir)/$(target)-$$lang.info; \ +@@ -151,7 +158,7 @@ + $(MAKE) $(target) $(target).h2m + ./$(target) --include=$(target).h2m --output=$@ ./$(target) + +-msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(LINGUAS))) ++msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(ALL_LINGUAS))) + po/%.gmo: $(srcdir)/po/%.po + test -d po || mkdir po + $(MSGFMT) -o $@ $? +@@ -161,7 +168,7 @@ + $(MKINSTALLDIRS) localetmp/$$lang/LC_MESSAGES && \ + $(INSTALL_DATA) po/$$lang.gmo localetmp/$$lang/LC_MESSAGES/$(target).mo + +-man_l10n: $(addprefix $(target).,$(addsuffix .1,$(LINGUAS))) ++man_l10n: $(addprefix $(target).,$(addsuffix .1,$(ALL_LINGUAS))) + $(target).%.1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m.PL \ + $(srcdir)/po/%.po + lang=$(patsubst $(target).%.1,%,$@); \ +@@ -184,7 +191,7 @@ + $(target).info: $(srcdir)/$(target).texi + $(MAKEINFO) $? -o $@ + +-info_l10n: $(addprefix $(target)-,$(addsuffix .info,$(LINGUAS_TEXI))) ++info_l10n: $(addprefix $(target)-,$(addsuffix .info,$(ALL_LINGUAS_TEXI))) + $(target)-%.info: $(target)-%.texi + $(MAKEINFO) $? -o $@.tmp + $(FIXUP_TEXI_TRANS) -o $@ $@.tmp diff --git a/sys-apps/help2man/help2man-1.45.1.ebuild b/sys-apps/help2man/help2man-1.45.1.ebuild new file mode 100644 index 000000000000..bb1e88217e30 --- /dev/null +++ b/sys-apps/help2man/help2man-1.45.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="GNU utility to convert program --help output to a man page" +HOMEPAGE="http://www.gnu.org/software/help2man/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls" + +RDEPEND="dev-lang/perl + nls? ( dev-perl/Locale-gettext )" +DEPEND=${RDEPEND} + +DOCS="debian/changelog NEWS README THANKS" #385753 + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.36.4-respect-LDFLAGS.patch \ + "${FILESDIR}"/${PN}-1.38.4-linguas.patch +} + +src_configure() { + econf $(use_enable nls) +} diff --git a/sys-apps/help2man/help2man-1.46.6.ebuild b/sys-apps/help2man/help2man-1.46.6.ebuild new file mode 100644 index 000000000000..4b32f3abe7f8 --- /dev/null +++ b/sys-apps/help2man/help2man-1.46.6.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="GNU utility to convert program --help output to a man page" +HOMEPAGE="http://www.gnu.org/software/help2man/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls" + +RDEPEND="dev-lang/perl + nls? ( dev-perl/Locale-gettext )" +DEPEND=${RDEPEND} + +DOCS="debian/changelog NEWS README THANKS" #385753 + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.46.1-linguas.patch +} + +src_configure() { + # Disable gettext requirement as the release includes the gmo files #555018 + econf \ + ac_cv_path_MSGFMT=$(type -P false) \ + $(use_enable nls) +} diff --git a/sys-apps/help2man/help2man-1.47.1.ebuild b/sys-apps/help2man/help2man-1.47.1.ebuild new file mode 100644 index 000000000000..c2a92484ee35 --- /dev/null +++ b/sys-apps/help2man/help2man-1.47.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="GNU utility to convert program --help output to a man page" +HOMEPAGE="http://www.gnu.org/software/help2man/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls" + +RDEPEND="dev-lang/perl + nls? ( dev-perl/Locale-gettext )" +DEPEND=${RDEPEND} + +DOCS="debian/changelog NEWS README THANKS" #385753 + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.46.1-linguas.patch +} + +src_configure() { + # Disable gettext requirement as the release includes the gmo files #555018 + econf \ + ac_cv_path_MSGFMT=$(type -P false) \ + $(use_enable nls) +} diff --git a/sys-apps/help2man/metadata.xml b/sys-apps/help2man/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/help2man/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/hexdump-esr/Manifest b/sys-apps/hexdump-esr/Manifest new file mode 100644 index 000000000000..68bc16389595 --- /dev/null +++ b/sys-apps/hexdump-esr/Manifest @@ -0,0 +1 @@ +DIST hexdump-1.8.tar.gz 7463 SHA256 ab692ec15b950c9636719f0780abd73988847c4ffbbbc89ab3512dd428737c3d SHA512 a0f0b9f0386b895b0dd07223e93ca72a7d87f4b0ad663d340cea8266ed7e801178b120c6a78b797a9e12412e7b9c76b45b8e395d1892c7ba3956a90dee45db3d WHIRLPOOL 97157396756aef5ff48294dec806d079f8103d92e9281a9fd63dc548467709c5edebe8b1d9684d0c88300d9d3eebba1c47cb47eafdd91dd47a4ceb275f9173eb diff --git a/sys-apps/hexdump-esr/hexdump-esr-1.8.ebuild b/sys-apps/hexdump-esr/hexdump-esr-1.8.ebuild new file mode 100644 index 000000000000..b41592eaf74b --- /dev/null +++ b/sys-apps/hexdump-esr/hexdump-esr-1.8.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +MY_P="${P/-esr/}" + +DESCRIPTION="Eric Raymond's hex dumper" +HOMEPAGE="http://www.catb.org/~esr/hexdump/" +SRC_URI="http://www.catb.org/~esr/hexdump/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 hppa ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +# tests are broken in this release(missing files) +RESTRICT="test" + +src_prepare() { + sed -i Makefile \ + -e "s|-O |${CFLAGS} ${LDFLAGS} |g" \ + || die "sed on Makefile failed" + tc-export CC +} + +src_install() { + newbin hexdump ${PN} + newman hexdump.1 ${PN}.1 + dodoc NEWS README + dosym ${PN} /usr/bin/hex +} diff --git a/sys-apps/hexdump-esr/metadata.xml b/sys-apps/hexdump-esr/metadata.xml new file mode 100644 index 000000000000..91f4e72fb544 --- /dev/null +++ b/sys-apps/hexdump-esr/metadata.xml @@ -0,0 +1,7 @@ + + + + + maintainer-needed@gentoo.org + + diff --git a/sys-apps/hotplug2stdout/Manifest b/sys-apps/hotplug2stdout/Manifest new file mode 100644 index 000000000000..24ee6768d4ce --- /dev/null +++ b/sys-apps/hotplug2stdout/Manifest @@ -0,0 +1 @@ +DIST hotplug2stdout-1.2.1.tar.gz 7578 SHA256 4d3e2fefe9ae519a1ade33afb293e63e7694f4cc1483729f5ef96315d8823c02 SHA512 51cdef016b8e57324b005fbe633643c36b2e557da369e48471b6969441610c4489c0a49be28080cca17c8d77124c6540877151acde415dab49971f87160df126 WHIRLPOOL fe0999f64c10e19cfc26b4c4cf533f261600110e8682cd360c273b4de30ae0e84d751b388067788fe488754c8d1a699eb42ea7938e378d8db0da4ba7d6d7a032 diff --git a/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild b/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild new file mode 100644 index 000000000000..4770bc360ec3 --- /dev/null +++ b/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="A tool for reading kernel uevent(s) to stdout" +HOMEPAGE="http://www.bellut.net/projects.html" +# wget --user puppy --password linux "http://bkhome.org/sources/alphabetical/h/${P}.tar.gz" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +src_prepare() { rm -f ${PN}; } +src_compile() { $(tc-getCC) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${PN}.c -o ${PN} || die; } +src_install() { dobin ${PN}; } diff --git a/sys-apps/hotplug2stdout/metadata.xml b/sys-apps/hotplug2stdout/metadata.xml new file mode 100644 index 000000000000..c2d865517c00 --- /dev/null +++ b/sys-apps/hotplug2stdout/metadata.xml @@ -0,0 +1,8 @@ + + + + + ssuominen@gentoo.org + Samuli Suominen + + diff --git a/sys-apps/hprofile/Manifest b/sys-apps/hprofile/Manifest new file mode 100644 index 000000000000..21db0076dd9b --- /dev/null +++ b/sys-apps/hprofile/Manifest @@ -0,0 +1,3 @@ +DIST hprofile-3.0.6.tar.gz 18236 SHA256 23aaa1d6d2cc5b6e8fb3000a19c7cdfeec71abc0d18ce81727a61cabd73d0532 SHA512 86568314a24397d2ec5898dd3061e91a5597eff49679f0533fdcb0d2c9b76cdb131b25fe45167370174d1514ba222a781c0f09f98a1cc5407898e36c30ff677f WHIRLPOOL 41afc8ee3a824ecc07f1f3305d462ac10cb57a89b5defbef3cd562fd5a90289850470b1adad22f9fb2efa03fe6fb45637d97e350d24ccf38a973503e53d55c68 +DIST hprofile-3.1.1.tar.gz 18489 SHA256 dd3a853ad7928673be689d2514a2e9da0981edc216ecf396f612fb0771dbbdad SHA512 b42bf79840270eccf164a0ba2d5def7d50846fa7043319b23be2be3fabece014a031cc4197c2688a6c4f7a542f0e0961ff538ea879eac81a7f03c024a4d023da WHIRLPOOL f4e397221f7736553ee6430cd6aa11936edc44d5605a028d8ab2cf5aa75fba28c5e80e3a9e5456e08f5c9b21ec04ef8d0cead397630eb77995aea012ef2b9015 +DIST hprofile-3.2.2.tar.gz 18983 SHA256 e1f18cfa09d62c429890f5ab9995f144b67304ab6b703bbe23bc00d4779698bb SHA512 169a6c68659ea0d84b89bf25c8421bdfe7d106c77ca7cf80bafe65a4b24a04267729ef617e795adee5bdbcbfb56102a41c2ee7c926027aef69abe4cdee499328 WHIRLPOOL dae307fb2c664a208bd4cd07c1a256a9e2fcef0609f2105085dd5760321c406e3816debdeb51b3b2a3f34f4c8d2d08a8afec9489f2c8d23c44b60e3f5986d32b diff --git a/sys-apps/hprofile/hprofile-3.0.6.ebuild b/sys-apps/hprofile/hprofile-3.0.6.ebuild new file mode 100644 index 000000000000..cbebb2e73b0c --- /dev/null +++ b/sys-apps/hprofile/hprofile-3.0.6.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Utility to manage hardware, network, power or other profiles (fork)" +HOMEPAGE="https://github.com/tokiclover/hprofile" +SRC_URI="https://github.com/tokiclover/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + sed -i '1s:.*:#!/sbin/runscript:' hprofile.initd || die + sed -i "/^prefix/s:=.*:=${EPREFIX}/usr:" Makefile || die +} diff --git a/sys-apps/hprofile/hprofile-3.1.1.ebuild b/sys-apps/hprofile/hprofile-3.1.1.ebuild new file mode 100644 index 000000000000..cbebb2e73b0c --- /dev/null +++ b/sys-apps/hprofile/hprofile-3.1.1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Utility to manage hardware, network, power or other profiles (fork)" +HOMEPAGE="https://github.com/tokiclover/hprofile" +SRC_URI="https://github.com/tokiclover/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + sed -i '1s:.*:#!/sbin/runscript:' hprofile.initd || die + sed -i "/^prefix/s:=.*:=${EPREFIX}/usr:" Makefile || die +} diff --git a/sys-apps/hprofile/hprofile-3.2.2.ebuild b/sys-apps/hprofile/hprofile-3.2.2.ebuild new file mode 100644 index 000000000000..cbebb2e73b0c --- /dev/null +++ b/sys-apps/hprofile/hprofile-3.2.2.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Utility to manage hardware, network, power or other profiles (fork)" +HOMEPAGE="https://github.com/tokiclover/hprofile" +SRC_URI="https://github.com/tokiclover/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + sed -i '1s:.*:#!/sbin/runscript:' hprofile.initd || die + sed -i "/^prefix/s:=.*:=${EPREFIX}/usr:" Makefile || die +} diff --git a/sys-apps/hprofile/metadata.xml b/sys-apps/hprofile/metadata.xml new file mode 100644 index 000000000000..09d45f09dc2f --- /dev/null +++ b/sys-apps/hprofile/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + tokiclover/hprofile + + diff --git a/sys-apps/hwdata-gentoo/Manifest b/sys-apps/hwdata-gentoo/Manifest new file mode 100644 index 000000000000..2688a68b424f --- /dev/null +++ b/sys-apps/hwdata-gentoo/Manifest @@ -0,0 +1 @@ +DIST hwdata-gentoo-0.4.tar.bz2 149060 SHA256 f3bf3853f33cc20be56770f742428fb29ca97769c5984ad80093d2020136918e SHA512 dd62c51986c83ff5a9338fa20d98827cd44d86e808c9a2a52ff327dcdd941d0faed0ea4f85058485e8fc2f78e0c2fa18d3030e27fded8ed1777832ee789c189a WHIRLPOOL a7b35bf6a5b354f2483d6494a5c3f7a19fa9d61cbb6ad91528a12c947ae5562267c3552632bdb86204f494b8ab56ed583fd532bc928300262ef82d523f0b05d9 diff --git a/sys-apps/hwdata-gentoo/files/0.4-openchrome.patch b/sys-apps/hwdata-gentoo/files/0.4-openchrome.patch new file mode 100644 index 000000000000..7b0c6e87c9d5 --- /dev/null +++ b/sys-apps/hwdata-gentoo/files/0.4-openchrome.patch @@ -0,0 +1,22 @@ +--- a/pcitable ++++ b/pcitable +@@ -3688,7 +3688,7 @@ + 0x1106 0x3336 "unknown" "VIA Technologies, Inc.|K8M890CE Host Bridge" + 0x1106 0x3337 "unknown" "VIA Technologies Inc.|VT8237A PCI to ISA Bridge" + 0x1106 0x3340 "unknown" "VIA Technologies, Inc.|PT900 Host Bridge" +-0x1106 0x3344 "unknown" "VIA Technologies, Inc.|UniChrome Pro IGP" ++0x1106 0x3344 "Card:S3 UniChrome" "VIA Technologies, Inc.|UniChrome Pro IGP" + 0x1106 0x3349 "ahci" "VIA Technologies Inc.|VT8251 AHCI/SATA 4-Port Controller" + 0x1106 0x3351 "unknown" "VIA Technologies, Inc.|VT3351 Host Bridge" + 0x1106 0x3364 "unknown" "VIA Technologies, Inc.|P4M900 Host Bridge" +--- a/Cards ++++ b/Cards +@@ -429,7 +429,7 @@ + DRIVER s3 + + NAME S3 UniChrome +-DRIVER via ++DRIVER openchrome + + NAME S3 ViRGE (generic) + DRIVER s3virge diff --git a/sys-apps/hwdata-gentoo/hwdata-gentoo-0.4.ebuild b/sys-apps/hwdata-gentoo/hwdata-gentoo-0.4.ebuild new file mode 100644 index 000000000000..cc99cc4d09ed --- /dev/null +++ b/sys-apps/hwdata-gentoo/hwdata-gentoo-0.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="Data for the hwsetup program" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + http://wolf31o2.org/sources/hwdata/${P}.tar.bz2" +HOMEPAGE="http://wolf31o2.org" + +IUSE="opengl binary-drivers" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" +SLOT="0" +LICENSE="GPL-2" + +DEPEND="!sys-apps/hwdata-redhat" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-openchrome.patch + + if use x86 || use amd64 + then + if use opengl && use binary-drivers + then + continue + else + sed -e 's/DRIVER fglrx/DRIVER radeon/' \ + -e 's/DRIVER nvidia/DRIVER nv/' \ + -i "${S}"/Cards || die + fi + fi +} + +src_install() { + dodoc ChangeLog check-cards + insinto /usr/share/hwdata + doins Cards MonitorsDB pcitable blacklist +} diff --git a/sys-apps/hwdata-gentoo/metadata.xml b/sys-apps/hwdata-gentoo/metadata.xml new file mode 100644 index 000000000000..013854059a6a --- /dev/null +++ b/sys-apps/hwdata-gentoo/metadata.xml @@ -0,0 +1,9 @@ + + + +livecd + + Adds support for ATI/NVIDIA binary + drivers + + diff --git a/sys-apps/hwdata-redhat/Manifest b/sys-apps/hwdata-redhat/Manifest new file mode 100644 index 000000000000..ea2ba5c3b767 --- /dev/null +++ b/sys-apps/hwdata-redhat/Manifest @@ -0,0 +1 @@ +DIST hwdata-0.217-1.fc9.src.rpm 735079 SHA256 f2b6f3223cb388b9ff261ca84ed93b9e5eba95be62b7377ff685708351d377ad diff --git a/sys-apps/hwdata-redhat/files/hwdata-redhat-0.217-python-3.patch b/sys-apps/hwdata-redhat/files/hwdata-redhat-0.217-python-3.patch new file mode 100644 index 000000000000..f16fddd992c4 --- /dev/null +++ b/sys-apps/hwdata-redhat/files/hwdata-redhat-0.217-python-3.patch @@ -0,0 +1,13 @@ +--- check-pci-ids.py ++++ check-pci-ids.py +@@ -5,8 +5,8 @@ + + # Check that the sorting order is preserved in pci.ids + +-vendor_id = None +-device_id = None ++vendor_id = -1 ++device_id = -1 + lineno = 1 + + file = open("pci.ids") diff --git a/sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild b/sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild new file mode 100644 index 000000000000..7c1d9740df22 --- /dev/null +++ b/sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic rpm + +# Tag for which Fedora Core version it's from +FCVER="9" +# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source +# tarball out of it +RPMREV="1" + +MY_P="${P/-redhat}" +DESCRIPTION="Hardware identification and configuration data" +HOMEPAGE="http://fedora.redhat.com/projects/config-tools/" +SRC_URI="mirror://fedora-dev/releases/9/Everything/source/SRPMS/${MY_P}-${RPMREV}.fc${FCVER}.src.rpm" +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~ppc ~ppc64 ~x86 ~amd64" +IUSE="test" +RDEPEND="virtual/modutils + !sys-apps/hwdata-gentoo" +DEPEND="${RDEPEND} + test? ( sys-apps/pciutils )" +S="${WORKDIR}/${MY_P}" + +src_unpack() { + rpm_src_unpack ${A} + + cd "${S}" + sed -i -e "s:\(/sbin\/lspci\):/usr\1:g" Makefile || die + epatch "${FILESDIR}/${P}-python-3.patch" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + # Don't let it overwrite a udev-installed file + rm -rf "${D}"/etc/ || die +} diff --git a/sys-apps/hwdata-redhat/metadata.xml b/sys-apps/hwdata-redhat/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/sys-apps/hwdata-redhat/metadata.xml @@ -0,0 +1,8 @@ + + + + + maintainer-needed@gentoo.org + Default assignee for orphaned packages + + diff --git a/sys-apps/hwids/Manifest b/sys-apps/hwids/Manifest new file mode 100644 index 000000000000..b267ad089830 --- /dev/null +++ b/sys-apps/hwids/Manifest @@ -0,0 +1,8 @@ +DIST hwids-20141010.tar.gz 1678967 SHA256 2e8d45ef56a086d2e432c05ae348584325f87353c154d3ede294bad5aeba0f27 SHA512 992314a03a745b5766ccbd86c169c67c03f05ffd36188b0a19e6e7c16be2897da820bca471408a2e3834021fab4a995a5316f45b251bf5cff21003f9ffe2e23f WHIRLPOOL f3af13cf659fc5195d3eb167221d9bf04f1431fd19d071d37f7a8c30a1e020589b4e337174f7c3b6985a4869d60618da88226b47f185679a7ffc42ef270a5820 +DIST hwids-20141110.tar.gz 1684662 SHA256 31145832799ff19bc654b2c227d732567d242f9f790ee14313ccec542d2f582f SHA512 c7fa1e38656ca02c5b316bad83590296dcc199985fc8a5a413b7ac46cef325bbb0a3aea60e2f1f250891b43cf38b0a8d477ef546e7cb13e06562fd1f31b23d4a WHIRLPOOL 2136bd4fb437da9d78b0610a1143e4becddc1949cbdad0b09b62314eb028c42a5af83c3b7b13122ce30bea34e9703be3ca819d315bbe75019bf8d7990501f49c +DIST hwids-20141214.tar.gz 1688002 SHA256 1ff3f5da7745742332beb5636d8eb9083d916365bb308dc0b53f08607f63be6d SHA512 870fe4a553671d837c3f92641f96a0132398976280831a1ff8229b6836c50f6129108baa8fcc965fadd70ad86a77c7577e682e1c29078498b1d1a22099d0e4ef WHIRLPOOL fb94aee0c8c924216bcdbcc171121668b44911ff5b2a2d396b6c5e1172fa549652c56360a9689780a94b9a977f6a9b7ca657b25e9d1502f516bf0ca945613a0d +DIST hwids-20150107.tar.gz 1709214 SHA256 9e38bb8b7b95be6040c29cb6ba1c109ca58f1feea352806b7387b642562751d9 SHA512 a20117fc41f49e62abd2a5b9f2e66ff1a81353fea8215c7aabc9a5f0918f56afde988e0eb9def87787ceb9e8d680b8f7cd7b225d2fa256294475f20a03ff3f12 WHIRLPOOL d66d7dd7e13304c867c2722947ae7f2bb472506849ed1887f2f1cce6c21d86153fda84aa94dbe0737844aa259ece0c6527abd02066fe62ec156987e5dc243a39 +DIST hwids-20150129.tar.gz 1707029 SHA256 33a7f4dbf14704076b0fe1d0052e86bb618e386a1ff18107097311df44f979d7 SHA512 f514a25aecbae06507580033b6c6a19f1f4e476ae63736080030682d59c31bba440fb9c0c7cca623fe1f5813f211826a2ba958e73f1e348df3fd074123ab4c52 WHIRLPOOL aab753061d6c12306380b03c3567254028b6e079b5c59d38a05d26b27d9d1c82adffc5f28ce01e623a338b7ff3f962a1220277d140caea2e511672d1173d17ae +DIST hwids-20150417.tar.gz 1724883 SHA256 ef4d3e3f722ef7a2294af3e1c048c735cb0aa604259d54ed704dd7b8275c2569 SHA512 9acbf4ef7907e380bace30c38f1c2cf58e76cd68f258d59eb6d3b0e13287537205310f34783acd276cd7e7964b7f67eb7de8f636abf3419bf7bc9accb07e1761 WHIRLPOOL 33ca057faf1445409c563463271d67715077b27a7b402f2c91b82d893ff7b950e0443fb86611e9ec1d4118767e99d18ce40d9bc73bc1f471af69f163297f5b97 +DIST hwids-20150421.tar.gz 1726968 SHA256 2c3ced90c069392f1f6ccdf7a8541ea2c3d871c575b8b6b02129e62bcec6f6a4 SHA512 3418d48b4f9b2dcb6e221a07ab74c81004866b40aa9d7b5ab0b73d2ed1febbd9e4d3d2d76e0a0e3c9d71c4dd79767c1cffa346d68c91e8fb19bcef3baccb101c WHIRLPOOL 5427dcd0725a5dfc16af441b52ad0bad1bf770a2287f814c6f032b5696062b76b934ca6cf968f45addd5b197c66011da6ddfd3a4b9539103672e1b66d68fb262 +DIST hwids-20150717.tar.gz 1745565 SHA256 5a4769cd0e57a96c2693e7ec3d48f53e493afae58376a1f7124a08844632d917 SHA512 431a3a024512719ed5d53f21291de28bb5f904987fbeb8a90583517e24abcf5e19d9312819f02bcffbb42c0b16e761e4517575a600d1d8102f8373d1a21806d0 WHIRLPOOL 2ef9b880801d1ca94311104193e96f64eef58b7db86ee486614e80e63a1e9c42d9f940aadebd19c708ad0caab9a0be43ffcd44d9288bbce41238a64815d82076 diff --git a/sys-apps/hwids/hwids-20141010.ebuild b/sys-apps/hwids/hwids-20141010.ebuild new file mode 100644 index 000000000000..c8c03e761ffc --- /dev/null +++ b/sys-apps/hwids/hwids-20141010.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit udev eutils + +DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" +HOMEPAGE="https://github.com/gentoo/hwids" +if [[ ${PV} == "99999999" ]]; then + EGIT_REPO_URI="${HOMEPAGE}.git" + inherit git-2 +else + SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="|| ( GPL-2 BSD ) public-domain" +SLOT="0" +IUSE="+net +pci +udev +usb" + +DEPEND="udev? ( + dev-lang/perl + >=virtual/udev-206 +)" +[[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )" +RDEPEND="! udev/61-oldkeyboard.hwdb || die +} + +_emake() { + emake \ + NET=$(usex net) \ + PCI=$(usex pci) \ + UDEV=$(usex udev) \ + USB=$(usex usb) \ + "$@" +} + +src_compile() { + _emake +} + +src_install() { + _emake install \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + MISCDIR="${EPREFIX}/usr/share/misc" \ + HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \ + DESTDIR="${D}" +} + +pkg_postinst() { + if use udev; then + udevadm hwdb --update --root="${ROOT%/}" + # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda + [ "${ROOT:-/}" = "/" ] && udevadm control --reload + fi +} diff --git a/sys-apps/hwids/hwids-20150421.ebuild b/sys-apps/hwids/hwids-20150421.ebuild new file mode 100644 index 000000000000..77be47870cd3 --- /dev/null +++ b/sys-apps/hwids/hwids-20150421.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit udev eutils + +DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" +HOMEPAGE="https://github.com/gentoo/hwids" +if [[ ${PV} == "99999999" ]]; then + EGIT_REPO_URI="${HOMEPAGE}.git" + inherit git-2 +else + SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="|| ( GPL-2 BSD ) public-domain" +SLOT="0" +IUSE="+net +pci +udev +usb" + +DEPEND="udev? ( + dev-lang/perl + >=virtual/udev-206 +)" +[[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )" +RDEPEND="! udev/61-oldkeyboard.hwdb || die +} + +_emake() { + emake \ + NET=$(usex net) \ + PCI=$(usex pci) \ + UDEV=$(usex udev) \ + USB=$(usex usb) \ + "$@" +} + +src_compile() { + _emake +} + +src_install() { + _emake install \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + MISCDIR="${EPREFIX}/usr/share/misc" \ + HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \ + DESTDIR="${D}" +} + +pkg_postinst() { + if use udev; then + udevadm hwdb --update --root="${ROOT%/}" + # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda + [ "${ROOT:-/}" = "/" ] && udevadm control --reload + fi +} diff --git a/sys-apps/hwids/hwids-20150717.ebuild b/sys-apps/hwids/hwids-20150717.ebuild new file mode 100644 index 000000000000..77be47870cd3 --- /dev/null +++ b/sys-apps/hwids/hwids-20150717.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit udev eutils + +DESCRIPTION="Hardware (PCI, USB, OUI, IAB) IDs databases" +HOMEPAGE="https://github.com/gentoo/hwids" +if [[ ${PV} == "99999999" ]]; then + EGIT_REPO_URI="${HOMEPAGE}.git" + inherit git-2 +else + SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux" +fi + +LICENSE="|| ( GPL-2 BSD ) public-domain" +SLOT="0" +IUSE="+net +pci +udev +usb" + +DEPEND="udev? ( + dev-lang/perl + >=virtual/udev-206 +)" +[[ ${PV} == "99999999" ]] && DEPEND+=" udev? ( net-misc/curl )" +RDEPEND="! udev/61-oldkeyboard.hwdb || die +} + +_emake() { + emake \ + NET=$(usex net) \ + PCI=$(usex pci) \ + UDEV=$(usex udev) \ + USB=$(usex usb) \ + "$@" +} + +src_compile() { + _emake +} + +src_install() { + _emake install \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + MISCDIR="${EPREFIX}/usr/share/misc" \ + HWDBDIR="${EPREFIX}$(get_udevdir)/hwdb.d" \ + DESTDIR="${D}" +} + +pkg_postinst() { + if use udev; then + udevadm hwdb --update --root="${ROOT%/}" + # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda + [ "${ROOT:-/}" = "/" ] && udevadm control --reload + fi +} diff --git a/sys-apps/hwids/metadata.xml b/sys-apps/hwids/metadata.xml new file mode 100644 index 000000000000..75953f37c7c7 --- /dev/null +++ b/sys-apps/hwids/metadata.xml @@ -0,0 +1,23 @@ + + + + base-system + + flameeyes@gentoo.org + + + gregkh@gentoo.org + + + floppym@gentoo.org + + + Install the oui.txt and iab.txt databases + Install the pci.ids database + Install the usb.ids database + Install hwdb.d rules for udev + + + gentoo/hwids + + diff --git a/sys-apps/hwinfo/Manifest b/sys-apps/hwinfo/Manifest new file mode 100644 index 000000000000..693c239102e3 --- /dev/null +++ b/sys-apps/hwinfo/Manifest @@ -0,0 +1,3 @@ +DIST hwinfo-19.1-1.2.src.rpm 740650 SHA256 77b67512f7a7a027200233b6c89be2b777f96b2a6d742b695cb062f9cf4ec258 SHA512 1e617cac0e2d1872f26ad15b0a4b34474d5e0cc4a9fa715de04b54b829d73b0f54fea99765bf795d759e01e3a84c868149e4e035bef59dcfcc628faa365fee31 WHIRLPOOL e676962b3a1939a575e74372da441b22c15d32745654ba0f8e2420f0687f3e48c355388a2922ddfb07e44396fc5e0100b655ada97eaaaeb9ea53f4d72db99f95 +DIST hwinfo-20.0-1.4.src.rpm 741036 SHA256 466423b00fda00bc5e927352fb8d2f52b4d4e4b298401cd44c48231951c2a26b SHA512 e44dcc0c826630d75b2604f99f6b0ae6c203a52266c2c7e220989424d7a4c99dc34f6157d6e4d385404c0eade3f943f77ddbf007d83b76f132eada6b4bf68cb3 WHIRLPOOL 5a8e56bbf6ab8aa585ff9774d2870f8fb917a3803614795d542bb76862dde72bdc54205b35f0b0a78ff004cd740e10a23916d412c553b95382b2bec9161c54d9 +DIST hwinfo-21.4-1.1.src.rpm 781525 SHA256 8109cf0cc8706b0361be6a9f18ee79fc6a16451c5a7982aed22ae811748d1728 SHA512 bccac7749751924e1e1a8005e6fd783da7114926b6d9b9a1247b3b26dd680848eb2b85b368c312d08b444c8d7b75036d249daf33afc5b7efbbcc09bfbad4b340 WHIRLPOOL e1ce3140a4729006dd7c6e0c7dd7db41596819bcc7a51b774a463dd100e05c9bc5dc0d031b88047bd1d7d93015ab25cc3f769983f8ff14427f96890614b7324a diff --git a/sys-apps/hwinfo/hwinfo-19.1.ebuild b/sys-apps/hwinfo/hwinfo-19.1.ebuild new file mode 100644 index 000000000000..512577e1ec6c --- /dev/null +++ b/sys-apps/hwinfo/hwinfo-19.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit multilib rpm toolchain-funcs + +DESCRIPTION="hardware detection tool used in SuSE Linux" +HOMEPAGE="http://www.opensuse.org/" +SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-1.2.src.rpm" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND="amd64? ( dev-libs/libx86emu ) + x86? ( dev-libs/libx86emu )" +DEPEND="${RDEPEND} + sys-devel/flex + >=sys-kernel/linux-headers-2.6.17" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_prepare() { + # Respect AR variable. + sed -i \ + -e 's:ar r:$(AR) r:' \ + src/{,isdn,ids,smp,hd}/Makefile || die + + # Avoid -I directories for dbus because HAL is obsolete. + sed -i -e '/CFLAGS/d' src/hd/Makefile || die + # Respect LDFLAGS. + sed -i -e 's:$(CC) -shared:& $(LDFLAGS):' src/Makefile || die + sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die + + # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS. + sed -i \ + -e 's:make:$(MAKE):' \ + -e 's:-pipe -g::' \ + -e 's:LDFLAGS.*=:LDFLAGS +=:' \ + Makefile{,.common} || die +} + +src_compile() { + tc-export AR + emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + + dodoc changelog README + doman doc/hwinfo.8 + insinto /usr/share/doc/${PF}/examples + doins doc/example*.c +} diff --git a/sys-apps/hwinfo/hwinfo-20.0.ebuild b/sys-apps/hwinfo/hwinfo-20.0.ebuild new file mode 100644 index 000000000000..b69431b2a6ff --- /dev/null +++ b/sys-apps/hwinfo/hwinfo-20.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit multilib rpm toolchain-funcs + +DESCRIPTION="hardware detection tool used in SuSE Linux" +HOMEPAGE="http://www.opensuse.org/" +SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-1.4.src.rpm" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="" + +RDEPEND="amd64? ( dev-libs/libx86emu ) + x86? ( dev-libs/libx86emu )" +DEPEND="${RDEPEND} + sys-devel/flex + >=sys-kernel/linux-headers-2.6.17" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_prepare() { + # Respect AR variable. + sed -i \ + -e 's:ar r:$(AR) r:' \ + src/{,isdn,ids,smp,hd}/Makefile || die + + # Avoid -I directories for dbus because HAL is obsolete. + sed -i -e '/CFLAGS/d' src/hd/Makefile || die + # Respect LDFLAGS. + sed -i -e 's:$(CC) -shared:& $(LDFLAGS):' src/Makefile || die + sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die + + # Use linux/pci.h directly. #506876 + sed -i \ + -e '/#include.*sys\/pci.h/s:sys/pci.h:linux/pci.h:' \ + src/hd/*.c || die + + # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS. + sed -i \ + -e 's:make:$(MAKE):' \ + -e 's:-pipe -g::' \ + -e 's:LDFLAGS.*=:LDFLAGS +=:' \ + Makefile{,.common} || die +} + +src_compile() { + tc-export AR + emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + + dodoc changelog README + doman doc/hwinfo.8 + insinto /usr/share/doc/${PF}/examples + doins doc/example*.c +} diff --git a/sys-apps/hwinfo/hwinfo-21.4.ebuild b/sys-apps/hwinfo/hwinfo-21.4.ebuild new file mode 100644 index 000000000000..bd2364da856b --- /dev/null +++ b/sys-apps/hwinfo/hwinfo-21.4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib rpm toolchain-funcs + +DESCRIPTION="hardware detection tool used in SuSE Linux" +HOMEPAGE="http://www.opensuse.org/" +SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-1.1.src.rpm" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="" + +RDEPEND=" + amd64? ( dev-libs/libx86emu ) + x86? ( dev-libs/libx86emu )" +DEPEND="${RDEPEND} + sys-devel/flex + >=sys-kernel/linux-headers-2.6.17" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_prepare() { + # Respect AR variable. + sed -i \ + -e 's:ar r:$(AR) r:' \ + src/{,isdn,ids,smp,hd}/Makefile || die + + # Avoid -I directories for dbus because HAL is obsolete. + sed -i -e '/CFLAGS/d' src/hd/Makefile || die + # Respect LDFLAGS. + sed -i -e 's:$(CC) -shared:& $(LDFLAGS):' src/Makefile || die + sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die + + # Use linux/pci.h directly. #506876 + sed -i \ + -e '/#include.*sys\/pci.h/s:sys/pci.h:linux/pci.h:' \ + src/hd/*.c || die + + # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS. + sed -i \ + -e 's:make:$(MAKE):' \ + -e 's:-pipe -g::' \ + -e 's:LDFLAGS.*=:LDFLAGS +=:' \ + Makefile{,.common} || die +} + +src_compile() { + tc-export AR + emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + + dodoc changelog README + doman doc/*.{1,8} + insinto /usr/share/doc/${PF}/examples + doins doc/example*.c +} diff --git a/sys-apps/hwinfo/metadata.xml b/sys-apps/hwinfo/metadata.xml new file mode 100644 index 000000000000..557ca512951a --- /dev/null +++ b/sys-apps/hwinfo/metadata.xml @@ -0,0 +1,8 @@ + + + + + robbat2@gentoo.org + Robin H. Johnson + + diff --git a/sys-apps/hwloc/Manifest b/sys-apps/hwloc/Manifest new file mode 100644 index 000000000000..a8d4c309c8e2 --- /dev/null +++ b/sys-apps/hwloc/Manifest @@ -0,0 +1,7 @@ +DIST hwloc-1.10.0.tar.bz2 3765051 SHA256 b765f72507cf1cc98b398e0ec85b8f30e640bf1cd0a886c286d0b70d648d7be3 SHA512 0f1c011dbafbd4a78566b2ebc26b1c91a0e091e041f6e7996cea6812aeefd7fe4e8e7cb688634157c721dd9deea48ca32de823f8a9e0a1c341853b925a9c89c0 WHIRLPOOL a3eb47450f9e3fc97cb484ad4cab93f4eab10c5039da113029a0e918f654a878f44a9460b4606616d43580ea56ba21fc54ab4fc671b290f480e2e19514e524d7 +DIST hwloc-1.10.1.tar.bz2 3771665 SHA256 35ce13a9a0737d2de1c6facb5c3c0438f7c83b45d6ce652e05ba000f6f2e514a SHA512 47cc1f084730021996ae0c18996e13dde5b991004fe9160bc1e118b6cb0288fe5d65d149450f05bd7b9e13bd6f16dfe82181d1e731dd1b0e46a43fd4435850cc WHIRLPOOL b7e089c1de3f967295768dc2dbc6acec80fa99f66d9340cedf3b02c1d2e869a339fa9fdd71a5f8ef77554ec8622a246abae6ca5f41354790bf09bf2d0d8236d7 +DIST hwloc-1.6.1.tar.bz2 3075453 SHA256 8bb0a13d70852442cfce8883a99113e9238e187a91b3160279e260a10048057b SHA512 9bf613c35e27d7e0e7e4aee39602e949dd035c84ceab37a716c48d9be25f319cd7888448c9771e8a8408dcf958370e9b54f7e1f764349fa5d39c2bd4358032ff WHIRLPOOL a319c94d306e18bd0f9a721eb637df667fc0831e2c84770255736205ba30abb9cc18e4b401cbbd3c419369b1c3aae638253bb826e973ff6c763a233c9c986742 +DIST hwloc-1.6.2.tar.bz2 3066020 SHA256 fd4d47738afc9c5f60d2c35f0963f82feb78bb57f2bc239e84e93ad376169df1 SHA512 3e1a0b28f6f867c82c8d61110afc07cb0019fb8d4284a171cef36346ea9746acab11250f7f382260f8f40d3c28c2517b24f2a222427cb2951149a58a30cb0990 WHIRLPOOL 7f2a9a58f4f7b1aae18f6d50338553eaa8c26e0cd54add29395e8366cfb076ec4e790b3411978c581da1b67342ad14443040e08a766e727a7cf9b27530e356f1 +DIST hwloc-1.7.2.tar.bz2 3165052 SHA256 a0b40c01eead1d4c254ab87c2ec75b8eeb9877331763fbd1e1b81990ad566848 SHA512 e6472fb0639a178683ea7bbef666255a73c1962c360d22490e4aee6642da1d30648d2f057e11b529d91bf76da05d47632331d84dd0a7771c5732cc7cc90e7d7c WHIRLPOOL 6f39a871777e28cfb1f87f6a5c9c7ef02a31bf4a8178f7eeb43ec9eeef42132c8d432d803e66198129017f68228e3aa738a774665d0e8400f5617af81cc61f7c +DIST hwloc-1.8.1.tar.bz2 3647451 SHA256 976d1edb3ad141e3510c959fb47f415acc95a90170b361b390768512f30ca10d SHA512 3ef7db6e41186b1a3dd2df717d599813401a31f696530ca4196689c85ff8a18ef6f5a11be7feb656e49e0047058beb759c995d9b8a422367d99c52ae5274ee77 WHIRLPOOL 471796a5c32b6582b6b89cff24889826e63a6ed5e75bb3084c749d73b649fa562aa8272889f2218af35cfc93012bd05504017ae7f25447270363c9c7b85638c8 +DIST hwloc-1.9.tar.bz2 3682256 SHA256 24a81ff1c3810f16633bf5ad3fb80cbbaf882e466a788af4301b2911698c4f7e SHA512 6697f02c954525ae6b24fb22e738b8b8383f33bbd941ab757829e7406a96f037edc2841fb50335ec26bc53573e00bf9295c2e8d574b7b3bb687c02189d87fd74 WHIRLPOOL 4eb9d0bfb5c615577f4b2debd49d5c042c4b844362aaac6d757b2ab10d845aeeb9c918e2153d32d51ecb88b9d1fc0818fe1a2a90eed3413d7de88c9ab568929e diff --git a/sys-apps/hwloc/files/hwloc-1.8.1-gl.patch b/sys-apps/hwloc/files/hwloc-1.8.1-gl.patch new file mode 100644 index 000000000000..47daa9593377 --- /dev/null +++ b/sys-apps/hwloc/files/hwloc-1.8.1-gl.patch @@ -0,0 +1,11 @@ +--- hwloc-1.8.1/config/hwloc.m4.orig 2014-01-30 17:46:58.000000000 +0400 ++++ hwloc-1.8.1/config/hwloc.m4 2014-02-27 13:46:28.587238873 +0400 +@@ -948,7 +948,7 @@ + hwloc_gl_happy=no]) + + AC_CHECK_HEADERS([NVCtrl/NVCtrl.h], [ +- AC_CHECK_LIB([XNVCtrl], [XNVCTRLQueryTargetAttribute], [:], [hwloc_gl_happy=no], [-lXext]) ++ AC_CHECK_LIB([XNVCtrl], [XNVCTRLQueryTargetAttribute], [:], [hwloc_gl_happy=no], [-lXext -lX11]) + ], [hwloc_gl_happy=no]) + + if test "x$hwloc_gl_happy" = "xyes"; then diff --git a/sys-apps/hwloc/files/hwloc-gather-topology-fix-lstopo-path-after-install.patch b/sys-apps/hwloc/files/hwloc-gather-topology-fix-lstopo-path-after-install.patch new file mode 100644 index 000000000000..f383b3ab3a7a --- /dev/null +++ b/sys-apps/hwloc/files/hwloc-gather-topology-fix-lstopo-path-after-install.patch @@ -0,0 +1,26 @@ +From 6d42748f8604f3c1d0ca6cf122e8776b3c153ac4 Mon Sep 17 00:00:00 2001 +From: Brice Goglin +Date: Thu, 12 Mar 2015 10:01:13 +0100 +Subject: [PATCH] hwloc-gather-topology: fix lstopo path after install + +Broken when utils moved to utils/ subdirectories. + +(cherry picked from commit 0a32f719c48fb7dabf4882f8f2477017c25b15a9) +--- + NEWS | 1 + + tests/linux/Makefile.am | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tests/linux/Makefile.am b/tests/linux/Makefile.am +index f0a2f8a..27c261a 100644 +--- a/tests/linux/Makefile.am ++++ b/tests/linux/Makefile.am +@@ -171,7 +171,7 @@ LOG_COMPILER = $(builddir)/test-topology.sh + bin_SCRIPTS = hwloc-gather-topology + + install-exec-hook: +- $(SED) -e 's/HWLOC_top_builddir\/utils/bindir/' -e '/HWLOC_top_builddir/d' $(DESTDIR)$(bindir)/hwloc-gather-topology > $(DESTDIR)$(bindir)/hwloc-gather-topology.tmp && mv -f $(DESTDIR)$(bindir)/hwloc-gather-topology.tmp $(DESTDIR)$(bindir)/hwloc-gather-topology ++ $(SED) -e 's/HWLOC_top_builddir\/utils\/lstopo/bindir/' -e '/HWLOC_top_builddir/d' $(DESTDIR)$(bindir)/hwloc-gather-topology > $(DESTDIR)$(bindir)/hwloc-gather-topology.tmp && mv -f $(DESTDIR)$(bindir)/hwloc-gather-topology.tmp $(DESTDIR)$(bindir)/hwloc-gather-topology + chmod +x $(DESTDIR)$(bindir)/hwloc-gather-topology + + SUBDIRS = gather diff --git a/sys-apps/hwloc/hwloc-1.10.0-r2.ebuild b/sys-apps/hwloc/hwloc-1.10.0-r2.ebuild new file mode 100644 index 000000000000..59925c4ebf8e --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.10.0-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic cuda autotools-utils multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X" + +# TODO opencl only works with AMD so no virtual + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + gl? ( media-video/nvidia-settings ) + opencl? ( x11-drivers/ati-drivers ) + pci? ( + sys-apps/pciutils + x11-libs/libpciaccess + ) + plugins? ( dev-libs/libltdl:0 ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +PATCHES=( "${FILESDIR}/${PN}-1.8.1-gl.patch" ) +AUTOTOOLS_AUTORECONF=1 + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + append-ldflags -L/opt/cuda/$(get_libdir) + fi + autotools-utils_src_prepare +} + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + local myeconfargs=( + --disable-silent-rules + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable cairo) + $(use_enable cuda) + $(use_enable debug) + $(use_enable gl) + $(use_enable opencl) + $(use_enable pci) + $(use_enable plugins) + $(use_enable numa libnuma) + $(use_enable xml libxml2) + $(use_with X x) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + # Fixed by upstream, but it seems overkill to require an autoregen for what + # is just a sed fix. + # https://github.com/open-mpi/hwloc/commit/6d42748f8604f3c1d0ca6cf122e8776b3c153ac4?diff=unified + sed -i 's|bindir/lstopo/|bindir/|' "${ED}"/usr/bin/hwloc-gather-topology || die +} diff --git a/sys-apps/hwloc/hwloc-1.10.0.ebuild b/sys-apps/hwloc/hwloc-1.10.0.ebuild new file mode 100644 index 000000000000..7820cb16d767 --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.10.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic cuda autotools-utils multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X" + +# TODO opencl only works with AMD so no virtual + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + gl? ( media-video/nvidia-settings ) + opencl? ( x11-drivers/ati-drivers ) + pci? ( + sys-apps/pciutils + x11-libs/libpciaccess + ) + plugins? ( sys-devel/libtool ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +PATCHES=( "${FILESDIR}/${PN}-1.8.1-gl.patch" ) +AUTOTOOLS_AUTORECONF=1 + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + append-ldflags -L/opt/cuda/$(get_libdir) + fi + autotools-utils_src_prepare +} + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + local myeconfargs=( + --disable-silent-rules + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable cairo) + $(use_enable cuda) + $(use_enable debug) + $(use_enable gl) + $(use_enable opencl) + $(use_enable pci) + $(use_enable plugins) + $(use_enable numa libnuma) + $(use_enable xml libxml2) + $(use_with X x) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install +} diff --git a/sys-apps/hwloc/hwloc-1.10.1-r1.ebuild b/sys-apps/hwloc/hwloc-1.10.1-r1.ebuild new file mode 100644 index 000000000000..0f9d22c762ef --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.10.1-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic cuda autotools-multilib multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X" + +# TODO opencl only works with AMD so no virtual +# dev-util/nvidia-cuda-toolkit is always multilib + +RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] + cairo? ( >=x11-libs/cairo-1.12.14-r4[X?,svg?,${MULTILIB_USEDEP}] ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 ) + gl? ( media-video/nvidia-settings ) + opencl? ( x11-drivers/ati-drivers:* ) + pci? ( + >=sys-apps/pciutils-3.3.0-r2[${MULTILIB_USEDEP}] + >=x11-libs/libpciaccess-0.13.1-r1[${MULTILIB_USEDEP}] + ) + plugins? ( dev-libs/libltdl:0[${MULTILIB_USEDEP}] ) + numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] ) + xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" + +DOCS=( AUTHORS NEWS README VERSION ) + +PATCHES=( + "${FILESDIR}/${PN}-1.8.1-gl.patch" + "${FILESDIR}/hwloc-gather-topology-fix-lstopo-path-after-install.patch" +) +AUTOTOOLS_AUTORECONF=1 + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + fi + autotools-utils_src_prepare +} + +multilib_src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + use cuda && local LDFLAGS="${LDFLAGS} -L/opt/cuda/$(get_libdir)" + local myeconfargs=( + --disable-silent-rules + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable cairo) + $(use_enable cuda) + $(use_enable debug) + $(multilib_native_use_enable gl) + $(multilib_native_use_enable opencl) + $(use_enable pci) + $(use_enable plugins) + $(use_enable numa libnuma) + $(use_enable xml libxml2) + $(use_with X x) + ) + autotools-utils_src_configure +} diff --git a/sys-apps/hwloc/hwloc-1.6.1.ebuild b/sys-apps/hwloc/hwloc-1.6.1.ebuild new file mode 100644 index 000000000000..49b310691104 --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.6.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux" +IUSE="cairo debug +numa +pci plugins svg static-libs xml X" + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + pci? ( sys-apps/pciutils ) + plugins? ( sys-devel/libtool ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable cairo) \ + $(use_enable debug) \ + $(use_enable pci) \ + $(use_enable plugins) \ + $(use_enable numa libnuma) \ + $(use_enable static-libs static) \ + $(use_enable xml libxml2) \ + $(use_with X x) \ + --disable-silent-rules +} + +src_install() { + default + if ! use static-libs; then + rm "${D}"/usr/$(get_libdir)/lib${PN}.la + use plugins && rm -f "${D}"/usr/$(get_libdir)/${PN}/*.la + fi +} diff --git a/sys-apps/hwloc/hwloc-1.6.2.ebuild b/sys-apps/hwloc/hwloc-1.6.2.ebuild new file mode 100644 index 000000000000..d88a63c7fe58 --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.6.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux" +IUSE="cairo debug +numa +pci plugins svg static-libs xml X" + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + pci? ( + sys-apps/pciutils + x11-libs/libpciaccess + ) + plugins? ( sys-devel/libtool ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable cairo) \ + $(use_enable debug) \ + $(use_enable pci) \ + $(use_enable pci libpci) \ + $(use_enable plugins) \ + $(use_enable numa libnuma) \ + $(use_enable static-libs static) \ + $(use_enable xml libxml2) \ + $(use_with X x) \ + --disable-silent-rules +} + +src_install() { + default + if ! use static-libs; then + rm "${D}"/usr/$(get_libdir)/lib${PN}.la + use plugins && rm -f "${D}"/usr/$(get_libdir)/${PN}/*.la + fi +} diff --git a/sys-apps/hwloc/hwloc-1.7.2.ebuild b/sys-apps/hwloc/hwloc-1.7.2.ebuild new file mode 100644 index 000000000000..f28b21554d11 --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.7.2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux" +IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X" + +# TODO opencl only works with AMD so no virtual + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + gl? ( media-video/nvidia-settings ) + opencl? ( x11-drivers/ati-drivers ) + pci? ( + sys-apps/pciutils + x11-libs/libpciaccess + ) + plugins? ( sys-devel/libtool ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + append-ldflags -L/opt/cuda/$(get_libdir) + fi +} + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + econf \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable cairo) \ + $(use_enable cuda) \ + $(use_enable debug) \ + $(use_enable gl) \ + $(use_enable opencl) \ + $(use_enable pci) \ + $(use_enable pci libpci) \ + $(use_enable plugins) \ + $(use_enable numa libnuma) \ + $(use_enable static-libs static) \ + $(use_enable xml libxml2) \ + $(use_with X x) \ + --disable-silent-rules +} + +src_install() { + default + if ! use static-libs; then + rm "${D}"/usr/$(get_libdir)/lib${PN}.la + use plugins && rm -f "${D}"/usr/$(get_libdir)/${PN}/*.la + fi +} diff --git a/sys-apps/hwloc/hwloc-1.8.1.ebuild b/sys-apps/hwloc/hwloc-1.8.1.ebuild new file mode 100644 index 000000000000..9bfbd90e2f4a --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.8.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic cuda autotools-utils multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X" + +# TODO opencl only works with AMD so no virtual + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + gl? ( media-video/nvidia-settings ) + opencl? ( x11-drivers/ati-drivers ) + pci? ( + sys-apps/pciutils + x11-libs/libpciaccess + ) + plugins? ( sys-devel/libtool ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +PATCHES=( "${FILESDIR}/${P}-gl.patch" ) +AUTOTOOLS_AUTORECONF=1 + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + append-ldflags -L/opt/cuda/$(get_libdir) + fi + autotools-utils_src_prepare +} + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + local myeconfargs=( + --disable-silent-rules + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable cairo) + $(use_enable cuda) + $(use_enable debug) + $(use_enable gl) + $(use_enable opencl) + $(use_enable pci) + $(use_enable pci libpci) + $(use_enable plugins) + $(use_enable numa libnuma) + $(use_enable xml libxml2) + $(use_with X x) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install +} diff --git a/sys-apps/hwloc/hwloc-1.9.ebuild b/sys-apps/hwloc/hwloc-1.9.ebuild new file mode 100644 index 000000000000..e589dac9c507 --- /dev/null +++ b/sys-apps/hwloc/hwloc-1.9.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic cuda autotools-utils multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="displays the hardware topology in convenient formats" +HOMEPAGE="http://www.open-mpi.org/projects/hwloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X" + +# TODO opencl only works with AMD so no virtual + +RDEPEND="sys-libs/ncurses + cairo? ( x11-libs/cairo[X?,svg?] ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + gl? ( media-video/nvidia-settings ) + opencl? ( x11-drivers/ati-drivers ) + pci? ( + sys-apps/pciutils + x11-libs/libpciaccess + ) + plugins? ( sys-devel/libtool ) + numa? ( sys-process/numactl ) + xml? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README VERSION ) + +PATCHES=( "${FILESDIR}/${PN}-1.8.1-gl.patch" ) +AUTOTOOLS_AUTORECONF=1 + +src_prepare() { + if use cuda ; then + append-cflags -I/opt/cuda/include + append-cppflags -I/opt/cuda/include + append-ldflags -L/opt/cuda/$(get_libdir) + fi + autotools-utils_src_prepare +} + +src_configure() { + export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467 + local myeconfargs=( + --disable-silent-rules + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable cairo) + $(use_enable cuda) + $(use_enable debug) + $(use_enable gl) + $(use_enable opencl) + $(use_enable pci) + $(use_enable pci libpci) + $(use_enable plugins) + $(use_enable numa libnuma) + $(use_enable xml libxml2) + $(use_with X x) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install +} diff --git a/sys-apps/hwloc/metadata.xml b/sys-apps/hwloc/metadata.xml new file mode 100644 index 000000000000..1c247acae257 --- /dev/null +++ b/sys-apps/hwloc/metadata.xml @@ -0,0 +1,21 @@ + + + +cluster + + The Portable Hardware Locality (hwloc) software package provides a portable abstraction + (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, + including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. + It also gathers various system attributes such as cache and memory information. + It primarily aims at helping applications with gathering information about modern computing + hardware so as to exploit it accordingly and efficiently. + + + Enable CUDA device discovery + Enable GL display device discovery (NVCtrl) + Add support for numa memory allocation + Enable OpenCL device discovery (AMD only) + Enable PCI device discovery using libpci + Build hwloc components as plugins so that the hwloc core library does not directly depend on their dependencies (for instance the libpci library) + + diff --git a/sys-apps/hwsetup/Manifest b/sys-apps/hwsetup/Manifest new file mode 100644 index 000000000000..f38729f843fb --- /dev/null +++ b/sys-apps/hwsetup/Manifest @@ -0,0 +1 @@ +DIST hwsetup_1.2-7.tar.gz 10706 SHA256 aa72b37ce306b5191cabd31eb5f19ab2a5e635697a263c6735d10c7bf99f9589 SHA512 ef252c748ecf1fc17d107fa413a76df5d9daab84b10eb1ca2c5c320207e0be522c4ae6204c1c85c613403e40312c9c876bcab04eeaa1a2e1724b7bb1c6d41a1e WHIRLPOOL 083111b1aa8d3fd547b25fe16fcf10929ed65effbdf5d566a18d652ee339392c335d93d8605e9b52aa9403da9e9c6a2c209f6f317f8e25f218487f867e25184c diff --git a/sys-apps/hwsetup/files/1.2-3-fastprobe.patch b/sys-apps/hwsetup/files/1.2-3-fastprobe.patch new file mode 100644 index 000000000000..600b8c4002d6 --- /dev/null +++ b/sys-apps/hwsetup/files/1.2-3-fastprobe.patch @@ -0,0 +1,74 @@ +--- a/hwsetup.c ++++ b/hwsetup.c +@@ -140,14 +140,15 @@ + + int syntax(char *option) + { +- printf(VERSION); ++ puts(VERSION); + if(option) fprintf(stderr,"hwsetup: Unknown option '%s'\n\n",option); +- printf("Usage: hwsetup\n" +- " -v be verbose\n" +- " -p print rotating prompt\n" +- " -a ignore audio devices\n" +- " -s ignore scsi controllers\n" +- " -n probe only, don't configure anything.\n"); ++ puts("Usage: hwsetup\n" ++ "\t\t-v\tbe verbose\n" ++ "\t\t-p\tprint rotating prompt\n" ++ "\t\t-a\tignore audio devices\n" ++ "\t\t-s\tignore scsi controllers\n" ++ "\t\t-n\tprobe only, don't configure anything.\n" ++ "\t\t-f\trun a fast probe."); + return option?1:0; + } + +@@ -425,7 +426,7 @@ + { + signal(SIGALRM,SIG_IGN); + fprintf(stderr,"\nWARNING: Autodetection seems to hang,\n" +- "please check your computers BIOS settings.\n"); ++ "please check your computer's BIOS settings.\n"); + fflush(stderr); + if(wpid) { kill(wpid,SIGTERM); usleep(2500000); kill(wpid,SIGKILL); wpid=0; } + exit(1); /* exit program */ +@@ -591,12 +592,13 @@ + return 0; + } + +-int hw_setup(enum deviceClass dc, int verbose, int probeonly, int skip) ++int hw_setup(enum deviceClass dc, int verbose, int probeonly, int skip, int fastprobe) + { + int i,mouse=0,cdrom=0,modem=0,scanner=0; ++ int probeopt=fastprobe?PROBE_SAFE:PROBE_ALL; + struct device **currentDevs, *d, *serialmouse=NULL, *usbmouse=NULL; + if(verbose&VERBOSE_PROMPT) wpid=startwheel(); +- currentDevs=probeDevices(dc,BUS_UNSPEC,PROBE_ALL); ++ currentDevs=probeDevices(dc,BUS_UNSPEC,probeopt); + if(verbose&VERBOSE_PROMPT&&wpid>0) { kill(wpid,SIGTERM); wpid=0; usleep(160000); write(2,"\033[0m Done.\n",11); } + if(currentDevs==NULL) return -1; + check_proc_modules(); /* Get currently loaded module list */ +@@ -650,7 +652,7 @@ + + int main(int argc, char **argv) + { +- int i, verbose=0, probeonly=0, skip=0; ++ int i, verbose=0, probeonly=0, skip=0, fast=0; + enum deviceClass dc=CLASS_UNSPEC; + for(i=1;idriver,xorg))!=NULL) /* Check for Xorg */ +@@ -653,7 +653,7 @@ + int writeconfig(char *name,struct device *d,int verbose) + { + FILE *f,*k; +- const char *kconfig="/etc/sysconfig/knoppix"; ++ const char *kconfig="/etc/sysconfig/gentoo"; + char *desc; + unlink(name); + if((f=fopen(name,"w"))==NULL) diff --git a/sys-apps/hwsetup/files/1.2-7-openchrome.patch b/sys-apps/hwsetup/files/1.2-7-openchrome.patch new file mode 100644 index 000000000000..fb80f9dfcb1a --- /dev/null +++ b/sys-apps/hwsetup/files/1.2-7-openchrome.patch @@ -0,0 +1,11 @@ +--- a/hwsetup.c ++++ b/hwsetup.c +@@ -456,7 +456,7 @@ + else if(strcasestr(xi.xdesc,"Newport")) strcpy(xi.xmodule,"newport"); + else if(strcasestr(xi.xdesc,"Siliconmotion")||strcasestr(xi.xdesc,"Silicon Motion")) strcpy(xi.xmodule,"siliconmotion"); + else if(strcasestr(xi.xdesc,"Chips")) strcpy(xi.xmodule,"chips"); +- else if(strcasestr(xi.xdesc,"VIA ")) strcpy(xi.xmodule,"via"); ++ else if(strcasestr(xi.xdesc,"VIA ")) strcpy(xi.xmodule,"openchrome"); + } + else strcpy(xi.xmodule,xvesa4); + } diff --git a/sys-apps/hwsetup/files/1.2-strip.patch b/sys-apps/hwsetup/files/1.2-strip.patch new file mode 100644 index 000000000000..17de636a5dc7 --- /dev/null +++ b/sys-apps/hwsetup/files/1.2-strip.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -3,7 +3,7 @@ + # define BLACKLIST to avoid loading potentially dangerous modules + CFLAGS=-DBLACKLIST -Wall -fPIC + OPT=-O2 +-LDFLAGS=-s ++#LDFLAGS=-s + LIBS=-lkudzu -lpci + CC=gcc + diff --git a/sys-apps/hwsetup/hwsetup-1.2-r3.ebuild b/sys-apps/hwsetup/hwsetup-1.2-r3.ebuild new file mode 100644 index 000000000000..4891f16ea17b --- /dev/null +++ b/sys-apps/hwsetup/hwsetup-1.2-r3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs flag-o-matic + +MY_PV=${PV}-7 +DESCRIPTION="Hardware setup program from Knoppix - used only on LiveCD" +HOMEPAGE="http://www.knopper.net/" +SRC_URI="http://debian-knoppix.alioth.debian.org/sources/${PN}_${MY_PV}.tar.gz" +#http://developer.linuxtag.net/knoppix/sources/${PN}_${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 -mips ppc ppc64 sparc x86" +IUSE="zlib" + +COMMON_DEPEND=" + sys-apps/pciutils[zlib?] + zlib? ( sys-libs/zlib ) +" +DEPEND=" + ${COMMON_DEPEND} + sys-libs/libkudzu +" +RDEPEND=" + ${COMMON_DEPEND} + sys-apps/hwdata-gentoo +" + +pkg_setup() { + ewarn "This package is designed for use on the LiveCD only and will do " + ewarn "unspeakably horrible and unexpected things on a normal system." + ewarn "YOU HAVE BEEN WARNED!!!" +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${MY_PV}-dyn_blacklist.patch \ + "${FILESDIR}"/${PV}-3-fastprobe.patch \ + "${FILESDIR}"/${MY_PV}-gentoo.patch \ + "${FILESDIR}"/${PV}-strip.patch \ + "${FILESDIR}"/${MY_PV}-openchrome.patch +} + +src_configure() { + if use zlib ; then + sed -i \ + -e '/^LIBS=/s,-lpci,-lz -lpci,g' \ + Makefile + fi +} + +src_compile() { + emake LDFLAGS="${LDFLAGS}" OPT="${CFLAGS}" CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man + dosbin ${PN} + keepdir /etc/sysconfig +} + +pkg_postinst() { + ewarn "This package is intended for use on the Gentoo release media. If" + ewarn "you are not building a CD, remove this package. It will not work" + ewarn "properly on a running system, as Gentoo does not use any of the" + ewarn "Knoppix-style detection except for CD builds." +} diff --git a/sys-apps/hwsetup/metadata.xml b/sys-apps/hwsetup/metadata.xml new file mode 100644 index 000000000000..88653ddd7172 --- /dev/null +++ b/sys-apps/hwsetup/metadata.xml @@ -0,0 +1,5 @@ + + + +livecd + diff --git a/sys-apps/i2c-tools/Manifest b/sys-apps/i2c-tools/Manifest new file mode 100644 index 000000000000..49521827a551 --- /dev/null +++ b/sys-apps/i2c-tools/Manifest @@ -0,0 +1,2 @@ +DIST i2c-tools-3.0.2.tar.bz2 62523 SHA256 0b4d6455a30a3264a60b4d3be55855d996d52ea4f162a2f04ffff378e24f98a2 SHA512 7e21660c83328a1f60cb4aa3dcc15ed0c745a426582afb48b09dca86cba0aa8e879eec59f6a029b36932c338395c10a3a88856a712f1680eba88643e6fbacf04 WHIRLPOOL c550374e8dad9d0005da9d16b50b793782dba79963fb2dfc2ca953a61af51af9d91fce227fd7b889a8c36b15352d2da904a8a8c313ddb577b5a7e0b4dc4fcf71 +DIST i2c-tools-3.1.1.tar.bz2 71789 SHA256 14d4d7d60d1c12e43f2befe239c682a5c44c27682f153d4b58c1e392d2db1700 SHA512 b91f89b803e5558d49ce63f42f6542438f4f47927e4ce420cd9df989cab14a5c55d971befed73e8f793b0cf4aa41936c0ef519e5a407dceb2c08964461e803c5 WHIRLPOOL 5d68236a7c6e5075625420d1e9cb0a075e8e064babbb73163a2bf2a5cf2b0b169e1420ab1ef495533c88f53497767f6256b817c49b5d9f1799f3bde6d7e26b24 diff --git a/sys-apps/i2c-tools/files/i2c-tools-3.1.1-python-3.patch b/sys-apps/i2c-tools/files/i2c-tools-3.1.1-python-3.patch new file mode 100644 index 000000000000..1f3de76052e7 --- /dev/null +++ b/sys-apps/i2c-tools/files/i2c-tools-3.1.1-python-3.patch @@ -0,0 +1,129 @@ +support python-3.x + +http://comments.gmane.org/gmane.linux.drivers.i2c/11290 +https://bugs.gentoo.org/492632 + +--- a/py-smbus/smbusmodule.c ++++ b/py-smbus/smbusmodule.c +@@ -32,15 +32,18 @@ + #define I2C_SMBUS_I2C_BLOCK_DATA 8 + #endif + +-PyDoc_STRVAR(SMBus_module_doc, +- "This module defines an object type that allows SMBus transactions\n" +- "on hosts running the Linux kernel. The host kernel must have I2C\n" +- "support, I2C device interface support, and a bus adapter driver.\n" +- "All of these can be either built-in to the kernel, or loaded from\n" +- "modules.\n" +- "\n" +- "Because the I2C device interface is opened R/W, users of this\n" +- "module usually must have root permissions.\n"); ++#define module_doc \ ++ "This module defines an object type that allows SMBus transactions\n" \ ++ "on hosts running the Linux kernel. The host kernel must have I2C\n" \ ++ "support, I2C device interface support, and a bus adapter driver.\n" \ ++ "All of these can be either built-in to the kernel, or loaded from\n" \ ++ "modules.\n" \ ++ "\n" \ ++ "Because the I2C device interface is opened R/W, users of this\n" \ ++ "module usually must have root permissions.\n" ++#if PY_MAJOR_VERSION <= 2 ++PyDoc_STRVAR(SMBus_module_doc, module_doc); ++#endif + + typedef struct { + PyObject_HEAD +@@ -91,7 +94,11 @@ SMBus_dealloc(SMBus *self) + PyObject *ref = SMBus_close(self); + Py_XDECREF(ref); + ++#if PY_MAJOR_VERSION >= 3 ++ Py_TYPE(self)->tp_free((PyObject*)self); ++#else + self->ob_type->tp_free((PyObject *)self); ++#endif + } + + #define MAXPATH 16 +@@ -431,11 +438,19 @@ SMBus_list_to_data(PyObject *list, union i2c_smbus_data *data) + + for (ii = 0; ii < len; ii++) { + PyObject *val = PyList_GET_ITEM(list, ii); ++#if PY_MAJOR_VERSION >= 3 ++ if (!PyLong_Check(val)) { ++#else + if (!PyInt_Check(val)) { ++#endif + PyErr_SetString(PyExc_TypeError, msg); + return 0; /* fail */ + } ++#if PY_MAJOR_VERSION >= 3 ++ data->block[ii+1] = (__u8)PyLong_AS_LONG(val); ++#else + data->block[ii+1] = (__u8)PyInt_AS_LONG(val); ++#endif + } + + return 1; /* success */ +@@ -633,9 +648,27 @@ static PyGetSetDef SMBus_getset[] = { + {NULL}, + }; + ++#if PY_MAJOR_VERSION >= 3 ++static struct PyModuleDef SMBusModule = { ++ PyModuleDef_HEAD_INIT, ++ "smbus.SMBus", /* m_name */ ++ module_doc, /* m_doc */ ++ -1, /* m_size */ ++ NULL, /* m_methods */ ++ NULL, /* m_reload */ ++ NULL, /* m_traverse */ ++ NULL, /* m_clear */ ++ NULL, /* m_free */ ++}; ++#endif ++ + static PyTypeObject SMBus_type = { ++#if PY_MAJOR_VERSION >= 3 ++ PyVarObject_HEAD_INIT(NULL, 0) ++#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ ++#endif + "smbus.SMBus", /* tp_name */ + sizeof(SMBus), /* tp_basicsize */ + 0, /* tp_itemsize */ +@@ -683,16 +716,32 @@ static PyMethodDef SMBus_module_methods[] = { + #define PyMODINIT_FUNC void + #endif + PyMODINIT_FUNC +-initsmbus(void) ++#if PY_MAJOR_VERSION >= 3 ++PyInit_smbus(void) ++#else ++initsmbus(void) ++#endif + { + PyObject* m; + ++#if PY_MAJOR_VERSION >= 3 ++ if (PyType_Ready(&SMBus_type) < 0) ++ return NULL; ++ ++ m = PyModule_Create(&SMBusModule); ++ if (m == NULL) ++ return NULL; ++#else + if (PyType_Ready(&SMBus_type) < 0) + return; + + m = Py_InitModule3("smbus", SMBus_module_methods, SMBus_module_doc); ++#endif + + Py_INCREF(&SMBus_type); + PyModule_AddObject(m, "SMBus", (PyObject *)&SMBus_type); ++#if PY_MAJOR_VERSION >= 3 ++ return m; ++#endif + } + diff --git a/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild b/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild new file mode 100644 index 000000000000..491419c74ddc --- /dev/null +++ b/sys-apps/i2c-tools/i2c-tools-3.0.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" + +inherit flag-o-matic toolchain-funcs distutils + +DESCRIPTION="I2C tools for bus probing, chip dumping, register-level access helpers, EEPROM decoding, and more" +HOMEPAGE="http://www.lm-sensors.org/wiki/I2CTools" +SRC_URI="http://dl.lm-sensors.org/i2c-tools/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~sparc x86" +IUSE="python" + +DEPEND="! + + +maintainer-needed@gentoo.org + diff --git a/sys-apps/ibm-powerpc-utils-papr/Manifest b/sys-apps/ibm-powerpc-utils-papr/Manifest new file mode 100644 index 000000000000..822af16a1c6f --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/Manifest @@ -0,0 +1,2 @@ +DIST powerpc-utils-papr-1.1.0.tar.gz 202321 SHA256 edd36417a21b19a3e8fd277c93b31fc71309ebde44aa7aa4a7813ce4240b1a16 +DIST powerpc-utils-papr-1.1.6.tar.gz 231283 SHA256 71e1fe04951c62176a8f224d79183e9b87967edb60c07c65f107f93f9b8c6243 diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-remove-doc.patch b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-remove-doc.patch new file mode 100644 index 000000000000..8a2c27f0f8e8 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-remove-doc.patch @@ -0,0 +1,14 @@ +--- powerpc-utils-papr-1.1.0.orig/Makefile 2006-03-28 16:07:24.000000000 -0600 ++++ powerpc-utils-papr-1.1.0/Makefile 2006-04-19 14:53:25.000000000 -0500 +@@ -20,11 +20,9 @@ + @$(MAKE) -C doc + + install: all +- @$(call install_doc,$(FILES),$(DESTDIR)) + @$(foreach d,$(SUBDIRS), $(MAKE) -C $d install;) + + uninstall: +- @$(call uninstall_doc,$(FILES),$(DESTDIR)) + @$(foreach d,$(SUBDIRS), $(MAKE) -C $d uninstall;) + + rpm: all diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-removeinitandvscsis.patch b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-removeinitandvscsis.patch new file mode 100644 index 000000000000..a6bb9278f8a9 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.0-removeinitandvscsis.patch @@ -0,0 +1,23 @@ +--- powerpc-utils-papr-1.1.0.orig/scripts/Makefile 2006-03-28 16:07:24.000000000 -0600 ++++ powerpc-utils-papr-1.1.0/scripts/Makefile 2006-04-19 14:53:44.000000000 -0500 +@@ -4,7 +4,7 @@ + + include ../rules.mk + +-SCRIPTS = update_flash hvcsadmin vscsisadmin rtas_dump ++SCRIPTS = update_flash hvcsadmin rtas_dump + + RCSCRIPTS = ibmvscsis.sh + +@@ -12,11 +12,9 @@ + + install: all + @$(call install_sbin,$(SCRIPTS),$(DESTDIR)) +- @$(call install_files,$(RCSCRIPTS),755,$(DESTDIR)/etc/init.d) + + uninstall: + @$(call uninstall_sbin,$(SCRIPTS),$(DESTDIR)) +- @$(call uninstall_files,$(RCSCRIPTS),$(DESTDIR)/etc/init.d) + + clean: + @echo "Cleaning up $(WORK_DIR) files..." diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.6-removeinitandvscsis.patch b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.6-removeinitandvscsis.patch new file mode 100644 index 000000000000..b8a31df485b5 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.1.6-removeinitandvscsis.patch @@ -0,0 +1,27 @@ +--- powerpc-utils-papr-1.1.6/scripts/Makefile.bak 2010-03-21 15:11:49.590571690 -0400 ++++ powerpc-utils-papr-1.1.6/scripts/Makefile 2010-03-21 15:12:48.107232396 -0400 +@@ -4,7 +4,7 @@ + + include ../rules.mk + +-SCRIPTS = update_flash hvcsadmin vscsisadmin rtas_dump ++SCRIPTS = update_flash hvcsadmin rtas_dump + + USER_SCRIPTS = amsstat + +@@ -18,13 +18,13 @@ + install: all + @$(call install_sbin,$(SCRIPTS),$(DESTDIR)) + @$(call install_bin,$(USER_SCRIPTS),$(DESTDIR)) +- @$(call install_files,$(RCSCRIPTS),755,$(DESTDIR)/etc/init.d) ++ #@$(call install_files,$(RCSCRIPTS),755,$(DESTDIR)/etc/init.d) + @$(foreach d,$(SUBDIRS), $(MAKE) -C $d install;) + + uninstall: + @$(call uninstall_sbin,$(SCRIPTS),$(DESTDIR)) + @$(call uninstall_bin,$(USER_SCRIPTS),$(DESTDIR)) +- @$(call uninstall_files,$(RCSCRIPTS),$(DESTDIR)/etc/init.d) ++ #@$(call uninstall_files,$(RCSCRIPTS),$(DESTDIR)/etc/init.d) + @$(foreach d,$(SUBDIRS), $(MAKE) -C $d uninstall;) + + clean: diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis b/sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis new file mode 100644 index 000000000000..2a47f2ac0ddd --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis @@ -0,0 +1,69 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# This file is tasked with testing for the existence of the ibmvscsis driver +# and configuring the ibmvscsi server properly as indicated by the config file +# located at /etc/ibmvscsis.conf +# + +DRIVER=ibmvscsis +SYSFS=/sys/bus/vio/drivers/ibmvscsis +CONFIG=/etc/ibmvscsis.conf + +depend() { + need logger + provide ibmvscsis +} + +checkconfig() { + if [ ! -e ${CONFIG} ] ; then + eerror " ${CONFIG} does not exist." + return 1 + fi +} + +checkmodule_load() { + # The existence of $SYSFS indicates that the module has been loaded or that + # the driver is at least built into the kernel. + if [ ! -e ${SYSFS} ] ; then + ewarn " Module ${DRIVER} is not loaded, attempting to load it" + /sbin/modprobe ${DRIVER} &> /dev/null && return 0 + eerror " Failed to load module ${DRIVER}" + return 1 + fi +} + +checkmodule() { + # The existence of $SYSFS indicates that the module has been loaded or that + # the driver is at least built into the kernel. + if [ ! -e ${SYSFS} ] ; then + eerror " Module ${DRIVER} is not loaded" + return 1 + fi +} + +start() { + ebegin "Starting vscsiadmin" + checkconfig || return 1 + checkmodule_load || return 1 + /usr/sbin/vscsiadmin -start &> /dev/null + eend $? "Failed to start vscsiadmin" +} + +stop() { + ebegin "Stopping vscsiadmin" + checkmodule || return 1 + /usr/sbin/vscsiadmin -stop &> /dev/null + eend $? "Failed to stop vscsiadmin" +} + +status() { + checkmodule || return 1 + /usr/sbin/vscsiadmin -status +} + +restart() { + stop + start +} diff --git a/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.0.ebuild b/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.0.ebuild new file mode 100644 index 000000000000..fa43e01824c9 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_P="powerpc-utils-papr-${PV}" + +DESCRIPTION="This package provides the utilities which are intended for the maintenance of IBM powerpc platforms" +SRC_URI="http://powerpc-utils.ozlabs.org/releases/powerpc-utils-papr-${PV}.tar.gz" +HOMEPAGE="http://powerpc-utils.ozlabs.org/" + +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="ppc ppc64" +IUSE="" +RDEPEND=">=sys-apps/ibm-powerpc-utils-1.1.0 + sys-libs/librtas + virtual/logger" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/ibm-powerpc-utils-papr-1.1.0-remove-doc.patch + epatch "${FILESDIR}"/ibm-powerpc-utils-papr-1.1.0-removeinitandvscsis.patch +} + +src_install() { + make DESTDIR="${D}" install || die "Compilation failed" + dodoc README COPYRIGHT + #dodir /etc/init.d + #exeinto /etc/init.d + #newexe ${FILESDIR}/ibmvscsis ibmvscsis +} + +pkg_postinst() { + #einfo "An initscript for managing virtual scsi servers has " + #einfo "been install into /etc/init.d/ called ibmviscsis. " + #einfo "Before you can use this daemon, you must create a proper " + #einfo "/etc/ibmvscsis.conf file." + einfo "Support for the IBM Virtual SCSI server (virtual disk) " + einfo "is not included in this version of powerpc-utils-papr. " + einfo "When the ibmvscsis function is generally available in " + einfo "the kernel source trees, it will be added back in." +} diff --git a/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.6.ebuild b/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.6.ebuild new file mode 100644 index 000000000000..21f61893f759 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.1.6.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_P="powerpc-utils-papr-${PV}" + +DESCRIPTION="This package provides the utilities which are intended for the maintenance of IBM powerpc platforms" +SRC_URI="http://powerpc-utils.ozlabs.org/releases/powerpc-utils-papr-${PV}.tar.gz" +HOMEPAGE="http://powerpc-utils.ozlabs.org/" + +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="~ppc ~ppc64" +IUSE="" +RDEPEND=">=sys-apps/ibm-powerpc-utils-1.1.2 + sys-libs/librtas + virtual/logger" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/ibm-powerpc-utils-papr-${PV}-removeinitandvscsis.patch +} + +src_install() { + make DESTDIR="${D}" install || die "Compilation failed" +} + +pkg_postinst() { + einfo "Support for the IBM Virtual SCSI server (virtual disk) " + einfo "is not included in this version of powerpc-utils-papr. " + einfo "When the ibmvscsis function is generally available in " + einfo "the kernel source trees, it will be added back in." +} diff --git a/sys-apps/ibm-powerpc-utils-papr/metadata.xml b/sys-apps/ibm-powerpc-utils-papr/metadata.xml new file mode 100644 index 000000000000..f9a5b22fcbec --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/metadata.xml @@ -0,0 +1,5 @@ + + + +ppc64 + diff --git a/sys-apps/ibm-powerpc-utils/Manifest b/sys-apps/ibm-powerpc-utils/Manifest new file mode 100644 index 000000000000..4ee76812a961 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/Manifest @@ -0,0 +1,5 @@ +DIST powerpc-utils-1.1.0.tar.gz 49368 SHA256 163886d3d1b59e92323b95461df83712f4cea5f605dda1fffdf1912567f3c94d +DIST powerpc-utils-1.2.12.tar.gz 347762 SHA256 570173a2712e06cdd34fc6b5c8aef3313909e1efd083f2a77d1053bfa25f4e01 SHA512 a28150c753e65c7595a7ad7a5361560b162c639bc6d385763c57d0c02f2b6e15db7e091be167d3c68aa1378f816a75971c5d60c1997dfa96be4a73f072863649 WHIRLPOOL dca98947543defb2d458d9aa9ff1df2230f82c1e1b058a939ab1c19ce6c44d5449ec9156db67af20356c3c90864ee03e65080a56aa9e80b6e531651d421091ae +DIST powerpc-utils-1.2.2.tar.gz 345299 SHA256 692fcc928645f7776334999a02f9bdd3d675932fbf6efbfa49950e1bc62c3694 +DIST powerpc-utils-1.2.25.tar.gz 367466 SHA256 2d9a0d4b04ab499ba1362844d65a4e21df0532578a2baa1fe18fff58dc8f32d9 SHA512 33af208dcd6ef9d66b96ec3eadab2eee48017860db9195eea0c59444a5dd414c326e1a737d6c324396219901ea594baaad6f49c8f3c36f5e806b4923d049b14e WHIRLPOOL a4d273ea9be4c8199c1f6ed25f80e6bbc28f3c653a0665196c10f4e95266b1e50835d0886219671f6fef0916de3b679799de6a2a1772ecad77665b386711a5f3 +DIST powerpc-utils-1.2.26.tar.gz 371200 SHA256 61253cb898283e94fcfde641d09722c3e845ebfd98a46f9bc2ad82167ff51592 SHA512 8c8c45128e89cad5bd1a37699a8b628c269b7fe9d5ebc5893ddce8ea8b77252708f5a2a4a454af71224709a44c999446e5d5b7113ba24efc4227b6ff90a1fffd WHIRLPOOL b024a02cf6feb3032b2599e3ceb5091d65631be492ce6ba9d4f5b832aa617293e3192a16be35ffee3765ef3328496712a497a9b8dcefb61a01ec511f71ed80c3 diff --git a/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.1.0-remove-doc.patch b/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.1.0-remove-doc.patch new file mode 100644 index 000000000000..826c6243b9ad --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.1.0-remove-doc.patch @@ -0,0 +1,23 @@ +--- a/Makefile ++++ b/Makefile +@@ -12,19 +12,12 @@ + TARBALL_FILES += $(FILES) Changelog + + all: +- @echo "Building cmds files..." +- @$(MAKE) -C cmds +- @echo "Building scripts files..." +- @$(MAKE) -C scripts +- @echo "Building doc files..." +- @$(MAKE) -C doc ++ @$(foreach d,$(SUBDIRS), $(MAKE) -C $d;) + + install: all +- @$(call install_doc,$(FILES),$(DESTDIR)) + @$(foreach d,$(SUBDIRS), $(MAKE) -C $d install;) + + uninstall: +- @$(call uninstall_doc,$(FILES),$(DESTDIR)) + @$(foreach d,$(SUBDIRS), $(MAKE) -C $d uninstall;) + + rpm: all diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.1.0.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.1.0.ebuild new file mode 100644 index 000000000000..d536c379bf23 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_P="powerpc-utils-${PV}" + +DESCRIPTION="This package provides utilities for the maintainance +of the IBM and Apple powerpc platforms." +SRC_URI="http://powerpc-utils.ozlabs.org/releases/${MY_P}.tar.gz" +HOMEPAGE="http://powerpc-utils.ozlabs.org/" + +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="ppc ppc64" +IUSE="" +DEPEND=">=sys-libs/librtas-1.3.1 +sys-devel/bc" +RDEPEND="!sys-apps/ppc64-utils" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/ibm-powerpc-utils-1.1.0-remove-doc.patch +} + +src_install() { + make DESTDIR="${D}" install || die "Something went wrong" +# dodoc README COPYRIGHT + +} + +pkg_postinst() { + einfo "If you are running IBM hardware, consider emerging " + einfo "sys-apps/ibm-powerpc-utils-papr for additional functions. " +} diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.12.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.12.ebuild new file mode 100644 index 000000000000..b4025e25d630 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.12.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_P="powerpc-utils-${PV}" + +DESCRIPTION="This package provides utilities for the maintainance +of the IBM and Apple powerpc platforms." +HOMEPAGE="http://sourceforge.net/projects/powerpc-utils" +SRC_URI="mirror://sourceforge/powerpc-utils/${MY_P}.tar.gz" + +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="ppc ppc64" +IUSE="" +DEPEND=">=sys-libs/librtas-1.3.5 + sys-devel/bc" + +src_unpack() { + unpack ${A} +} + +src_install() { + make DESTDIR="${D}" install || die "Something went wrong" + +} diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.2.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.2.ebuild new file mode 100644 index 000000000000..437a59da53d6 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_P="powerpc-utils-${PV}" + +DESCRIPTION="This package provides utilities for the maintainance +of the IBM and Apple powerpc platforms." +HOMEPAGE="http://sourceforge.net/projects/powerpc-utils" +SRC_URI="mirror://sourceforge/powerpc-utils/${MY_P}.tar.gz" + +S="${WORKDIR}/${MY_P}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="ppc ppc64" +IUSE="" +DEPEND=">=sys-libs/librtas-1.3.1 + sys-devel/bc + !sys-apps/ibm-powerpc-utils-papr" +RDEPEND="!sys-apps/ppc64-utils" + +src_unpack() { + unpack ${A} +} + +src_install() { + make DESTDIR="${D}" install || die "Something went wrong" + +} diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.25.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.25.ebuild new file mode 100644 index 000000000000..2833bf435d8a --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.25.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="This package provides utilities for the maintainance +of the IBM and Apple powerpc platforms." +HOMEPAGE="http://sourceforge.net/projects/powerpc-utils" +SRC_URI="mirror://sourceforge/powerpc-utils/${P//ibm-}.tar.gz" +IUSE="+rtas" + +S="${WORKDIR}/${P//ibm-}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="~ppc ~ppc64" + +DEPEND=" + sys-devel/bc +" +RDEPEND=" + rtas? ( >=sys-libs/librtas-1.3.5 ) + ${DEPEND} +" + +src_configure() { + econf $(use_with rtas librtas) +} diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.26.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.26.ebuild new file mode 100644 index 000000000000..2833bf435d8a --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.2.26.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="This package provides utilities for the maintainance +of the IBM and Apple powerpc platforms." +HOMEPAGE="http://sourceforge.net/projects/powerpc-utils" +SRC_URI="mirror://sourceforge/powerpc-utils/${P//ibm-}.tar.gz" +IUSE="+rtas" + +S="${WORKDIR}/${P//ibm-}" + +SLOT="0" +LICENSE="IBM" +KEYWORDS="~ppc ~ppc64" + +DEPEND=" + sys-devel/bc +" +RDEPEND=" + rtas? ( >=sys-libs/librtas-1.3.5 ) + ${DEPEND} +" + +src_configure() { + econf $(use_with rtas librtas) +} diff --git a/sys-apps/ibm-powerpc-utils/metadata.xml b/sys-apps/ibm-powerpc-utils/metadata.xml new file mode 100644 index 000000000000..6035c92dff18 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils/metadata.xml @@ -0,0 +1,11 @@ + + + + ppc64 + + Add support for the Run Time Abstraction Services (RTAS) + + + powerpc-utils + + diff --git a/sys-apps/idle3-tools/Manifest b/sys-apps/idle3-tools/Manifest new file mode 100644 index 000000000000..026c847b5387 --- /dev/null +++ b/sys-apps/idle3-tools/Manifest @@ -0,0 +1 @@ +DIST idle3-tools-0.9.1.tgz 21201 SHA256 9778060c7873ad2c9c40db3a7049d8ca22535427b982ff12f5bd519f703f2a02 SHA512 512991fad786684bd127f7ad3af94dcea4e28cd88d52221007436172725b8d2c0c2edd578c4c95bbcd425339ed664b9d81adbabbc2bb8a4a3ea71500e21db01e WHIRLPOOL 7261ff14b374dc23d0e829ed90199b1dffee8fb76a9f547810de7af66c70d1c01ae9266fecf2bfbcc6dc66e37c5726e52fe83a20ec99bac85d2af3f870c8323f diff --git a/sys-apps/idle3-tools/idle3-tools-0.9.1.ebuild b/sys-apps/idle3-tools/idle3-tools-0.9.1.ebuild new file mode 100644 index 000000000000..a644b2995c08 --- /dev/null +++ b/sys-apps/idle3-tools/idle3-tools-0.9.1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit base toolchain-funcs + +DESCRIPTION="Read, Set or disable the idle3 timer of Western Digital drives" +HOMEPAGE="http://idle3-tools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="-Wall ${CFLAGS}" LDFLAGS="${LDFLAGS}" || die +} diff --git a/sys-apps/idle3-tools/metadata.xml b/sys-apps/idle3-tools/metadata.xml new file mode 100644 index 000000000000..01061b45f70e --- /dev/null +++ b/sys-apps/idle3-tools/metadata.xml @@ -0,0 +1,17 @@ + + + + + maintainer-needed@gentoo.org + + + Idle3-tools provides a linux/unix utility that can disable, get and set the value + of the infamous idle3 timer found on recent Western Digital Hard Disk Drives. It + can be used as an alternative to the official wdidle3.exe proprietary utility, + without the need to reboot in a DOS environement. A power off/on cycle of the + drive will still be mandatory for new settings to be taken into account. + + + idle3-tools + + diff --git a/sys-apps/ifd-gempc/Manifest b/sys-apps/ifd-gempc/Manifest new file mode 100644 index 000000000000..641ddd533699 --- /dev/null +++ b/sys-apps/ifd-gempc/Manifest @@ -0,0 +1 @@ +DIST ifd-gempc-1.0.6.tar.gz 76156 RMD160 95bb5616a110325dea1612a80dec640a5ad2faf1 SHA1 545f427aa62f04cb4dbbb6b99c6caf6caec750f6 SHA256 29f772aed8f0dfaf65c1f539338c728344af2cf50aca6b5652ed4afca65d3da3 diff --git a/sys-apps/ifd-gempc/files/reader.conf b/sys-apps/ifd-gempc/files/reader.conf new file mode 100644 index 000000000000..74de4a1a60ca --- /dev/null +++ b/sys-apps/ifd-gempc/files/reader.conf @@ -0,0 +1,11 @@ +# Configuration file for pcsc-lite +# + +# GemPC410 reader +FRIENDLYNAME "GemPC410" +# Update the following to the right COM port +DEVICENAME /dev/null +LIBPATH %PCSC_DRIVERS_DIR%/serial/%libGemPC410% +CHANNELID 1 + +# End of file diff --git a/sys-apps/ifd-gempc/ifd-gempc-1.0.6.ebuild b/sys-apps/ifd-gempc/ifd-gempc-1.0.6.ebuild new file mode 100644 index 000000000000..3fabcb8a9126 --- /dev/null +++ b/sys-apps/ifd-gempc/ifd-gempc-1.0.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="GemCore based PC/SC reader drivers for pcsc-lite" +HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC" +LICENSE="GPL-2 BSD" +KEYWORDS="~amd64 ~ppc ~x86" +SLOT="0" +SRC_URI="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/${P}.tar.gz" +IUSE="" +RDEPEND=">=sys-apps/pcsc-lite-1.2.9_beta7 + =virtual/libusb-0*" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install () { + local pcscdir="$(pkg-config --variable=usbdropdir libpcsclite)" + local conf="/etc/reader.conf.d/${PN}.conf" + emake CC="$(tc-getCC)" DESTDIR="${D}" install || die "emake install failed" + dodoc README* + dodir "$(dirname "${conf}")" + insinto "$(dirname "${conf}")" + newins "${FILESDIR}/reader.conf" "$(basename "${conf}")" + sed -e "s:%PCSC_DRIVERS_DIR%:${pcscdir}:g" -e "s:%libGemPC410%:libGemPC410.so.${PV}:g" -i "${D}${conf}" +} + +pkg_postinst() { + elog "NOTICE:" + elog "1. If you are using GemPC410, modify ${conf}" + elog "2. Run update-reader.conf, yes this is a command..." + elog "3. Restart pcscd" +} + +pkg_postrm() { + # + # Without this, pcscd will not start next time. + # + local conf="/etc/reader.conf.d/${PN}.conf" + if ! [[ -f "${conf}" && -f "$(grep LIBPATH "${conf}" | sed 's/LIBPATH *//' | sed 's/ *$//g' | head -n 1)" ]]; then + [[ -f "${conf}" ]] && rm "${conf}" + update-reader.conf + elog "NOTICE:" + elog "You need to restart pcscd" + fi +} diff --git a/sys-apps/ifd-gempc/metadata.xml b/sys-apps/ifd-gempc/metadata.xml new file mode 100644 index 000000000000..555d15559b19 --- /dev/null +++ b/sys-apps/ifd-gempc/metadata.xml @@ -0,0 +1,9 @@ + + + +crypto + + This library provides PC/SC IFD handler implementation for Gemplus GemCore based + serial and USB smart cards readers. + + diff --git a/sys-apps/ifplugd/Manifest b/sys-apps/ifplugd/Manifest new file mode 100644 index 000000000000..6f919e074d41 --- /dev/null +++ b/sys-apps/ifplugd/Manifest @@ -0,0 +1 @@ +DIST ifplugd-0.28.tar.gz 142677 SHA256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch b/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch new file mode 100644 index 000000000000..9c2de464bbde --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd-0.28-interface.patch @@ -0,0 +1,13 @@ +--- src/interface.c 2004/12/19 00:08:01 114 ++++ src/interface.c 2006/03/07 13:15:11 133 +@@ -22,9 +22,9 @@ + #include + #endif + ++#include + #include + #include +-#include + #include + #include + #include diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff b/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff new file mode 100644 index 000000000000..b640543eebc9 --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd-0.28-nlapi.diff @@ -0,0 +1,12 @@ +diff -urN src/nlapi.c src/nlapi.c +--- src/nlapi.c 2004-12-20 08:39:14.682706517 -0500 ++++ src/nlapi.c 2004-12-20 08:39:50.185734092 -0500 +@@ -86,7 +86,7 @@ + for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) { + struct callback_info *c; + +- if (!NLMSG_OK(p, bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < p->nlmsg_len) { ++ if (!NLMSG_OK(p, (size_t) bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < (size_t) p->nlmsg_len) { + daemon_log(LOG_ERR, "NLAPI: Packet too small or truncated!\n"); + return -1; + } diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-noip.patch b/sys-apps/ifplugd/files/ifplugd-0.28-noip.patch new file mode 100644 index 000000000000..5daa4534eb49 --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd-0.28-noip.patch @@ -0,0 +1,21 @@ +[PATCH] Allow ifplugd to run when no TCP/IP is available + +This simple patch create AF_LOCAL socket instead of AF_INET so if TCP/IP +is not linked into kernel it still works. + +Signed-off-by: Alon Bar-Lev + +--- + +diff -urNp ifplugd-0.28.org/src/ifplugd.c ifplugd-0.28/src/ifplugd.c +--- ifplugd-0.28.org/src/ifplugd.c 2005-06-04 22:21:51.000000000 +0300 ++++ ifplugd-0.28/src/ifplugd.c 2007-10-30 05:22:53.000000000 +0200 +@@ -409,7 +409,7 @@ void work(void) { + break; + } + +- if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { ++ if ((fd = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0) { + daemon_log(LOG_ERR, "socket(): %s", strerror(errno)); + goto finish; + } diff --git a/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch b/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch new file mode 100644 index 000000000000..3c5de8a2e731 --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd-0.28-strictalias.patch @@ -0,0 +1,63 @@ +--- src/interface.c.orig 2007-03-23 13:29:40.000000000 +0000 ++++ src/interface.c 2007-03-23 13:30:05.000000000 +0000 +@@ -89,6 +89,10 @@ + + interface_status_t interface_detect_beat_mii(int fd, char *iface) { + struct ifreq ifr; ++ union { ++ caddr_t *data; ++ unsigned short *usz; ++ } ifd; + + if (interface_auto_up) + interface_up(fd, iface); +@@ -103,7 +107,8 @@ + return IFSTATUS_ERR; + } + +- ((unsigned short*) &ifr.ifr_data)[1] = 1; ++ ifd.data = &ifr.ifr_data; ++ *++ifd.usz = 1; + + if (ioctl(fd, SIOCGMIIREG, &ifr) == -1) { + if (interface_do_message) +@@ -112,12 +117,17 @@ + return IFSTATUS_ERR; + } + +- return (((unsigned short*) &ifr.ifr_data)[3] & 0x0004) ? IFSTATUS_UP : IFSTATUS_DOWN; ++ ifd.usz += 2; ++ return (*ifd.usz & 0x0004) ? IFSTATUS_UP : IFSTATUS_DOWN; + } + + interface_status_t interface_detect_beat_priv(int fd, char *iface) { + struct ifreq ifr; +- ++ union { ++ caddr_t *data; ++ unsigned short *usz; ++ } ifd; ++ + if (interface_auto_up) + interface_up(fd, iface); + +@@ -131,7 +141,8 @@ + return IFSTATUS_ERR; + } + +- ((unsigned short*) &ifr.ifr_data)[1] = 1; ++ ifd.data = &ifr.ifr_data; ++ *++ifd.usz = 1; + + if (ioctl(fd, SIOCDEVPRIVATE+1, &ifr) == -1) { + if (interface_do_message) +@@ -140,7 +151,8 @@ + return IFSTATUS_ERR; + } + +- return (((unsigned short*) &ifr.ifr_data)[3] & 0x0004) ? IFSTATUS_UP : IFSTATUS_DOWN; ++ ifd.usz += 2; ++ return (*ifd.usz & 0x0004) ? IFSTATUS_UP : IFSTATUS_DOWN; + } + + interface_status_t interface_detect_beat_ethtool(int fd, char *iface) { diff --git a/sys-apps/ifplugd/files/ifplugd.action b/sys-apps/ifplugd/files/ifplugd.action new file mode 100644 index 000000000000..ba4cfd7d20b9 --- /dev/null +++ b/sys-apps/ifplugd/files/ifplugd.action @@ -0,0 +1,55 @@ +#!/bin/sh +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# Gentoo-specific ifplugd.action +# +# This file gets called by ifplugd when it wants to bring an interface +# up or down. +# + +if grep -q initng /proc/1/cmdline +then + EXEC="/sbin/ngc" + INITNG="yes" +else + EXEC="/etc/init.d/net.$1" + INITNG="no" +fi + +case "$2" in + up) + if [ "${INITNG}" = "yes" ] + then + ARGS="-u net/$1" + else + ARGS="--quiet start" + fi + ;; + down) + if [ "${INITNG}" = "yes" ] + then + ARGS="-d net/$1" + else + ARGS="--quiet stop" + fi + ;; + *) + echo "$0: wrong arguments" >&2 + echo "Call with " >&2 + exit 1 + ;; +esac + +export IN_BACKGROUND=true + +if [ -x "${EXEC}" ] +then + ${EXEC} ${ARGS} + exit 0 +else + logger -t ifplugd.action "Error: Couldn't configure $1, no ${EXEC} !" + exit 1 +fi + +# vim: set ts=4 diff --git a/sys-apps/ifplugd/ifplugd-0.28-r9.ebuild b/sys-apps/ifplugd/ifplugd-0.28-r9.ebuild new file mode 100644 index 000000000000..e1ccd87a3029 --- /dev/null +++ b/sys-apps/ifplugd/ifplugd-0.28-r9.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils + +DESCRIPTION="Brings up/down ethernet ports automatically with cable detection" +HOMEPAGE="http://0pointer.de/lennart/projects/ifplugd/" +SRC_URI="http://0pointer.de/lennart/projects/ifplugd/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm amd64 hppa ppc x86" +IUSE="doc selinux" + +DEPEND="virtual/pkgconfig + doc? ( www-client/lynx ) + >=dev-libs/libdaemon-0.5" +RDEPEND=">=dev-libs/libdaemon-0.5 + >=sys-apps/baselayout-1.12 + selinux? ( sec-policy/selinux-ifplugd )" + +src_prepare() { + epatch "${FILESDIR}/${P}-nlapi.diff" + epatch "${FILESDIR}/${P}-interface.patch" + epatch "${FILESDIR}/${P}-strictalias.patch" + epatch "${FILESDIR}/${P}-noip.patch" +} + +src_configure() { + econf \ + $(use_enable doc lynx) \ + --with-initdir=/etc/init.d \ + --disable-xmltoman \ + --disable-subversion +} + +src_install() { + default + + # Remove init.d configuration as we no longer use it + rm -rf "${D}/etc/ifplugd" "${D}/etc/init.d/${PN}" + + exeinto "/etc/${PN}" + newexe "${FILESDIR}/${PN}.action" "${PN}.action" + + cd "${S}/doc" + dodoc README SUPPORTED_DRIVERS + use doc && dohtml *.html *.css +} + +pkg_postinst() { + # Warn about old init script + einfo "baselayout now starts ifplugd automatically on wired interfaces" + einfo "If you do not want this behaviour then add !plug to your modules" + einfo "in /etc/conf.d/net like so" + einfo " modules=( \"!plug\" )" + + if [ -e "${ROOT}/etc/init.d/ifplugd" -o -e "${ROOT}/etc/conf.d/ifplugd" ] ; then + echo + ewarn "You should stop the ifplugd service now and remove its init" + ewarn "script and config file" + if [ "${ROOT}" = "/" ] ; then + ewarn " /etc/init.d/ifplugd stop" + ewarn " rc-update del ifplugd" + ewarn " rm -f /etc/{conf,init}.d/ifplugd" + fi + fi +} diff --git a/sys-apps/ifplugd/metadata.xml b/sys-apps/ifplugd/metadata.xml new file mode 100644 index 000000000000..26ed76b50d8e --- /dev/null +++ b/sys-apps/ifplugd/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + Brings up/down ethernet ports automatically with cable detection + + diff --git a/sys-apps/input-utils/Manifest b/sys-apps/input-utils/Manifest new file mode 100644 index 000000000000..31e5b1dc4220 --- /dev/null +++ b/sys-apps/input-utils/Manifest @@ -0,0 +1,2 @@ +DIST input-1.1.tar.gz 21652 SHA256 544636fb0d468cae7de502f7b973a54a3195073328b235b906bd21298694b65b SHA512 dfb89bfdb956fbd80134606e3deda8fbd7d5679513e882ac169adb4f547980dcdec56db4c992f7dda4036c0dbbb4bec0468262893d3c5253de9d3a8b909d81cc WHIRLPOOL a571f9516f9554c7e1c039ef7fc1727fe2cd9dea2a2539fc514ffc80c09d6c34d060783581112b5401229ac5a1518985b6ca4a0bcccaef3fc97ec13b05e1e457 +DIST input-20081014-101501.tar.gz 33797 SHA256 185f31f5776bd81be28ae7984d6d2812420858bed8f6ebfbfeaaa7d6ca62b0e5 SHA512 24ad3b5077b0e32b0ed6d28e84c27089091468d1379645f862c66a1987f079765c5aed850542b3bcec25f6254b681991119332a5b024ff04dd3dbd72e3ae3450 WHIRLPOOL e4daac596d81d5a71c829935d6185bc857a4d1d7971d97a6fc9d3b633f9ceeaf8e269b3fe783f948e0e426c5c2a4fd669b861689dd0d2cfeee32b38aaf3012c8 diff --git a/sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch b/sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch new file mode 100644 index 000000000000..007258a5330f --- /dev/null +++ b/sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch @@ -0,0 +1,22 @@ +Patch from https://bugs.gentoo.org/attachment.cgi?id=262203&action=diff + +--- input.c.orig 2011-02-12 02:29:40.308989368 -0500 ++++ input.c 2011-02-12 02:30:21.209265625 -0500 +@@ -46,17 +46,6 @@ + if (verbose) + fprintf(stderr,"%s\n",filename); + +- if (-1 == ioctl(fd,EVIOCGVERSION,&version)) { +- perror("ioctl EVIOCGVERSION"); +- close(fd); +- return -1; +- } +- if (EV_VERSION != version) { +- fprintf(stderr, "protocol version mismatch (expected %d, got %d)\n", +- EV_VERSION, version); +- close(fd); +- return -1; +- } + return fd; + } + diff --git a/sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch b/sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch new file mode 100644 index 000000000000..796b1bef62d4 --- /dev/null +++ b/sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch @@ -0,0 +1,116 @@ +This patch is derived from input-utils_0.0.20051128-4.diff.gz + +diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/GNUmakefile input-utils-0.0.20081014/GNUmakefile +--- input-utils-0.0.20081014.orig/GNUmakefile 2008-10-14 10:27:01.000000000 +0000 ++++ input-utils-0.0.20081014/GNUmakefile 2011-07-03 07:49:07.000000000 +0000 +@@ -7,7 +7,7 @@ + LDLIBS += -lm + + # build +-TARGETS := lsinput input-events input-kbd input-send input-recv lircd.conf ++TARGETS := lsinput input-events input-kbd lircd.conf + HEADERS := EV.h REL.h ABS.h MSC.h LED.h SND.h REP.h KEY.h BTN.h BUS.h SW.h + + # default target +@@ -45,7 +45,7 @@ + + install: build + $(INSTALL_DIR) $(bindir) $(mandir)/man8 +- $(INSTALL_BINARY) lsinput input-events input-kbd input-send input-recv $(bindir) ++ $(INSTALL_BINARY) lsinput input-events input-kbd $(bindir) + $(INSTALL_DATA) lsinput.man $(mandir)/man8/lsinput.8 + $(INSTALL_DATA) input-kbd.man $(mandir)/man8/input-kbd.8 + $(INSTALL_DATA) input-events.man $(mandir)/man8/input-events.8 +diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/input-events.man input-utils-0.0.20081014/input-events.man +--- input-utils-0.0.20081014.orig/input-events.man 2005-07-27 14:17:04.000000000 +0000 ++++ input-utils-0.0.20081014/input-events.man 2011-07-03 07:48:16.000000000 +0000 +@@ -1,7 +1,7 @@ + .TH INPUT-EVENTS 8 "July 2005" "" "" + .SH NAME + +-input-events \- list input devices ++input-events \- print input events + + .SH SYNOPSIS + \fBinput\-events \fR [\fB\-t\fR\ \fIsec\fR] [\fB\-g\fR]\ \fIdevnr\fR +diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/input.h input-utils-0.0.20081014/input.h +--- input-utils-0.0.20081014.orig/input.h 2008-10-14 10:27:01.000000000 +0000 ++++ input-utils-0.0.20081014/input.h 2011-07-03 07:48:16.000000000 +0000 +@@ -1,7 +1,7 @@ + #include + + #include +-#include "linux-input.h" ++#include + + #define ev_name(code) ((code) < EV_MAX && EV_NAME[code] ? EV_NAME[code] : "???") + #define ev_type_name(type, code) ((code) < EV_TYPE_MAX[type] && EV_TYPE_NAME[type][code] ? EV_TYPE_NAME[type][code] : "???") +diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/input-kbd.c input-utils-0.0.20081014/input-kbd.c +--- input-utils-0.0.20081014.orig/input-kbd.c 2008-10-14 10:27:01.000000000 +0000 ++++ input-utils-0.0.20081014/input-kbd.c 2011-07-03 07:48:16.000000000 +0000 +@@ -36,7 +36,6 @@ + entry.keycode = KEY_RESERVED; + rc = ioctl(fd, EVIOCGKEYCODE, &entry); + if (rc < 0) { +- map->size--; + break; + } + if (map->size >= map->alloc) { +diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/lirc.sh input-utils-0.0.20081014/lirc.sh +--- input-utils-0.0.20081014.orig/lirc.sh 2005-11-28 14:07:00.000000000 +0000 ++++ input-utils-0.0.20081014/lirc.sh 2011-07-03 07:48:16.000000000 +0000 +@@ -1,5 +1,5 @@ + #!/bin/sh +-INPUT="linux-input.h" ++INPUT="/usr/include/linux/input.h" + cat < + #include ++#include + #include + #include + +@@ -10,14 +11,19 @@ + static void list_devices(void) + { + int i,fd; ++ char filename[32]; ++ struct stat statbuf; + + for (i = 0; i < 32; i++) { +- /* try to open */ +- fd = device_open(i,1); +- if (-1 == fd) +- return; +- device_info(fd); +- close(fd); ++ snprintf(filename,sizeof(filename), "/dev/input/event%d",i); ++ if (stat(filename, &statbuf) == 0) { ++ /* try to open */ ++ fd = device_open(i,1); ++ if (-1 == fd) ++ return; ++ device_info(fd); ++ close(fd); ++ } + } + return; + } +diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/name.sh input-utils-0.0.20081014/name.sh +--- input-utils-0.0.20081014.orig/name.sh 2004-04-21 11:55:44.000000000 +0000 ++++ input-utils-0.0.20081014/name.sh 2011-07-03 07:48:16.000000000 +0000 +@@ -1,7 +1,7 @@ + #!/bin/sh + + TYPE="$1" +-INPUT="linux-input.h" ++INPUT="/usr/include/linux/input.h" + + awk " + /EV_VERSION/ { next }; diff --git a/sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild b/sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild new file mode 100644 index 000000000000..d8a2f5fdf3ca --- /dev/null +++ b/sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +MY_P="input-${PV/0.0.1_pre/}-101501" + +DESCRIPTION="Small collection of linux input layer utils" +HOMEPAGE="http://dl.bytesex.org/cvs-snapshots/" +SRC_URI="http://dl.bytesex.org/cvs-snapshots/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/input" + +src_prepare() { + # Ported from Debian + epatch "${FILESDIR}"/input-utils-0.0.1_pre20081014.patch + # version check stuff + epatch "${FILESDIR}"/input-utils-0.0.1-protocol-mismatch-fix.patch +} + +src_install() { + make install bindir="${D}"/usr/bin mandir="${D}"/usr/share/man STRIP="" || die "make install failed" + dodoc lircd.conf + dodoc README +} diff --git a/sys-apps/input-utils/input-utils-1.1.ebuild b/sys-apps/input-utils/input-utils-1.1.ebuild new file mode 100644 index 000000000000..a2db4cbe74b3 --- /dev/null +++ b/sys-apps/input-utils/input-utils-1.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +MY_PN="input" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Small collection of linux input layer utils" +HOMEPAGE="https://www.kraxel.org/blog/linux/input/" +SRC_URI="https://www.kraxel.org/releases/input/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Ported from Debian + #epatch "${FILESDIR}"/input-utils-0.0.1_pre20081014.patch + # version check stuff + #epatch "${FILESDIR}"/input-utils-0.0.1-protocol-mismatch-fix.patch + : +} + +src_install() { + make install bindir="${D}"/usr/bin mandir="${D}"/usr/share/man STRIP="" || die "make install failed" + dodoc lircd.conf + dodoc README +} diff --git a/sys-apps/input-utils/metadata.xml b/sys-apps/input-utils/metadata.xml new file mode 100644 index 000000000000..582146721cbe --- /dev/null +++ b/sys-apps/input-utils/metadata.xml @@ -0,0 +1,19 @@ + + + + +zzam@gentoo.org +Matthias Schwarzott + + +robbat2@gentoo.org +Robin H. Johnson + + +This is a collection of utilities which are useful when working with the input +layer of the Linux kernel (version 2.6 and later). Included are utilities to +list the input devices known to the kernel, show the input events that are +received by a device, and query or modify keyboard maps. + + + diff --git a/sys-apps/install-xattr/Manifest b/sys-apps/install-xattr/Manifest new file mode 100644 index 000000000000..1a8e8a7dc0b4 --- /dev/null +++ b/sys-apps/install-xattr/Manifest @@ -0,0 +1,2 @@ +DIST install-xattr-0.4.tar.bz2 16073 SHA256 d769908e738d876bdd35308e3a9555c97872fb8633255e23eaa5a0d68cd10c6f SHA512 f682da111b9803e0ebe3dbc01bf7b921e0c3b12edce3f0f64b9d70e7e8fc84d586bf9612cd2bdc5c49a300cb4bd40b562f218a98e63951f5644d81aeab468361 WHIRLPOOL 719da63f05be2f277a9c968309306df5071d5804473fbd327d85e320ac8b86813face041098bef33723c5ea5aaa4c2862f47fa9accbc4de51638ddb3500354ba +DIST install-xattr-0.5.tar.bz2 16136 SHA256 6062fbcb8f463a54be8c2eedff7bd12ab682972d688784054f4abdad4e050834 SHA512 0bbde3a548fc5062041b38f90ac09c402f3cb0aebf4f0c331552fc44d39dd3d5e4d73bca0811de36c53af8afa5d22e543a7c90107d272f2a1b97c819b244eb7c WHIRLPOOL 1aa3a06b069bb12b3933f2dfc81ff5bce8295c93c64421b898b70440427d5dde05f88ccac3eb7361c372a8656b42df8e24592f60bab7acc758bec9c672c81847 diff --git a/sys-apps/install-xattr/install-xattr-0.4.ebuild b/sys-apps/install-xattr/install-xattr-0.4.ebuild new file mode 100644 index 000000000000..d85a1a9dca6f --- /dev/null +++ b/sys-apps/install-xattr/install-xattr-0.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +DESCRIPTION="Wrapper to coreutil's install to preserve Filesystem Extended Attributes" +HOMEPAGE="http://dev.gentoo.org/~blueness/install-xattr/" + +inherit toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/elfix.git" + KEYWORDS="" + inherit git-2 +else + SRC_URI="http://dev.gentoo.org/~blueness/install-xattr/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" + S=${WORKDIR}/${PN} +fi + +LICENSE="GPL-3" +SLOT="0" + +src_prepare() { + tc-export CC +} + +src_compile() { + if [[ ${PV} == "9999" ]] ; then + cd "${WORKDIR}/${P}/misc/${PN}" || die + fi + default +} + +src_install() { + if [[ ${PV} == "9999" ]] ; then + cd "${WORKDIR}/${P}/misc/${PN}" || die + fi + default +} + +# We need to fix how tests are done +src_test() { + true +} diff --git a/sys-apps/install-xattr/install-xattr-0.5.ebuild b/sys-apps/install-xattr/install-xattr-0.5.ebuild new file mode 100644 index 000000000000..d882c819ccae --- /dev/null +++ b/sys-apps/install-xattr/install-xattr-0.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +DESCRIPTION="Wrapper to coreutil's install to preserve Filesystem Extended Attributes" +HOMEPAGE="http://dev.gentoo.org/~blueness/install-xattr/" + +inherit toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/elfix.git" + KEYWORDS="alpha arm hppa ia64 sparc" + inherit git-2 +else + SRC_URI="http://dev.gentoo.org/~blueness/install-xattr/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" + S=${WORKDIR}/${PN} +fi + +LICENSE="GPL-3" +SLOT="0" + +src_prepare() { + tc-export CC +} + +src_compile() { + if [[ ${PV} == "9999" ]] ; then + cd "${WORKDIR}/${P}/misc/${PN}" || die + fi + default +} + +src_install() { + if [[ ${PV} == "9999" ]] ; then + cd "${WORKDIR}/${P}/misc/${PN}" || die + fi + default +} + +# We need to fix how tests are done +src_test() { + true +} diff --git a/sys-apps/install-xattr/install-xattr-9999.ebuild b/sys-apps/install-xattr/install-xattr-9999.ebuild new file mode 100644 index 000000000000..b5baeb7ef650 --- /dev/null +++ b/sys-apps/install-xattr/install-xattr-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +DESCRIPTION="Wrapper to coreutil's install to preserve Filesystem Extended Attributes" +HOMEPAGE="http://dev.gentoo.org/~blueness/install-xattr/" + +inherit toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://anongit.gentoo.org/proj/elfix.git" + KEYWORDS="" + inherit git-2 +else + SRC_URI="http://dev.gentoo.org/~blueness/install-xattr/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + S=${WORKDIR}/${PN} +fi + +LICENSE="GPL-3" +SLOT="0" + +src_prepare() { + tc-export CC +} + +src_compile() { + if [[ ${PV} == "9999" ]] ; then + cd "${WORKDIR}/${P}/misc/${PN}" || die + fi + default +} + +src_install() { + if [[ ${PV} == "9999" ]] ; then + cd "${WORKDIR}/${P}/misc/${PN}" || die + fi + default +} + +# We need to fix how tests are done +src_test() { + true +} diff --git a/sys-apps/install-xattr/metadata.xml b/sys-apps/install-xattr/metadata.xml new file mode 100644 index 000000000000..3f1a615f77ac --- /dev/null +++ b/sys-apps/install-xattr/metadata.xml @@ -0,0 +1,9 @@ + + + + + blueness@gentoo.org + Anthony G. Basile + +base-system + diff --git a/sys-apps/intel-performance-counter-monitor/Manifest b/sys-apps/intel-performance-counter-monitor/Manifest new file mode 100644 index 000000000000..fd3bb760cf56 --- /dev/null +++ b/sys-apps/intel-performance-counter-monitor/Manifest @@ -0,0 +1 @@ +DIST IntelPerformanceCounterMonitorV2.8.zip 931374 SHA256 3c51b2fc7b772f16f746ea6fda0471d280c0f27bfd52fa51dd78433ca5a6ca6a SHA512 7dbba8c051663a315dcf79224502d76cb4217a483a4b322f0be938e06b988e290a83b345cb8c60645aceb8283555067c2db529179782432ff77fddd538ef8b8f WHIRLPOOL 159015a5d37c7f64813a31892b615443471571e3d3bdf2d23cc4fba08819142bd4d7bf7565a9e15618ae6825f4c97cb630bb49aeb7bfbf1e5819960b99911905 diff --git a/sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.8.ebuild b/sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.8.ebuild new file mode 100644 index 000000000000..918d13196ffb --- /dev/null +++ b/sys-apps/intel-performance-counter-monitor/intel-performance-counter-monitor-2.8.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit versionator fcaps + +MY_PN="IntelPerformanceCounterMonitor" +MY_PV="V2.8" +MY_P="${MY_PN}${MY_PV}.zip" + +DESCRIPTION="Intel Performance Counter Monitor - A better way to measure CPU utilization" +HOMEPAGE="https://software.intel.com/en-us/articles/intel-performance-counter-monitor-a-better-way-to-measure-cpu-utilization" +SRC_URI="http://dev.gentoo.org/~dlan/distfiles/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=sys-devel/gcc-4:*" + +DEPEND="${RDEPEND} + sys-apps/sed" + +CONFIG_CHECK="~X86_MSR ~PERF_EVENTS" +ERROR_X86_MSR="Intel Performance Counter Monitor, requires X86_MSR to be set in kernel config." + +S="${WORKDIR}/IntelPerformanceCounterMonitor${MY_PV}" + +src_prepare() { + sed -i 's/^#CXXFLAGS += -DPCM_USE_PERF/CXXFLAGS += -DPCM_USE_PERF/' Makefile || die +} + +src_install() { + exeinto /usr/bin + newexe pcm.x pcm + newexe pcm-memory.x pcm-memory + newexe pcm-msr.x pcm-msr + newexe pcm-numa.x pcm-numa + newexe pcm-pcie.x pcm-pcie + newexe pcm-power.x pcm-power + newexe pcm-sensor.x pcm-sensor + newexe pcm-tsx.x pcm-tsx +} + +pkg_postinst() { + fcaps CAP_SYS_RAWIO usr/bin/pcm + fcaps CAP_SYS_RAWIO usr/bin/pcm-{memory,msr,numa,pcie,power,tsx} +} diff --git a/sys-apps/intel-performance-counter-monitor/metadata.xml b/sys-apps/intel-performance-counter-monitor/metadata.xml new file mode 100644 index 000000000000..c63b19ffc98e --- /dev/null +++ b/sys-apps/intel-performance-counter-monitor/metadata.xml @@ -0,0 +1,10 @@ + + + + proxy-maintainers + + brendan@horan.hk + Brendan 'undersys' Horan + Primary Maintainer, Assign bugs to him + + diff --git a/sys-apps/inxi/Manifest b/sys-apps/inxi/Manifest new file mode 100644 index 000000000000..e8c0f701c709 --- /dev/null +++ b/sys-apps/inxi/Manifest @@ -0,0 +1,2 @@ +DIST inxi-2.2.14.tar.gz 179900 SHA256 c7acc482e860864d69365c2548b2efcfd334432dc053568a4dce37d6699146e5 SHA512 0cc5c1a6d6e3611e3203ca9747477316b6171a8926c33ce4b6f2531fa9c644fa4a7de654e78958efb770fdd0fd1c7ec734bc32e98d9651e3154ab5a2aee58f2d WHIRLPOOL f74ac82c213bc5949da2602d5a38abd061889877ceb6f0e3a2e4988b205d1179e1eac8a42a2402e064773b8ca124cba544e9e37fbb1d1d16b2c4d83e58ce0728 +DIST inxi-2.2.19.tar.gz 181796 SHA256 8611d5c906234b348fc46cd287660b7676a1a5cd85bd38367dad2e0ceb2e92df SHA512 002c33d3cb13269b91732be4f8704b1022d99d46fbb8630bd6f35d8609cbcde22b650da5ff93480a2d1acedfec40b47e8154b757d1a0291eb9d6917009331659 WHIRLPOOL 323b359b0d92959b9504d5a77f6a20194604de98ce8e0bb4f9d5c20610e4787d0247e78e0d93bd01818a906ff421face76704717c4caf1f2313728b66d53aef3 diff --git a/sys-apps/inxi/inxi-2.2.14.ebuild b/sys-apps/inxi/inxi-2.2.14.ebuild new file mode 100644 index 000000000000..2e9a941885ca --- /dev/null +++ b/sys-apps/inxi/inxi-2.2.14.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A newer, better system information script for irc, administration, and system troubleshooters." +HOMEPAGE="http://code.google.com/p/inxi/" +SRC_URI="https://inxi.googlecode.com/svn/tarballs/${PN}_${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + >=app-shells/bash-3.0 + sys-apps/coreutils + sys-apps/gawk + sys-apps/grep + sys-apps/pciutils + sys-process/procps + sys-apps/sed + " + +S=${WORKDIR} + +src_install() { + dobin ${PN} + doman ${PN}.1.gz +} + +pkg_postinst() { + einfo "To view a short or full system information." + einfo "inxi -b for short information." + einfo "inxi -F for full information." + einfo "inxi also provides verbose levels '-v1 to -v7'." + einfo "inxi -h for help." +} diff --git a/sys-apps/inxi/inxi-2.2.19.ebuild b/sys-apps/inxi/inxi-2.2.19.ebuild new file mode 100644 index 000000000000..f2d23b5986a7 --- /dev/null +++ b/sys-apps/inxi/inxi-2.2.19.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="A newer, better system information script for irc, administration, and system troubleshooters." +HOMEPAGE="http://code.google.com/p/inxi/" +SRC_URI="https://inxi.googlecode.com/svn/tarballs/${PN}_${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + >=app-shells/bash-3.0 + sys-apps/coreutils + sys-apps/gawk + sys-apps/grep + sys-apps/pciutils + sys-process/procps + sys-apps/sed + " + +S=${WORKDIR} + +src_install() { + dobin ${PN} + doman ${PN}.1.gz +} + +pkg_postinst() { + einfo "To view a short or full system information." + einfo "inxi -b for short information." + einfo "inxi -F for full information." + einfo "inxi also provides verbose levels '-v1 to -v7'." + einfo "inxi -h for help." +} diff --git a/sys-apps/inxi/metadata.xml b/sys-apps/inxi/metadata.xml new file mode 100644 index 000000000000..61c052a97a13 --- /dev/null +++ b/sys-apps/inxi/metadata.xml @@ -0,0 +1,8 @@ + + + + + dastergon@gentoo.org + Pavlos Ratis + + diff --git a/sys-apps/iotools/Manifest b/sys-apps/iotools/Manifest new file mode 100644 index 000000000000..d12e009bef08 --- /dev/null +++ b/sys-apps/iotools/Manifest @@ -0,0 +1,2 @@ +DIST iotools-1.4.tar.gz 22217 SHA256 56e7348bb5b91f6b93a9b2759993545575eeb3fa5f9203a9cbb95dad9883807b SHA512 10b5f5c4183fb78900c254359b1d40d681519d4b0a79d10795c44d6f1691d73b93d02ede57cf84b5bac67e6083bc5a0de45c464caccbad8b2127a2c53cd7e94b WHIRLPOOL 808ba3b70c602ff0cdfe38ffcf7c1a3c4ab72cacf977ee8db34049159f20b034b48949f0bd70f1b27436f1183dda5cb677338f80afaf65ba1e1a0ec96a973418 +DIST iotools-1.5.tar.gz 23422 SHA256 3186ba296072f644dda881b78d77e3774b79e8cef3e828fffc947d558b08830d SHA512 d298343ee814c8b7d8404bc6af4050df730e89963a7c53798b3d251e94fd2b13e04c36e6da7ec5fd4126ea3a961be26a937910f791844e1b1d5b7dc5aa638c44 WHIRLPOOL 52d5aedf0ae4ee3257e19a6868f792e54b6ac9d79c0816c934b714811e4da0bc288a7f597098fd9ff2ed65f11cf486db1e2db76c85c0ecde0a095e09f24b2fbe diff --git a/sys-apps/iotools/files/iotools-1.4-cpuid-pic.patch b/sys-apps/iotools/files/iotools-1.4-cpuid-pic.patch new file mode 100644 index 000000000000..3fde16c6ca01 --- /dev/null +++ b/sys-apps/iotools/files/iotools-1.4-cpuid-pic.patch @@ -0,0 +1,22 @@ +http://code.google.com/p/iotools/issues/detail?id=2 + +--- a/misc.c ++++ b/misc.c +@@ -149,8 +149,16 @@ cpuid_inline(int cpu, int function, int index, uint32_t *data) + } + + asm volatile ( ++#ifdef __i386__ ++ "xchg %%ebx, %%esi;" /* save ebx (for PIC) */ ++ "cpuid;" ++ "xchg %%esi, %%ebx;" /* restore ebx & pass to caller */ ++ : "=S" (data[1]), ++#else + "cpuid\n\t" +- : "=a" (data[0]), "=b" (data[1]), "=c" (data[2]), "=d" (data[3]) ++ : "=b" (data[1]), ++#endif ++ "=a" (data[0]), "=c" (data[2]), "=d" (data[3]) + : "0" (function), "2" (index) + : "memory" + ); diff --git a/sys-apps/iotools/files/iotools-1.4-ldflags.patch b/sys-apps/iotools/files/iotools-1.4-ldflags.patch new file mode 100644 index 000000000000..242f6912b69a --- /dev/null +++ b/sys-apps/iotools/files/iotools-1.4-ldflags.patch @@ -0,0 +1,13 @@ +http://code.google.com/p/iotools/issues/detail?id=3 + +--- a/Makefile ++++ b/Makefile +@@ -44,7 +44,7 @@ OBJS=$(OBJS_TO_BUILD) + all: $(BINARY) + + $(BINARY): $(OBJS) iotools.o Makefile +- $(CC) $(CFLAGS) -o $@ iotools.o $(OBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ iotools.o $(OBJS) + + RUSER ?= root + RHOST ?= diff --git a/sys-apps/iotools/iotools-1.4.ebuild b/sys-apps/iotools/iotools-1.4.ebuild new file mode 100644 index 000000000000..2a145de079c0 --- /dev/null +++ b/sys-apps/iotools/iotools-1.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Simple commands to access hardware device registers" +HOMEPAGE="http://code.google.com/p/iotools/" +SRC_URI="http://iotools.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static make-symlinks" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cpuid-pic.patch + epatch "${FILESDIR}"/${P}-ldflags.patch + sed -i 's:-Werror::' Makefile || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + STATIC=$(usex static 1 0) \ + IOTOOLS_DEBUG="${CFLAGS}" +} + +src_install() { + dosbin iotools + + # Note: This is done manually because invoking the iotools binary + # when cross-compiling will likely fail. + local known_cmds="and btr bts busy_loop cmos_read cmos_write cpu_list cpuid io_read16 io_read32 io_read8 io_write16 io_write32 io_write8 mmio_dump mmio_read16 mmio_read32 mmio_read64 mmio_read8 mmio_write16 mmio_write32 mmio_write64 mmio_write8 not or pci_list pci_read16 pci_read32 pci_read8 pci_write16 pci_write32 pci_write8 rdmsr rdtsc runon shl shr smbus_quick smbus_read16 smbus_read8 smbus_readblock smbus_receive_byte smbus_send_byte smbus_write16 smbus_write8 smbus_writeblock wrmsr xor" + if ! tc-is-cross-compiler ; then + local check_cmds=$(echo $(./iotools --list-cmds 2>/dev/null | grep '^ ' | LC_ALL=C sort)) + if [[ ${known_cmds} != "${check_cmds:-${known_cmds}}" ]] ; then + eerror "known_cmds = ${known_cmds}" + eerror "check_cmds = ${check_cmds}" + die "need to update known_cmds cache in the ebuild" + fi + fi + + if use make-symlinks ; then + local cmd + for cmd in ${known_cmds} ; do + dosym iotools /usr/sbin/${cmd} + done + fi +} diff --git a/sys-apps/iotools/iotools-1.5.ebuild b/sys-apps/iotools/iotools-1.5.ebuild new file mode 100644 index 000000000000..6decae02b896 --- /dev/null +++ b/sys-apps/iotools/iotools-1.5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Simple commands to access hardware device registers" +HOMEPAGE="http://code.google.com/p/iotools/" +SRC_URI="http://iotools.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc x86" +IUSE="static make-symlinks" + +src_prepare() { + sed -i 's:-Werror::' Makefile || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + STATIC=$(usex static 1 0) \ + IOTOOLS_DEBUG="${CFLAGS}" +} + +src_install() { + dosbin iotools + + # Note: This is done manually because invoking the iotools binary + # when cross-compiling will likely fail. + local known_cmds="and btr bts busy_loop cmos_read cmos_write cpu_list mem_dump mem_read16 mem_read32 mem_read64 mem_read8 mem_write16 mem_write32 mem_write64 mem_write8 mmio_dump mmio_read16 mmio_read32 mmio_read64 mmio_read8 mmio_write16 mmio_write32 mmio_write64 mmio_write8 not or pci_list pci_read16 pci_read32 pci_read8 pci_write16 pci_write32 pci_write8 runon shl shr smbus_quick smbus_read16 smbus_read8 smbus_readblock smbus_receive_byte smbus_send_byte smbus_write16 smbus_write8 smbus_writeblock xor" + case ${ARCH} in + amd64|x86) known_cmds+=" cpuid io_read16 io_read32 io_read8 io_write16 io_write32 io_write8 rdmsr rdtsc wrmsr";; + esac + if ! tc-is-cross-compiler ; then + local sorted_cmds=$(echo $(printf '%s\n' ${known_cmds} | LC_ALL=C sort)) + local check_cmds=$(echo $(./iotools --list-cmds 2>/dev/null | grep '^ ' | LC_ALL=C sort)) + if [[ ${sorted_cmds} != "${check_cmds:-${sorted_cmds}}" ]] ; then + eerror "known_cmds = ${sorted_cmds}" + eerror "check_cmds = ${check_cmds}" + die "need to update known_cmds cache in the ebuild" + fi + fi + + if use make-symlinks ; then + local cmd + for cmd in ${known_cmds} ; do + dosym iotools /usr/sbin/${cmd} + done + fi +} diff --git a/sys-apps/iotools/metadata.xml b/sys-apps/iotools/metadata.xml new file mode 100644 index 000000000000..8c8fbb191c80 --- /dev/null +++ b/sys-apps/iotools/metadata.xml @@ -0,0 +1,10 @@ + + + + + vapier@gentoo.org + + + Generate sub-command symlinks to iotools -- note that a lot are simple like "xor" + + diff --git a/sys-apps/ipmitool/Manifest b/sys-apps/ipmitool/Manifest new file mode 100644 index 000000000000..ee5c41a2fac9 --- /dev/null +++ b/sys-apps/ipmitool/Manifest @@ -0,0 +1,5 @@ +DIST ipmitool-1.8.11.tar.gz 769964 SHA256 5612f4835d89a6f2cede588eef978a05d63435cf2646256300d9785d8020a13e SHA512 48093790baf2532887ac87de9b55fbe38f46f271b84e6152e6b0ba11170b29aad78dfcd42036389750edbedff325476b8366b3ea1401b97148b8bc8c1bd71e4b WHIRLPOOL 1760b2cb00e0c7bdea4b4a916ff2d7035ca0fff948741897d5aa4f05487a36c1354b156e1b5a613fd3b3b1ce73d04fd48feffb702592421478c231bd7a0cc1fd +DIST ipmitool-1.8.14.tar.gz 917886 SHA256 fe9bce4587f83fe0fd7c4d86fd3241fe41cb661ebc5c7321128d59cc295874ab SHA512 1376a0d4209e4622f9b0e27d3f3d67d552be936ded92e4e894d2b04871717a585075b54bbb9b91d62b58483ee9b94b5c64e2ecdfcef3c3f818fa6f035fb34216 WHIRLPOOL a16d965218829f1a1b29133e8722272d6062698c546f96de94385b3a62aef5d886e4890ad48ed43f04531a18d806a2a5a798f50ce9dadcb87ba17b2902cffdce +DIST ipmitool_1.8.11-5ubuntu1.diff.gz 38287 SHA256 b31584ae6394e30b56eff4d4441c344c7ecb6d7a79a5846fd388544f28223775 SHA512 b54c19943bbed0d88831bd3821d05a650d151ddc7aca5cd7c5513bd07361a084595fcf2fa1035c784163d13fbbb9ce4496de478c4b4f730c31b4e2b94933584c WHIRLPOOL fa3c249074c328a8b8dd72f7744181e29ff01669c2226d24f781afffa3ca20301da87860f234eaf445fc74e50d9b149ad107aef1cf801717f33cc342ee037358 +DIST ipmitool_1.8.14-2.debian.tar.xz 14060 SHA256 be038241a77e9bf39e6b04494ba964682341e8de9b775bc98649387056fdf9b0 SHA512 9f4a6333461128d7c35317e2fbfd2061aef526cebffb3ee7ebc1273ca229811687ed469bfbcdc0855d575f5c4084da0cf225fd71380ca682531c23b976232e9f WHIRLPOOL 64b6aad18862288cc98acce5f552b251f22d38371822c5b027d7699468d56d5257235288a29e13c1fc475a5b87eb6a1d13bb77ff769f10e00f0e1c40be4100ec +DIST ipmitool_1.8.14-4.debian.tar.xz 16452 SHA256 24b57ffec3ca1bda69f82b006a12a3ccd1e643b2e0250c0a670218e1e76a54dc SHA512 f7b464d9167e2c92b9536fee1e0cb66da11f6cdc6f86d7adb3ad5c239f3c1850663ddfd9571561502904daff52b3a57b633c389de697da42e7bfafe8c67a60a9 WHIRLPOOL a559a3c1771fc4e33b817977c8eb23372e27a3d2c1bcbc5eefd3e714bfa0da82d05e597dbb2afc8cbf52b6b5ffcde4273505cad5fedc4b8893809d691fa21fc5 diff --git a/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd b/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd new file mode 100644 index 000000000000..e6a355877b41 --- /dev/null +++ b/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd @@ -0,0 +1,23 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +# /etc/conf.d/ipmievd + +# Interfaces: +# open Linux OpenIPMI Interface +# imb Intel IMB Interface +# bmc IPMI v2.0 BMC interface +# lan IPMI v1.5 LAN Interface +# lanplus IPMI v2.0 RMCP+ LAN Interface + +INTERFACE="open" + +# Commands: +# open Use OpenIPMI for asyncronous notification of events +# sel Poll SEL for notification of events + +COMMAND="open" + +# Options. + +OPTIONS="" diff --git a/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd b/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd new file mode 100644 index 000000000000..463024f33111 --- /dev/null +++ b/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +# /etc/init.d/ipmievd + +depend() { + use logger +} +PN="ipmievd" + +start() { + /sbin/modprobe -sq ipmi_msghandler + /sbin/modprobe -sq ipmi_devintf + /sbin/modprobe -sq ipmi_si + ebegin "Starting ${PN}" + start-stop-daemon --start --pidfile /var/run/${PN}.pid0 --exec /usr/sbin/${PN} -- -I ${INTERFACE} ${OPTIONS} ${COMMAND} + eend $? +} + +stop() { + ebegin "Stopping ${PN}" + start-stop-daemon --stop --pidfile /var/run/${PN}.pid0 + eend $? +} diff --git a/sys-apps/ipmitool/ipmitool-1.8.11-r1.ebuild b/sys-apps/ipmitool/ipmitool-1.8.11-r1.ebuild new file mode 100644 index 000000000000..7435501240d9 --- /dev/null +++ b/sys-apps/ipmitool/ipmitool-1.8.11-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="Utility for controlling IPMI enabled devices" +HOMEPAGE="http://ipmitool.sf.net/" +DEBIAN_PR="5ubuntu1" +DEBIAN_P="${P/-/_}" +DEBIAN_PF="${DEBIAN_P}-${DEBIAN_PR}" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + https://launchpad.net/ubuntu/+archive/primary/+files/${DEBIAN_PF}.diff.gz" +#IUSE="freeipmi openipmi" +IUSE="openipmi" +SLOT="0" +KEYWORDS="amd64 hppa ~ia64 ppc x86" +LICENSE="BSD" + +RDEPEND="dev-libs/openssl" +DEPEND="${RDEPEND} + openipmi? ( sys-libs/openipmi ) + virtual/os-headers" + #freeipmi? ( sys-libs/freeipmi ) +# ipmitool CAN build against || ( sys-libs/openipmi sys-libs/freeipmi ) +# but it doesn't actually need either. + +src_prepare() { + epatch "${DISTDIR}"/${DEBIAN_PF}.diff.gz + for p in $(cat debian/patches/series) ; do + epatch debian/patches/$p + done +} + +src_configure() { + # - LIPMI and BMC are the Solaris libs + # - OpenIPMI is unconditionally enabled in the configure as there is compat + # code that is used if the library itself is not available + # FreeIPMI does build now, but is disabled until the other arches keyword it + # `use_enable freeipmi intf-free` \ + econf \ + --enable-ipmievd \ + --enable-ipmishell \ + --enable-intf-lan \ + --enable-intf-lanplus \ + --enable-intf-open \ + --disable-intf-free \ + --disable-intf-imb \ + --disable-intf-lipmi \ + --disable-intf-bmc \ + --disable-internal-md5 \ + --with-kerneldir=/usr --bindir=/usr/sbin \ + || die "econf failed" + # Fix linux/ipmi.h to compile properly. This is a hack since it doesn't + # include the below file to define some things. + echo "#include " >>config.h +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" PACKAGE="${PF}" install || die "emake install failed" + + into /usr + dosbin contrib/bmclanconf + rm -f "${D}"/usr/share/doc/${PF}/COPYING + docinto contrib + cd "${S}"/contrib + dodoc collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh README + + newinitd "${FILESDIR}"/${PN}-1.8.9-ipmievd.initd ipmievd + newconfd "${FILESDIR}"/${PN}-1.8.9-ipmievd.confd ipmievd +} diff --git a/sys-apps/ipmitool/ipmitool-1.8.11.ebuild b/sys-apps/ipmitool/ipmitool-1.8.11.ebuild new file mode 100644 index 000000000000..6aa39529e8a6 --- /dev/null +++ b/sys-apps/ipmitool/ipmitool-1.8.11.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Utility for controlling IPMI enabled devices" +HOMEPAGE="http://ipmitool.sf.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +#IUSE="freeipmi openipmi" +IUSE="openipmi" +SLOT="0" +KEYWORDS="amd64 ~ia64 ppc x86" +LICENSE="BSD" + +RDEPEND="dev-libs/openssl" +DEPEND="${RDEPEND} + openipmi? ( sys-libs/openipmi ) + virtual/os-headers" + #freeipmi? ( sys-libs/freeipmi ) +# ipmitool CAN build against || ( sys-libs/openipmi sys-libs/freeipmi ) +# but it doesn't actually need either. + +src_compile() { + # - LIPMI and BMC are the Solaris libs + # - OpenIPMI is unconditionally enabled in the configure as there is compat + # code that is used if the library itself is not available + # FreeIPMI does build now, but is disabled until the other arches keyword it + # `use_enable freeipmi intf-free` \ + econf \ + --enable-ipmievd \ + --enable-ipmishell \ + --enable-intf-lan \ + --enable-intf-lanplus \ + --enable-intf-open \ + --disable-intf-free \ + --disable-intf-imb \ + --disable-intf-lipmi \ + --disable-intf-bmc \ + --disable-internal-md5 \ + --with-kerneldir=/usr --bindir=/usr/sbin \ + || die "econf failed" + # Fix linux/ipmi.h to compile properly. This is a hack since it doesn't + # include the below file to define some things. + echo "#include " >>config.h + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" PACKAGE="${PF}" install || die "emake install failed" + + into /usr + dosbin contrib/bmclanconf + rm -f "${D}"/usr/share/doc/${PF}/COPYING + docinto contrib + cd "${S}"/contrib + dodoc collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh README + prepalldocs + + newinitd "${FILESDIR}"/${PN}-1.8.9-ipmievd.initd ipmievd + newconfd "${FILESDIR}"/${PN}-1.8.9-ipmievd.confd ipmievd +} diff --git a/sys-apps/ipmitool/ipmitool-1.8.14-r1.ebuild b/sys-apps/ipmitool/ipmitool-1.8.14-r1.ebuild new file mode 100644 index 000000000000..ac2258e2dc1a --- /dev/null +++ b/sys-apps/ipmitool/ipmitool-1.8.14-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="Utility for controlling IPMI enabled devices." +HOMEPAGE="http://ipmitool.sf.net/" +DEBIAN_PR="4.debian" +DEBIAN_P="${P/-/_}" +DEBIAN_PF="${DEBIAN_P}-${DEBIAN_PR}" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + https://launchpad.net/ubuntu/+archive/primary/+files/${DEBIAN_PF}.tar.xz" +#IUSE="freeipmi openipmi status" +IUSE="openipmi static" +SLOT="0" +KEYWORDS="amd64 hppa ~ia64 ppc x86" +LICENSE="BSD" + +RDEPEND="dev-libs/openssl" +DEPEND="${RDEPEND} + openipmi? ( sys-libs/openipmi ) + virtual/os-headers" + #freeipmi? ( sys-libs/freeipmi ) +# ipmitool CAN build against || ( sys-libs/openipmi sys-libs/freeipmi ) +# but it doesn't actually need either. + +src_prepare() { + [ -d "${S}"/debian ] && mv "${S}"/debian{,.package} + ln -s "${WORKDIR}"/debian "${S}" + for p in $(cat debian/patches/series) ; do + epatch debian/patches/$p + done +} + +src_configure() { + # - LIPMI and BMC are the Solaris libs + # - OpenIPMI is unconditionally enabled in the configure as there is compat + # code that is used if the library itself is not available + # FreeIPMI does build now, but is disabled until the other arches keyword it + # `use_enable freeipmi intf-free` \ + # --enable-ipmievd is now unconditional + econf \ + $(use_enable static) \ + --enable-ipmishell \ + --enable-intf-lan \ + --enable-intf-lanplus \ + --enable-intf-open \ + --enable-intf-serial \ + --disable-intf-bmc \ + --disable-intf-dummy \ + --disable-intf-free \ + --disable-intf-imb \ + --disable-intf-lipmi \ + --disable-internal-md5 \ + --with-kerneldir=/usr --bindir=/usr/sbin \ + || die "econf failed" + # Fix linux/ipmi.h to compile properly. This is a hack since it doesn't + # include the below file to define some things. + echo "#include " >>config.h +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" PACKAGE="${PF}" install || die "emake install failed" + + into /usr + dosbin contrib/bmclanconf + rm -f "${D}"/usr/share/doc/${PF}/COPYING + docinto contrib + cd "${S}"/contrib + dodoc collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh README + + newinitd "${FILESDIR}"/${PN}-1.8.9-ipmievd.initd ipmievd + newconfd "${FILESDIR}"/${PN}-1.8.9-ipmievd.confd ipmievd + # TODO: init script for contrib/bmc-snmp-proxy + # TODO: contrib/exchange-bmc-os-info +} diff --git a/sys-apps/ipmitool/ipmitool-1.8.14.ebuild b/sys-apps/ipmitool/ipmitool-1.8.14.ebuild new file mode 100644 index 000000000000..8f079fb631d8 --- /dev/null +++ b/sys-apps/ipmitool/ipmitool-1.8.14.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="Utility for controlling IPMI enabled devices" +HOMEPAGE="http://ipmitool.sf.net/" +DEBIAN_PR="2.debian" +DEBIAN_P="${P/-/_}" +DEBIAN_PF="${DEBIAN_P}-${DEBIAN_PR}" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + https://launchpad.net/ubuntu/+archive/primary/+files/${DEBIAN_PF}.tar.xz" +#IUSE="freeipmi openipmi" +IUSE="openipmi" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~x86" +LICENSE="BSD" + +RDEPEND="dev-libs/openssl" +DEPEND="${RDEPEND} + openipmi? ( sys-libs/openipmi ) + virtual/os-headers" + #freeipmi? ( sys-libs/freeipmi ) +# ipmitool CAN build against || ( sys-libs/openipmi sys-libs/freeipmi ) +# but it doesn't actually need either. + +src_prepare() { + [ -d "${S}"/debian ] && mv "${S}"/debian{,.package} + ln -s "${WORKDIR}"/debian "${S}" + for p in $(cat debian/patches/series) ; do + epatch debian/patches/$p + done +} + +src_configure() { + # - LIPMI and BMC are the Solaris libs + # - OpenIPMI is unconditionally enabled in the configure as there is compat + # code that is used if the library itself is not available + # FreeIPMI does build now, but is disabled until the other arches keyword it + # `use_enable freeipmi intf-free` \ + # --enable-ipmievd is now unconditional + econf \ + --enable-ipmishell \ + --enable-intf-lan \ + --enable-intf-lanplus \ + --enable-intf-open \ + --enable-intf-serial \ + --disable-intf-bmc \ + --disable-intf-dummy \ + --disable-intf-free \ + --disable-intf-imb \ + --disable-intf-lipmi \ + --disable-internal-md5 \ + --with-kerneldir=/usr --bindir=/usr/sbin \ + || die "econf failed" + # Fix linux/ipmi.h to compile properly. This is a hack since it doesn't + # include the below file to define some things. + echo "#include " >>config.h +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" PACKAGE="${PF}" install || die "emake install failed" + + into /usr + dosbin contrib/bmclanconf + rm -f "${D}"/usr/share/doc/${PF}/COPYING + docinto contrib + cd "${S}"/contrib + dodoc collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh README + + newinitd "${FILESDIR}"/${PN}-1.8.9-ipmievd.initd ipmievd + newconfd "${FILESDIR}"/${PN}-1.8.9-ipmievd.confd ipmievd + # TODO: init script for contrib/bmc-snmp-proxy + # TODO: contrib/exchange-bmc-os-info +} diff --git a/sys-apps/ipmitool/metadata.xml b/sys-apps/ipmitool/metadata.xml new file mode 100644 index 000000000000..b8bcac27255f --- /dev/null +++ b/sys-apps/ipmitool/metadata.xml @@ -0,0 +1,13 @@ + + + + sysadmin + + Use the system OpenIPMI implementation. + + + + ipmitool + ubuntu + + diff --git a/sys-apps/ipmiutil/Manifest b/sys-apps/ipmiutil/Manifest new file mode 100644 index 000000000000..a1480d8a317a --- /dev/null +++ b/sys-apps/ipmiutil/Manifest @@ -0,0 +1,4 @@ +DIST ipmiutil-2.7.7.tar.gz 1506067 SHA256 f899f04106c6098db3acadbbf19ee9c25a44d5c06b865f3eee3d94c6246075aa SHA512 1f01c00ea04bf1f736a6fb795a535eaba91d700488474ed8f65d521cbbf992dc980650f38cc542191b5e37e6011717e62158629e3b51a8dd6f73ac2959627f6e WHIRLPOOL 75eb9efa939a6263068589626c388d69ccc1f335084c0b20aad1f2e13357cecf99e94d9a5fa7af9c7f25d0553222c4d6bed0f167c239d1d7adf09341c58895ec +DIST ipmiutil-2.8.2.tar.gz 1591876 SHA256 16f2181745030ae1e7110bf0c780760d4b2de0a47f9945c9a52314e4ef520988 SHA512 8af7e81065859eadb15530aed7a533fcb16e46d4adfa57f281bf0aa057b8e2bd520999a73f31fe3fc7f1eb2b617483078ad368772c89bbc30941aadb6be0ecc8 WHIRLPOOL 2343cde4c6c7525bcfd4a9c5454452f7d15f9ccaacf435c6f236b9f026f71319290ff0704cfde423be0609982bbfb5c850b310e7aefbe70dead609f68822ce86 +DIST ipmiutil-2.8.5.tar.gz 1615967 SHA256 6846e6621b9df23b1ed37662c075381dbb082f3e719803c9ef8784dd3154439c SHA512 42a0c50c88bfcfd49da0a1dc4b603eaf07eff041f2401a31421ea8e880b19cfb6ff3f33ceaf5ef044e16e58236390ff32420139ae683f9633b1c06631bc799c3 WHIRLPOOL 6ba37e1c59e28acca89f029ccfb179b5d285d1913930a0670a1c78ebd2f23e4e52910b75cb860d3f704fc9affbfa35ad0d4203a1b32794a957fbd13291e14f66 +DIST ipmiutil-2.9.3.tar.gz 1685718 SHA256 476c23997eba136553bfcbf3606337ffe020671aa8830695ff9d172bc9ed9eb7 SHA512 86d543dbc9ae684e288330e92f8f9b289f2c57311b10de0f2be0797ae7b939cbcd3c2c62f7c80eae5cb89d5ff2d721891619c18dff40ef03b9c870cd26bf6338 WHIRLPOOL 3231fb87e7a608924cb6613688b66292af3a767d3659a0611f22820ed872ec25551a40d74548b5221cc4f588f998c79c3d8cc18c7f4b7b40927139d073499460 diff --git a/sys-apps/ipmiutil/files/ipmiutil-2.9.3-flags.patch b/sys-apps/ipmiutil/files/ipmiutil-2.9.3-flags.patch new file mode 100644 index 000000000000..25572ffa1b87 --- /dev/null +++ b/sys-apps/ipmiutil/files/ipmiutil-2.9.3-flags.patch @@ -0,0 +1,20 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -145,7 +145,7 @@ + LANPLUS_CRYPTO="" + LANPLUS_SAM="no" + LD_SAMX="" +- CFLAGS="-O2" ++# CFLAGS="-O2" + SUBDIR_S="doc scripts util" + if test "x$cross_compiling" = "xyes"; then + # cross-compiling, so link with -static (e.g. Android ARM) +@@ -270,7 +270,7 @@ + fi + rm -f $tmpc $tmpo >/dev/null 2>&1 + echo $ECHO_N "checking compile fortify flags ... $ECHO_C" +- cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" ++# cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" + echo "int main() { return(1); }" >$tmpc + gcc -o $tmpo -c $cfhard $tmpc >/dev/null 2>&1 + if test $? -ne 0 ; then diff --git a/sys-apps/ipmiutil/files/ipmiutil-2.9.3-tmpdir.patch b/sys-apps/ipmiutil/files/ipmiutil-2.9.3-tmpdir.patch new file mode 100644 index 000000000000..73004f77aabb --- /dev/null +++ b/sys-apps/ipmiutil/files/ipmiutil-2.9.3-tmpdir.patch @@ -0,0 +1,11 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -5,7 +5,7 @@ + BUILDDIR = $(PKGDIR)/BUILD + RSPEC = doc/$(PACKAGE).spec + PNAME = $(PACKAGE)-$(VERSION) +-TMPDIR = /var/tmp/$(PNAME) ++#TMPDIR = /var/tmp/$(PNAME) + BDIR = $(TMPDIR)-1-root + RPMB = rpmbuild + # $(RPMB) -bb --buildroot $(BDIR) $(RSPEC) diff --git a/sys-apps/ipmiutil/ipmiutil-2.7.7.ebuild b/sys-apps/ipmiutil/ipmiutil-2.7.7.ebuild new file mode 100644 index 000000000000..132bee1d68eb --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-2.7.7.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools + +DESCRIPTION="IPMI Management Utilities" +HOMEPAGE="http://ipmiutil.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-libs/openssl:0" +DEPEND="${RDEPEND} + virtual/os-headers" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_prepare() { + eautoreconf +} + +src_install() { + emake \ + DESTDIR="${D}" \ + initto="${D}"/usr/share/doc/${PF}/examples \ + install + + dodoc AUTHORS ChangeLog NEWS README TODO doc/UserGuide +} diff --git a/sys-apps/ipmiutil/ipmiutil-2.8.2.ebuild b/sys-apps/ipmiutil/ipmiutil-2.8.2.ebuild new file mode 100644 index 000000000000..5e73f00a3341 --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-2.8.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools systemd + +DESCRIPTION="IPMI Management Utilities" +HOMEPAGE="http://ipmiutil.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-libs/openssl-1:0" +DEPEND="${RDEPEND} + virtual/os-headers" + +MAKEOPTS="${MAKEOPTS} -j1" + +DOCS="AUTHORS ChangeLog NEWS README TODO doc/UserGuide" + +src_prepare() { + eautoreconf +} + +src_configure() { + econf --disable-systemd --enable-sha256 +} + +src_install() { + emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_unitdir)" install + rm -rf "${ED}"/etc/init.d # These are only for Fedora +} diff --git a/sys-apps/ipmiutil/ipmiutil-2.8.5.ebuild b/sys-apps/ipmiutil/ipmiutil-2.8.5.ebuild new file mode 100644 index 000000000000..b308286c844f --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-2.8.5.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools systemd + +DESCRIPTION="IPMI Management Utilities" +HOMEPAGE="http://ipmiutil.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~hppa x86" +IUSE="" + +RDEPEND=">=dev-libs/openssl-1:0" +DEPEND="${RDEPEND} + virtual/os-headers" + +src_prepare() { + eautoreconf +} + +src_configure() { + econf --disable-systemd --enable-sha256 +} + +src_install() { + emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_unitdir)" install + dodoc -r AUTHORS ChangeLog NEWS README TODO doc/UserGuide + + rm -r "${ED}"/etc/init.d || die 'remove initscripts failed' # These are only for Fedora +} diff --git a/sys-apps/ipmiutil/ipmiutil-2.9.3.ebuild b/sys-apps/ipmiutil/ipmiutil-2.9.3.ebuild new file mode 100644 index 000000000000..6ff0038441f7 --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-2.9.3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools eutils systemd + +DESCRIPTION="IPMI Management Utilities" +HOMEPAGE="http://ipmiutil.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" + +RDEPEND=">=dev-libs/openssl-1:0" +DEPEND="${RDEPEND} + virtual/os-headers" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch + epatch "${FILESDIR}"/${P}-tmpdir.patch + + sed -i -e 's|-O2 -g|$(CFLAGS)|g;s|-g -O2|$(CFLAGS)|g' util/Makefile.am* || die + + eautoreconf +} + +src_configure() { + econf --disable-systemd --enable-sha256 +} + +src_install() { + emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_unitdir)" install + dodoc -r AUTHORS ChangeLog NEWS README TODO doc/UserGuide + + rm -r "${ED}"/etc/init.d || die 'remove initscripts failed' # These are only for Fedora +} diff --git a/sys-apps/ipmiutil/metadata.xml b/sys-apps/ipmiutil/metadata.xml new file mode 100644 index 000000000000..80daff455531 --- /dev/null +++ b/sys-apps/ipmiutil/metadata.xml @@ -0,0 +1,8 @@ + + + + sysadmin + + ipmiutil + + diff --git a/sys-apps/iproute2/Manifest b/sys-apps/iproute2/Manifest new file mode 100644 index 000000000000..5593e6572192 --- /dev/null +++ b/sys-apps/iproute2/Manifest @@ -0,0 +1,8 @@ +DIST iproute2-2.6.38.tar.bz2 390166 SHA256 47629a4f547f21d94d8e823a87dd8e13042cadecefea2e2dc433e4134fa9aec4 SHA512 b3a0c15c41184554da1b7f2521f5f0586ae0df1a62899afe2514d4adb93f05ecfd10fc964e027ec8f83a990586f5858b0c9fb24ea8c78477ec6c7c51593c54bd WHIRLPOOL bbd3a415c8396adf1ab63f2f3c91591c65809f8da12f6333f6ea66997cbca428ec2339759f53d0bcc41a1e9c85718e598efde0206a000d394560cacc9a78e8cc +DIST iproute2-3.17.0.tar.xz 440188 SHA256 09e406636e7598e46d5d4f7b928bf5db57049d65dbeb9a496005957ee16f6000 SHA512 1bc261526b0c72fe79b792f0ae497420ac66641dc24a067c903275c63b51b257f540ca6fc6a3d60f93f416c5111841ea53ca28b038e51217a24783171ee4dacd WHIRLPOOL 58bd417385272140260bbd56d379881f7218e789580b874dc9bed06931097a67286f5a63966a730362079aa83903c965dce84575283d656d47a665edbb9599c4 +DIST iproute2-3.19.0.tar.xz 455004 SHA256 e2f9f8c36e166f2ba6c0e1e7a9ad84cdf7c1615b93df49dac44563d7b57fd7b0 SHA512 fc533b6a526cfda234f043ac25302a3206a81ab2a740640b997b6bfb22e6f94ddc21b704191a358ea8721a327ba785e0224a4b4129111ef5008b4003379c3706 WHIRLPOOL 6a0aa1a948286d7dcb3663d787167c27760d756385295bf0ca631920aed50fbd984c19204247097116ef0d4e293c3c8dbe13b0b44c6ec83e7815a7461293c89f +DIST iproute2-3.3.0.tar.bz2 416353 SHA256 f328ec01bac64854f477b9440b0bbeae91895b4ba266821597ceac6bd1501c3b SHA512 825b473e3fb17cf724bc389bb99dabbdabf9c5bfee89890f723027f3412a82a9c7f77ac8b792a218ff50dd552e31105206ccff1897b68fe201d83e5764032feb WHIRLPOOL 7827cb8d447eb86d89dc14dedecb94d7e1a9fc9380ee2130d28047f834f5b96045226409448a8f159501f9bd20b1eebe7c32ae17d5687c4c071459ae9c807ebc +DIST iproute2-3.8.0.tar.xz 407608 SHA256 579145749f1aaf60e7c7a5de24b7f00fa2200a961094733c792b4ff139181e4f SHA512 0d93070044f573055a7cc58bd006e476f5b0fcb75cb5d49a37417aa7583e637a92e460947434cef9b9449267e4529c655a23b5ed3d549a2aba128148cb8d4ade WHIRLPOOL bfb29c34953f205f7c801a86a38f58d9352b716504649e61665ced6dd48557291412de5fd8987dbab44fbd397dab4a6b55d6c371c7cbaaea3d6e29269df115df +DIST iproute2-4.0.0.tar.xz 459364 SHA256 5cd06eb1050b858b308b65705725042bb566fd261135e35a73dafb48cd632618 SHA512 8e0587ed484a9697af99b4f37b460fddd28136b3c19898a11809b1e8ca9a75a18dcc83bc512f5b74361e6128732e69a3e66b3a62c38a5ae5f13c3e18af186be4 WHIRLPOOL 6abdf2b4587abd7a73d2b7692a4bb478ac379dc3a27f564ad78e34f25f06ae5dd9e0e4873c6510d30767a398375dcdcd2da777412c725885e0c3d4bd89c71a9b +DIST iproute2-4.1.0.tar.xz 495312 SHA256 d1326696c6a8f81ba66aaf48d858005cf280c81d3284d8d2c99748e3d0746146 SHA512 81faa393a2c7bf5286d7b54817646fb3763d66fbda8b6902e137061827fa1d54d58e9e4fb4f8415222f5adc1b0bec77b6ecf94d1b7cc11834283593208fb4209 WHIRLPOOL 938f0f68d74c8c1bef1be005b55b1b652bf74e23671d6fde493819058e1464c0f3931d69d7dbc398f0ed99ce42fa2bcd80c5207fabfdad78389e4e19b8051112 +DIST iproute2-4.1.1.tar.xz 496388 SHA256 73077a989efb934450bd655cbd9aaddaa747cb696c64d0c9a3323768a6a8e66f SHA512 af2e4021faf931d17a67c242c66b4f6a6ce93a69cee5408dd3951d488da511c99d693534e91d0a317bd82dfdcb6a543605cecf2514d512004639db8d17afb93e WHIRLPOOL 24542b56275675609aaad69ca68e89145d4da84ddb2429ae546179a249bcc1213f89168673657966122e01e992763fec053c118fbd69b7db1677ad7be97397b6 diff --git a/sys-apps/iproute2/files/iproute2-2.6.26-ldflags.patch b/sys-apps/iproute2/files/iproute2-2.6.26-ldflags.patch new file mode 100644 index 000000000000..39e07995da5c --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.26-ldflags.patch @@ -0,0 +1,15 @@ +respect env LDFLAGS + +http://bugs.gentoo.org/236861 + +--- tc/Makefile ++++ tc/Makefile +@@ -83,7 +83,7 @@ + rm -f emp_ematch.yacc.output + + q_atm.so: q_atm.c +- $(CC) $(CFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm + + %.yacc.c: %.y + $(YACC) $(YACCFLAGS) -o $@ $< diff --git a/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch b/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch new file mode 100644 index 000000000000..8eb32280986e --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch @@ -0,0 +1,224 @@ +https://bugs.gentoo.org/274973 + +If the routing table that I wanna flush has 60 entries or more, "ip route flush +table foo" fails with the following error: + Failed to send flush request: Success + Flush terminated + +Patch by Alin Năstac + +--- iproute2-2.6.29-1/ip/ipaddress.c ++++ iproute2-2.6.29-1/ip/ipaddress.c +@@ -37,6 +37,8 @@ + + #define MAX_ROUNDS 10 + ++static struct rtnl_handle rth_flush = { .fd = -1 }; ++ + static struct + { + int ifindex; +@@ -339,7 +341,7 @@ + + static int flush_update(void) + { +- if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { ++ if (rtnl_send_check(&rth_flush, filter.flushb, filter.flushp) < 0) { + perror("Failed to send flush request"); + return -1; + } +@@ -697,6 +699,9 @@ + filter.flushp = 0; + filter.flushe = sizeof(flushb); + ++ if (rtnl_open(&rth_flush, 0) < 0) ++ return 1; ++ + while (round < MAX_ROUNDS) { + if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) { + perror("Cannot send dump request"); +@@ -715,18 +720,20 @@ + printf("*** Flush is complete after %d round%s ***\n", round, round>1?"s":""); + } + fflush(stdout); ++ rtnl_close(&rth_flush); + return 0; + } + round++; + if (flush_update() < 0) +- return 1; ++ break; + + if (show_stats) { + printf("\n*** Round %d, deleting %d addresses ***\n", round, filter.flushed); + fflush(stdout); + } + } +- fprintf(stderr, "*** Flush remains incomplete after %d rounds. ***\n", MAX_ROUNDS); fflush(stderr); ++ fprintf(stderr, "*** Flush remains incomplete after %d rounds. ***\n", round); fflush(stderr); ++ rtnl_close(&rth_flush); + return 1; + } + +--- iproute2-2.6.29-1/ip/ipneigh.c ++++ iproute2-2.6.29-1/ip/ipneigh.c +@@ -32,6 +32,8 @@ + #define NUD_VALID (NUD_PERMANENT|NUD_NOARP|NUD_REACHABLE|NUD_PROBE|NUD_STALE|NUD_DELAY) + #define MAX_ROUNDS 10 + ++static struct rtnl_handle rth_flush = { .fd = -1 }; ++ + static struct + { + int family; +@@ -87,7 +89,7 @@ + + static int flush_update(void) + { +- if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { ++ if (rtnl_send_check(&rth_flush, filter.flushb, filter.flushp) < 0) { + perror("Failed to send flush request"); + return -1; + } +@@ -391,6 +393,9 @@ + filter.flushe = sizeof(flushb); + filter.state &= ~NUD_FAILED; + ++ if (rtnl_open(&rth_flush, 0) < 0) ++ return 1; ++ + while (round < MAX_ROUNDS) { + if (rtnl_wilddump_request(&rth, filter.family, RTM_GETNEIGH) < 0) { + perror("Cannot send dump request"); +@@ -409,18 +414,20 @@ + printf("*** Flush is complete after %d round%s ***\n", round, round>1?"s":""); + } + fflush(stdout); ++ rtnl_close(&rth_flush); + return 0; + } + round++; + if (flush_update() < 0) +- exit(1); ++ break; ++ + if (show_stats) { + printf("\n*** Round %d, deleting %d entries ***\n", round, filter.flushed); + fflush(stdout); + } + } +- printf("*** Flush not complete bailing out after %d rounds\n", +- MAX_ROUNDS); ++ fprintf(stderr, "*** Flush remains incomplete after %d rounds. ***\n", round); fflush(stderr); ++ rtnl_close(&rth_flush); + return 1; + } + +--- iproute2-2.6.29-1/ip/iproute.c ++++ iproute2-2.6.29-1/ip/iproute.c +@@ -37,6 +37,7 @@ + #define RTAX_RTTVAR RTAX_HOPS + #endif + ++static struct rtnl_handle rth_flush = { .fd = -1 }; + + static const char *mx_names[RTAX_MAX+1] = { + [RTAX_MTU] = "mtu", +@@ -112,7 +113,7 @@ + + static int flush_update(void) + { +- if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) { ++ if (rtnl_send_check(&rth_flush, filter.flushb, filter.flushp) < 0) { + perror("Failed to send flush request"); + return -1; + } +@@ -1210,6 +1211,9 @@ + filter.flushp = 0; + filter.flushe = sizeof(flushb); + ++ if (rtnl_open(&rth_flush, 0) < 0) ++ return 1; ++ + for (;;) { + if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) { + perror("Cannot send dump request"); +@@ -1228,6 +1232,7 @@ + printf("*** Flush is complete after %d round%s ***\n", round, round>1?"s":""); + } + fflush(stdout); ++ rtnl_close(&rth_flush); + return 0; + } + round++; +--- iproute2-2.6.29-1/ip/xfrm_policy.c ++++ iproute2-2.6.29-1/ip/xfrm_policy.c +@@ -756,11 +756,15 @@ + struct xfrm_buffer xb; + char buf[NLMSG_DELETEALL_BUF_SIZE]; + int i; ++ struct rtnl_handle rth2; + + xb.buf = buf; + xb.size = sizeof(buf); + xb.rth = &rth; + ++ if (rtnl_open(&rth2, 0) < 0) ++ exit(1); ++ + for (i = 0; ; i++) { + xb.offset = 0; + xb.nlmsg_count = 0; +@@ -783,7 +787,7 @@ + break; + } + +- if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) { ++ if (rtnl_send_check(&rth2, xb.buf, xb.offset) < 0) { + perror("Failed to send delete-all request"); + exit(1); + } +@@ -793,6 +797,8 @@ + xb.offset = 0; + xb.nlmsg_count = 0; + } ++ ++ rtnl_close(&rth2); + } else { + if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETPOLICY) < 0) { + perror("Cannot send dump request"); +--- iproute2-2.6.29-1/ip/xfrm_state.c ++++ iproute2-2.6.29-1/ip/xfrm_state.c +@@ -924,11 +924,15 @@ + struct xfrm_buffer xb; + char buf[NLMSG_DELETEALL_BUF_SIZE]; + int i; ++ struct rtnl_handle rth2; + + xb.buf = buf; + xb.size = sizeof(buf); + xb.rth = &rth; + ++ if (rtnl_open(&rth2, 0) < 0) ++ exit(1); ++ + for (i = 0; ; i++) { + xb.offset = 0; + xb.nlmsg_count = 0; +@@ -951,7 +955,7 @@ + break; + } + +- if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) { ++ if (rtnl_send_check(&rth2, xb.buf, xb.offset) < 0) { + perror("Failed to send delete-all request\n"); + exit(1); + } +@@ -962,6 +966,7 @@ + xb.nlmsg_count = 0; + } + ++ rtnl_close(&rth2); + } else { + if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETSA) < 0) { + perror("Cannot send dump request"); diff --git a/sys-apps/iproute2/files/iproute2-2.6.29.1-hfsc.patch b/sys-apps/iproute2/files/iproute2-2.6.29.1-hfsc.patch new file mode 100644 index 000000000000..4f39ded905c1 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.29.1-hfsc.patch @@ -0,0 +1,885 @@ +http://bugs.gentoo.org/291907 + +This patch was merged from two patches extracted from this thread: +http://markmail.org/thread/qkd76gpdgefpjlfn + +Patch #1. +This patch adds detailed documentation for HFSC scheduler. It roughly +follows HFSC paper, but tries to not rely too much on math side of things. +Post-paper/Linux specific subjects (timer resolution, ul service curve, etc.) +are also discussed. + + +I've read it many times over, but it's a lengthy chunk of text - so try +to be understanding in case I made some mistakes. + + +tc-hfsc(7): explains algorithm in detail (very long) +tc-hfsc(8): explains command line options briefly +tc(8): adds references to new man pages +Makefile: adds man7 directory to install target +q_hfsc.c: minimal help text changes, consistency with tc-hfsc(8) + + +Patch #2. +This adds generic explanation about size tables. + + +tc-stab(8): Commandline + details +One thing I'm not sure, is whenever any layer2 data is included in case +of shaping directly on ppp interface (see the bottom of the man page). + + +tc_stab.c: small fixes to commandline help + + +tc_core.c: +As kernel part of things relies on cell align which is always set to -1, +I also added it to userspace computation stage. This way if someone +specified e.g. 2048 and 512 for mtu and tsize respectively, one wouldn't +end with tsize supporting mtu 4096 suddenly, New default mtu is also set +to 2048 (disregarding weirdness of setting mtu to such values). + + +Unless I missed something, this is harmless and feels cleaner, but if it's +not allowed, documentation will have to be changed back to 2047 + extra +explanation as well. + +--- iproute2/Makefile ++++ iproute2-new/Makefile +@@ -56,6 +56,8 @@ + install -m 0644 $(shell find etc/iproute2 -maxdepth 1 -type f) $(DESTDIR)$(CONFDIR) + install -m 0755 -d $(DESTDIR)$(MANDIR)/man8 + install -m 0644 $(shell find man/man8 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man8 ++ install -m 0755 -d $(DESTDIR)$(MANDIR)/man7 ++ install -m 0644 $(shell find man/man7 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man7 + ln -sf tc-bfifo.8 $(DESTDIR)$(MANDIR)/man8/tc-pfifo.8 + ln -sf lnstat.8 $(DESTDIR)$(MANDIR)/man8/rtstat.8 + ln -sf lnstat.8 $(DESTDIR)$(MANDIR)/man8/ctstat.8 +--- iproute2/man/man7/tc-hfsc.7 ++++ iproute2-new/man/man7/tc-hfsc.7 +@@ -0,0 +1,525 @@ ++.TH HFSC 7 "25 February 2009" iproute2 Linux ++.ce 1 ++\fBHIERARCHICAL FAIR SERVICE CURVE\fR ++. ++.SH "HISTORY & INTRODUCTION" ++. ++HFSC \- \fBHierarchical Fair Service Curve\fR was first presented at ++SIGCOMM'97. Developed as a part of ALTQ (ALTernative Queuing) on NetBSD, found ++its way quickly to other BSD systems, and then a few years ago became part of ++the linux kernel. Still, it's not the most popular scheduling algorithm \- ++especially if compared to HTB \- and it's not well documented from enduser's ++perspective. This introduction aims to explain how HFSC works without ++going to deep into math side of things (although some if it will be ++inevitable). ++ ++In short HFSC aims to: ++. ++.RS 4 ++.IP \fB1)\fR 4 ++guarantee precise bandwidth and delay allocation for all leaf classes (realtime ++criterion) ++.IP \fB2)\fR ++allocate excess bandwidth fairly as specified by class hierarchy (linkshare & ++upperlimit criterion) ++.IP \fB3)\fR ++minimize any discrepancy between the service curve and the actual amount of ++service provided during linksharing ++.RE ++.PP ++. ++The main "selling" point of HFSC is feature \fB(1)\fR, which is achieved by ++using nonlinear service curves (more about what it actually is later). This is ++particularly useful in VoIP or games, where not only guarantee of consistent ++bandwidth is important, but initial delay of a data stream as well. Note that ++it matters only for leaf classes (where the actual queues are) \- thus class ++hierarchy is ignored in realtime case. ++ ++Feature \fB(2)\fR is well, obvious \- any algorithm featuring class hierarchy ++(such as HTB or CBQ) strives to achieve that. HFSC does that well, although ++you might end with unusual situations, if you define service curves carelessly ++\- see section CORNER CASES for examples. ++ ++Feature \fB(3)\fR is mentioned due to the nature of the problem. There may be ++situations where it's either not possible to guarantee service of all curves at ++the same time, and/or it's impossible to do so fairly. Both will be explained ++later. Note that this is mainly related to interior (aka aggregate) classes, as ++the leafs are already handled by \fB(1)\fR. Still \- it's perfectly possible to ++create a leaf class w/o realtime service, and in such case \- the caveats will ++naturally extend to leaf classes as well. ++ ++.SH ABBREVIATIONS ++For the remaining part of the document, we'll use following shortcuts: ++.nf ++.RS 4 ++ ++RT \- realtime ++LS \- linkshare ++UL \- upperlimit ++SC \- service curve ++.fi ++. ++.SH "BASICS OF HFSC" ++. ++To understand how HFSC works, we must first introduce a service curve. ++Overall, it's a nondecreasing function of some time unit, returning amount of ++service (allowed or allocated amount of bandwidth) by some specific point in ++time. The purpose of it should be subconsciously obvious \- if a class was ++allowed to transfer not less than the amount specified by its service curve \- ++then service curve is not violated. ++ ++Still \- we need more elaborate criterion than just the above (although in ++most generic case it can be reduced to it). The criterion has to take two ++things into account: ++. ++.RS 4 ++.IP \(bu 4 ++idling periods ++.IP \(bu ++ability to "look back", so if during current active period service curve is violated, maybe it ++isn't if we count excess bandwidth received during earlier active period(s) ++.RE ++.PP ++Let's define the criterion as follows: ++.RS 4 ++.nf ++.IP "\fB(1)\fR" 4 ++For each t1, there must exist t0 in set B, so S(t1\-t0)\~<=\~w(t0,t1) ++.fi ++.RE ++. ++.PP ++Here 'w' denotes the amount of service received during some time period between t0 ++and t1. B is a set of all times, where a session becomes active after idling ++period (further denoted as 'becoming backlogged'). For a clearer picture, ++imagine two situations: ++. ++.RS 4 ++.IP \fBa)\fR 4 ++our session was active during two periods, with a small time gap between them ++.IP \fBb)\fR ++as in (a), but with a larger gap ++.RE ++. ++.PP ++Consider \fB(a)\fR \- if the service received during both periods meets ++\fB(1)\fR, then all is good. But what if it doesn't do so during the 2nd ++period ? If the amount of service received during the 1st period is bigger ++than the service curve, then it might compensate for smaller service during ++the 2nd period \fIand\fR the gap \- if the gap is small enough. ++ ++If the gap is larger \fB(b)\fR \- then it's less likely to happen (unless the ++excess bandwidth allocated during the 1st part was really large). Still, the ++larger the gap \- the less interesting is what happened in the past (e.g. 10 ++minutes ago) \- what matters is the current traffic that just started. ++ ++From HFSC's perspective, more interesting is answering the following question: ++when should we start transferring packets, so a service curve of a class is not ++violated. Or rephrasing it: How much X() amount of service should a session ++receive by time t, so the service curve is not violated. Function X() defined ++as below is the basic building block of HFSC, used in: eligible, deadline, ++virtual\-time and fit\-time curves. Of course, X() is based on equation ++\fB(1)\fR and is defined recursively: ++ ++.RS 4 ++.IP \(bu 4 ++At the 1st backlogged period beginning function X is initialized to generic ++service curve assigned to a class ++.IP \(bu ++At any subsequent backlogged period, X() is: ++.nf ++\fBmin(X() from previous period ; w(t0)+S(t\-t0) for t>=t0),\fR ++.fi ++\&... where t0 denotes the beginning of the current backlogged period. ++.RE ++. ++.PP ++HFSC uses either linear, or two\-piece linear service curves. In case of ++linear or two\-piece linear convex functions (first slope < second slope), ++min() in X's definition reduces to the 2nd argument. But in case of two\-piece ++concave functions, the 1st argument might quickly become lesser for some ++t>=t0. Note, that for some backlogged period, X() is defined only from that ++period's beginning. We also define X^(\-1)(w) as smallest t>=t0, for which ++X(t)\~=\~w. We have to define it this way, as X() is usually not an injection. ++ ++The above generic X() can be one of the following: ++. ++.RS 4 ++.IP "E()" 4 ++In realtime criterion, selects packets eligible for sending. If none are ++eligible, HFSC will use linkshare criterion. Eligible time \&'et' is calculated ++with reference to packets' heads ( et\~=\~E^(\-1)(w) ). It's based on RT ++service curve, \fIbut in case of a convex curve, uses its 2nd slope only.\fR ++.IP "D()" ++In realtime criterion, selects the most suitable packet from the ones chosen ++by E(). Deadline time \&'dt' corresponds to packets' tails ++(dt\~=\~D^(\-1)(w+l), where \&'l' is packet's length). Based on RT service ++curve. ++.IP "V()" ++In linkshare criterion, arbitrates which packet to send next. Note that V() is ++function of a virtual time \- see \fBLINKSHARE CRITERION\fR section for ++details. Virtual time \&'vt' corresponds to packets' heads ++(vt\~=\~V^(\-1)(w)). Based on LS service curve. ++.IP "F()" ++An extension to linkshare criterion, used to limit at which speed linkshare ++criterion is allowed to dequeue. Fit\-time 'ft' corresponds to packets' heads ++as well (ft\~=\~F^(\-1)(w)). Based on UL service curve. ++.RE ++ ++Be sure to make clean distinction between session's RT, LS and UL service ++curves and the above "utility" functions. ++. ++.SH "REALTIME CRITERION" ++. ++RT criterion \fIignores class hierarchy\fR and guarantees precise bandwidth and ++delay allocation. We say that packet is eligible for sending, when current real ++time is bigger than eligible time. From all packets eligible, the one most ++suited for sending, is the one with the smallest deadline time. Sounds simply, ++but consider following example: ++ ++Interface 10mbit, two classes, both with two\-piece linear service curves: ++.RS 4 ++.IP \(bu 4 ++1st class \- 2mbit for 100ms, then 7mbit (convex \- 1st slope < 2nd slope) ++.IP \(bu ++2nd class \- 7mbit for 100ms, then 2mbit (concave \- 1st slope > 2nd slope) ++.RE ++.PP ++Assume for a moment, that we only use D() for both finding eligible packets, ++and choosing the most fitting one, thus eligible time would be computed as ++D^(\-1)(w) and deadline time would be computed as D^(\-1)(w+l). If the 2nd ++class starts sending packets 1 second after the 1st class, it's of course ++impossible to guarantee 14mbit, as the interface capability is only 10mbit. ++The only workaround in this scenario is to allow the 1st class to send the ++packets earlier that would normally be allowed. That's where separate E() comes ++to help. Putting all the math aside (see HFSC paper for details), E() for RT ++concave service curve is just like D(), but for the RT convex service curve \- ++it's constructed using \fIonly\fR RT service curve's 2nd slope (in our example ++\- 7mbit). ++ ++The effect of such E() \- packets will be sent earlier, and at the same time ++D() \fIwill\fR be updated \- so current deadline time calculated from it will ++be bigger. Thus, when the 2nd class starts sending packets later, both the 1st ++and the 2nd class will be eligible, but the 2nd session's deadline time will be ++smaller and its packets will be sent first. When the 1st class becomes idle at ++some later point, the 2nd class will be able to "buffer" up again for later ++active period of the 1st class. ++ ++A short remark \- in a situation, where the total amount of bandwidth ++available on the interface is bigger than the allocated total realtime parts ++(imagine interface 10 mbit, but 1mbit/2mbit and 2mbit/1mbit classes), the sole ++speed of the interface could suffice to guarantee the times. ++ ++Important part of RT criterion is that apart from updating its D() and E(), ++also V() used by LS criterion is updated. Generally the RT criterion is ++secondary to LS one, and used \fIonly\fR if there's a risk of violating precise ++realtime requirements. Still, the "participation" in bandwidth distributed by ++LS criterion is there, so V() has to be updated along the way. LS criterion can ++than properly compensate for non\-ideal fair sharing situation, caused by RT ++scheduling. If you use UL service curve its F() will be updated as well (UL ++service curve is an extension to LS one \- see \fBUPPERLIMIT CRITERION\fR ++section). ++ ++Anyway \- careless specification of LS and RT service curves can lead to ++potentially undesired situations (see CORNER CASES for examples). This wasn't ++the case in HFSC paper where LS and RT service curves couldn't be specified ++separately. ++ ++.SH "LINKSHARING CRITERION" ++. ++LS criterion's task is to distribute bandwidth according to specified class ++hierarchy. Contrary to RT criterion, there're no comparisons between current ++real time and virtual time \- the decision is based solely on direct comparison ++of virtual times of all active subclasses \- the one with the smallest vt wins ++and gets scheduled. One immediate conclusion from this fact is that absolute ++values don't matter \- only ratios between them (so for example, two children ++classes with simple linear 1mbit service curves will get the same treatment ++from LS criterion's perspective, as if they were 5mbit). The other conclusion ++is, that in perfectly fluid system with linear curves, all virtual times across ++whole class hierarchy would be equal. ++ ++Why is VC defined in term of virtual time (and what is it) ? ++ ++Imagine an example: class A with two children \- A1 and A2, both with let's say ++10mbit SCs. If A2 is idle, A1 receives all the bandwidth of A (and update its ++V() in the process). When A2 becomes active, A1's virtual time is already ++\fIfar\fR bigger than A2's one. Considering the type of decision made by LS ++criterion, A1 would become idle for a lot of time. We can workaround this ++situation by adjusting virtual time of the class becoming active \- we do that ++by getting such time "up to date". HFSC uses a mean of the smallest and the ++biggest virtual time of currently active children fit for sending. As it's not ++real time anymore (excluding trivial case of situation where all classes become ++active at the same time, and never become idle), it's called virtual time. ++ ++Such approach has its price though. The problem is analogous to what was ++presented in previous section and is caused by non\-linearity of service ++curves: ++.IP 1) 4 ++either it's impossible to guarantee both service curves and satisfy fairness ++during certain time periods: ++ ++.RS 4 ++Recall the example from RT section, slightly modified (with 3mbit slopes ++instead of 2mbit ones): ++ ++.IP \(bu 4 ++1st class \- 3mbit for 100ms, then 7mbit (convex \- 1st slope < 2nd slope) ++.IP \(bu ++2nd class \- 7mbit for 100ms, then 3mbit (concave \- 1st slope > 2nd slope) ++ ++.PP ++They sum up nicely to 10mbit \- interface's capacity. But if we wanted to only ++use LS for guarantees and fairness \- it simply won't work. In LS context, ++only V() is used for making decision which class to schedule. If the 2nd class ++becomes active when the 1st one is in its second slope, the fairness will be ++preserved \- ratio will be 1:1 (7mbit:7mbit), but LS itself is of course ++unable to guarantee the absolute values themselves \- as it would have to go ++beyond of what the interface is capable of. ++.RE ++ ++.IP 2) 4 ++and/or it's impossible to guarantee service curves of all classes at all ++ ++.RS 4 ++Even if we didn't use virtual time and allowed a session to be "punished", ++there's a possibility that service curves of all classes couldn't be ++guaranteed for a brief period. Consider following, a bit more complicated ++example: ++ ++Root interface, classes A and B with concave and convex curve (summing up to ++root), A1 & A2 (children of A), \fIboth\fR with concave curves summing up to A, ++B1 & B2 (children of B), \fIboth\fR with convex curves summing up to B. ++ ++Assume that A2, B1 and B2 are constantly backlogged, and at some later point ++A1 becomes backlogged. We can easily choose slopes, so that even if we ++"punish" A2 for earlier excess bandwidth received, A1 will have no chance of ++getting bandwidth corresponding to its first slope. Following from the above ++example: ++ ++.nf ++A \- 7mbit, then 3mbit ++A1 \- 5mbit, then 2mbit ++A2 \- 2mbit, then 1mbit ++ ++B \- 3mbit, then 7mbit ++B1 \- 2mbit, then 5mbit ++B2 \- 1mbit, then 2mbit ++.fi ++ ++At the point when A1 starts sending, it should get 5mbit to not violate its ++service curve. A2 gets punished and doesn't send at all, B1 and B2 both keep ++sending at their 5mbit and 2mbit. But as you can see, we already are beyond ++interface's capacity \- at 12mbit. A1 could get 3mbit at most. If we used ++virtual times and kept fairness property, A1 and A2 would send at 3mbit ++together with 5:2 ratio (so respectively at ~2.14mbit and ~0.86mbit). ++.RE ++. ++.SH "UPPERLIMIT CRITERION" ++. ++UL criterion is an extensions to LS one, that permits sending packets only ++if current real time is bigger than fit\-time ('ft'). So the modified LS ++criterion becomes: choose the smallest virtual time from all active children, ++such that fit\-time < current real time also holds. Fit\-time is calculated ++from F(), which is based on UL service curve. As you can see, it's role is ++kinda similar to E() used in RT criterion. Also, for obvious reasons \- you ++can't specify UL service curve without LS one. ++ ++Main purpose of UL service curve is to limit HFSC to bandwidth available on the ++upstream router (think adsl home modem/router, and linux server as ++nat/firewall/etc. with 100mbit+ connection to mentioned modem/router). ++Typically, it's used to create a single class directly under root, setting ++linear UL service curve to available bandwidth \- and then creating your class ++structure from that class downwards. Of course, you're free to add UL service ++(linear or not) curve to any class with LS criterion. ++ ++Important part about UL service curve is, that whenever at some point in time ++a class doesn't qualify for linksharing due to its fit\-time, the next time it ++does qualify, it will update its virtual time to the smallest virtual time of ++all active children fit for linksharing. This way, one of the main things LS ++criterion tries to achieve \- equality of all virtual times across whole ++hierarchy \- is preserved (in perfectly fluid system with only linear curves, ++all virtual times would be equal). ++ ++Without that, 'vt' would lag behind other virtual times, and could cause ++problems. Consider interface with capacity 10mbit, and following leaf classes ++(just in case you're skipping this text quickly \- this example shows behavior ++that \f(BIdoesn't happen\fR): ++ ++.nf ++A \- ls 5.0mbit ++B \- ls 2.5mbit ++C \- ls 2.5mbit, ul 2.5mbit ++.fi ++ ++If B was idle, while A and C were constantly backlogged, they would normally ++(as far as LS criterion is concerned) divide bandwidth in 2:1 ratio. But due ++to UL service curve in place, C would get at most 2.5mbit, and A would get the ++remaining 7.5mbit. The longer the backlogged period, the more virtual times of ++A and C would drift apart. If B became backlogged at some later point in time, ++its virtual time would be set to (A's\~vt\~+\~C's\~vt)/2, thus blocking A from ++sending any traffic, until B's virtual time catches up with A. ++. ++.SH "SEPARATE LS / RT SCs" ++. ++Another difference from original HFSC paper, is that RT and LS SCs can be ++specified separately. Moreover \- leaf classes are allowed to have only either ++RT SC or LS SC. For interior classes, only LS SCs make sense \- Any RT SC will ++be ignored. ++. ++.SH "CORNER CASES" ++. ++Separate service curves for LS and RT criteria can lead to certain traps, ++that come from "fighting" between ideal linksharing and enforced realtime ++guarantees. Those situations didn't exist in original HFSC paper, where ++specifying separate LS / RT service curves was not discussed. ++ ++Consider interface with capacity 10mbit, with following leaf classes: ++ ++.nf ++A \- ls 5.0mbit, rt 8mbit ++B \- ls 2.5mbit ++C \- ls 2.5mbit ++.fi ++ ++Imagine A and C are constantly backlogged. As B is idle, A and C would divide ++bandwidth in 2:1 ratio, considering LS service curve (so in theory \- 6.66 and ++3.33). Alas RT criterion takes priority, so A will get 8mbit and LS will be ++able to compensate class C for only 2 mbit \- this will cause discrepancy ++between virtual times of A and C. ++ ++Assume this situation lasts for a lot of time with no idle periods, and ++suddenly B becomes active. B's virtual time will be updated to ++(A's\~vt\~+\~C's\~vt)/2, effectively landing in the middle between A's and C's ++virtual time. The effect \- B, having no RT guarantees, will be punished and ++will not be allowed to transfer until C's virtual time catches up. ++ ++If the interface had higher capacity \- for example 100mbit, this example ++would behave perfectly fine though. ++ ++Let's look a bit closer at the above example \- it "cleverly" invalidates one ++of the basic things LS criterion tries to achieve \- equality of all virtual ++times across class hierarchy. Leaf classes without RT service curves are ++literally left to their own fate (governed by messed up virtual times). ++ ++Also - it doesn't make much sense. Class A will always be guaranteed up to ++8mbit, and this is more than any absolute bandwidth that could happen from its ++LS criterion (excluding trivial case of only A being active). If the bandwidth ++taken by A is smaller than absolute value from LS criterion, the unused part ++will be automatically assigned to other active classes (as A has idling periods ++in such case). The only "advantage" is, that even in case of low bandwidth on ++average, bursts would be handled at the speed defined by RT criterion. Still, ++if extra speed is needed (e.g. due to latency), non linear service curves ++should be used in such case. ++ ++In the other words - LS criterion is meaningless in the above example. ++ ++You can quickly "workaround" it by making sure each leaf class has RT service ++curve assigned (thus guaranteeing all of them will get some bandwidth), but it ++doesn't make it any more valid. ++. ++.SH "LINUX AND TIMER RESOLUTION" ++. ++In certain situations, the scheduler can throttle itself and setup so ++called watchdog to wakeup dequeue function at some time later. In case of HFSC ++it happens when for example no packet is eligible for scheduling, and UL ++service curve is used to limit the speed at which LS criterion is allowed to ++dequeue packets. It's called throttling, and accuracy of it is dependent on ++how the kernel is compiled. ++ ++There're 3 important options in modern kernels, as far as timers' resolution ++goes: \&'tickless system', \&'high resolution timer support' and \&'timer ++frequency'. ++ ++If you have \&'tickless system' enabled, then the timer interrupt will trigger ++as slowly as possible, but each time a scheduler throttles itself (or any ++other part of the kernel needs better accuracy), the rate will be increased as ++needed / possible. The ceiling is either \&'timer frequency' if \&'high ++resolution timer support' is not available or not compiled in. Otherwise it's ++hardware dependent and can go \fIfar\fR beyond the highest \&'timer frequency' ++setting available. ++ ++If \&'tickless system' is not enabled, the timer will trigger at a fixed rate ++specified by \&'timer frequency' \- regardless if high resolution timers are ++or aren't available. ++ ++This is important to keep those settings in mind, as in scenario like: no ++tickless, no HR timers, frequency set to 100hz \- throttling accuracy would be ++at 10ms. It doesn't automatically mean you would be limited to ~0.8mbit/s ++(assuming packets at ~1KB) \- as long as your queues are prepared to cover for ++timer inaccuracy. Of course, in case of e.g. locally generated udp traffic \- ++appropriate socket size is needed as well. Short example to make it more ++understandable (assume hardcore anti\-schedule settings \- HZ=100, no HR ++timers, no tickless): ++ ++.nf ++tc qdisc add dev eth0 root handle 1:0 hfsc default 1 ++tc class add dev eth0 parent 1:0 classid 1:1 hfsc rt m2 10mbit ++.fi ++ ++Assuming packet of ~1KB size and HZ=100, that averages to ~0.8mbit \- anything ++beyond it (e.g. the above example with specified rate over 10x bigger) will ++require appropriate queuing and cause bursts every ~10 ms. As you can ++imagine, any HFSC's RT guarantees will be seriously invalidated by that. ++Aforementioned example is mainly important if you deal with old hardware \- as ++it's particularly popular for home server chores. Even then, you can easily ++set HZ=1000 and have very accurate scheduling for typical adsl speeds. ++ ++Anything modern (apic or even hpet msi based timers + \&'tickless system') ++will provide enough accuracy for superb 1gbit scheduling. For example, on one ++of basically cheap dual core AMD boards I have with following settings: ++ ++.nf ++tc qdisc add dev eth0 parent root handle 1:0 hfsc default 1 ++tc class add dev eth0 paretn 1:0 classid 1:1 hfsc rt m2 300mbit ++.fi ++ ++And simple: ++ ++.nf ++nc \-u dst.host.com 54321 /dev/null ++.fi ++ ++\&...will yield following effects over period of ~10 seconds (taken from ++/proc/interrupts): ++ ++.nf ++319: 42124229 0 HPET_MSI\-edge hpet2 (before) ++319: 42436214 0 HPET_MSI\-edge hpet2 (after 10s.) ++.fi ++ ++That's roughly 31000/s. Now compare it with HZ=1000 setting. The obvious ++drawback of it is that cpu load can be rather extensive with servicing that ++many timer interrupts. Example with 300mbit RT service curve on 1gbit link is ++particularly ugly, as it requires a lot of throttling with minuscule delays. ++ ++Also note that it's just an example showing capability of current hardware. ++The above example (essentially 300mbit TBF emulator) is pointless on internal ++interface to begin with \- you will pretty much always want regular LS service ++curve there, and in such scenario HFSC simply doesn't throttle at all. ++ ++300mbit RT service curve (selected columns from mpstat \-P ALL 1): ++ ++.nf ++10:56:43 PM CPU %sys %irq %soft %idle ++10:56:44 PM all 20.10 6.53 34.67 37.19 ++10:56:44 PM 0 35.00 0.00 63.00 0.00 ++10:56:44 PM 1 4.95 12.87 6.93 73.27 ++.fi ++ ++So, in rare case you need those speeds with only RT service curve, or with UL ++service curve \- remember about drawbacks. ++. ++.SH "LAYER2 ADAPTATION" ++. ++Please refer to \fBtc\-stab\fR(8) ++. ++.SH "SEE ALSO" ++. ++\fBtc\fR(8), \fBtc\-hfsc\fR(8), \fBtc\-stab\fR(8) ++ ++Please direct bugreports and patches to: ++. ++.SH "AUTHOR" ++. ++Manpage created by Michal Soltys (sol...@ziu.info) +--- iproute2/man/man8/tc.8 ++++ iproute2-new/man/man8/tc.8 +@@ -368,12 +368,15 @@ + .SH SEE ALSO + .BR tc-cbq (8), + .BR tc-htb (8), ++.BR tc-hfsc (8), ++.BR tc-hfsc (7), + .BR tc-sfq (8), + .BR tc-red (8), + .BR tc-tbf (8), + .BR tc-pfifo (8), + .BR tc-bfifo (8), + .BR tc-pfifo_fast (8), ++.BR tc-stab (8), + .br + .RB "User documentation at " http://lartc.org/ ", but please direct bugreports and patches to: " + +--- iproute2/man/man8/tc-hfsc.8 ++++ iproute2-new/man/man8/tc-hfsc.8 +@@ -0,0 +1,61 @@ ++.TH HFSC 8 "25 February 2009" iproute2 Linux ++. ++.SH NAME ++HFSC \- Hierarchical Fair Service Curve's control under linux ++. ++.SH SYNOPSIS ++.nf ++tc qdisc add ... hfsc [ \fBdefault\fR CLASSID ] ++ ++tc class add ... hfsc [ [ \fBrt\fR SC ] [ \fBls\fR SC ] | [ \fBsc\fR SC ] ] [ \fBul\fR SC ] ++ ++\fBrt\fR : realtime service curve ++\fBls\fR : linkshare service curve ++\fBsc\fR : rt+ls service curve ++\fBul\fR : upperlimit service curve ++ ++\(bu at least one of \fBrt\fR, \fBls\fR or \fBsc\fR must be specified ++\(bu \fBul\fR can only be specified with \fBls\fR or \fBsc\fR ++. ++.IP "SC := [ [ \fBm1\fR BPS ] \fBd\fR SEC ] \fBm2\fR BPS" ++\fBm1\fR : slope of the first segment ++\fBd\fR : x\-coordinate of intersection ++\fBm2\fR : slope of the second segment ++.PP ++.IP "SC := [ [ \fBumax\fR BYTE ] \fBdmax\fR SEC ] \fBrate\fR BPS" ++\fBumax\fR : maximum unit of work ++\fBdmax\fR : maximum delay ++\fBrate\fR : rate ++.PP ++.fi ++For description of BYTE, BPS and SEC \- please see \fBUNITS\fR ++section of \fBtc\fR(8). ++. ++.SH DESCRIPTION (qdisc) ++HFSC qdisc has only one optional parameter \- \fBdefault\fR. CLASSID specifies ++the minor part of the default classid, where packets not classified by other ++means (e.g. u32 filter, CLASSIFY target of iptables) will be enqueued. If ++\fBdefault\fR is not specified, unclassified packets will be dropped. ++. ++.SH DESCRIPTION (class) ++HFSC class is used to create a class hierarchy for HFSC scheduler. For ++explanation of the algorithm, and the meaning behind \fBrt\fR, \fBls\fR, ++\fBsc\fR and \fBul\fR service curves \- please refer to \fBtc\-hfsc\fR(7). ++ ++As you can see in \fBSYNOPSIS\fR, service curve (SC) can be specified in two ++ways. Either as maximum delay for certain amount of work, or as a bandwidth ++assigned for certain amount of time. Obviously, \fBm1\fR is simply ++\fBumax\fR/\fBdmax\fR. ++ ++Both \fBm2\fR and \fBrate\fR are mandatory. If you omit other ++parameters, you will specify linear service curve. ++. ++.SH "SEE ALSO" ++. ++\fBtc\fR(8), \fBtc\-hfsc\fR(7), \fBtc\-stab\fR(8) ++ ++Please direct bugreports and patches to: ++. ++.SH "AUTHOR" ++. ++Manpage created by Michal Soltys (sol...@ziu.info) +--- iproute2/man/man8/tc-stab.8 ++++ iproute2-new/man/man8/tc-stab.8 +@@ -0,0 +1,156 @@ ++.TH STAB 8 "25 February 2009" iproute2 Linux ++. ++.SH NAME ++tc\-stab \- Generic size table manipulations ++. ++.SH SYNOPSIS ++.nf ++tc qdisc add ... stab \\ ++.RS 4 ++[ \fBmtu\fR BYTES ] [ \fBtsize\fR SLOTS ] \\ ++[ \fBmpu\fR BYTES ] [ \fBoverhead\fR BYTES ] [ \fBlinklayer\fR TYPE ] ... ++.RE ++ ++TYPE := adsl | atm | ethernet ++.fi ++ ++For the description of BYTES \- please refer to the \fBUNITS\fR ++section of \fBtc\fR(8). ++ ++.IP \fBmtu\fR 4 ++.br ++maximum packet size we create size table for, assumed 2048 if not specified explicitly ++.IP \fBtsize\fR ++.br ++required table size, assumed 512 if not specified explicitly ++.IP \fBmpu\fR ++.br ++minimum packet size used in computations ++.IP \fBoverhead\fR ++.br ++per\-packet size overhead (can be negative) used in computations ++.IP \fBlinklayer\fR ++.br ++required linklayer adaptation. ++.PP ++. ++.SH DESCRIPTION ++. ++Size tables allow manipulation of packet size, as seen by whole scheduler ++framework (of course, the actual packet size remains the same). Adjusted packet ++size is calculated only once \- when a qdisc enqueues the packet. Initial root ++enqueue initializes it to the real packet's size. ++ ++Each qdisc can use different size table, but the adjusted size is stored in ++area shared by whole qdisc hierarchy attached to the interface (technically, ++it's stored in skb). The effect is, that if you have such setup, the last qdisc ++with a stab in a chain "wins". For example, consider HFSC with simple pfifo ++attached to one of its leaf classes. If that pfifo qdisc has stab defined, it ++will override lengths calculated during HFSC's enqueue, and in turn, whenever ++HFSC tries to dequeue a packet, it will use potentially invalid size in its ++calculations. Normal setups will usually include stab defined only on root ++qdisc, but further overriding gives extra flexibility for less usual setups. ++ ++Initial size table is calculated by \fBtc\fR tool using \fBmtu\fR and ++\fBtsize\fR parameters. The algorithm sets each slot's size to the smallest ++power of 2 value, so the whole \fBmtu\fR is covered by the size table. Neither ++\fBtsize\fR, nor \fBmtu\fR have to be power of 2 value, so the size ++table will usually support more than is required by \fBmtu\fR. ++ ++For example, with \fBmtu\fR\~=\~1500 and \fBtsize\fR\~=\~128, a table with 128 ++slots will be created, where slot 0 will correspond to sizes 0\-16, slot 1 to ++17\~\-\~32, \&..., slot 127 to 2033\~\-\~2048. Note, that the sizes ++are shifted 1 byte (normally you would expect 0\~\-\~15, 16\~\-\~31, \&..., ++2032\~\-\~2047). Sizes assigned to each slot depend on \fBlinklayer\fR parameter. ++ ++Stab calculation is also safe for an unusual case, when a size assigned to a ++slot would be larger than 2^16\-1 (you will lose the accuracy though). ++ ++During kernel part of packet size adjustment, \fBoverhead\fR will be added to ++original size, and after subtracting 1 (to land in the proper slot \- see above ++about shifting by 1 byte) slot will be calculated. If the size would cause ++overflow, more than 1 slot will be used to get the final size. It of course will ++affect accuracy, but it's only a guard against unusual situations. ++ ++Currently there're two methods of creating values stored in the size table \- ++ethernet and atm (adsl): ++ ++.IP ethernet 4 ++.br ++This is basically 1\-1 mapping, so following our example from above ++(disregarding \fBmpu\fR for a moment) slot 0 would have 8, slot 1 would have 16 ++and so on, up to slot 127 with 2048. Note, that \fBmpu\fR\~>\~0 must be ++specified, and slots that would get less than specified by \fBmpu\fR, will get ++\fBmpu\fR instead. If you don't specify \fBmpu\fR, the size table will not be ++created at all, although any \fBoverhead\fR value will be respected during ++calculations. ++.IP "atm, adsl" ++.br ++ATM linklayer consists of 53 byte cells, where each of them provides 48 bytes ++for payload. Also all the cells must be fully utilized, thus the last one is ++padded if/as necessary. ++ ++When size table is calculated, adjusted size that fits properly into lowest ++amount of cells is assigned to a slot. For example, a 100 byte long packet ++requires three 48\-byte payloads, so the final size would require 3 ATM cells ++\- 159 bytes. ++ ++For ATM size tables, 16\~bytes sized slots are perfectly enough. The default ++values of \fBmtu\fR and \fBtsize\fR create 4\~bytes sized slots. ++.PP ++. ++.SH "TYPICAL OVERHEADS" ++The following values are typical for different adsl scenarios (based on ++\fB[1]\fR and \fB[2]\fR): ++ ++.nf ++LLC based: ++.RS 4 ++PPPoA \- 14 (PPP \- 2, ATM \- 12) ++PPPoE \- 40+ (PPPoE \- 8, ATM \- 18, ethernet 14, possibly FCS \- 4+padding) ++Bridged \- 32 (ATM \- 18, ethernet 14, possibly FCS \- 4+padding) ++IPoA \- 16 (ATM \- 16) ++.RE ++ ++VC Mux based: ++.RS 4 ++PPPoA \- 10 (PPP \- 2, ATM \- 8) ++PPPoE \- 32+ (PPPoE \- 8, ATM \- 10, ethernet 14, possibly FCS \- 4+padding) ++Bridged \- 24+ (ATM \- 10, ethernet 14, possibly FCS \- 4+padding) ++IPoA \- 8 (ATM \- 8) ++.RE ++.fi ++\p There're few important things regarding the above overheads: ++. ++.IP \(bu 4 ++IPoA in LLC case requires SNAP, instead of LLC\-NLPID (see rfc2684) \- this is ++the reason, why it actually takes more space than PPPoA. ++.IP \(bu ++In rare cases, FCS might be preserved on protocols that include ethernet frame ++(Bridged and PPPoE). In such situation, any ethernet specific padding ++guaranteeing 64 bytes long frame size has to be included as well (see rfc2684). ++In the other words, it also guarantees that any packet you send will take ++minimum 2 atm cells. You should set \fBmpu\fR accordingly for that. ++.IP \(bu ++When size table is consulted, and you're shaping traffic for the sake of ++another modem/router, ethernet header (without padding) will already be added ++to initial packet's length. You should compensate for that by subtracting 14 ++from the above overheads in such case. If you're shaping directly on the router ++(for example, with speedtouch usb modem) using ppp daemon, layer2 header will ++not be added yet. ++ ++For more thorough explanations, please see \fB[1]\fR and \fB[2]\fR. ++. ++.SH "SEE ALSO" ++. ++\fBtc\fR(8), \fBtc\-hfsc\fR(7), \fBtc\-hfsc\fR(8), ++.br ++\fB[1]\fR http://ace\-host.stuart.id.au/russell/files/tc/tc\-atm/ ++.br ++\fB[2]\fR http://www.faqs.org/rfcs/rfc2684.html ++ ++Please direct bugreports and patches to: ++. ++.SH "AUTHOR" ++. ++Manpage created by Michal Soltys (sol...@ziu.info) +--- iproute2/tc/q_hfsc.c ++++ iproute2-new/tc/q_hfsc.c +@@ -43,7 +43,7 @@ + fprintf(stderr, + "Usage: ... hfsc [ [ rt SC ] [ ls SC ] | [ sc SC ] ] [ ul SC ]\n" + "\n" +- "SC := [ [ m1 BPS ] [ d SEC ] m2 BPS\n" ++ "SC := [ [ m1 BPS ] d SEC ] m2 BPS\n" + "\n" + " m1 : slope of first segment\n" + " d : x-coordinate of intersection\n" +@@ -57,6 +57,10 @@ + " dmax : maximum delay\n" + " rate : rate\n" + "\n" ++ "Remarks:\n" ++ " - at least one of 'rt', 'ls' or 'sc' must be specified\n" ++ " - 'ul' can only be specified with 'ls' or 'sc'\n" ++ "\n" + ); + } + +--- iproute2/tc/tc_core.c ++++ iproute2-new/tc/tc_core.c +@@ -155,12 +155,12 @@ + } + + if (s->mtu == 0) +- s->mtu = 2047; ++ s->mtu = 2048; + if (s->tsize == 0) + s->tsize = 512; + + s->cell_log = 0; +- while ((s->mtu >> s->cell_log) > s->tsize - 1) ++ while ((s->mtu - 1 >> s->cell_log) > s->tsize - 1) + s->cell_log++; + + *stab = malloc(s->tsize * sizeof(__u16)); +--- iproute2/tc/tc_stab.c ++++ iproute2-new/tc/tc_stab.c +@@ -32,11 +32,15 @@ + fprintf(stderr, + "Usage: ... stab [ mtu BYTES ] [ tsize SLOTS ] [ mpu BYTES ] \n" + " [ overhead BYTES ] [ linklayer TYPE ] ...\n" +- " mtu : max packet size we create rate map for {2047}\n" ++ "TYPE := adsl | atm | ethernet\n" ++ " mtu : max packet size we create size table for {2048}\n" + " tsize : how many slots should size table have {512}\n" + " mpu : minimum packet size used in rate computations\n" + " overhead : per-packet size overhead used in rate computations\n" + " linklayer : adapting to a linklayer e.g. atm\n" ++ " mpu : minimum packet size used in size table computations\n" ++ " overhead : per-packet size overhead used in size table computations\n" ++ " linklayer : required linklayer adaptation, (adsl and atm are synonyms)\n" + "Example: ... stab overhead 20 linklayer atm\n"); + + return; diff --git a/sys-apps/iproute2/files/iproute2-2.6.35-cached-routes.patch b/sys-apps/iproute2/files/iproute2-2.6.35-cached-routes.patch new file mode 100644 index 000000000000..821d8c3fae5a --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.35-cached-routes.patch @@ -0,0 +1,34 @@ +http://bugs.gentoo.org/331447 + +From c73f3e02f8ae25e5daad0367690a3069895dd8a3 Mon Sep 17 00:00:00 2001 +From: Ulrich Weber +Date: Thu, 12 Aug 2010 11:05:19 +0200 +Subject: [PATCH] iproute2: dont filter cached routes on iproute_get + +iproute_get will return cloned routes for IPv4 +and cloned as well non-cloned routes for IPv6. + +Therefore RTM_F_CLONED flag should not be checked +for iproute_get routes. Check in print_route will +always fail because valid values are 0 and 1. + +Signed-off-by: Ulrich Weber +--- + ip/iproute.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/ip/iproute.c b/ip/iproute.c +index 711576e..b43933c 100644 +--- a/ip/iproute.c ++++ b/ip/iproute.c +@@ -1286,6 +1286,7 @@ int iproute_get(int argc, char **argv) + memset(&req, 0, sizeof(req)); + + iproute_reset_filter(); ++ filter.cloned = 2; + + req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); + req.n.nlmsg_flags = NLM_F_REQUEST; +-- +1.7.2 + diff --git a/sys-apps/iproute2/files/iproute2-2.6.35-no-iptables.patch b/sys-apps/iproute2/files/iproute2-2.6.35-no-iptables.patch new file mode 100644 index 000000000000..a51cf78ac8df --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.35-no-iptables.patch @@ -0,0 +1,15 @@ +diff --git a/tc/Makefile b/tc/Makefile +index 3aa9f26..0a827da 100644 +--- a/tc/Makefile ++++ b/tc/Makefile +@@ -58,7 +58,9 @@ else + CFLAGS += -DTC_CONFIG_XT_H + TCSO += m_xt_old.so + else +- TCMODULES += m_ipt.o ++ ifneq ($(TC_CONFIG_XT),n) ++ TCMODULES += m_ipt.o ++ endif + endif + endif + endif diff --git a/sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch b/sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch new file mode 100644 index 000000000000..d82c8873344c --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.35-no-ipv6.patch @@ -0,0 +1,27 @@ +https://bugs.gentoo.org/326849 + +allow ipv6 to be disabled + +--- iproute2-2.6.31/ip/iptunnel.c ++++ iproute2-2.6.31/ip/iptunnel.c +@@ -456,13 +456,6 @@ int do_iptunnel(int argc, char **argv) + break; + case AF_INET: + break; +- /* +- * This is silly enough but we have no easy way to make it +- * protocol-independent because of unarranged structure between +- * IPv4 and IPv6. +- */ +- case AF_INET6: +- return do_ip6tunnel(argc, argv); + default: + fprintf(stderr, "Unsupported family:%d\n", preferred_family); + exit(-1); +--- iproute2-2.6.31/ip/Makefile ++++ iproute2-2.6.31/ip/Makefile +@@ -1,4 +1,4 @@ + IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o \ +- rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ ++ rtm_map.o iptunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ + ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \ diff --git a/sys-apps/iproute2/files/iproute2-2.6.35-xtables.patch b/sys-apps/iproute2/files/iproute2-2.6.35-xtables.patch new file mode 100644 index 000000000000..748c77bde828 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.35-xtables.patch @@ -0,0 +1,30 @@ +From 035ea3a8a1c9f67721fa0b53540620c7c49bc8ab Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Sun, 21 Nov 2010 16:07:26 -0500 +Subject: [PATCH] m_xt: stop using xtables_set_revision() + +iptables dropped the xtables_set_revision() function around version 1.4.9, +so set the rev directly ourselves. This should be compatible back to the +original version m_xt itself is designed for. + +Signed-off-by: Mike Frysinger +--- + tc/m_xt.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/tc/m_xt.c b/tc/m_xt.c +index bfc4937..ede9913 100644 +--- a/tc/m_xt.c ++++ b/tc/m_xt.c +@@ -88,7 +88,7 @@ build_st(struct xtables_target *target, struct xt_entry_target *t) + target->t = xtables_calloc(1, size); + target->t->u.target_size = size; + strcpy(target->t->u.user.name, target->name); +- xtables_set_revision(target->t->u.user.name, target->revision); ++ target->t->u.user.revision = target->revision; + + if (target->init != NULL) + target->init(target->t); +-- +1.7.3.1 + diff --git a/sys-apps/iproute2/files/iproute2-2.6.38-parallel-build.patch b/sys-apps/iproute2/files/iproute2-2.6.38-parallel-build.patch new file mode 100644 index 000000000000..7966cfce5044 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-2.6.38-parallel-build.patch @@ -0,0 +1,40 @@ +sent upstream already + +From f8a783bbe98b0fe5aaedbf623bc70471b88c9187 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Tue, 18 Oct 2011 17:36:55 -0400 +Subject: [PATCH] tc: fix parallel build file with lex/yacc + +Building iproute2 in parallel might hit the race failure: + emp_ematch.l:2:30: fatal error: emp_ematch.yacc.h: + No such file or directory + make[1]: *** [emp_ematch.lex.o] Error 1 + +This is because we currently allow the yacc/lex files to generate and +compile in parallel. So add a simple dependency to make sure yacc has +finished before we attempt to compile the lex output. + +Signed-off-by: Mike Frysinger +--- + tc/Makefile | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/tc/Makefile b/tc/Makefile +index 08aa4ce..b2ca165 100644 +--- a/tc/Makefile ++++ b/tc/Makefile +@@ -136,6 +136,11 @@ m_xt_old.so: m_xt_old.c + %.lex.c: %.l + $(LEX) $(LEXFLAGS) -o$@ $< + ++# our lexer includes the header from yacc, so make sure ++# we don't attempt to compile it before the header has ++# been generated as part of the yacc step. ++emp_ematch.lex.o: emp_ematch.yacc.c ++ + ifneq ($(SHARED_LIBS),y) + + tc: static-syms.o +-- +1.7.6.1 + diff --git a/sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch b/sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch new file mode 100644 index 000000000000..fa12dad2d79e --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.1.0-mtu.patch @@ -0,0 +1,48 @@ +http://bugs.gentoo.org/291907 + +This patch was merged from two patches extracted from this thread: +http://markmail.org/thread/qkd76gpdgefpjlfn + +tc_stab.c: small fixes to commandline help + + +tc_core.c: +As kernel part of things relies on cell align which is always set to -1, +I also added it to userspace computation stage. This way if someone +specified e.g. 2048 and 512 for mtu and tsize respectively, one wouldn't +end with tsize supporting mtu 4096 suddenly, New default mtu is also set +to 2048 (disregarding weirdness of setting mtu to such values). + + +Unless I missed something, this is harmless and feels cleaner, but if it's +not allowed, documentation will have to be changed back to 2047 + extra +explanation as well. + +--- iproute2/tc/tc_core.c ++++ iproute2/tc/tc_core.c +@@ -155,12 +155,12 @@ + } + + if (s->mtu == 0) +- s->mtu = 2047; ++ s->mtu = 2048; + if (s->tsize == 0) + s->tsize = 512; + + s->cell_log = 0; +- while ((s->mtu >> s->cell_log) > s->tsize - 1) ++ while ((s->mtu - 1 >> s->cell_log) > s->tsize - 1) + s->cell_log++; + + *stab = malloc(s->tsize * sizeof(__u16)); +--- iproute2/tc/tc_stab.c ++++ iproute2/tc/tc_stab.c +@@ -32,7 +32,7 @@ + fprintf(stderr, + "Usage: ... stab [ mtu BYTES ] [ tsize SLOTS ] [ mpu BYTES ] \n" + " [ overhead BYTES ] [ linklayer TYPE ] ...\n" +- " mtu : max packet size we create rate map for {2047}\n" ++ " mtu : max packet size we create size table for {2048}\n" + " tsize : how many slots should size table have {512}\n" + " mpu : minimum packet size used in rate computations\n" + " overhead : per-packet size overhead used in rate computations\n" diff --git a/sys-apps/iproute2/files/iproute2-3.1.0-no-ipv6.patch b/sys-apps/iproute2/files/iproute2-3.1.0-no-ipv6.patch new file mode 100644 index 000000000000..1282a1b59f9b --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.1.0-no-ipv6.patch @@ -0,0 +1,41 @@ +https://bugs.gentoo.org/326849 + +allow ipv6 to be disabled + +--- a/ip/iptunnel.c ++++ b/ip/iptunnel.c +@@ -456,13 +456,6 @@ int do_iptunnel(int argc, char **argv) + break; + case AF_INET: + break; +- /* +- * This is silly enough but we have no easy way to make it +- * protocol-independent because of unarranged structure between +- * IPv4 and IPv6. +- */ +- case AF_INET6: +- return do_ip6tunnel(argc, argv); + default: + fprintf(stderr, "Unsupported family:%d\n", preferred_family); + exit(-1); +--- a/ip/Makefile ++++ b/ip/Makefile +@@ -1,6 +1,6 @@ + IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \ +- rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ +- ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o iptuntap.o \ ++ rtm_map.o iptunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ ++ ipmaddr.o ipmonitor.o ipmroute.o iptuntap.o \ + ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \ + iplink_vlan.o link_veth.o link_gre.o iplink_can.o \ + iplink_macvlan.o iplink_macvtap.o ipl2tp.o +--- a/ip/ipmonitor.c ++++ b/ip/ipmonitor.c +@@ -76,7 +76,6 @@ int accept_msg(const struct sockaddr_nl *who, + if (n->nlmsg_type == RTM_NEWPREFIX) { + if (prefix_banner) + fprintf(fp, "[PREFIX]"); +- print_prefix(who, n, arg); + return 0; + } + if (n->nlmsg_type == RTM_NEWRULE || n->nlmsg_type == RTM_DELRULE) { diff --git a/sys-apps/iproute2/files/iproute2-3.10.0-no-ipv6.patch b/sys-apps/iproute2/files/iproute2-3.10.0-no-ipv6.patch new file mode 100644 index 000000000000..86d80d2d8742 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.10.0-no-ipv6.patch @@ -0,0 +1,41 @@ +https://bugs.gentoo.org/326849 + +allow ipv6 to be disabled + +--- a/ip/iptunnel.c ++++ b/ip/iptunnel.c +@@ -629,13 +629,6 @@ int do_iptunnel(int argc, char **argv) + break; + case AF_INET: + break; +- /* +- * This is silly enough but we have no easy way to make it +- * protocol-independent because of unarranged structure between +- * IPv4 and IPv6. +- */ +- case AF_INET6: +- return do_ip6tunnel(argc, argv); + default: + fprintf(stderr, "Unsupported protocol family: %d\n", preferred_family); + exit(-1); +--- a/ip/Makefile ++++ b/ip/Makefile +@@ -1,6 +1,6 @@ + IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \ +- rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ +- ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o iptuntap.o iptoken.o \ ++ rtm_map.o iptunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ ++ ipmaddr.o ipmonitor.o ipmroute.o iptuntap.o iptoken.o \ + ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \ + iplink_vlan.o link_veth.o link_gre.o iplink_can.o \ + iplink_macvlan.o iplink_macvtap.o ipl2tp.o link_vti.o \ +--- a/ip/ipmonitor.c ++++ b/ip/ipmonitor.c +@@ -96,7 +96,6 @@ static int accept_msg(const struct socka + if (n->nlmsg_type == RTM_NEWPREFIX) { + if (prefix_banner) + fprintf(fp, "[PREFIX]"); +- print_prefix(who, n, arg); + return 0; + } + if (n->nlmsg_type == RTM_NEWRULE || n->nlmsg_type == RTM_DELRULE) { diff --git a/sys-apps/iproute2/files/iproute2-3.6.0-pkg-config.patch b/sys-apps/iproute2/files/iproute2-3.6.0-pkg-config.patch new file mode 100644 index 000000000000..fcfee292994b --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.6.0-pkg-config.patch @@ -0,0 +1,67 @@ +From 99762cbc216bb818e9fcbe37e1abf9b313968615 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Thu, 8 Nov 2012 11:31:26 -0500 +Subject: [PATCH] allow pkg-config to be customized + +Rather than hard coding `pkg-config`, use ${PKG_CONFIG} so people can +override it to their specific version (like when cross-compiling). + +This is the same way the upstream pkg-config code works. + +Signed-off-by: Mike Frysinger +--- + configure | 6 ++++-- + tc/Makefile | 4 ++-- + 2 files changed, 6 insertions(+), 4 deletions(-) + +diff --git a/configure b/configure +index 2c2d1c4..0bfedf9 100755 +--- a/configure ++++ b/configure +@@ -2,6 +2,8 @@ + # This is not an autconf generated configure + # + INCLUDE=${1:-"$PWD/include"} ++: ${PKG_CONFIG:=pkg-config} ++echo "PKG_CONFIG:=${PKG_CONFIG}" >>Config + + # Make a temp directory in build tree. + TMPDIR=$(mktemp -d config.XXXXXX) +@@ -51,7 +53,7 @@ int main(int argc, char **argv) + + EOF + +-if gcc -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL $(pkg-config xtables --cflags --libs) -ldl >/dev/null 2>&1 ++if gcc -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL $(${PKG_CONFIG} xtables --cflags --libs) -ldl >/dev/null 2>&1 + then + echo "TC_CONFIG_XT:=y" >>Config + echo "using xtables" +@@ -148,7 +150,7 @@ check_ipt() + + check_ipt_lib_dir() + { +- IPT_LIB_DIR=$(pkg-config --variable=xtlibdir xtables) ++ IPT_LIB_DIR=$(${PKG_CONFIG} --variable=xtlibdir xtables) + if [ -n "$IPT_LIB_DIR" ]; then + echo $IPT_LIB_DIR + echo "IPT_LIB_DIR:=$IPT_LIB_DIR" >> Config +diff --git a/tc/Makefile b/tc/Makefile +index 389029d..696f891 100644 +--- a/tc/Makefile ++++ b/tc/Makefile +@@ -135,10 +135,10 @@ q_atm.so: q_atm.c + $(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm + + m_xt.so: m_xt.c +- $(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o m_xt.so m_xt.c $$(pkg-config xtables --cflags --libs) ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o m_xt.so m_xt.c $$($(PKG_CONFIG) xtables --cflags --libs) + + m_xt_old.so: m_xt_old.c +- $(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o m_xt_old.so m_xt_old.c $$(pkg-config xtables --cflags --libs) ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic -o m_xt_old.so m_xt_old.c $$($(PKG_CONFIG) xtables --cflags --libs) + + %.yacc.c: %.y + $(YACC) $(YACCFLAGS) -o $@ $< +-- +1.7.12.4 + diff --git a/sys-apps/iproute2/files/iproute2-3.7.0-clang.patch b/sys-apps/iproute2/files/iproute2-3.7.0-clang.patch new file mode 100644 index 000000000000..17bb6ac856b3 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.7.0-clang.patch @@ -0,0 +1,72 @@ +From 048bff6e0206bca33ee70516521f3048e7714752 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Thu, 17 Jan 2013 18:00:50 +0000 +Subject: [PATCH] ipxfrm: use alloca to allocate stack space + +Clang doesn't support the gcc extension for embeddeding flexible arrays +inside of structures. Use the slightly more portable alloca(). + +Signed-off-by: Mike Frysinger +--- + ip/ipxfrm.c | 27 +++++++++++---------------- + 1 file changed, 11 insertions(+), 16 deletions(-) + +diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c +index c7b3420..dda4a7a 100644 +--- a/ip/ipxfrm.c ++++ b/ip/ipxfrm.c +@@ -25,6 +25,7 @@ + * Masahide NAKAMURA @USAGI + */ + ++#include + #include + #include + #include +@@ -555,16 +556,13 @@ static inline void xfrm_algo_print(struct xfrm_algo *algo, int type, int len, + static void xfrm_aead_print(struct xfrm_algo_aead *algo, int len, + FILE *fp, const char *prefix) + { +- struct { +- struct xfrm_algo algo; +- char key[algo->alg_key_len / 8]; +- } base; ++ struct xfrm_algo *base_algo = alloca(sizeof(*base_algo) + algo->alg_key_len / 8); + +- memcpy(base.algo.alg_name, algo->alg_name, sizeof(base.algo.alg_name)); +- base.algo.alg_key_len = algo->alg_key_len; +- memcpy(base.algo.alg_key, algo->alg_key, algo->alg_key_len / 8); ++ memcpy(base_algo->alg_name, algo->alg_name, sizeof(base_algo->alg_name)); ++ base_algo->alg_key_len = algo->alg_key_len; ++ memcpy(base_algo->alg_key, algo->alg_key, algo->alg_key_len / 8); + +- __xfrm_algo_print(&base.algo, XFRMA_ALG_AEAD, len, fp, prefix, 0); ++ __xfrm_algo_print(base_algo, XFRMA_ALG_AEAD, len, fp, prefix, 0); + + fprintf(fp, " %d", algo->alg_icv_len); + +@@ -574,16 +572,13 @@ static void xfrm_aead_print(struct xfrm_algo_aead *algo, int len, + static void xfrm_auth_trunc_print(struct xfrm_algo_auth *algo, int len, + FILE *fp, const char *prefix) + { +- struct { +- struct xfrm_algo algo; +- char key[algo->alg_key_len / 8]; +- } base; ++ struct xfrm_algo *base_algo = alloca(sizeof(*base_algo) + algo->alg_key_len / 8); + +- memcpy(base.algo.alg_name, algo->alg_name, sizeof(base.algo.alg_name)); +- base.algo.alg_key_len = algo->alg_key_len; +- memcpy(base.algo.alg_key, algo->alg_key, algo->alg_key_len / 8); ++ memcpy(base_algo->alg_name, algo->alg_name, sizeof(base_algo->alg_name)); ++ base_algo->alg_key_len = algo->alg_key_len; ++ memcpy(base_algo->alg_key, algo->alg_key, algo->alg_key_len / 8); + +- __xfrm_algo_print(&base.algo, XFRMA_ALG_AUTH_TRUNC, len, fp, prefix, 0); ++ __xfrm_algo_print(base_algo, XFRMA_ALG_AUTH_TRUNC, len, fp, prefix, 0); + + fprintf(fp, " %d", algo->alg_trunc_len); + +-- +1.8.0.2 + diff --git a/sys-apps/iproute2/files/iproute2-3.7.0-man7.patch b/sys-apps/iproute2/files/iproute2-3.7.0-man7.patch new file mode 100644 index 000000000000..947714adf832 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.7.0-man7.patch @@ -0,0 +1,55 @@ +From 18c1de8d742792d43ff81ebff9af5389e5be7cae Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Fri, 11 Jan 2013 11:34:08 -0500 +Subject: [PATCH] [iproute2] add man7 to subdirs list +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The man dir misses the man7 as a subdir which means none of the pages +get installed. + +URL: https://bugs.gentoo.org/451166 +Reported-by: Marcin Mirosław +Signed-off-by: Mike Frysinger +--- + man/Makefile | 2 +- + man/man7/Makefile | 13 +++++++++++++ + 2 files changed, 14 insertions(+), 1 deletion(-) + create mode 100644 man/man7/Makefile + +diff --git a/man/Makefile b/man/Makefile +index 67fea05..9a60fa7 100644 +--- a/man/Makefile ++++ b/man/Makefile +@@ -2,7 +2,7 @@ INSTALL=install + INSTALLDIR=install -m 0755 -d + INSTALLMAN=install -m 0644 + +-SUBDIRS = man3 man8 ++SUBDIRS = man3 man7 man8 + + all: + @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir; done +diff --git a/man/man7/Makefile b/man/man7/Makefile +new file mode 100644 +index 0000000..ccfd839 +--- /dev/null ++++ b/man/man7/Makefile +@@ -0,0 +1,13 @@ ++MAN7PAGES = tc-hfsc.7 ++ ++all: ++ ++distclean: clean ++ ++clean: ++ ++install: ++ $(INSTALLDIR) $(DESTDIR)$(MANDIR)/man7 ++ $(INSTALLMAN) $(MAN7PAGES) $(DESTDIR)$(MANDIR)/man7 ++ ++.PHONY: install clean distclean +-- +1.8.0.2 + diff --git a/sys-apps/iproute2/files/iproute2-3.8.0-old-mount-libc.patch b/sys-apps/iproute2/files/iproute2-3.8.0-old-mount-libc.patch new file mode 100644 index 000000000000..96280e042453 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-3.8.0-old-mount-libc.patch @@ -0,0 +1,38 @@ +From 03fdb011dd661315a83998af8af779d8f089e3fe Mon Sep 17 00:00:00 2001 +From: Stephen Hemminger +Date: Wed, 17 Apr 2013 13:33:26 -0700 +Subject: [PATCH] ipnetns: fix build on older systems + +Debian Squeeze has out of date without the required flags. +--- + ip/ipnetns.c | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/ip/ipnetns.c b/ip/ipnetns.c +index b047b97..c9bc20a 100644 +--- a/ip/ipnetns.c ++++ b/ip/ipnetns.c +@@ -29,6 +29,20 @@ + #define MNT_DETACH 0x00000002 /* Just detach from the tree */ + #endif /* MNT_DETACH */ + ++/* sys/mount.h may be out too old to have these */ ++#ifndef MS_REC ++#define MS_REC 16384 ++#endif ++ ++#ifndef MS_SLAVE ++#define MS_SLAVE (1 << 19) ++#endif ++ ++#ifndef MS_SHARED ++#define MS_SHARED (1 << 20) ++#endif ++ ++ + #ifndef HAVE_SETNS + static int setns(int fd, int nstype) + { +-- +1.8.2.1 + diff --git a/sys-apps/iproute2/files/iproute2-4.0.0-tc-show-buffer-overflow.patch b/sys-apps/iproute2/files/iproute2-4.0.0-tc-show-buffer-overflow.patch new file mode 100644 index 000000000000..6c6c9a5c4308 --- /dev/null +++ b/sys-apps/iproute2/files/iproute2-4.0.0-tc-show-buffer-overflow.patch @@ -0,0 +1,62 @@ +https://bugs.gentoo.org/546928 + +From 46679bbbe89699016d31486de7599590d02a5054 Mon Sep 17 00:00:00 2001 +From: Vadim Kochan +Date: Mon, 20 Apr 2015 08:33:32 +0300 +Subject: [PATCH] tc util: Fix possible buffer overflow when print class id + +Use correct handle buffer length. + +Signed-off-by: Vadim Kochan +--- + tc/tc_util.c | 19 ++++++++++--------- + 1 file changed, 10 insertions(+), 9 deletions(-) + +diff --git a/tc/tc_util.c b/tc/tc_util.c +index 1d3153d..dc2b70f 100644 +--- a/tc/tc_util.c ++++ b/tc/tc_util.c +@@ -128,30 +128,31 @@ ok: + return 0; + } + +-int print_tc_classid(char *buf, int len, __u32 h) ++int print_tc_classid(char *buf, int blen, __u32 h) + { +- char handle[40] = {}; ++ SPRINT_BUF(handle) = {}; ++ int hlen = SPRINT_BSIZE - 1; + + if (h == TC_H_ROOT) + sprintf(handle, "root"); + else if (h == TC_H_UNSPEC) +- snprintf(handle, len, "none"); ++ snprintf(handle, hlen, "none"); + else if (TC_H_MAJ(h) == 0) +- snprintf(handle, len, ":%x", TC_H_MIN(h)); ++ snprintf(handle, hlen, ":%x", TC_H_MIN(h)); + else if (TC_H_MIN(h) == 0) +- snprintf(handle, len, "%x:", TC_H_MAJ(h) >> 16); ++ snprintf(handle, hlen, "%x:", TC_H_MAJ(h) >> 16); + else +- snprintf(handle, len, "%x:%x", TC_H_MAJ(h) >> 16, TC_H_MIN(h)); ++ snprintf(handle, hlen, "%x:%x", TC_H_MAJ(h) >> 16, TC_H_MIN(h)); + + if (use_names) { + char clname[IDNAME_MAX] = {}; + + if (id_to_name(cls_names, h, clname)) +- snprintf(buf, len, "%s#%s", clname, handle); ++ snprintf(buf, blen, "%s#%s", clname, handle); + else +- snprintf(buf, len, "%s", handle); ++ snprintf(buf, blen, "%s", handle); + } else { +- snprintf(buf, len, "%s", handle); ++ snprintf(buf, blen, "%s", handle); + } + + return 0; +-- +2.3.5 + diff --git a/sys-apps/iproute2/iproute2-2.6.38.ebuild b/sys-apps/iproute2/iproute2-2.6.38.ebuild new file mode 100644 index 000000000000..57e568aa491f --- /dev/null +++ b/sys-apps/iproute2/iproute2-2.6.38.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils multilib toolchain-funcs flag-o-matic + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 + SRC_URI="" + #KEYWORDS="" +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb minimal" + +RDEPEND="!net-misc/arpd + !minimal? ( berkdb? ( sys-libs/db ) ) + atm? ( net-dialup/linux-atm )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-2.6.27 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.6.29.1-hfsc.patch #291907 + epatch "${FILESDIR}"/${PN}-2.6.38-parallel-build.patch + + sed -i \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + Makefile || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile +} + +src_configure() { + echo "TC_CONFIG_ATM:=$(use atm && echo "y" || echo "n")" > Config + + # Use correct iptables dir, #144265 #293709 + append-cppflags -DIPT_LIB_DIR=\\\"`$(tc-getPKG_CONFIG) xtables --variable=xtlibdir`\\\" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + return 0 + fi + + emake \ + DESTDIR="${D}" \ + SBINDIR=/sbin \ + DOCDIR=/usr/share/doc/${PF} \ + MANDIR=/usr/share/man \ + install + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/sbin + mv "${ED}"/sbin/arpd "${ED}"/usr/sbin/ + fi +} diff --git a/sys-apps/iproute2/iproute2-3.17.0.ebuild b/sys-apps/iproute2/iproute2-3.17.0.ebuild new file mode 100644 index 000000000000..20a236926d99 --- /dev/null +++ b/sys-apps/iproute2/iproute2-3.17.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal selinux" + +RDEPEND="!net-misc/arpd + iptables? ( >=net-firewall/iptables-1.4.20:= ) + !minimal? ( berkdb? ( sys-libs/db ) ) + atm? ( net-dialup/linux-atm ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-2.6.27 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # Use /run instead of /var/run. + sed -i \ + -e 's:/var/run:/run:g' \ + ip/ipnetns.c \ + man/man8/ip-netns.8 || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + HAVE_SELINUX := $(usex selinux y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/iproute2-3.19.0.ebuild b/sys-apps/iproute2/iproute2-3.19.0.ebuild new file mode 100644 index 000000000000..940ee980fc5a --- /dev/null +++ b/sys-apps/iproute2/iproute2-3.19.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal selinux" + +RDEPEND="!net-misc/arpd + iptables? ( >=net-firewall/iptables-1.4.20:= ) + !minimal? ( berkdb? ( sys-libs/db ) ) + atm? ( net-dialup/linux-atm ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-2.6.27 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # Use /run instead of /var/run. + sed -i \ + -e 's:/var/run:/run:g' \ + include/namespace.h \ + man/man8/ip-netns.8 || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + HAVE_SELINUX := $(usex selinux y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/iproute2-3.3.0.ebuild b/sys-apps/iproute2/iproute2-3.3.0.ebuild new file mode 100644 index 000000000000..864f59be02f0 --- /dev/null +++ b/sys-apps/iproute2/iproute2-3.3.0.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 + SRC_URI="" + #KEYWORDS="" +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.bz2" + KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal" + +RDEPEND="!net-misc/arpd + iptables? ( >=net-firewall/iptables-1.4.5 ) + !minimal? ( berkdb? ( sys-libs/db ) ) + atm? ( net-dialup/linux-atm )" +DEPEND="${RDEPEND} + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-2.6.27 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.1.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + Makefile || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/sbin + mv "${ED}"/sbin/arpd "${ED}"/usr/sbin/ + fi +} diff --git a/sys-apps/iproute2/iproute2-3.8.0.ebuild b/sys-apps/iproute2/iproute2-3.8.0.ebuild new file mode 100644 index 000000000000..26a9e61636e5 --- /dev/null +++ b/sys-apps/iproute2/iproute2-3.8.0.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal" + +RDEPEND="!net-misc/arpd + iptables? ( >=net-firewall/iptables-1.4.16 ) + !minimal? ( berkdb? ( sys-libs/db ) ) + atm? ( net-dialup/linux-atm )" +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-2.6.27 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + epatch "${FILESDIR}"/${P}-old-mount-libc.patch #468120 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.1.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/iproute2-4.0.0-r2.ebuild b/sys-apps/iproute2/iproute2-4.0.0-r2.ebuild new file mode 100644 index 000000000000..c419af059b38 --- /dev/null +++ b/sys-apps/iproute2/iproute2-4.0.0-r2.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal selinux" + +RDEPEND="!net-misc/arpd + iptables? ( >=net-firewall/iptables-1.4.20:= ) + berkdb? ( sys-libs/db:= ) + atm? ( net-dialup/linux-atm ) + selinux? ( sys-libs/libselinux )" +# We require newer linux-headers for ipset support #549948 +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-3.7 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + epatch "${FILESDIR}"/${P}-tc-show-buffer-overflow.patch #546928 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # Use /run instead of /var/run. + sed -i \ + -e 's:/var/run:/run:g' \ + include/namespace.h \ + man/man8/ip-netns.8 || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + # We've locked in recent enough kernel headers #549948 + TC_CONFIG_IPSET := y + HAVE_SELINUX := $(usex selinux y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + dobin ip/ip + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/iproute2-4.1.0.ebuild b/sys-apps/iproute2/iproute2-4.1.0.ebuild new file mode 100644 index 000000000000..734e2b1f2f38 --- /dev/null +++ b/sys-apps/iproute2/iproute2-4.1.0.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal selinux" + +RDEPEND="!net-misc/arpd + net-libs/libmnl + iptables? ( >=net-firewall/iptables-1.4.20:= ) + berkdb? ( sys-libs/db:= ) + atm? ( net-dialup/linux-atm ) + selinux? ( sys-libs/libselinux )" +# We require newer linux-headers for ipset support #549948 and some defines #553876 +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-3.16 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # Use /run instead of /var/run. + sed -i \ + -e 's:/var/run:/run:g' \ + include/namespace.h \ + man/man8/ip-netns.8 || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + # We've locked in recent enough kernel headers #549948 + TC_CONFIG_IPSET := y + HAVE_SELINUX := $(usex selinux y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + dobin ip/ip + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/iproute2-4.1.1.ebuild b/sys-apps/iproute2/iproute2-4.1.1.ebuild new file mode 100644 index 000000000000..4fb18ee4aac5 --- /dev/null +++ b/sys-apps/iproute2/iproute2-4.1.1.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal selinux" + +# We could make libmnl optional, but it's tiny, so eh +RDEPEND="!net-misc/arpd + !minimal? ( net-libs/libmnl ) + iptables? ( >=net-firewall/iptables-1.4.20:= ) + berkdb? ( sys-libs/db:= ) + atm? ( net-dialup/linux-atm ) + selinux? ( sys-libs/libselinux )" +# We require newer linux-headers for ipset support #549948 and some defines #553876 +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-3.16 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # Use /run instead of /var/run. + sed -i \ + -e 's:/var/run:/run:g' \ + include/namespace.h \ + man/man8/ip-netns.8 || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + # We've locked in recent enough kernel headers #549948 + TC_CONFIG_IPSET := y + HAVE_MNL := $(usex minimal n y) + HAVE_SELINUX := $(usex selinux y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc + dobin ip/ip + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/iproute2-9999.ebuild b/sys-apps/iproute2/iproute2-9999.ebuild new file mode 100644 index 000000000000..9771db4a8dcc --- /dev/null +++ b/sys-apps/iproute2/iproute2-9999.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs flag-o-matic multilib + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git" + inherit git-2 +else + SRC_URI="mirror://kernel/linux/utils/net/${PN}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="kernel routing and traffic control utilities" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2" + +LICENSE="GPL-2" +SLOT="0" +IUSE="atm berkdb +iptables ipv6 minimal selinux" + +RDEPEND="!net-misc/arpd + iptables? ( >=net-firewall/iptables-1.4.20:= ) + berkdb? ( sys-libs/db:= ) + atm? ( net-dialup/linux-atm ) + selinux? ( sys-libs/libselinux )" +# We require newer linux-headers for ipset support #549948 +DEPEND="${RDEPEND} + app-arch/xz-utils + iptables? ( virtual/pkgconfig ) + sys-devel/bison + sys-devel/flex + >=sys-kernel/linux-headers-3.7 + elibc_glibc? ( >=sys-libs/glibc-2.7 )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 + epatch "${FILESDIR}"/${P}-tc-show-buffer-overflow.patch #546928 + use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849 + + sed -i \ + -e '/^CC =/d' \ + -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \ + -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^WFLAGS/s:-Werror::" \ + -e "/^DBM_INCLUDE/s:=.*:=${T}:" \ + Makefile || die + + # Use /run instead of /var/run. + sed -i \ + -e 's:/var/run:/run:g' \ + include/namespace.h \ + man/man8/ip-netns.8 || die + + # build against system headers + rm -r include/netinet #include/linux include/ip{,6}tables{,_common}.h include/libiptc + sed -i 's:TCPI_OPT_ECN_SEEN:16:' misc/ss.c || die + + # don't build arpd if USE=-berkdb #81660 + use berkdb || sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + + use minimal && sed -i -e '/^SUBDIRS=/s:=.*:=lib tc ip:' Makefile +} + +src_configure() { + tc-export AR CC PKG_CONFIG + + # This sure is ugly. Should probably move into toolchain-funcs at some point. + local setns + pushd "${T}" >/dev/null + echo 'main(){return setns();};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c >&/dev/null && setns=y || setns=n + echo 'main(){};' > test.c + ${CC} ${CFLAGS} ${LDFLAGS} test.c -lresolv >&/dev/null || sed -i '/^LDLIBS/s:-lresolv::' "${S}"/Makefile + popd >/dev/null + + cat <<-EOF > Config + TC_CONFIG_ATM := $(usex atm y n) + TC_CONFIG_XT := $(usex iptables y n) + # We've locked in recent enough kernel headers #549948 + TC_CONFIG_IPSET := y + HAVE_SELINUX := $(usex selinux y n) + IP_CONFIG_SETNS := ${setns} + # Use correct iptables dir, #144265 #293709 + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + EOF +} + +src_install() { + if use minimal ; then + into / + dosbin tc/tc ip/ip + return 0 + fi + + emake \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}"/$(get_libdir) \ + SBINDIR="${EPREFIX}"/sbin \ + CONFDIR="${EPREFIX}"/etc/iproute2 \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + MANDIR="${EPREFIX}"/usr/share/man \ + ARPDDIR="${EPREFIX}"/var/lib/arpd \ + install + + rm "${ED}"/usr/share/doc/${PF}/*.{sgml,tex} || die #455988 + + dodir /bin + mv "${ED}"/{s,}bin/ip || die #330115 + + dolib.a lib/libnetlink.a + insinto /usr/include + doins include/libnetlink.h + # This local header pulls in a lot of linux headers it + # doesn't directly need. Delete this header that requires + # linux-headers-3.8 until that goes stable. #467716 + sed -i '/linux\/netconf.h/d' "${ED}"/usr/include/libnetlink.h || die + + if use berkdb ; then + dodir /var/lib/arpd + # bug 47482, arpd doesn't need to be in /sbin + dodir /usr/bin + mv "${ED}"/sbin/arpd "${ED}"/usr/bin/ || die + fi +} diff --git a/sys-apps/iproute2/metadata.xml b/sys-apps/iproute2/metadata.xml new file mode 100644 index 000000000000..fb2e46a5aecd --- /dev/null +++ b/sys-apps/iproute2/metadata.xml @@ -0,0 +1,10 @@ + + + +base-system + + build programs that use berkdb (just arpd) + include support for iptables filtering + only install ip and tc programs + + diff --git a/sys-apps/irqbalance/Manifest b/sys-apps/irqbalance/Manifest new file mode 100644 index 000000000000..2713c27bb9d6 --- /dev/null +++ b/sys-apps/irqbalance/Manifest @@ -0,0 +1,6 @@ +DIST irqbalance-0.56.tbz2 28089 SHA256 516e1bdc5469f0f350e2e9ad2925b221faa4497a608c8d4e28a997938451c5fc SHA512 52575520abeaa4268cfc1bb2c5044cb43704e1981dcdbf3e124fced436222b5a5a9d57ec8082e2a4139bfb5be177aefc11809c6865a2b085f46babeeb541daa2 WHIRLPOOL b0d73af7a80a09635ecab2984bf473d27056a8e6cb562708fa5f19428ad07f8c69362d99ea21e7a2a8522d474d65d41358764682fa3e6e481b10baf465525875 +DIST irqbalance-1.0.4.tar.bz2 286985 SHA256 15725edf4a6f20258620cbd05ebf02d0c25aadd5ffa4871ef8507c9215021c43 SHA512 f61d7cd0690a80cfa2ff249a75db675179d4a945bc784b3af8293200a642b6ac0e0564b8c7b8fc0a63363caf8ebab2a7b50b6699cb53587fafd5b50cf73c0f11 WHIRLPOOL ab1a7717cd1c08ce17ac831d75f934aa0d48653f8c194cf683694c498532a90086de18ee3cc0ee7ad09e4cce442173c94dd98e919b8f169e716eb6ead5f593c6 +DIST irqbalance-1.0.5.tar.gz 350213 SHA256 1123e75224b9c0b63ac85892e920bc4a9c76211278ea3d5d4bcbbde44815685c SHA512 333587c16221532be6a353d628b5f8cc557f7917fb423cfac0092f9a5000cc82b042d37b9c3160f5d37d931e8e50a313278e8e30f2dc65f7db60fdf95664bc06 WHIRLPOOL 7fd5e93c0549011c593dbcad9fd9fe94706ac78d4e394a098b0eb63f6de33225f2358aaf84863c662fb392463dfa97777587753df69c041033dee06f91844aa8 +DIST irqbalance-1.0.6.tar.gz 352325 SHA256 95ac79992e6de501f613c781b0fc8aa17a4aaf6a3d865bb6e15ac6a46c6ab1fd SHA512 be14f89c0f137a0cb9c572bc7fb2360941751e4676b147a9d4a44aeb6242577b7dfaa4aa4810ded05244da59fc6d24f22ab88740a8751685a3177b010259a6f0 WHIRLPOOL dcc51bec29eb78a0e9e777a7c5d254ff338390e44dfc4019edb2a1f1eb85f6eafd9bdd7fdc60903b1f94f70194cc1ab1d61cac68da429a009d1f26bee7d357ef +DIST irqbalance-1.0.7.tar.gz 41209 SHA256 8c3916780d254b74fb1c7ec22876d63ac01f1b32776d9204a604b73c8f591d2a SHA512 388f982fe620d8df850e6e298a194a5ba1393f29f1b25897bfa79e34f3acb32e762b86e31154e7af614d5d84a38a61b85ff07c0dd2032e1eb6b0e30ea9010612 WHIRLPOOL fdbaa8817aae91bc1960115aa457e4dc92b36f62ba7680e9aac35459072d73f2e30015c616c86ce451ac6cd335406ac2423328232768c893e17e17537c3c951e +DIST irqbalance-1.0.9.tar.gz 44661 SHA256 f1b8115948bb9f0bc36b9d7143ee8be751a294bc189d311408e753acc37169c3 SHA512 ef3ce9eeec11ec86291e2e3cd701e782ee1fb4ba256e2ea5ea0ea04b373f97ff2eae0a44919127c4dbd7fd805e9e3df3a5e62a3528e4d1c9bbab4db39186b5c5 WHIRLPOOL 7bed3d8dd868b4ad697b997143a59b9101815d0bfc08d1d594248c1fcfeaec22045fbe779605583a89aa7d2c8a54e079317bf8a6e4ef8135fc887e2d1518e706 diff --git a/sys-apps/irqbalance/files/irqbalance-0.56-build.patch b/sys-apps/irqbalance/files/irqbalance-0.56-build.patch new file mode 100644 index 000000000000..b7202a4701f1 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance-0.56-build.patch @@ -0,0 +1,16 @@ +http://code.google.com/p/irqbalance/issues/detail?id=8 +http://code.google.com/p/irqbalance/issues/detail?id=13 + +--- a/Makefile.am ++++ b/Makefile.am +@@ -25,7 +25,9 @@ + + INCLUDES = -I${top_srcdir} + LIBS = $(CAPNG_LDADD) $(GLIB_LIBS) +-AM_CFLAGS = -g -Os -W -Wall -Wshadow -Wformat -Wundef $(GLIB_CFLAGS) -D_GNU_SOURCE ++AM_CFLAGS = -W -Wall -Wshadow -Wformat -Wundef ++AM_CPPFLAGS = $(GLIB_CFLAGS) -D_GNU_SOURCE ++dist_man_MANS = irqbalance.1 + noinst_HEADERS = bitmap.h constants.h cpumask.h irqbalance.h non-atomic.h \ + types.h + sbin_PROGRAMS = irqbalance diff --git a/sys-apps/irqbalance/files/irqbalance.1 b/sys-apps/irqbalance/files/irqbalance.1 new file mode 100644 index 000000000000..c26c709a01d0 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.1 @@ -0,0 +1,64 @@ +.\"Generated by db2man.xsl. Don't modify this, modify the source. +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH "IRQBALANCE" 1 "Dec 2006" "Linux" "irqbalance" +.SH NAME +irqbalance \- distribute hardware interrupts across processors on a multiprocessor system +.SH "SYNOPSIS" + +.nf +\fBirqbalance\fR +.fi + +.SH "DESCRIPTION" + +.PP +The purpose of \fBirqbalance\fR is distribute hardware interrupts across processors on a multiprocessor system in order to increase performance\&. + +.SH "OPTIONS" + +.TP +.B --oneshot +Causes irqbalance to be run once, after which the daemon exits +.TP + +.B --debug +Causes irqbalance to run in the foreground and extra debug information to be printed + +.SH "ENVIRONMENT VARIABLES" +.TP +.B IRQBALANCE_ONESHOT +Same as --oneshot + +.TP +.B IRQBALANCE_DEBUG +Same as --debug + +.TP +.B IRQBALANCE_BANNED_CPUS +Provides a mask of cpus which irqbalance should ignore and never assign interrupts to + +.TP +.B IRQBALANCE_BANNED_INTERRUPTS +A list of space delimited IRQ numbers that irqbalance should not touch + +.SH "Homepage" +http://www.irqbalance.org + + diff --git a/sys-apps/irqbalance/files/irqbalance.confd b/sys-apps/irqbalance/files/irqbalance.confd new file mode 100644 index 000000000000..152dd7988652 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.confd @@ -0,0 +1,15 @@ +# /etc/conf.d/irqbalance: config file for /etc/init.d/irqbalance +# These are envvars used by irqbalance itself. For more info, +# please see the irqbalance manpage. + +# Run irqbalance once and then exit +#IRQBALANCE_ONESHOT="0" + +# Include debug messages in output +#IRQBALANCE_DEBUG="0" + +# List of cpus to not include in balancing +#IRQBALANCE_BANNED_CPUS="" + +# List of interrupts to not include in balancing +#IRQBALANCE_BANNED_INTERRUPTS="" diff --git a/sys-apps/irqbalance/files/irqbalance.confd-1 b/sys-apps/irqbalance/files/irqbalance.confd-1 new file mode 100644 index 000000000000..2761cfcd3596 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.confd-1 @@ -0,0 +1,19 @@ +# /etc/conf.d/irqbalance: config file for /etc/init.d/irqbalance + +# Additional options to pass to irqbalance itself. +IRQBALANCE_OPTS="" + +# These are envvars used by irqbalance itself, so make sure the "export" +# is retained. For more info, please see the irqbalance manpage. + +# Run irqbalance once and then exit +#export IRQBALANCE_ONESHOT="0" + +# Include debug messages in output +#export IRQBALANCE_DEBUG="0" + +# List of cpus to not include in balancing +#export IRQBALANCE_BANNED_CPUS="" + +# List of interrupts to not include in balancing +#export IRQBALANCE_BANNED_INTERRUPTS="" diff --git a/sys-apps/irqbalance/files/irqbalance.init-0.55-r2 b/sys-apps/irqbalance/files/irqbalance.init-0.55-r2 new file mode 100644 index 000000000000..476ba7c755ab --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init-0.55-r2 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need localmount + after bootmisc +} + +start() { + ebegin "Starting irqbalance" + start-stop-daemon --start --exec /sbin/irqbalance + eend $? +} + +stop() { + ebegin "Stopping irqbalance" + start-stop-daemon --stop --exec /sbin/irqbalance + eend $? +} diff --git a/sys-apps/irqbalance/files/irqbalance.init.2 b/sys-apps/irqbalance/files/irqbalance.init.2 new file mode 100644 index 000000000000..909800a9b3d9 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.2 @@ -0,0 +1,12 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need localmount + after bootmisc +} + +command="/usr/sbin/irqbalance" +command_args="${IRQBALANCE_OPTS}" diff --git a/sys-apps/irqbalance/files/irqbalance.init.3 b/sys-apps/irqbalance/files/irqbalance.init.3 new file mode 100644 index 000000000000..84cdb83af267 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.3 @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need localmount + after bootmisc +} + +command="/usr/sbin/irqbalance" +command_args="${IRQBALANCE_OPTS}" + +check_sysfs() { + if grep -q MSI /proc/interrupts 2>/dev/null && \ + test -z "$(find /sys/devices -type d -name msi_irqs 2>/dev/null)"; then + eerror "MSI interrupts found in /proc/interrupts but none found in sysfs." + eerror "You need to update your kernel." + return 1 + fi +} + +start() { + check_sysfs || return 1 + ebegin "Starting irqbalance" + start-stop-daemon --exec ${command} --start -- ${IRQBALANCE_OPTS} + eend $? +} diff --git a/sys-apps/irqbalance/files/irqbalance.service b/sys-apps/irqbalance/files/irqbalance.service new file mode 100644 index 000000000000..b7b589f2294c --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.service @@ -0,0 +1,11 @@ +[Unit] +Description=CPU Interrupt Balancer + +[Service] +ExecStart=/usr/sbin/irqbalance --debug +# --debug implies a lot of cruft +# but it's the only way to get foregrounding +StandardOutput=null + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/irqbalance/irqbalance-0.56.ebuild b/sys-apps/irqbalance/irqbalance-0.56.ebuild new file mode 100644 index 000000000000..68aaa82855b9 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-0.56.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils autotools + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="http://www.irqbalance.org/" +SRC_URI="https://github.com/Irqbalance/irqbalancefiles/${P}.tbz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="caps" + +RDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + mv cap-ng.m4 acinclude.m4 || die + eautoreconf +} + +src_configure() { + econf \ + --sbindir=/sbin \ + $(use_with caps libcap-ng) +} + +src_install() { + emake install DESTDIR="${D}" || die + newinitd "${FILESDIR}"/irqbalance.init-0.55-r2 irqbalance || die + newconfd "${FILESDIR}"/irqbalance.confd irqbalance +} diff --git a/sys-apps/irqbalance/irqbalance-1.0.4.ebuild b/sys-apps/irqbalance/irqbalance-1.0.4.ebuild new file mode 100644 index 000000000000..5671214309e9 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit systemd + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/irqbalancefiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="caps numa" + +RDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + econf \ + $(use_with caps libcap-ng) \ + $(use_enable numa) +} + +src_install() { + default + newinitd "${FILESDIR}"/irqbalance.init.2 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit "${FILESDIR}"/irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.0.5-r1.ebuild b/sys-apps/irqbalance/irqbalance-1.0.5-r1.ebuild new file mode 100644 index 000000000000..02afb7473881 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.5-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/irqbalancefiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="caps +numa" + +RDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_configure() { + econf \ + $(use_with caps libcap-ng) \ + $(use_enable numa) +} + +src_install() { + default + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit "${FILESDIR}"/irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.0.6.ebuild b/sys-apps/irqbalance/irqbalance-1.0.6.ebuild new file mode 100644 index 000000000000..02afb7473881 --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.6.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/irqbalancefiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="caps +numa" + +RDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_configure() { + econf \ + $(use_with caps libcap-ng) \ + $(use_enable numa) +} + +src_install() { + default + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit "${FILESDIR}"/irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.0.7-r1.ebuild b/sys-apps/irqbalance/irqbalance-1.0.7-r1.ebuild new file mode 100644 index 000000000000..5efa212aaf3b --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.7-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="caps +numa selinux" + +CDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl ) +" +DEPEND="${CDEPEND} + virtual/pkgconfig +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-irqbalance ) +" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit "${FILESDIR}"/irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.0.7.ebuild b/sys-apps/irqbalance/irqbalance-1.0.7.ebuild new file mode 100644 index 000000000000..f815943eb6aa --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="caps +numa" + +RDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit "${FILESDIR}"/irqbalance.service +} diff --git a/sys-apps/irqbalance/irqbalance-1.0.9.ebuild b/sys-apps/irqbalance/irqbalance-1.0.9.ebuild new file mode 100644 index 000000000000..148cef01811b --- /dev/null +++ b/sys-apps/irqbalance/irqbalance-1.0.9.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils systemd linux-info + +DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" +HOMEPAGE="https://github.com/Irqbalance/irqbalance" +SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="caps +numa selinux" + +CDEPEND="dev-libs/glib:2 + caps? ( sys-libs/libcap-ng ) + numa? ( sys-process/numactl ) +" +DEPEND="${CDEPEND} + virtual/pkgconfig +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-irqbalance ) +" + +pkg_setup() { + CONFIG_CHECK="~PCI_MSI" + linux-info_pkg_setup +} + +src_configure() { + local myeconfargs=( + $(use_with caps libcap-ng) + $(use_enable numa) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance + newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance + systemd_dounit "${FILESDIR}"/irqbalance.service +} diff --git a/sys-apps/irqbalance/metadata.xml b/sys-apps/irqbalance/metadata.xml new file mode 100644 index 000000000000..9a4bd53c8a4d --- /dev/null +++ b/sys-apps/irqbalance/metadata.xml @@ -0,0 +1,12 @@ + + + + base-system + + Support balancing IRQs across NUMA nodes + + + irqbalance + Irqbalance/irqbalance + + diff --git a/sys-apps/isapnptools/Manifest b/sys-apps/isapnptools/Manifest new file mode 100644 index 000000000000..a33cf68d0999 --- /dev/null +++ b/sys-apps/isapnptools/Manifest @@ -0,0 +1 @@ +DIST isapnptools-1.27.tgz 499639 SHA256 32b1af6188a2b6fc432ab10c58a97985836ffa8d4762a8e9aae9b442a44466f4 diff --git a/sys-apps/isapnptools/files/isapnp.rc b/sys-apps/isapnptools/files/isapnp.rc new file mode 100644 index 000000000000..1c8eb5509b4c --- /dev/null +++ b/sys-apps/isapnptools/files/isapnp.rc @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +check_config() { + if [ ! -e /etc/isapnp.conf ] ; then + eerror "You need an /etc/isapnp.conf file first" + eerror "Theres a sample in docs/isapnptools/txt" + return 1 + fi + if [ ! -x /sbin/isapnp ] ; then + eerror "You're missing /sbin/isapnp; emerge sys-apps/isapnptools" + return 1 + fi + + return 0 +} + +start() { + check_config || return 1 + + ebegin "Configuring ISA PnP devices" + /sbin/isapnp /etc/isapnp.conf + eend $? +} diff --git a/sys-apps/isapnptools/files/isapnptools-1.26-gcc.patch b/sys-apps/isapnptools/files/isapnptools-1.26-gcc.patch new file mode 100644 index 000000000000..3d1f2cee9f80 --- /dev/null +++ b/sys-apps/isapnptools/files/isapnptools-1.26-gcc.patch @@ -0,0 +1,41 @@ +http://bugs.gentoo.org/117333 + +--- isapnptools/src/isapnp_main.l ++++ isapnptools/src/isapnp_main.l +@@ -363,7 +363,6 @@ + return 0; + } + +-static unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN]; + static char *boardid[NUM_CARDS+1]; + static unsigned long serno[NUM_CARDS+1]; + +--- isapnptools/src/callbacks.c ++++ isapnptools/src/callbacks.c +@@ -49,6 +49,7 @@ + #include + #endif + #include ++#include + #include + #include + +--- isapnptools/src/resource.c ++++ isapnptools/src/resource.c +@@ -12,6 +12,7 @@ + alloc_in_range_list() reordered to handle source name by P.Fox + */ + ++#define _GNU_SOURCE + #ifdef HAVE_CONFIG_H + #include + #endif +@@ -285,7 +286,7 @@ + void allocate_pci_resources( void ) + { + char *line = 0; +- int lineMax = 0; ++ size_t lineMax = 0; + + FILE *fp = fopen( "/proc/bus/pci/devices", "rt" ); + if( !fp ) diff --git a/sys-apps/isapnptools/files/isapnptools-1.27-include.patch b/sys-apps/isapnptools/files/isapnptools-1.27-include.patch new file mode 100644 index 000000000000..a736ccc1eb9d --- /dev/null +++ b/sys-apps/isapnptools/files/isapnptools-1.27-include.patch @@ -0,0 +1,10 @@ +--- src/callbacks.c.org 2001-05-15 22:37:04.000000000 +0200 ++++ src/callbacks.c 2011-06-15 05:21:32.292819557 +0200 +@@ -51,6 +51,7 @@ + #include + #include + #include ++#include /* exit() */ + + /****************************************************************************/ + diff --git a/sys-apps/isapnptools/isapnptools-1.27.ebuild b/sys-apps/isapnptools/isapnptools-1.27.ebuild new file mode 100644 index 000000000000..84dafbcaca4c --- /dev/null +++ b/sys-apps/isapnptools/isapnptools-1.27.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils + +DESCRIPTION="Tools for configuring ISA PnP devices" +HOMEPAGE="http://www.roestock.demon.co.uk/isapnptools/" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/hardware/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-include.patch +} + +src_install() { + emake DESTDIR="${D}" install || die + dodir /sbin + mv "${D}"/usr/sbin/isapnp "${D}"/sbin/ || die + + dodoc AUTHORS ChangeLog README NEWS + docinto txt + dodoc doc/README* doc/*.txt test/*.txt + dodoc etc/isapnp.* + + newinitd "${FILESDIR}"/isapnp.rc isapnp +} diff --git a/sys-apps/isapnptools/metadata.xml b/sys-apps/isapnptools/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/isapnptools/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/kbd/Manifest b/sys-apps/kbd/Manifest new file mode 100644 index 000000000000..2687a82e30ea --- /dev/null +++ b/sys-apps/kbd/Manifest @@ -0,0 +1,4 @@ +DIST kbd-1.15.5.tar.gz 1730719 SHA256 e35fa29f690dbbfb721706b2c8edc760c697640904fec65e81194ae8840c5c62 SHA512 725853b0ecde6a38976e2bae5672b8de78bfc90d65a0762695964a6dab729c96be4af778fe7f0f195caae04d630b07a3d0d95c9c928d1a5609e223e47723e58c WHIRLPOOL 431873623d4125b73622894c511711a2153fae498a17dc59851219405c69a641c24bb591fa66001eb4cc7491fc4f90e532661c2bf56f69e2a17dd435d1e14ace +DIST kbd-2.0.1.tar.xz 951132 SHA256 55407b79e90ee65cdbaff7d3dafd2b53c4fee3a645788ffb582091074a2254af SHA512 8d6f663611a99426a7259909d1276732635edc90e61a4affc4cebbdd8bcb180c91a19c8f90bc1b6511c57abee66d5fa513f13bc05cfb3903ee51b5048577d836 WHIRLPOOL 3be2d1fb0cae1443dbd813a45cd815664e4bab94fa1bc37b0c3054f86846fa3d69c8c1a5e620413da34d65f58a90768eac22cd24972366f2d8d24fafcd094703 +DIST kbd-2.0.2.tar.xz 1023980 SHA256 9dfddabf96012e329c4bebb96a21aeef7c3872f624e96e8156ba542b82aeb912 SHA512 8159383f94242f06c701dfd5400e35bd3a76494a643f738d98c6713bcb20034065b49f31f66e8bf19e6829a30be97fbeee43ed8ad276febb98e28b3bf82972fa WHIRLPOOL e6a5be104b11266f8be9ba653e9e0de701cdf4c56b249af9bc52ea5eea374d1de82e3f4a02214552750adebb8ae21c8c964a4161d661e460f765306920e23849 +DIST kbd-2.0.3.tar.xz 1037036 SHA256 7a899de1c0eb75f3aea737095a736f2375e1cbfbe693fc14a3fe0bfb4649fb5e SHA512 522718859c2a95abee06a50dd0a7cfe7bb9c8f4b3959d54fd9e56cef23acc85b9af85405aa4953f20cd029397412051d72c8b1b0d639ba3a26b4952f89ef6a3f WHIRLPOOL 7534370cd0410119775c564269ada152248c75711332e2d6884d1503cef4f573617d7d7d4bb29c581ee993be2f8e96f6c290feb07bfabbb8c14a12ca6d33841e diff --git a/sys-apps/kbd/files/kbd-1.15.5-loadkeys-parse.patch b/sys-apps/kbd/files/kbd-1.15.5-loadkeys-parse.patch new file mode 100644 index 000000000000..c78a22780840 --- /dev/null +++ b/sys-apps/kbd/files/kbd-1.15.5-loadkeys-parse.patch @@ -0,0 +1,90 @@ +https://bugs.gentoo.org/447440 + +From 7e06e56157e8431d02e1377cdc44230944203d88 Mon Sep 17 00:00:00 2001 +From: Alexey Gladkov +Date: Tue, 11 Dec 2012 14:24:44 +0400 +Subject: [PATCH] Fix regression in 16117ce6ab + +Signed-off-by: Alexey Gladkov +--- + src/loadkeys.analyze.l | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) + +diff --git a/src/loadkeys.analyze.l b/src/loadkeys.analyze.l +index c18dcea..f817c78 100644 +--- a/src/loadkeys.analyze.l ++++ b/src/loadkeys.analyze.l +@@ -307,8 +307,10 @@ To to|To|TO + char *s = xstrndup(yytext+1, strlen(yytext)-2); + /* use static pathname to store *s ? */ + open_include(s); +- yy_pop_state(); +- state_ptr--; ++ while (state_ptr > 0) { ++ yy_pop_state(); ++ state_ptr--; ++ } + } + [^"]|\"\"|\"[^"\n]*{Eol} { + yyerror(_("expected filename between quotes")); +@@ -323,7 +325,7 @@ To to|To|TO + } + {Eol} { + line_nr++; +- if (state_ptr > 0) { ++ while (state_ptr > 0) { + yy_pop_state(); + state_ptr--; + } +@@ -428,8 +430,10 @@ To to|To|TO + } + \" { + *p = '\0'; +- yy_pop_state(); +- state_ptr--; ++ while (state_ptr > 0) { ++ yy_pop_state(); ++ state_ptr--; ++ } + return(STRLITERAL); + } + . { +--- a/src/loadkeys.analyze.c ++++ b/src/loadkeys.analyze.c +@@ -1359,8 +1359,10 @@ YY_RULE_SETUP + char *s = xstrndup(yytext+1, strlen(yytext)-2); + /* use static pathname to store *s ? */ + open_include(s); +- yy_pop_state(); +- state_ptr--; ++ while (state_ptr > 0) { ++ yy_pop_state(); ++ state_ptr--; ++ } + } + YY_BREAK + case 3: +@@ -1393,7 +1395,7 @@ YY_RULE_SETUP + #line 324 "loadkeys.analyze.l" + { + line_nr++; +- if (state_ptr > 0) { ++ while (state_ptr > 0) { + yy_pop_state(); + state_ptr--; + } +@@ -1670,8 +1670,10 @@ YY_RULE_SETUP + #line 429 "loadkeys.analyze.l" + { + *p = '\0'; +- yy_pop_state(); +- state_ptr--; ++ while (state_ptr > 0) { ++ yy_pop_state(); ++ state_ptr--; ++ } + return(STRLITERAL); + } + YY_BREAK +-- +1.8.0.2 diff --git a/sys-apps/kbd/files/kbd-2.0.0-tests.patch b/sys-apps/kbd/files/kbd-2.0.0-tests.patch new file mode 100644 index 000000000000..6a1c7ea851e3 --- /dev/null +++ b/sys-apps/kbd/files/kbd-2.0.0-tests.patch @@ -0,0 +1,34 @@ +https://bugs.gentoo.org/485116 +http://lists.altlinux.org/pipermail/kbd/2015-July/000558.html + +--- configure.ac ++++ configure.ac +@@ -11,7 +11,13 @@ + AC_CONFIG_SRCDIR([src/loadkeys.c]) + AC_CONFIG_HEADERS(config.h) + +-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) ++AC_ARG_ENABLE(tests, ++ AS_HELP_STRING(--enable-tests, [build tests]), ++ [BUILD_TESTS=$enableval],[BUILD_TESTS=no]) ++AM_CONDITIONAL(BUILD_TESTS, test "$BUILD_TESTS" = "yes") ++if test "$BUILD_TESTS" = "yes"; then ++ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4]) ++fi + + m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) + AM_SILENT_RULES([yes]) +--- Makefile.am ++++ Makefile.am +@@ -8,7 +8,10 @@ + CREDITS \ + contrib docs rc + +-SUBDIRS = src data po tests docs ++SUBDIRS = src data po docs ++if BUILD_TESTS ++SUBDIRS += tests ++endif + + kbd-$(VERSION).tar.xz: + make distcheck diff --git a/sys-apps/kbd/files/kbd-2.0.1-big_endian.patch b/sys-apps/kbd/files/kbd-2.0.1-big_endian.patch new file mode 100644 index 000000000000..f69b7f9c811a --- /dev/null +++ b/sys-apps/kbd/files/kbd-2.0.1-big_endian.patch @@ -0,0 +1,27 @@ +From 363185b72ccb5279fa950a378ebd93c082078d39 Mon Sep 17 00:00:00 2001 +From: Aaro Koskinen +Date: Sat, 15 Mar 2014 01:32:56 +0200 +Subject: libkeymap: fix kmap on big-endian machines + +Currently "loadkeys" does not work properly (no keys are ever changed) +on big-endian machines (e.g. SPARC and other classic hardware) +due to incorrect typing. The patch fixes this. + +Signed-off-by: Aaro Koskinen + +diff --git a/src/libkeymap/kmap.c b/src/libkeymap/kmap.c +index e529136..85a3bb3 100644 +--- a/src/libkeymap/kmap.c ++++ b/src/libkeymap/kmap.c +@@ -37,7 +37,7 @@ int + lk_key_exists(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index) + { + struct lk_array *map; +- u_short *key; ++ unsigned int *key; + + map = lk_array_get_ptr(ctx->keymap, k_table); + if (!map) { +-- +cgit v0.10.1 + diff --git a/sys-apps/kbd/files/kbd-2.0.1-stdarg.patch b/sys-apps/kbd/files/kbd-2.0.1-stdarg.patch new file mode 100644 index 000000000000..b325af4b1d6a --- /dev/null +++ b/sys-apps/kbd/files/kbd-2.0.1-stdarg.patch @@ -0,0 +1,43 @@ +From 7955ccd650dc3235df3bf6333222c2811dd43141 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 6 Jan 2014 10:27:23 -0500 +Subject: [PATCH] libkeymap: include stdarg.h where used + +Some of these headers use va_list but don't include stdarg.h for it. + +Reported-by: Anthony Basile +Signed-off-by: Mike Frysinger +--- + src/libkeymap/contextP.h | 2 ++ + src/libkeymap/keymap/common.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/src/libkeymap/contextP.h b/src/libkeymap/contextP.h +index e3798e3..8ee3fab 100644 +--- a/src/libkeymap/contextP.h ++++ b/src/libkeymap/contextP.h +@@ -1,6 +1,8 @@ + #ifndef LK_CONTEXTP_H + #define LK_CONTEXTP_H + ++#include ++ + #include "keymap.h" + + /** +diff --git a/src/libkeymap/keymap/common.h b/src/libkeymap/keymap/common.h +index 6b9cead..987b564 100644 +--- a/src/libkeymap/keymap/common.h ++++ b/src/libkeymap/keymap/common.h +@@ -6,6 +6,8 @@ + #ifndef LK_COMMON_H + #define LK_COMMON_H + ++#include ++ + #include + + /** Initializes the structures necessary to read and/or parse keymap. +-- +1.8.4.3 + diff --git a/sys-apps/kbd/kbd-1.15.5-r1.ebuild b/sys-apps/kbd/kbd-1.15.5-r1.ebuild new file mode 100644 index 000000000000..39afe33989fe --- /dev/null +++ b/sys-apps/kbd/kbd-1.15.5-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://freshmeat.net/projects/kbd/" +SRC_URI="ftp://ftp.altlinux.org/pub/people/legion/kbd/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="nls pam" + +RDEPEND="pam? ( virtual/pam )" +DEPEND="${RDEPEND}" + +src_unpack() { + default + cd "${S}" + + # broken file ... upstream git punted it + rm po/es.po + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 + mv dvorak/no.map dvorak/no-dvorak.map + mv fgGIod/trf.map fgGIod/trf-fgGIod.map + mv olpc/es.map olpc/es-olpc.map + mv olpc/pt.map olpc/pt-olpc.map + mv qwerty/cz.map qwerty/cz-qwerty.map +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-loadkeys-parse.patch #447440 +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable pam vlock) +} + +src_install() { + default + dohtml doc/*.html +} diff --git a/sys-apps/kbd/kbd-2.0.1-r1.ebuild b/sys-apps/kbd/kbd-2.0.1-r1.ebuild new file mode 100644 index 000000000000..9e7290fd570e --- /dev/null +++ b/sys-apps/kbd/kbd-2.0.1-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +SCM="" +if [[ ${PV} == "9999" ]] ; then + SCM="git-r3" + EGIT_REPO_URI="http://git.kernel.org/cgit/linux/kernel/git/legion/${PN}.git" + EGIT_BRANCH="master" +else + SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +inherit autotools eutils ${SCM} + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://kbd-project.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls pam test" + +RDEPEND="pam? ( virtual/pam )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-libs/check )" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git-r3_src_unpack + else + default + fi + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 || die + mv dvorak/no.map dvorak/no-dvorak.map || die + mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die + mv olpc/es.map olpc/es-olpc.map || die + mv olpc/pt.map olpc/pt-olpc.map || die + mv qwerty/cz.map qwerty/cz-qwerty.map || die +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.0-tests.patch #485116 + epatch "${FILESDIR}"/${P}-stdarg.patch #497200 + epatch "${FILESDIR}"/${P}-big_endian.patch #508436 + eautoreconf +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable pam vlock) \ + $(use_enable test tests) +} + +src_install() { + default + dohtml docs/doc/*.html +} diff --git a/sys-apps/kbd/kbd-2.0.1.ebuild b/sys-apps/kbd/kbd-2.0.1.ebuild new file mode 100644 index 000000000000..5f39fcdb1409 --- /dev/null +++ b/sys-apps/kbd/kbd-2.0.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://kbd-project.org/" +SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="nls pam test" + +RDEPEND="pam? ( virtual/pam )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-libs/check )" + +src_unpack() { + default + cd "${S}" + + # broken file ... upstream git punted it + rm po/es.po + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 + mv dvorak/no.map dvorak/no-dvorak.map + mv fgGIod/trf.map fgGIod/trf-fgGIod.map + mv olpc/es.map olpc/es-olpc.map + mv olpc/pt.map olpc/pt-olpc.map + mv qwerty/cz.map qwerty/cz-qwerty.map +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.0-tests.patch #485116 + epatch "${FILESDIR}"/${P}-stdarg.patch #497200 + eautoreconf +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable pam vlock) \ + $(use_enable test tests) +} + +src_install() { + default + dohtml docs/doc/*.html +} diff --git a/sys-apps/kbd/kbd-2.0.2.ebuild b/sys-apps/kbd/kbd-2.0.2.ebuild new file mode 100644 index 000000000000..8d8d16b66f15 --- /dev/null +++ b/sys-apps/kbd/kbd-2.0.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +SCM="" +if [[ ${PV} == "9999" ]] ; then + SCM="git-r3" + EGIT_REPO_URI="http://git.kernel.org/cgit/linux/kernel/git/legion/${PN}.git" + EGIT_BRANCH="master" +else + SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +inherit autotools eutils ${SCM} + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://kbd-project.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls pam test" + +RDEPEND="pam? ( virtual/pam )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-libs/check )" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git-r3_src_unpack + else + default + fi + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 || die + mv dvorak/no.map dvorak/no-dvorak.map || die + mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die + mv olpc/es.map olpc/es-olpc.map || die + mv olpc/pt.map olpc/pt-olpc.map || die + mv qwerty/cz.map qwerty/cz-qwerty.map || die +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.0-tests.patch #485116 + eautoreconf +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable pam vlock) \ + $(use_enable test tests) +} + +src_install() { + default + dohtml docs/doc/*.html +} diff --git a/sys-apps/kbd/kbd-2.0.3.ebuild b/sys-apps/kbd/kbd-2.0.3.ebuild new file mode 100644 index 000000000000..9abe5c9b8cc5 --- /dev/null +++ b/sys-apps/kbd/kbd-2.0.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +SCM="" +if [[ ${PV} == "9999" ]] ; then + SCM="git-r3" + EGIT_REPO_URI="http://git.kernel.org/cgit/linux/kernel/git/legion/${PN}.git" + EGIT_BRANCH="master" +else + SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +inherit autotools eutils ${SCM} + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://kbd-project.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls pam test" + +RDEPEND="pam? ( virtual/pam )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-libs/check )" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git-r3_src_unpack + else + default + fi + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 || die + mv dvorak/no.map dvorak/no-dvorak.map || die + mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die + mv olpc/es.map olpc/es-olpc.map || die + mv olpc/pt.map olpc/pt-olpc.map || die + mv qwerty/cz.map qwerty/cz-qwerty.map || die +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.0-tests.patch #485116 + eautoreconf +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable pam vlock) \ + $(use_enable test tests) +} + +src_install() { + default + dohtml docs/doc/*.html +} diff --git a/sys-apps/kbd/kbd-9999.ebuild b/sys-apps/kbd/kbd-9999.ebuild new file mode 100644 index 000000000000..0ac630952e9b --- /dev/null +++ b/sys-apps/kbd/kbd-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +SCM="" +if [[ ${PV} == "9999" ]] ; then + SCM="git-r3" + EGIT_REPO_URI="http://git.kernel.org/cgit/linux/kernel/git/legion/kbd.git" + EGIT_BRANCH="master" +else + SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/kbd/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +inherit autotools eutils ${SCM} + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://kbd-project.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls pam test" + +RDEPEND="pam? ( virtual/pam )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-libs/check )" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + git-r3_src_unpack + else + default + fi + + # Rename conflicting keymaps to have unique names, bug #293228 + cd "${S}"/data/keymaps/i386 || die + mv dvorak/no.map dvorak/no-dvorak.map || die + mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die + mv olpc/es.map olpc/es-olpc.map || die + mv olpc/pt.map olpc/pt-olpc.map || die + mv qwerty/cz.map qwerty/cz-qwerty.map || die +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.0-tests.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable pam vlock) \ + $(use_enable test tests) +} + +src_install() { + default + dohtml docs/doc/*.html +} diff --git a/sys-apps/kbd/metadata.xml b/sys-apps/kbd/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/kbd/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/kexec-tools/Manifest b/sys-apps/kexec-tools/Manifest new file mode 100644 index 000000000000..2958a551adec --- /dev/null +++ b/sys-apps/kexec-tools/Manifest @@ -0,0 +1,3 @@ +DIST kexec-tools-2.0.4.tar.xz 271604 SHA256 e5f5ab00d746eb15b4714eca6a8ec5a1a86a62ce2bbdad1b3000161138a978c6 SHA512 2514f407d9150d2615dffc91a525fb28f159bef92b9543f9802e2618746b7d4c04137668ad8a8d8f0b75f68ed9057d09629ce736b6a061b5cf817b9d904f549e WHIRLPOOL 70ad298512e700cd1cdee7698e4fa68a769d91d3080d5d8387b8362ad49126ad68b0b6dbd1f13305958bdc988f805fa610e487682fd0eb5e4e9bcda0a9022627 +DIST kexec-tools-2.0.8.tar.xz 272648 SHA256 f3abe96fa0793e63936725a4471429f070039a1e81e605deb378747194a50c47 SHA512 94d715cdf779802308f5f8a0bdfae55c1798cc515fd322a490e8b5414763ab4fa924930022baa0689cd001c2431aef4f28f18b3c7b0b7000cdfaa1a159ad5251 WHIRLPOOL 8d13239e153dded9a98f847101d5581fed8e5a51a17961d6156f0135642e589b7e766ecaeef439fca2b69d4a2bc8e8d3f681a78f28d35acf03bc8d6c06f8ab9e +DIST kexec-tools-2.0.9.tar.xz 272728 SHA256 8ae34a9ceb76350954e1e1e3ca9ab51da15862bd5f2fd14392208e60fb454f71 SHA512 b58f8f0872f1a6a3a93bc67068d7035c4b39e985dafadc573585d92259ff289bf98d5a567293a5286668315ac2158b232919e0c6847fdefc68b7ecbcfab5109e WHIRLPOOL 840d9d17ce9facc131736ef52acabb03bcc6d21f671896ff5603bd8d6bd629519e169ca878a127b863235b236dafd3b29f598424b272f599503bb3f1a5f70050 diff --git a/sys-apps/kexec-tools/files/90_kexec b/sys-apps/kexec-tools/files/90_kexec new file mode 100644 index 000000000000..40bad423955d --- /dev/null +++ b/sys-apps/kexec-tools/files/90_kexec @@ -0,0 +1,9 @@ +#!/bin/sh + +version="$1" ; shift +image="$1" ; shift + +exec sed \ + -e "s:\"vmlinuz-.*\":\"vmlinuz-${version}\":" \ + -e "s:/boot/initramfs-.*\.img:/boot/initramfs-${version}\.img:" \ + -i /etc/kexec.conf diff --git a/sys-apps/kexec-tools/files/README.Gentoo b/sys-apps/kexec-tools/files/README.Gentoo new file mode 100644 index 000000000000..7735e3275ba4 --- /dev/null +++ b/sys-apps/kexec-tools/files/README.Gentoo @@ -0,0 +1,33 @@ +Usage +===== + +Do + $ man 8 kexec +for full understanding of the underlying kexec command. +Gentoo offers a wrapper to the bare kexec command through +/etc/init.d/kexec. + +Configuration +------------- + +Configuration is done in /etc/conf.d/kexec, which is self-documented. + +Usage +----- + +In Gentoo, kexec is invoked, i.e., the new kernel will be booted when +rebooting, by reboot (8) command or by pressing Ctrl+Alt+Del. + +If you want to use kexec once, just run + $ /etc/init.d/kexec start + +It'll reserve kexec call at reboot. Later on, you can reboot anytime, +letting kexec starts another (or the same) kernel. When all is done in +the runlevel 6 - killing processes, unmounting volumes, etc - kexec +starts the new kernel instead of doing the normal hardware reboot. + +If you want kexec to be run every time you reboot, add it to a runlevel: + $ rc-update add kexec + +If you want to reboot in the normal way this time, do: + $ touch /nokexec diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch new file mode 100644 index 000000000000..040d138ece06 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch @@ -0,0 +1,11 @@ +--- kdump/Makefile ++++ kdump/Makefile +@@ -18,7 +18,7 @@ + $(KDUMP): CC=$(TARGET_CC) + $(KDUMP): $(KDUMP_OBJS) + @$(MKDIR) -p $(@D) +- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $(KDUMP_OBJS) ++ $(LINK.o) $(CFLAGS) -o $@ $(KDUMP_OBJS) + + $(KDUMP_MANPAGE): kdump/kdump.8 + $(MKDIR) -p $(MANDIR)/man8 diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.4-disable-kexec-test.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.4-disable-kexec-test.patch new file mode 100644 index 000000000000..6fc73f2db181 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.4-disable-kexec-test.patch @@ -0,0 +1,17 @@ +diff --git kexec-tools-2.0.3/kexec_test/Makefile kexec-tools-2.0.3/kexec_test/Makefile +index fec6210..2ed4d51 100644 +--- kexec-tools-2.0.3/kexec_test/Makefile ++++ kexec-tools-2.0.3/kexec_test/Makefile +@@ -8,12 +8,6 @@ dist += kexec_test/Makefile $(KEXEC_TEST_SRCS) \ + kexec_test/x86-setup-legacy-pic.S + + BUILD_KEXEC_TEST = no +-ifeq ($(ARCH),i386) +-BUILD_KEXEC_TEST = yes +-endif +-ifeq ($(ARCH),x86_64) +-BUILD_KEXEC_TEST = yes +-endif + + ifeq ($(BUILD_KEXEC_TEST),yes) + diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.4-out-of-source.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.4-out-of-source.patch new file mode 100644 index 000000000000..64c6cd8ab419 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.4-out-of-source.patch @@ -0,0 +1,24 @@ + Makefile.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index c1859d1..1aa8559 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -44,7 +44,7 @@ TARGET_CFLAGS = @TARGET_CFLAGS@ + + # Base compiler flags. These are extended by the subcomponent-Makefiles + # where necessary. +-CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \ ++CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/include -I$(srcdir)/include -I$(srcdir)/util_lib/include \ + -Iinclude/ $($(ARCH)_CPPFLAGS) + CFLAGS = @CFLAGS@ -fno-strict-aliasing -Wall -Wstrict-prototypes + PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@ +@@ -77,6 +77,7 @@ pkgincludedir = $(includedir)/$(PACKAGE_NAME) + DESTDIR = + + srcdir = @srcdir@ ++top_builddir = @top_builddir@ + VPATH = .:$(srcdir) + + # install paths diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.9-hardened.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.9-hardened.patch new file mode 100644 index 000000000000..01a8b4be933b --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.9-hardened.patch @@ -0,0 +1,16 @@ +the purgatory subdir gets loaded into the kernel so we need to +make sure it does not get built with compiler settings like the +rest of the userland tools. that means no PIC/PIE/SSP/etc... + +--- a/purgatory/Makefile ++++ b/purgatory/Makefile +@@ -47,7 +47,8 @@ purgatory/sha256.o: $(srcdir)/util_lib/sha256.c + $(PURGATORY): CC=$(TARGET_CC) + $(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \ + $($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ +- -Os -fno-builtin -ffreestanding ++ -Os -fno-builtin -ffreestanding \ ++ -fno-PIC -fno-PIE -fno-stack-protector + + $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ + -I$(srcdir)/purgatory/include \ diff --git a/sys-apps/kexec-tools/files/kexec.conf b/sys-apps/kexec-tools/files/kexec.conf new file mode 100644 index 000000000000..aa829b9c2349 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.conf @@ -0,0 +1,16 @@ +# Kernel image pathname, relative from /boot. +KNAME="bzimage" + +# Additional arguments passed to kexec (8) +# Following arguments are support: +# +# --reuse-cmdline +# Use the current boot command line +# +# --command-line=string +# Use a different command line +# +# --initrd=file +# Specify an initrd to use +# +KEXEC_OPT_ARGS="--reuse-cmdline" diff --git a/sys-apps/kexec-tools/files/kexec.conf-2.0.4 b/sys-apps/kexec-tools/files/kexec.conf-2.0.4 new file mode 100644 index 000000000000..b71ea2bae97f --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.conf-2.0.4 @@ -0,0 +1,34 @@ +# Load kexec kernel image into memory during shutdown instead of bootup +# (default: yes) +#LOAD_DURING_SHUTDOWN="yes" + +# Additional arguments passed to kexec (8) +#KEXEC_OPT_ARGS="" + +# Kernel image partition. Mounted automatically if not. +# (default: /boot) +#BOOTPART="/boot" + +# Root partition (should be autodetected) +#ROOTPART="/dev/hda3" + +# Kernel image pathname, relative from BOOTPART. +# If it's one of +# {kernel-genkernel,bzImage,vmlinuz,kernel}-, +# or bzImage, vmlinuz (without suffix), +# then it's automaticaly detected. +# Setting it to "-" will disable kexec. +#KNAME="vmlinuz-3.9.0" + +# Initrd +# Same automatic detection restriction as for KNAME apply. +# initramfs-genkernel-, +# initrd{,.img}-{,.img} +# will be detected. +#INITRD="/boot/fbsplash-emergence-1024x768" + +# Kernel parameters (should be autodetected) +#KPARAM="splash=silent,theme:emergence" + +# Do not try to mount /boot +# DONT_MOUNT_BOOT="yes" diff --git a/sys-apps/kexec-tools/files/kexec.conf-9999 b/sys-apps/kexec-tools/files/kexec.conf-9999 new file mode 100644 index 000000000000..74f8b891ce54 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.conf-9999 @@ -0,0 +1,18 @@ +# Boot partition +#BOOTPART="/boot" + +# Kernel name +#KNAME="vmlinuz-2.6.10" + +# Root partition (should be autodetected) +#ROOTPART="/dev/hda3" + +# Kernel parameters (should be autodetected) +#KPARAM="splash=silent,theme:emergence" + +# Initrd +#INITRD="/boot/fbsplash-emergence-1024x768" + +# Load kexec kernel image into memory during shutdown instead of bootup +# (default: yes) +#LOAD_DURING_SHUTDOWN="yes" diff --git a/sys-apps/kexec-tools/files/kexec.init-2.0.4 b/sys-apps/kexec-tools/files/kexec.init-2.0.4 new file mode 100644 index 000000000000..a7101efbd87e --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.init-2.0.4 @@ -0,0 +1,144 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount +} + +image_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + for x in "${KNAME:-bzImage}" vmlinuz \ + bzImage-${kver} vmlinuz-${kver} \ + kernel-genkernel-${karch}-${kver} \ + kernel-${kver} kernel-${karch}; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +initrd_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + for x in "${INITRD:-initrd}" \ + initrd.img-${kver} initrd-${kver}.img \ + initrd-${kver} initramfs-${kver}.img \ + initramfs-genkernel-${karch}-${kver} ; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +mount_boot(){ + local ret + + [ -n ${DONT_MOUNT_BOOT} ] && return 1 + grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1 + + BOOTPART="${BOOTPART:-/boot}" + ebegin "Mounting ${BOOTPART}" + mount "${BOOTPART}"; ret=$? + eend ${ret} + return ${ret} +} + +load_image() { + local ret + if [ "${KNAME}" = "-" ]; then + ebegin "Disabling kexec" + kexec -u; ret=$? + eend ${ret} + return ${ret} + fi + + BOOTPART="${BOOTPART:-/boot}" + local img= initrd="$(initrd_path)" mounted=false initrdopt= + + if ! img="$(image_path)"; then + if mount_boot; then + if img="$(image_path)"; then + mounted=true + initrd="$(initrd_path)" + else + eerror "No kernel image found in ${BOOTPART}!" + umount "${BOOTPART}" + return 1 + fi + else + eerror "No kernel image found in ${BOOTPART}!" + return 1 + fi + fi + + if [ -n "${INITRD}" ] && \ + ! [ "${INITRD}" = "${initrd}" ]; then + eerror "Requested initrd: ${INITRD}" + eerror "could not be found" + return 1 + fi + + [ -n "${ROOTPART}" ] || \ + ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")" + + [ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline" + + [ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}" + + local msg= + [ -n ${initrd} ] && \ + msg="with ${initrd}" + einfo "Using kernel image ${img} ${msg} for kexec" + + ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}" + kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt} + local res=$? + + ${mounted} && umount "${BOOTPART}" + eend ${res} + return ${res} +} + +start() { + if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then + if ! image_path > /dev/null; then + ewarn "Cannot find kernel image!" + ewarn "Please make sure a valid kernel image is present before reboot." + return 0 + fi + else + ebegin "Configuring kexec" + load_image + eend $? + fi +} + +stop() { + [ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0 + + if ! yesno $RC_REBOOT; then + einfo "Not rebooting, so disabling" + kexec -u + return 0 + fi + + if [ -f /nokexec ]; then + einfo "Not using kexec during reboot" + rm -f /nokexec + kexec -u + return 0 + fi + + ebegin "Configuring kexec" + load_image + eend $? +} diff --git a/sys-apps/kexec-tools/files/kexec.init-2.0.4-r2 b/sys-apps/kexec-tools/files/kexec.init-2.0.4-r2 new file mode 100644 index 000000000000..f1306874297c --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.init-2.0.4-r2 @@ -0,0 +1,165 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount +} + +image_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + KNAME="${KNAME:-bzImage}" + if [ -e "${KNAME}" ]; then + echo "${KNAME}" + return 0 + fi + for x in "${KNAME#${BOOTPART}}" vmlinuz \ + bzImage-${kver} vmlinuz-${kver} \ + kernel-genkernel-${karch}-${kver} \ + kernel-${kver} kernel-${karch}; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +initrd_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + INITRD="${INITRD:-initrd}" + if [ -e "${INITRD}" ]; then + echo "${INITRD}" + return 0 + fi + for x in "${INITRD#${BOOTPART}}" \ + initrd.img-${kver} initrd-${kver}.img \ + initrd-${kver} initramfs-${kver}.img \ + initramfs-genkernel-${karch}-${kver} ; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +mount_boot(){ + local ret + + [ -n "${DONT_MOUNT_BOOT}" ] && return 1 + grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1 + + BOOTPART="${BOOTPART:-/boot}" + ebegin "Mounting ${BOOTPART}" + mount "${BOOTPART}"; ret=$? + eend ${ret} + return ${ret} +} + +load_image() { + local ret + if [ "${KNAME}" = "-" ]; then + ebegin "Disabling kexec" + kexec -u; ret=$? + eend ${ret} + return ${ret} + fi + + BOOTPART="${BOOTPART:-/boot}" + local img= initrd="$(initrd_path)" mounted=false initrdopt= + + if ! img="$(image_path)"; then + if mount_boot; then + if img="$(image_path)"; then + mounted=true + initrd="$(initrd_path)" + else + eerror "No kernel image found in ${BOOTPART}!" + umount "${BOOTPART}" + return 1 + fi + else + eerror "No kernel image found in ${BOOTPART}!" + return 1 + fi + fi + + if [ -n "${INITRD}" ] && \ + ! [ "${BOOTPART}/${INITRD#${BOOTPART}}" = "${initrd}" ]; then + eerror "Requested initrd: ${INITRD#${BOOTPART}}" + eerror "could not be found" + return 1 + fi + + [ -n "${ROOTPART}" ] || \ + ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")" + + [ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline" + + [ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}" + + local msg= + [ -n "${initrd}" ] && \ + msg="with ${initrd}" + einfo "Using kernel image ${img} ${msg} for kexec" + + ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}" + kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt} + local res=$? + + ${mounted} && umount "${BOOTPART}" + eend ${res} + return ${res} +} + +start() { + if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then + local ret=0 + BOOTPART="${BOOTPART:-/boot}" + if mount_boot; then + mounted=true + fi + if ! image_path > /dev/null; then + ewarn "Cannot find kernel image!" + ewarn "Please make sure a valid kernel image is present before reboot." + return 0 + fi + if [ -n "${mounted}" ]; then + ebegin "Unmounting ${BOOTPART}" + umount "${BOOTPART}"; ret=$? + eend ${ret} + fi + return ${ret} + else + ebegin "Configuring kexec" + load_image + eend $? + fi +} + +stop() { + [ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0 + + if ! yesno $RC_REBOOT; then + einfo "Not rebooting, so disabling" + kexec -u + return 0 + fi + + if [ -f /nokexec ]; then + einfo "Not using kexec during reboot" + rm -f /nokexec + kexec -u + return 0 + fi + + ebegin "Configuring kexec" + load_image + eend $? +} diff --git a/sys-apps/kexec-tools/files/kexec.init-2.0.4-r3 b/sys-apps/kexec-tools/files/kexec.init-2.0.4-r3 new file mode 100644 index 000000000000..7aa55af80c00 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.init-2.0.4-r3 @@ -0,0 +1,165 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount +} + +image_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + KNAME="${KNAME:-bzImage}" + if [ -e "${KNAME}" ]; then + echo "${KNAME}" + return 0 + fi + for x in "${KNAME#${BOOTPART}}" vmlinuz \ + bzImage-${kver} vmlinuz-${kver} \ + kernel-genkernel-${karch}-${kver} \ + kernel-${kver} kernel-${karch}; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +initrd_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + INITRD="${INITRD:-initrd}" + if [ -e "${INITRD}" ]; then + echo "${INITRD}" + return 0 + fi + for x in "${INITRD#${BOOTPART}}" \ + initrd.img-${kver} initrd-${kver}.img \ + initrd-${kver} initramfs-${kver}.img \ + initramfs-genkernel-${karch}-${kver} ; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +mount_boot(){ + local ret + + [ "${DONT_MOUNT_BOOT:-no}" = "no" ] || return 1 + grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1 + + BOOTPART="${BOOTPART:-/boot}" + ebegin "Mounting ${BOOTPART}" + mount "${BOOTPART}"; ret=$? + eend ${ret} + return ${ret} +} + +load_image() { + local ret + if [ "${KNAME}" = "-" ]; then + ebegin "Disabling kexec" + kexec -u; ret=$? + eend ${ret} + return ${ret} + fi + + BOOTPART="${BOOTPART:-/boot}" + local img= initrd="$(initrd_path)" mounted=false initrdopt= + + if ! img="$(image_path)"; then + if mount_boot; then + if img="$(image_path)"; then + mounted=true + initrd="$(initrd_path)" + else + eerror "No kernel image found in ${BOOTPART}!" + umount "${BOOTPART}" + return 1 + fi + else + eerror "No kernel image found in ${BOOTPART}!" + return 1 + fi + fi + + if [ -n "${INITRD}" ] && \ + ! [ "${BOOTPART}/${INITRD#${BOOTPART}}" = "${initrd}" ]; then + eerror "Requested initrd: ${INITRD#${BOOTPART}}" + eerror "could not be found" + return 1 + fi + + [ -n "${ROOTPART}" ] || \ + ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")" + + [ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline" + + [ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}" + + local msg= + [ -n "${initrd}" ] && \ + msg="with ${initrd}" + einfo "Using kernel image ${img} ${msg} for kexec" + + ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}" + kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt} + local res=$? + + ${mounted} && umount "${BOOTPART}" + eend ${res} + return ${res} +} + +start() { + if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then + local ret=0 + BOOTPART="${BOOTPART:-/boot}" + if mount_boot; then + mounted=true + fi + if ! image_path > /dev/null; then + ewarn "Cannot find kernel image!" + ewarn "Please make sure a valid kernel image is present before reboot." + return 0 + fi + if [ -n "${mounted}" ]; then + ebegin "Unmounting ${BOOTPART}" + umount "${BOOTPART}"; ret=$? + eend ${ret} + fi + return ${ret} + else + ebegin "Configuring kexec" + load_image + eend $? + fi +} + +stop() { + if ! yesno $RC_REBOOT; then + einfo "Not rebooting, so disabling" + kexec -u + return 0 + fi + + if [ -f /nokexec ]; then + einfo "Not using kexec during reboot" + rm -f /nokexec + kexec -u + return 0 + fi + + [ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0 + + ebegin "Configuring kexec" + load_image + eend $? +} diff --git a/sys-apps/kexec-tools/files/kexec.init-9999 b/sys-apps/kexec-tools/files/kexec.init-9999 new file mode 100644 index 000000000000..f1306874297c --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.init-9999 @@ -0,0 +1,165 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need localmount +} + +image_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + KNAME="${KNAME:-bzImage}" + if [ -e "${KNAME}" ]; then + echo "${KNAME}" + return 0 + fi + for x in "${KNAME#${BOOTPART}}" vmlinuz \ + bzImage-${kver} vmlinuz-${kver} \ + kernel-genkernel-${karch}-${kver} \ + kernel-${kver} kernel-${karch}; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +initrd_path() { + local x= kver=$(uname -r) karch=$(uname -m) + BOOTPART="${BOOTPART:-/boot}" + INITRD="${INITRD:-initrd}" + if [ -e "${INITRD}" ]; then + echo "${INITRD}" + return 0 + fi + for x in "${INITRD#${BOOTPART}}" \ + initrd.img-${kver} initrd-${kver}.img \ + initrd-${kver} initramfs-${kver}.img \ + initramfs-genkernel-${karch}-${kver} ; do + if [ -e "${BOOTPART}/${x}" ]; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +mount_boot(){ + local ret + + [ -n "${DONT_MOUNT_BOOT}" ] && return 1 + grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1 + + BOOTPART="${BOOTPART:-/boot}" + ebegin "Mounting ${BOOTPART}" + mount "${BOOTPART}"; ret=$? + eend ${ret} + return ${ret} +} + +load_image() { + local ret + if [ "${KNAME}" = "-" ]; then + ebegin "Disabling kexec" + kexec -u; ret=$? + eend ${ret} + return ${ret} + fi + + BOOTPART="${BOOTPART:-/boot}" + local img= initrd="$(initrd_path)" mounted=false initrdopt= + + if ! img="$(image_path)"; then + if mount_boot; then + if img="$(image_path)"; then + mounted=true + initrd="$(initrd_path)" + else + eerror "No kernel image found in ${BOOTPART}!" + umount "${BOOTPART}" + return 1 + fi + else + eerror "No kernel image found in ${BOOTPART}!" + return 1 + fi + fi + + if [ -n "${INITRD}" ] && \ + ! [ "${BOOTPART}/${INITRD#${BOOTPART}}" = "${initrd}" ]; then + eerror "Requested initrd: ${INITRD#${BOOTPART}}" + eerror "could not be found" + return 1 + fi + + [ -n "${ROOTPART}" ] || \ + ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")" + + [ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline" + + [ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}" + + local msg= + [ -n "${initrd}" ] && \ + msg="with ${initrd}" + einfo "Using kernel image ${img} ${msg} for kexec" + + ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}" + kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt} + local res=$? + + ${mounted} && umount "${BOOTPART}" + eend ${res} + return ${res} +} + +start() { + if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then + local ret=0 + BOOTPART="${BOOTPART:-/boot}" + if mount_boot; then + mounted=true + fi + if ! image_path > /dev/null; then + ewarn "Cannot find kernel image!" + ewarn "Please make sure a valid kernel image is present before reboot." + return 0 + fi + if [ -n "${mounted}" ]; then + ebegin "Unmounting ${BOOTPART}" + umount "${BOOTPART}"; ret=$? + eend ${ret} + fi + return ${ret} + else + ebegin "Configuring kexec" + load_image + eend $? + fi +} + +stop() { + [ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0 + + if ! yesno $RC_REBOOT; then + einfo "Not rebooting, so disabling" + kexec -u + return 0 + fi + + if [ -f /nokexec ]; then + einfo "Not using kexec during reboot" + rm -f /nokexec + kexec -u + return 0 + fi + + ebegin "Configuring kexec" + load_image + eend $? +} diff --git a/sys-apps/kexec-tools/files/kexec.service b/sys-apps/kexec-tools/files/kexec.service new file mode 100644 index 000000000000..289aae0df0b1 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.service @@ -0,0 +1,16 @@ +[Unit] +Description=Gracefully restart the box +Documentation=man:kexec(8) +After=boot.mount +Before=shutdown.target umount.target final.target +ConditionPathExists=!/nokexec + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/kexec.conf +ExecStart=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS} +ExecStop=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS} + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.4-r2.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.4-r2.ebuild new file mode 100644 index 000000000000..d99e5f2416d4 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.4-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils flag-o-matic linux-info systemd + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/" +SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="booke lzma xen zlib" + +REQUIRED_USE="lzma? ( zlib )" + +DEPEND=" + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KEXEC" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.0-respect-LDFLAGS.patch + "${FILESDIR}"/${P}-disable-kexec-test.patch + "${FILESDIR}"/${P}-out-of-source.patch + ) + +pkg_setup() { + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) + export ASFLAGS="${CCASFLAGS}" + # to disable the -fPIE -pie in the hardened compiler + if gcc-specs-pie ; then + filter-flags -fPIE + append-ldflags -nopie + fi +} + +src_configure() { + local myeconfargs=( + $(use_with booke) + $(use_with lzma) + $(use_with xen) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${FILESDIR}"/README.Gentoo + + newinitd "${FILESDIR}"/kexec.init-${PVR} kexec + newconfd "${FILESDIR}"/kexec.conf-${PV} kexec + + insinto /etc + doins "${FILESDIR}"/kexec.conf + + systemd_dounit "${FILESDIR}"/kexec.service +} + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + elog "For systemd support the new config file is" + elog " /etc/kexec.conf" + elog "Please adopt it to your needs as there is no autoconfig anymore" + fi +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.8.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.8.ebuild new file mode 100644 index 000000000000..2d42e5c41090 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.8.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils flag-o-matic linux-info systemd + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/" +SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="booke lzma xen zlib" + +REQUIRED_USE="lzma? ( zlib )" + +DEPEND=" + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KEXEC" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch + "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch + ) + +pkg_setup() { + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) + export ASFLAGS="${CCASFLAGS}" + # to disable the -fPIE -pie in the hardened compiler + if gcc-specs-pie ; then + filter-flags -fPIE + append-ldflags -nopie + fi +} + +src_configure() { + local myeconfargs=( + $(use_with booke) + $(use_with lzma) + $(use_with xen) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${FILESDIR}"/README.Gentoo + + newinitd "${FILESDIR}"/kexec.init-2.0.4-r2 kexec + newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec + + insinto /etc + doins "${FILESDIR}"/kexec.conf + + insinto /etc/kernel/postinst.d + doins "${FILESDIR}"/90_kexec + + systemd_dounit "${FILESDIR}"/kexec.service +} + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + elog "For systemd support the new config file is" + elog " /etc/kexec.conf" + elog "Please adopt it to your needs as there is no autoconfig anymore" + fi +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.9-r1.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.9-r1.ebuild new file mode 100644 index 000000000000..7eecf04aac47 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.9-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils linux-info systemd + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/" +SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="booke lzma xen zlib" + +REQUIRED_USE="lzma? ( zlib )" + +DEPEND=" + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KEXEC" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch + "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch + "${FILESDIR}"/${PN}-2.0.9-hardened.patch +) + +pkg_setup() { + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) + export ASFLAGS="${CCASFLAGS}" +} + +src_configure() { + local myeconfargs=( + $(use_with booke) + $(use_with lzma) + $(use_with xen) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${FILESDIR}"/README.Gentoo + + newinitd "${FILESDIR}"/kexec.init-2.0.4-r2 kexec + newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec + + insinto /etc + doins "${FILESDIR}"/kexec.conf + + insinto /etc/kernel/postinst.d + doins "${FILESDIR}"/90_kexec + + systemd_dounit "${FILESDIR}"/kexec.service +} + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + elog "For systemd support the new config file is" + elog " /etc/kexec.conf" + elog "Please adopt it to your needs as there is no autoconfig anymore" + fi +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.9-r2.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.9-r2.ebuild new file mode 100644 index 000000000000..f3610aaa02fa --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.9-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils linux-info systemd + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/" +SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="booke lzma xen zlib" + +REQUIRED_USE="lzma? ( zlib )" + +DEPEND=" + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KEXEC" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch + "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch + "${FILESDIR}"/${PN}-2.0.9-hardened.patch +) + +pkg_setup() { + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) + export ASFLAGS="${CCASFLAGS}" +} + +src_configure() { + local myeconfargs=( + $(use_with booke) + $(use_with lzma) + $(use_with xen) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${FILESDIR}"/README.Gentoo + + newinitd "${FILESDIR}"/kexec.init-2.0.4-r3 kexec + newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec + + insinto /etc + doins "${FILESDIR}"/kexec.conf + + insinto /etc/kernel/postinst.d + doins "${FILESDIR}"/90_kexec + + systemd_dounit "${FILESDIR}"/kexec.service +} + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + elog "For systemd support the new config file is" + elog " /etc/kexec.conf" + elog "Please adopt it to your needs as there is no autoconfig anymore" + fi +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.9.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.9.ebuild new file mode 100644 index 000000000000..6634ef54527f --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.9.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils flag-o-matic linux-info systemd + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/" +SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="booke lzma xen zlib" + +REQUIRED_USE="lzma? ( zlib )" + +DEPEND=" + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KEXEC" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch + "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch +) + +pkg_setup() { + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) + export ASFLAGS="${CCASFLAGS}" + # to disable the -fPIE -pie in the hardened compiler + if gcc-specs-pie ; then + filter-flags -fPIE + append-ldflags -nopie + fi +} + +src_configure() { + local myeconfargs=( + $(use_with booke) + $(use_with lzma) + $(use_with xen) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${FILESDIR}"/README.Gentoo + + newinitd "${FILESDIR}"/kexec.init-2.0.4-r2 kexec + newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec + + insinto /etc + doins "${FILESDIR}"/kexec.conf + + insinto /etc/kernel/postinst.d + doins "${FILESDIR}"/90_kexec + + systemd_dounit "${FILESDIR}"/kexec.service +} + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + elog "For systemd support the new config file is" + elog " /etc/kexec.conf" + elog "Please adopt it to your needs as there is no autoconfig anymore" + fi +} diff --git a/sys-apps/kexec-tools/kexec-tools-9999.ebuild b/sys-apps/kexec-tools/kexec-tools-9999.ebuild new file mode 100644 index 000000000000..4eb6a9c067b5 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info systemd git-r3 + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/" +SRC_URI="" +EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="booke lzma xen zlib" + +REQUIRED_USE="lzma? ( zlib )" + +DEPEND=" + lzma? ( app-arch/xz-utils ) + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KEXEC" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch + "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch + "${FILESDIR}"/${PN}-2.0.9-hardened.patch +) + +pkg_setup() { + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) + export ASFLAGS="${CCASFLAGS}" +} + +src_configure() { + local myeconfargs=( + $(use_with booke) + $(use_with lzma) + $(use_with xen) + $(use_with zlib) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + dodoc "${FILESDIR}"/README.Gentoo + + newinitd "${FILESDIR}"/kexec.init-${PV} kexec + newconfd "${FILESDIR}"/kexec.conf-${PV} kexec + + insinto /etc + doins "${FILESDIR}"/kexec.conf + + insinto /etc/kernel/postinst.d + doins "${FILESDIR}"/90_kexec + + systemd_dounit "${FILESDIR}"/kexec.service +} + +pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + elog "For systemd support the new config file is" + elog " /etc/kexec.conf" + elog "Please adopt it to your needs as there is no autoconfig anymore" + fi +} diff --git a/sys-apps/kexec-tools/metadata.xml b/sys-apps/kexec-tools/metadata.xml new file mode 100644 index 000000000000..1443e322b1a8 --- /dev/null +++ b/sys-apps/kexec-tools/metadata.xml @@ -0,0 +1,13 @@ + + + + kernel-misc + + jlec@gentoo.org + + + Enables support for LZMA compressed kernel images + Include support for Book-E memory management + Enable extended xen support + + diff --git a/sys-apps/keyutils/Manifest b/sys-apps/keyutils/Manifest new file mode 100644 index 000000000000..f984f80c3e31 --- /dev/null +++ b/sys-apps/keyutils/Manifest @@ -0,0 +1,3 @@ +DIST keyutils-1.5.5.tar.bz2 63397 SHA256 8fab781fb2d1450b2112a7fbfe6629522ae5a6b901f875a74a201012025a3fc5 SHA512 372a4881ca5cd679de0e6baa4e0e8c61ec8163b9259b018e1eb4db51fca68c0326d82a745abce96d22de367e88c88fa13b8afe438acfb38af799893630d3ba75 WHIRLPOOL 15c03983e18471b97e10f378d97c6e7e9ac7045c1f4721382f500cd8796f4a55575420b515b870ef94714bfb3dc62cb954e66efb2835fcb671c98d2f9ab33ae9 +DIST keyutils-1.5.8.tar.bz2 64880 SHA256 6c7da37272eb39abc2ebafc9ba4a580d7cf8725b61e1db21e508de7ab24b819c SHA512 f69b1acd3bff2a821ce31c6a772eea68dfbe57bb1d6128fa344ab9688c9110733b1432176e42b67648ff3a01200f4adbb92e4577132539b4c4af817027ed8f19 WHIRLPOOL e4c8d18c8ea48346a759f0e379a2bb3e6faf30f9c4a4b794485a612e25bbe86a81833e68e28b2def668faa4ff41d476ed5a6cbf105ef76bb31a02169b879f9b6 +DIST keyutils-1.5.9.tar.bz2 74683 SHA256 4da2c5552c688b65ab14d4fd40fbdf720c8b396d8ece643e040cf6e707e083ae SHA512 d4ee1dabb87844e18bfd8d094a5bc9ce792c96720b71e77961b6c36bb1addb9acea2a7004ddfba1d09b167af908368162312e5c3656b22a6266955bb57b887e2 WHIRLPOOL 0509cce076a32d2f319f596506d4aaeb83e1853ee6337e6a3041e6957e9098f4482ae56a9c6455605b72b3f34701a890e9be666b6fdd752ff14a3d3564dcba19 diff --git a/sys-apps/keyutils/files/keyutils-1.5.5-makefile-fixup.patch b/sys-apps/keyutils/files/keyutils-1.5.5-makefile-fixup.patch new file mode 100644 index 000000000000..ff4bcfa94d85 --- /dev/null +++ b/sys-apps/keyutils/files/keyutils-1.5.5-makefile-fixup.patch @@ -0,0 +1,27 @@ +Raw patch edit based on: + +From af14e945bd617bb82ebc4c6c8d4fb948d715f16a Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Fri, 2 Sep 2011 13:30:30 -0400 +Subject: [PATCH] depend on $(DEVELLIB) not -lkeyutils + +--- + Makefile | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 9e3fa9b..46695d1 100644 +--- a/Makefile ++++ b/Makefile +@@ -91,7 +91,7 @@ + $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) + $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) + mkdir -p $(DESTDIR)$(USRLIBDIR) +- $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB) ++ $(LNS) $(SONAME) $(DESTDIR)$(LIBDIR)/$(DEVELLIB) + $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl + $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key + $(INSTALL) -D request-key-debug.sh $(DESTDIR)$(SHAREDIR)/request-key-debug.sh +-- +1.7.6 + diff --git a/sys-apps/keyutils/keyutils-1.5.5.ebuild b/sys-apps/keyutils/keyutils-1.5.5.ebuild new file mode 100644 index 000000000000..66bdb4d6158e --- /dev/null +++ b/sys-apps/keyutils/keyutils-1.5.5.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit multilib eutils toolchain-funcs linux-info + +DESCRIPTION="Linux Key Management Utilities" +HOMEPAGE="http://people.redhat.com/dhowells/keyutils/" +SRC_URI="http://people.redhat.com/dhowells/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="test" + +DEPEND="!prefix? ( >=sys-kernel/linux-headers-2.6.11 )" + +pkg_setup() { + CONFIG_CHECK="~KEYS" + use test && CONFIG_CHECK="${CONFIG_CHECK} ~KEYS_DEBUG_PROC_KEYS" + ERROR_KEYS="You must have CONFIG_KEYS to use this package!" + ERROR_KEYS_DEBUG_PROC_KEYS="You must have CONFIG_KEYS_DEBUG_PROC_KEYS to run the package testsuite!" + linux-info_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch + sed -i \ + -e '1iRPATH=' \ + -e '/^C.*FLAGS/s|:=|+=|' \ + -e 's:-Werror::' \ + -e '/^BUILDFOR/s:=.*:=:' \ + -e "/^LIBDIR/s:=.*:=/usr/$(get_libdir):" \ + -e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \ + Makefile || die + + # The lsb check is useless, so avoid spurious command not found messages. + sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die + # All the test files are bash, but try to execute via `sh`. + sed -i -r \ + -e 's:([[:space:]])sh([[:space:]]):\1bash\2:' \ + tests/{Makefile*,*.sh} || die + find tests/ -name '*.sh' -exec sed -i '1s:/sh$:/bash:' {} + + # Some tests call the kernel which calls userspace, but that will + # run the install keyutils rather than the locally compiled one, + # so disable round trip tests. + rm -rf tests/keyctl/requesting/{bad-args,piped,valid} +} + +src_configure() { + tc-export CC + tc-export AR +} + +src_test() { + # Execute the locally compiled code rather than the + # older versions already installed in the system. + LD_LIBRARY_PATH=${S} \ + PATH="${S}:${PATH}" \ + emake test || die +} + +src_install() { + emake DESTDIR="${ED}" install || die + dodoc README + gen_usr_ldscript -a keyutils +} diff --git a/sys-apps/keyutils/keyutils-1.5.8.ebuild b/sys-apps/keyutils/keyutils-1.5.8.ebuild new file mode 100644 index 000000000000..da9bf6a95591 --- /dev/null +++ b/sys-apps/keyutils/keyutils-1.5.8.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit multilib eutils toolchain-funcs linux-info + +DESCRIPTION="Linux Key Management Utilities" +HOMEPAGE="http://people.redhat.com/dhowells/keyutils/" +SRC_URI="http://people.redhat.com/dhowells/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="test" + +DEPEND="!prefix? ( >=sys-kernel/linux-headers-2.6.11 )" + +pkg_setup() { + CONFIG_CHECK="~KEYS" + use test && CONFIG_CHECK="${CONFIG_CHECK} ~KEYS_DEBUG_PROC_KEYS" + ERROR_KEYS="You must have CONFIG_KEYS to use this package!" + ERROR_KEYS_DEBUG_PROC_KEYS="You must have CONFIG_KEYS_DEBUG_PROC_KEYS to run the package testsuite!" + linux-info_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch + sed -i \ + -e '1iRPATH=' \ + -e '/^C.*FLAGS/s|:=|+=|' \ + -e 's:-Werror::' \ + -e '/^BUILDFOR/s:=.*:=:' \ + -e "/^LIBDIR/s:=.*:=/usr/$(get_libdir):" \ + -e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \ + Makefile || die + + # The lsb check is useless, so avoid spurious command not found messages. + sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die + # All the test files are bash, but try to execute via `sh`. + sed -i -r \ + -e 's:([[:space:]])sh([[:space:]]):\1bash\2:' \ + tests/{Makefile*,*.sh} || die + find tests/ -name '*.sh' -exec sed -i '1s:/sh$:/bash:' {} + + # Some tests call the kernel which calls userspace, but that will + # run the install keyutils rather than the locally compiled one, + # so disable round trip tests. + rm -rf tests/keyctl/requesting/{bad-args,piped,valid} +} + +src_configure() { + tc-export CC + tc-export AR +} + +src_test() { + # Execute the locally compiled code rather than the + # older versions already installed in the system. + LD_LIBRARY_PATH=${S} \ + PATH="${S}:${PATH}" \ + emake test || die +} + +src_install() { + emake DESTDIR="${ED}" install || die + dodoc README + gen_usr_ldscript -a keyutils +} diff --git a/sys-apps/keyutils/keyutils-1.5.9-r1.ebuild b/sys-apps/keyutils/keyutils-1.5.9-r1.ebuild new file mode 100644 index 000000000000..7c724a7ad5b2 --- /dev/null +++ b/sys-apps/keyutils/keyutils-1.5.9-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit multilib eutils toolchain-funcs linux-info multilib-minimal + +DESCRIPTION="Linux Key Management Utilities" +HOMEPAGE="http://people.redhat.com/dhowells/keyutils/" +SRC_URI="http://people.redhat.com/dhowells/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="test" + +RDEPEND=" + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20140508-r1 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="!prefix? ( >=sys-kernel/linux-headers-2.6.11 )" + +pkg_setup() { + CONFIG_CHECK="~KEYS" + use test && CONFIG_CHECK="${CONFIG_CHECK} ~KEYS_DEBUG_PROC_KEYS" + ERROR_KEYS="You must have CONFIG_KEYS to use this package!" + ERROR_KEYS_DEBUG_PROC_KEYS="You must have CONFIG_KEYS_DEBUG_PROC_KEYS to run the package testsuite!" + linux-info_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch + + # The lsb check is useless, so avoid spurious command not found messages. + sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die + # All the test files are bash, but try to execute via `sh`. + sed -i -r \ + -e 's:([[:space:]])sh([[:space:]]):\1bash\2:' \ + tests/{Makefile*,*.sh} || die + find tests/ -name '*.sh' -exec sed -i '1s:/sh$:/bash:' {} + + # Some tests call the kernel which calls userspace, but that will + # run the install keyutils rather than the locally compiled one, + # so disable round trip tests. + rm -rf tests/keyctl/requesting/{bad-args,piped,valid} + + multilib_copy_sources +} + +multilib_src_compile() { + tc-export CC + tc-export AR + sed -i \ + -e '1iRPATH=' \ + -e '/^C.*FLAGS/s|:=|+=|' \ + -e 's:-Werror::' \ + -e '/^BUILDFOR/s:=.*:=:' \ + -e "/^LIBDIR/s:=.*:= /usr/$(get_libdir):" \ + -e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \ + -e "s: /: ${EPREFIX}/:g" \ + Makefile || die + + emake +} + +multilib_src_test() { + # Execute the locally compiled code rather than the + # older versions already installed in the system. + LD_LIBRARY_PATH=${BUILD_DIR} \ + PATH="${BUILD_DIR}:${PATH}" \ + emake test +} + +multilib_src_install() { + default + multilib_is_native_abi && gen_usr_ldscript -a keyutils +} + +multilib_src_install_all() { + dodoc README +} diff --git a/sys-apps/keyutils/keyutils-1.5.9.ebuild b/sys-apps/keyutils/keyutils-1.5.9.ebuild new file mode 100644 index 000000000000..be9ffa1da549 --- /dev/null +++ b/sys-apps/keyutils/keyutils-1.5.9.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit multilib eutils toolchain-funcs linux-info + +DESCRIPTION="Linux Key Management Utilities" +HOMEPAGE="http://people.redhat.com/dhowells/keyutils/" +SRC_URI="http://people.redhat.com/dhowells/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE="test" + +DEPEND="!prefix? ( >=sys-kernel/linux-headers-2.6.11 )" + +pkg_setup() { + CONFIG_CHECK="~KEYS" + use test && CONFIG_CHECK="${CONFIG_CHECK} ~KEYS_DEBUG_PROC_KEYS" + ERROR_KEYS="You must have CONFIG_KEYS to use this package!" + ERROR_KEYS_DEBUG_PROC_KEYS="You must have CONFIG_KEYS_DEBUG_PROC_KEYS to run the package testsuite!" + linux-info_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch + sed -i \ + -e '1iRPATH=' \ + -e '/^C.*FLAGS/s|:=|+=|' \ + -e 's:-Werror::' \ + -e '/^BUILDFOR/s:=.*:=:' \ + -e "/^LIBDIR/s:=.*:=/usr/$(get_libdir):" \ + -e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \ + Makefile || die + + # The lsb check is useless, so avoid spurious command not found messages. + sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die + # All the test files are bash, but try to execute via `sh`. + sed -i -r \ + -e 's:([[:space:]])sh([[:space:]]):\1bash\2:' \ + tests/{Makefile*,*.sh} || die + find tests/ -name '*.sh' -exec sed -i '1s:/sh$:/bash:' {} + + # Some tests call the kernel which calls userspace, but that will + # run the install keyutils rather than the locally compiled one, + # so disable round trip tests. + rm -rf tests/keyctl/requesting/{bad-args,piped,valid} +} + +src_configure() { + tc-export CC + tc-export AR +} + +src_test() { + # Execute the locally compiled code rather than the + # older versions already installed in the system. + LD_LIBRARY_PATH=${S} \ + PATH="${S}:${PATH}" \ + emake test +} + +src_install() { + emake DESTDIR="${ED}" install + dodoc README + gen_usr_ldscript -a keyutils +} diff --git a/sys-apps/keyutils/metadata.xml b/sys-apps/keyutils/metadata.xml new file mode 100644 index 000000000000..5f280f821abc --- /dev/null +++ b/sys-apps/keyutils/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + robbat2@gentoo.org + + diff --git a/sys-apps/kmod/Manifest b/sys-apps/kmod/Manifest new file mode 100644 index 000000000000..7421ceb3810c --- /dev/null +++ b/sys-apps/kmod/Manifest @@ -0,0 +1,2 @@ +DIST kmod-20.tar.xz 437880 SHA256 89c1a1a2193c31f9ebe582640bfa2bd401341dc24119f5a7f702588116fadaa0 SHA512 1026d80486e6c823fc74a439d15a8b1e4a501140f67568165904b43a73130133d6c84075ec8a7981a5d4a187d5fbd21afd197de4e81cc05a66506711865edf96 WHIRLPOOL 938d1ea4d153c04231b89701c7a7f602d31166e5c85bb6f2798ba0a7c22a4961f05bdd8631d985785212e5bf359d1cd12c4088fd9c2a07d8b6b9a77599e84a39 +DIST kmod-21.tar.xz 446460 SHA256 160a9448af74cf75b08d089f37a3e8d1fafa75cce92d1cbe869a753b670d95c0 SHA512 93d9c7eda3a04ed94c6531087614d92b5a65a2e642bd3af017a3a8a458a78a5a57acb1707e35bf3a0aa8f22ab0fa99d34cf4e7dd568f202a18eb49fb52bf78c1 WHIRLPOOL 78aa8c086ed8129b3a686f3b7d46e224c09f018fc85cda041bfac253afa8056e3e403eedbedb81be4c2354075040dcb6a526c2295cc3b393a76cb3896491cea3 diff --git a/sys-apps/kmod/files/kmod-static-nodes-r1 b/sys-apps/kmod/files/kmod-static-nodes-r1 new file mode 100644 index 000000000000..379cbb13c385 --- /dev/null +++ b/sys-apps/kmod/files/kmod-static-nodes-r1 @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Create list of required static device nodes for the current kernel" + +depend() { + after dev-mount + before tmpfiles.dev dev + keyword -lxc -systemd-nspawn +} + +start() { + ebegin "Creating list of required static device nodes for the current kernel" + checkpath -q -d /run/tmpfiles.d + kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf + eend $? +} diff --git a/sys-apps/kmod/kmod-20.ebuild b/sys-apps/kmod/kmod-20.ebuild new file mode 100644 index 000000000000..d1d03d1154b0 --- /dev/null +++ b/sys-apps/kmod/kmod-20.ebuild @@ -0,0 +1,190 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit bash-completion-r1 eutils multilib python-r1 + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" + inherit autotools git-2 +else + SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" + inherit libtool +fi + +DESCRIPTION="library and tools for managing linux kernel modules" +HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="debug doc lzma python static-libs +tools zlib" + +# Upstream does not support running the test suite with custom configure flags. +# I was also told that the test suite is intended for kmod developers. +# So we have to restrict it. +# See bug #408915. +RESTRICT="test" + +# Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch +RDEPEND="!sys-apps/module-init-tools + !sys-apps/modutils + !=app-arch/xz-utils-5.0.4-r1 ) + python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.6 )" #427130 +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + lzma? ( virtual/pkgconfig ) + python? ( + dev-python/cython[${PYTHON_USEDEP}] + virtual/pkgconfig + ) + zlib? ( virtual/pkgconfig )" +if [[ ${PV} == 9999* ]]; then + DEPEND="${DEPEND} + dev-libs/libxslt" +fi + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DOCS="NEWS README TODO" + +src_prepare() { + if [ ! -e configure ]; then + if use doc; then + gtkdocize --copy --docdir libkmod/docs || die + else + touch libkmod/docs/gtk-doc.make + fi + eautoreconf + else + elibtoolize + fi + + # Restore possibility of running --enable-static wrt #472608 + sed -i \ + -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \ + configure || die +} + +src_configure() { + local myeconfargs=( + --bindir="${EPREFIX}/bin" + --with-rootlibdir="${EPREFIX}/$(get_libdir)" + --enable-shared + $(use_enable static-libs static) + $(use_enable tools) + $(use_enable debug) + $(use_enable doc gtk-doc) + $(use_with lzma xz) + $(use_with zlib) + --with-bashcompletiondir="$(get_bashcompdir)" + ) + + local ECONF_SOURCE="${S}" + + kmod_configure() { + mkdir -p "${BUILD_DIR}" || die + run_in_build_dir econf "${myeconfargs[@]}" "$@" + } + + BUILD_DIR="${WORKDIR}/build" + kmod_configure --disable-python + + if use python; then + python_parallel_foreach_impl kmod_configure --enable-python + fi +} + +src_compile() { + emake -C "${BUILD_DIR}" + + if use python; then + local native_builddir=${BUILD_DIR} + + python_compile() { + emake -C "${BUILD_DIR}" -f Makefile -f - python \ + VPATH="${native_builddir}:${S}" \ + native_builddir="${native_builddir}" \ + libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \ + <<< 'python: $(pkgpyexec_LTLIBRARIES)' + } + + python_foreach_impl python_compile + fi +} + +src_install() { + emake -C "${BUILD_DIR}" DESTDIR="${D}" install + einstalldocs + + if use python; then + local native_builddir=${BUILD_DIR} + + python_install() { + emake -C "${BUILD_DIR}" DESTDIR="${D}" \ + VPATH="${native_builddir}:${S}" \ + install-pkgpyexecLTLIBRARIES \ + install-dist_pkgpyexecPYTHON + } + + python_foreach_impl python_install + fi + + prune_libtool_files --modules + + if use tools; then + local bincmd sbincmd + for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do + dosym /bin/kmod /sbin/${sbincmd} + done + + # These are also usable as normal user + for bincmd in lsmod modinfo; do + dosym kmod /bin/${bincmd} + done + fi + + cat <<-EOF > "${T}"/usb-load-ehci-first.conf + softdep uhci_hcd pre: ehci_hcd + softdep ohci_hcd pre: ehci_hcd + EOF + + insinto /lib/modprobe.d + doins "${T}"/usb-load-ehci-first.conf #260139 + + newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes +} + +pkg_postinst() { + if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then + ewarn "Removing old conflicting static-nodes init script from the boot runlevel" + rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes + fi + + # Add kmod to the runlevel automatically if this is the first install of this package. + if [[ -z ${REPLACING_VERSIONS} ]]; then + if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then + mkdir -p "${EROOT%/}"/etc/runlevels/sysinit + fi + if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then + ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes + fi + fi + + if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then + if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then + ewarn + ewarn "You need to add kmod-static-nodes to the sysinit runlevel for" + ewarn "kernel modules to have required static nodes!" + ewarn "Run this command:" + ewarn "\trc-update add kmod-static-nodes sysinit" + fi + fi +} diff --git a/sys-apps/kmod/kmod-21.ebuild b/sys-apps/kmod/kmod-21.ebuild new file mode 100644 index 000000000000..7a52239032e1 --- /dev/null +++ b/sys-apps/kmod/kmod-21.ebuild @@ -0,0 +1,190 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit bash-completion-r1 eutils multilib python-r1 + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" + inherit autotools git-2 +else + SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + inherit libtool +fi + +DESCRIPTION="library and tools for managing linux kernel modules" +HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="debug doc lzma python static-libs +tools zlib" + +# Upstream does not support running the test suite with custom configure flags. +# I was also told that the test suite is intended for kmod developers. +# So we have to restrict it. +# See bug #408915. +RESTRICT="test" + +# Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch +RDEPEND="!sys-apps/module-init-tools + !sys-apps/modutils + !=app-arch/xz-utils-5.0.4-r1 ) + python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.6 )" #427130 +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + lzma? ( virtual/pkgconfig ) + python? ( + dev-python/cython[${PYTHON_USEDEP}] + virtual/pkgconfig + ) + zlib? ( virtual/pkgconfig )" +if [[ ${PV} == 9999* ]]; then + DEPEND="${DEPEND} + dev-libs/libxslt" +fi + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DOCS="NEWS README TODO" + +src_prepare() { + if [ ! -e configure ]; then + if use doc; then + gtkdocize --copy --docdir libkmod/docs || die + else + touch libkmod/docs/gtk-doc.make + fi + eautoreconf + else + elibtoolize + fi + + # Restore possibility of running --enable-static wrt #472608 + sed -i \ + -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \ + configure || die +} + +src_configure() { + local myeconfargs=( + --bindir="${EPREFIX}/bin" + --with-rootlibdir="${EPREFIX}/$(get_libdir)" + --enable-shared + $(use_enable static-libs static) + $(use_enable tools) + $(use_enable debug) + $(use_enable doc gtk-doc) + $(use_with lzma xz) + $(use_with zlib) + --with-bashcompletiondir="$(get_bashcompdir)" + ) + + local ECONF_SOURCE="${S}" + + kmod_configure() { + mkdir -p "${BUILD_DIR}" || die + run_in_build_dir econf "${myeconfargs[@]}" "$@" + } + + BUILD_DIR="${WORKDIR}/build" + kmod_configure --disable-python + + if use python; then + python_parallel_foreach_impl kmod_configure --enable-python + fi +} + +src_compile() { + emake -C "${BUILD_DIR}" + + if use python; then + local native_builddir=${BUILD_DIR} + + python_compile() { + emake -C "${BUILD_DIR}" -f Makefile -f - python \ + VPATH="${native_builddir}:${S}" \ + native_builddir="${native_builddir}" \ + libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \ + <<< 'python: $(pkgpyexec_LTLIBRARIES)' + } + + python_foreach_impl python_compile + fi +} + +src_install() { + emake -C "${BUILD_DIR}" DESTDIR="${D}" install + einstalldocs + + if use python; then + local native_builddir=${BUILD_DIR} + + python_install() { + emake -C "${BUILD_DIR}" DESTDIR="${D}" \ + VPATH="${native_builddir}:${S}" \ + install-pkgpyexecLTLIBRARIES \ + install-dist_pkgpyexecPYTHON + } + + python_foreach_impl python_install + fi + + prune_libtool_files --modules + + if use tools; then + local bincmd sbincmd + for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do + dosym /bin/kmod /sbin/${sbincmd} + done + + # These are also usable as normal user + for bincmd in lsmod modinfo; do + dosym kmod /bin/${bincmd} + done + fi + + cat <<-EOF > "${T}"/usb-load-ehci-first.conf + softdep uhci_hcd pre: ehci_hcd + softdep ohci_hcd pre: ehci_hcd + EOF + + insinto /lib/modprobe.d + doins "${T}"/usb-load-ehci-first.conf #260139 + + newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes +} + +pkg_postinst() { + if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then + ewarn "Removing old conflicting static-nodes init script from the boot runlevel" + rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes + fi + + # Add kmod to the runlevel automatically if this is the first install of this package. + if [[ -z ${REPLACING_VERSIONS} ]]; then + if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then + mkdir -p "${EROOT%/}"/etc/runlevels/sysinit + fi + if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then + ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes + fi + fi + + if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then + if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then + ewarn + ewarn "You need to add kmod-static-nodes to the sysinit runlevel for" + ewarn "kernel modules to have required static nodes!" + ewarn "Run this command:" + ewarn "\trc-update add kmod-static-nodes sysinit" + fi + fi +} diff --git a/sys-apps/kmod/kmod-9999.ebuild b/sys-apps/kmod/kmod-9999.ebuild new file mode 100644 index 000000000000..7a52239032e1 --- /dev/null +++ b/sys-apps/kmod/kmod-9999.ebuild @@ -0,0 +1,190 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit bash-completion-r1 eutils multilib python-r1 + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" + inherit autotools git-2 +else + SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + inherit libtool +fi + +DESCRIPTION="library and tools for managing linux kernel modules" +HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="debug doc lzma python static-libs +tools zlib" + +# Upstream does not support running the test suite with custom configure flags. +# I was also told that the test suite is intended for kmod developers. +# So we have to restrict it. +# See bug #408915. +RESTRICT="test" + +# Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch +RDEPEND="!sys-apps/module-init-tools + !sys-apps/modutils + !=app-arch/xz-utils-5.0.4-r1 ) + python? ( ${PYTHON_DEPS} ) + zlib? ( >=sys-libs/zlib-1.2.6 )" #427130 +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + lzma? ( virtual/pkgconfig ) + python? ( + dev-python/cython[${PYTHON_USEDEP}] + virtual/pkgconfig + ) + zlib? ( virtual/pkgconfig )" +if [[ ${PV} == 9999* ]]; then + DEPEND="${DEPEND} + dev-libs/libxslt" +fi + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DOCS="NEWS README TODO" + +src_prepare() { + if [ ! -e configure ]; then + if use doc; then + gtkdocize --copy --docdir libkmod/docs || die + else + touch libkmod/docs/gtk-doc.make + fi + eautoreconf + else + elibtoolize + fi + + # Restore possibility of running --enable-static wrt #472608 + sed -i \ + -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \ + configure || die +} + +src_configure() { + local myeconfargs=( + --bindir="${EPREFIX}/bin" + --with-rootlibdir="${EPREFIX}/$(get_libdir)" + --enable-shared + $(use_enable static-libs static) + $(use_enable tools) + $(use_enable debug) + $(use_enable doc gtk-doc) + $(use_with lzma xz) + $(use_with zlib) + --with-bashcompletiondir="$(get_bashcompdir)" + ) + + local ECONF_SOURCE="${S}" + + kmod_configure() { + mkdir -p "${BUILD_DIR}" || die + run_in_build_dir econf "${myeconfargs[@]}" "$@" + } + + BUILD_DIR="${WORKDIR}/build" + kmod_configure --disable-python + + if use python; then + python_parallel_foreach_impl kmod_configure --enable-python + fi +} + +src_compile() { + emake -C "${BUILD_DIR}" + + if use python; then + local native_builddir=${BUILD_DIR} + + python_compile() { + emake -C "${BUILD_DIR}" -f Makefile -f - python \ + VPATH="${native_builddir}:${S}" \ + native_builddir="${native_builddir}" \ + libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \ + <<< 'python: $(pkgpyexec_LTLIBRARIES)' + } + + python_foreach_impl python_compile + fi +} + +src_install() { + emake -C "${BUILD_DIR}" DESTDIR="${D}" install + einstalldocs + + if use python; then + local native_builddir=${BUILD_DIR} + + python_install() { + emake -C "${BUILD_DIR}" DESTDIR="${D}" \ + VPATH="${native_builddir}:${S}" \ + install-pkgpyexecLTLIBRARIES \ + install-dist_pkgpyexecPYTHON + } + + python_foreach_impl python_install + fi + + prune_libtool_files --modules + + if use tools; then + local bincmd sbincmd + for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do + dosym /bin/kmod /sbin/${sbincmd} + done + + # These are also usable as normal user + for bincmd in lsmod modinfo; do + dosym kmod /bin/${bincmd} + done + fi + + cat <<-EOF > "${T}"/usb-load-ehci-first.conf + softdep uhci_hcd pre: ehci_hcd + softdep ohci_hcd pre: ehci_hcd + EOF + + insinto /lib/modprobe.d + doins "${T}"/usb-load-ehci-first.conf #260139 + + newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes +} + +pkg_postinst() { + if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then + ewarn "Removing old conflicting static-nodes init script from the boot runlevel" + rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes + fi + + # Add kmod to the runlevel automatically if this is the first install of this package. + if [[ -z ${REPLACING_VERSIONS} ]]; then + if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then + mkdir -p "${EROOT%/}"/etc/runlevels/sysinit + fi + if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then + ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes + fi + fi + + if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then + if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then + ewarn + ewarn "You need to add kmod-static-nodes to the sysinit runlevel for" + ewarn "kernel modules to have required static nodes!" + ewarn "Run this command:" + ewarn "\trc-update add kmod-static-nodes sysinit" + fi + fi +} diff --git a/sys-apps/kmod/metadata.xml b/sys-apps/kmod/metadata.xml new file mode 100644 index 000000000000..f2fc4f7f085f --- /dev/null +++ b/sys-apps/kmod/metadata.xml @@ -0,0 +1,13 @@ + + + + base-system + + udev-bugs@gentoo.org + + + Enable support for XZ compressed modules + Install module loading/unloading tools. + Enable support for gzipped modules + + diff --git a/sys-apps/lcdsplash/Manifest b/sys-apps/lcdsplash/Manifest new file mode 100644 index 000000000000..64f457a1ba9c --- /dev/null +++ b/sys-apps/lcdsplash/Manifest @@ -0,0 +1 @@ +DIST lcdsplash-0.3.tar.bz2 8121 RMD160 35f0f071f9893c83e5b95948641f9288e0295e61 SHA1 ac44d851fbaef55230db2e6aee688954292396ca SHA256 0d5db8b897fa6508bbebf7dcc12a5afdf3f48178d72a247d3d8b611c68645c9c diff --git a/sys-apps/lcdsplash/lcdsplash-0.3.ebuild b/sys-apps/lcdsplash/lcdsplash-0.3.ebuild new file mode 100644 index 000000000000..1c293fc8c419 --- /dev/null +++ b/sys-apps/lcdsplash/lcdsplash-0.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit multilib + +DESCRIPTION="splash Gentoo boot information on LCD's" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="hppa ~mips x86" +IUSE="" + +DEPEND="mips? ( sys-apps/lcdutils )" + +S=${WORKDIR}/${PN} + +src_install() { + insinto /sbin + doins splash-functions.sh || die "splash" + insinto /$(get_libdir)/rcscripts/lcdsplash + doins -r modules/* || die "modules" + + insinto /etc + doins lcdsplash.conf || die "conf" + + dodoc README +} diff --git a/sys-apps/lcdsplash/metadata.xml b/sys-apps/lcdsplash/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/lcdsplash/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/lcdtest/Manifest b/sys-apps/lcdtest/Manifest new file mode 100644 index 000000000000..1c98bfd6f1a7 --- /dev/null +++ b/sys-apps/lcdtest/Manifest @@ -0,0 +1 @@ +DIST lcdtest-1.18.tar.gz 26886 SHA256 f0b3fa9c5a4bc86eb2713f85f422d328a673ca8f541a6403bfe156afd631200e SHA512 74b0739c5dcc5ff9307ca526b4a6bbd92d6e58a83ceeed5a37a4064e3e4ed0cbdfe7a2a70cd56ba1a7305c3fd72510e10a02098aab11828062a3999cac944ab7 WHIRLPOOL 96abd5864323c45aa2ee6927f96c7f9e401a0007dd6361ffbc14d6609ff75cc55ec2ec93782c732aca6aade645dd3ee94ec49996bf88975fa6bd82fe6106e120 diff --git a/sys-apps/lcdtest/files/1.18-build-system.patch b/sys-apps/lcdtest/files/1.18-build-system.patch new file mode 100644 index 000000000000..429067259c54 --- /dev/null +++ b/sys-apps/lcdtest/files/1.18-build-system.patch @@ -0,0 +1,62 @@ +diff -uNr lcdtest-1.18.ORIG/SConstruct lcdtest-1.18/SConstruct +--- lcdtest-1.18.ORIG/SConstruct 2013-04-17 14:32:37.735358663 +0100 ++++ lcdtest-1.18/SConstruct 2013-04-17 14:33:52.706359788 +0100 +@@ -119,10 +119,10 @@ + # code + #----------------------------------------------------------------------------- + +-build_dir = 'build/' ++variant_dir = 'build/' + + SConscript ('src/SConscript', +- build_dir = build_dir, ++ variant_dir = variant_dir, + duplicate = 0, + exports = {'env' : env}) + +@@ -137,7 +137,7 @@ + #----------------------------------------------------------------------------- + + SConscript ('desktop/SConscript', +- build_dir = build_dir + '/desktop', ++ variant_dir = variant_dir + '/desktop', + duplicate = 0) + + #----------------------------------------------------------------------------- +diff -uNr lcdtest-1.18.ORIG/src/SConscript lcdtest-1.18/src/SConscript +--- lcdtest-1.18.ORIG/src/SConscript 2013-04-17 14:32:37.734358663 +0100 ++++ lcdtest-1.18/src/SConscript 2013-04-17 14:32:54.194358910 +0100 +@@ -17,6 +17,7 @@ + # along with this program. If not, see see . + + import os ++import SCons.Util + + Import('env') + +@@ -29,13 +30,18 @@ + + objs = [env.Object(src) for src in srcs] + +-# respect the environment CFLAGS if given +-if 'CFLAGS' in ARGUMENTS: +- env.MergeFlags (ARGUMENTS ['CFLAGS']) +-elif 'CFLAGS' in os.environ: +- env.MergeFlags (os.environ ['CFLAGS']) +-else: +- env.Append (CCFLAGS = ['-g', '-Wall', '-Wextra']) ++# respect the environments flags if given ++ ++if os.environ.has_key('CC'): ++ env['CC'] = os.environ['CC'] ++if os.environ.has_key('CFLAGS'): ++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) ++if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) ++if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + + env.Append (LIBS = ['SDL', 'SDL_image', 'SDL_ttf']); + diff --git a/sys-apps/lcdtest/lcdtest-1.18.ebuild b/sys-apps/lcdtest/lcdtest-1.18.ebuild new file mode 100644 index 000000000000..fbf054bee2be --- /dev/null +++ b/sys-apps/lcdtest/lcdtest-1.18.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit scons-utils eutils toolchain-funcs gnome2-utils + +DESCRIPTION="Displays test patterns to spot dead/hot pixels on LCD screens" +HOMEPAGE="http://www.brouhaha.com/~eric/software/lcdtest/" +SRC_URI="http://www.brouhaha.com/~eric/software/lcdtest/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + >=media-libs/libsdl-1.2.7-r2[X,video] + >=media-libs/sdl-image-1.2.3-r1 + >=media-libs/sdl-ttf-2.0.9 +" +RDEPEND="${DEPEND} + media-fonts/liberation-fonts +" + +src_prepare() { + epatch "${FILESDIR}/${PV}-build-system.patch" + epatch_user + sed -i -e \ + "s|/usr/share/fonts/liberation/|/usr/share/fonts/liberation-fonts/|" \ + src/lcdtest.c || die +} + +src_configure() { + tc-export CC + myesconsargs=( + --prefix="${EPREFIX}/usr" + ) +} + +src_compile() { + escons +} + +src_install() { + escons --buildroot="${D}" install + dodoc README +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/sys-apps/lcdtest/metadata.xml b/sys-apps/lcdtest/metadata.xml new file mode 100644 index 000000000000..63248665e28f --- /dev/null +++ b/sys-apps/lcdtest/metadata.xml @@ -0,0 +1,14 @@ + + + +base-system +proxy-maintainers + + chainsaw@gentoo.org + Tony Vroon + + + nikoli@gmx.us + Nikoli + + diff --git a/sys-apps/lcdutils/Manifest b/sys-apps/lcdutils/Manifest new file mode 100644 index 000000000000..0da28332cf3b --- /dev/null +++ b/sys-apps/lcdutils/Manifest @@ -0,0 +1 @@ +DIST lcdutils-0.2.tar.gz 10819 RMD160 6b746cb6616875340054017154400e50b7a423cb SHA1 fb516d07fb868de5642a0aa4696fdeffc6fe480f SHA256 fae6efe705f18fa5cf0b0ecb41ec8d3e009db18d9fcda838e23a1f455d3f2f58 diff --git a/sys-apps/lcdutils/files/include-stdlib.h-for-exit.patch b/sys-apps/lcdutils/files/include-stdlib.h-for-exit.patch new file mode 100644 index 000000000000..81870496a529 --- /dev/null +++ b/sys-apps/lcdutils/files/include-stdlib.h-for-exit.patch @@ -0,0 +1,50 @@ +From 304013f4c81a13fa2aa3a06628e6a1c57248563c Mon Sep 17 00:00:00 2001 +From: Matt Turner +Date: Mon, 13 Jun 2011 23:42:44 -0400 +Subject: [PATCH] include stdlib.h for exit + +--- + buttond.c | 1 + + liblcd.c | 1 + + putlcd.c | 1 + + 3 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/buttond.c b/buttond.c +index e99b0dd..40a85ae 100644 +--- a/buttond.c ++++ b/buttond.c +@@ -16,6 +16,7 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include + #include + #include + #include +diff --git a/liblcd.c b/liblcd.c +index e8fcacf..39bceea 100644 +--- a/liblcd.c ++++ b/liblcd.c +@@ -16,6 +16,7 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include + #include + #include + #include +diff --git a/putlcd.c b/putlcd.c +index c193712..18dc0af 100644 +--- a/putlcd.c ++++ b/putlcd.c +@@ -16,6 +16,7 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include + #include + #include + #include "liblcd.h" +-- +1.7.3.4 + diff --git a/sys-apps/lcdutils/lcdutils-0.2.ebuild b/sys-apps/lcdutils/lcdutils-0.2.ebuild new file mode 100644 index 000000000000..35129fdf3922 --- /dev/null +++ b/sys-apps/lcdutils/lcdutils-0.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Cobalt RaQ/Qube LCD Writing and Button reading utilities" +HOMEPAGE="http://people.debian.org/~pm/mips-cobalt/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~mips ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i -e "s:CFLAGS=-O2 -Wall:CFLAGS=${CFLAGS}:g" Makefile + epatch "${FILESDIR}"/include-stdlib.h-for-exit.patch +} + +src_compile() { + emake distclean || die "distclean failed" + emake all || die "all failed" +} + +src_install() { + dobin buttond putlcd || die "dobin failed" + dodoc ChangeLog || die "dodoc failed" +} diff --git a/sys-apps/lcdutils/metadata.xml b/sys-apps/lcdutils/metadata.xml new file mode 100644 index 000000000000..02914d70e14a --- /dev/null +++ b/sys-apps/lcdutils/metadata.xml @@ -0,0 +1,14 @@ + + + + mips + + mips@gentoo.org + Mips Team + + + + Provides utilities for Cobalt Microserver systems to write to the LCD and read button input + + + diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest new file mode 100644 index 000000000000..3e7e0d126c8a --- /dev/null +++ b/sys-apps/less/Manifest @@ -0,0 +1,6 @@ +DIST code2color-0.2 200711 SHA256 2365c9009b1cc3c30430b88775ec402164df105fd12364871d05dcaed20be954 SHA512 c0ab9f411d5a106c81334343e3c4a63b67d27b95e2d128145e3ac1ee46cd6c228c61796cf96e51826e69b3e465e7bdaa81b1a48cad934c23b310f2ea2ebd8e75 WHIRLPOOL d0207e84a5849c554b1dfc5882ab46d8afc411c7d26e912235ec05565880e6ed0db8449133502234a01ae8f59feae211486b6a523e37859d8404f72fff9b8f93 +DIST less-458.tar.gz 311224 SHA256 e536c7819ede54b3d487f0ffc4c14b3620bed83734d92a81e89f62346db0fcac SHA512 09f4cbd9b7f7969b80dc630d7ec74634ccc19b714b6eef2d9547a1455816ea0d5891cd23f31bd204f41bc4f6c21c721eb35340a259ac20027a444ff549a6f065 WHIRLPOOL b3cdbd5df5d6b36ef40a1b9f6d2a0d9021e544616201fff4ae8cd7dd8b6875f6aae01f08223169e42275ec2c6dcd2d4aa0d47a251b482b9a9913294e471aebe3 +DIST less-476.tar.gz 316352 SHA256 99245fa2945666273056a8f9b54ef096f93ab0ba42dcc918f1d0ad4978629f95 SHA512 7082bbd47520292a5e57e86381e1636c25e7f590dd2949ac5581b5013f5998b9dc0ab54f76ba6a0817a7e3fef22f7e67b095da2033de08b8346b30171490e5ad WHIRLPOOL 6f3cb0803c7691e5cad5b8bc48b711910d05f16d0d831fbea3a65091c7fc5499c59cec37d0ac063722b151ef0bfaab3e4445e64726da6af01317b31c97bb22b8 +DIST less-477.tar.gz 316404 SHA256 b8c55e7032b701d854bbe257286b49a27b1f02205a76e90db7b465e932059bae SHA512 c3e001444eb1adb5ec403d8d3df754ee799112d86e39dc77c13f7c048fc481cd6ad519138e46e98ac855a3f418102d057ccd7d73a92cf3a62c9ae5ac9e049114 WHIRLPOOL 65540e65e1c31c6b8d5fe77c45f249906b8ffad8fa209481f723e386e0c3fc59bfca65e087c5cba60f1a0b8f3c375a9e02175fe43fc20686d68364b0cff927df +DIST less-478.tar.gz 316439 SHA256 495c7df52199a0c7e6bfbbe7697b2b54f4bf197c8b10b43957762d74483574ce SHA512 f985b427db50f6a488b0ff5b8e94094d093249c0e021b652b728d52deb89749eb9cd688651e76e045f88c4e327e6b7ac888ce70acf41fb5fe10d6742fc21216e WHIRLPOOL c9cfc181705c1c960d7693b7917bfe911b4673d7955a0ec25e1a5ab928de8d41328290155b76fb1525c91e58dccf41d592ab313594d2a8305acad87a21f141c2 +DIST less-479.tar.gz 316484 SHA256 5bf06cb30ee2a2bd1f79f39aa91e46444e7cb19b48c95c4992fa63cfe4527a80 SHA512 56ecfd3c4e586a926e609dabb278eea1554a4a70a1d1d675cea2e9d69ae764f646b25eab197032db6aa571c22a3550ec11a3a7ef556e0d4523092c7a5daaa030 WHIRLPOOL 9b667e1267cd079cbde0a97379495f8f6034be73e0211cb5cae24509671d582fd2e930aa7dd150a1872184eea0e53f5c7fd9decfe4dc1ee38af3b94f3158fd67 diff --git a/sys-apps/less/files/README.Gentoo b/sys-apps/less/files/README.Gentoo new file mode 100644 index 000000000000..dca832808f1e --- /dev/null +++ b/sys-apps/less/files/README.Gentoo @@ -0,0 +1,22 @@ +This version of less comes with some Gentoo enhancements: + - default lesspipe.sh script to "view" files + - colorization support + +To see what file types are supported, just read the /usr/bin/lesspipe.sh +script (it's just a plain text bash script). + +Colorization support is disabled by default. To enable it, export the +LESSCOLOR variable to "yes": + $ export LESSCOLOR=yes + +We also provide a colorization script, 'code2color', that is used by +default. If you wish to use another script, simply export the LESSCOLORIZER +variable to name of the script: + $ export LESSCOLORIZER=some-other-script + +If you want to use the code2color script and the default color schemes are +not acceptable, you can develop your own schemes and save them in one of +the following places: + /etc/code2color + ~/.code2color + CODE2COLOR_CONFIG env var diff --git a/sys-apps/less/files/code2color-0.2.patch b/sys-apps/less/files/code2color-0.2.patch new file mode 100644 index 000000000000..f8a782504e60 --- /dev/null +++ b/sys-apps/less/files/code2color-0.2.patch @@ -0,0 +1,26 @@ +--- code2color ++++ code2color +@@ -163,11 +163,11 @@ + # building up the database + # newer entries overwrite old ones + my @CONFIG_FILES; +- push @CONFIG_FILES, "/etc/code2html.config"; ++ push @CONFIG_FILES, "/etc/code2color"; + push @CONFIG_FILES, +- $ENV{'HOME'}."/.code2html.config" if $ENV{'HOME'}; ++ $ENV{'HOME'}."/.code2color" if $ENV{'HOME'}; + push @CONFIG_FILES, +- split(/:/,$ENV{'CODE2HTML_CONFIG'}) if $ENV{'CODE2HTML_CONFIG'}; ++ split(/:/,$ENV{'CODE2COLOR_CONFIG'}) if $ENV{'CODE2COLOR_CONFIG'}; + push @CONFIG_FILES, + split(/:/,$params{'langfile'}) if $params{'langfile'}; + +@@ -3192,7 +3192,7 @@ + # + + $LANGUAGE{'shellscript'} = { +- 'filename' => '\\.(sh|shell)$', ++ 'filename' => '\\.(ebuild|eclass|sh|shell)$', + 'regex' => '^\\s*#\\s*![^\\s]*(sh|bash|ash|zsh|ksh)', + 'patterns' => [ { + 'name' => 'comment', diff --git a/sys-apps/less/files/less.envd b/sys-apps/less/files/less.envd new file mode 100644 index 000000000000..b737af921164 --- /dev/null +++ b/sys-apps/less/files/less.envd @@ -0,0 +1,2 @@ +LESSOPEN="|lesspipe %s" +LESS="-R -M --shift 5" diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh new file mode 100644 index 000000000000..6edaa3ceb452 --- /dev/null +++ b/sys-apps/less/files/lesspipe.sh @@ -0,0 +1,274 @@ +#!/bin/bash +# +# Preprocessor for 'less'. Used when this environment variable is set: +# LESSOPEN="|lesspipe %s" + +# TODO: handle compressed files better + +[[ -n ${LESSDEBUG} ]] && set -x + +trap 'exit 0' PIPE + +guesscompress() { + case "$1" in + *.gz|*.z) echo "gunzip -c" ;; + *.bz2|*.bz) echo "bunzip2 -c" ;; + *.lz) echo "lzip -dc" ;; + *.lzma) echo "unlzma -c" ;; + *.lzo) echo "lzop -dc" ;; + *.xz) echo "xzdec" ;; + *) echo "cat" ;; + esac +} + +lesspipe_file() { + local out=$(file -L -- "$1") + local suffix + case ${out} in + *" 7-zip archive"*) suffix="7z";; + *" ar archive"*) suffix="a";; + *" CAB-Installer"*) suffix="cab";; + *" cpio archive"*) suffix="cpio";; + *" ELF "*) suffix="elf";; + *" LHa"*archive*) suffix="lha";; + *" troff "*) suffix="man";; + *" script text"*) suffix="sh";; + *" shared object"*) suffix="so";; + *" tar archive"*) suffix="tar";; + *" Zip archive"*) suffix="zip";; + *": data") hexdump -C -- "$1"; return 0;; + *) return 1;; + esac + lesspipe "$1" ".${suffix}" + return 0 +} + +lesspipe() { + local match=$2 + [[ -z ${match} ]] && match=$1 + + local DECOMPRESSOR=$(guesscompress "${match}") + + # User filters + if [[ -x ~/.lessfilter ]] ; then + ~/.lessfilter "$1" && exit 0 + fi + + local ignore + for ignore in ${LESSIGNORE} ; do + [[ ${match} == *.${ignore} ]] && exit 0 + done + + case "${match}" in + + ### Doc files ### + *.[0-9n]|*.man|\ + *.[0-9n].bz2|*.man.bz2|\ + *.[0-9n].gz|*.man.gz|\ + *.[0-9n].lzma|*.man.lzma|\ + *.[0-9n].xz|*.man.xz|\ + *.[0-9][a-z].gz|*.[0-9][a-z].gz) + local out=$(${DECOMPRESSOR} -- "$1" | file -) + case ${out} in + *troff*) + # Need to make sure we pass path to man or it will try + # to locate "$1" in the man search paths + if [[ $1 == /* ]] ; then + man -- "$1" + else + man -- "./$1" + fi + ;; + *text*) + ${DECOMPRESSOR} -- "$1" + ;; + *) + # We could have matched a library (libc.so.6), so let + # `file` figure out what the hell this thing is + lesspipe_file "$1" + ;; + esac + ;; + *.dvi) dvi2tty "$1" ;; + *.ps|*.pdf) ps2ascii "$1" || pstotext "$1" || pdftotext "$1" ;; + *.doc) antiword "$1" || catdoc "$1" ;; + *.rtf) unrtf --nopict --text "$1" ;; + *.conf|*.txt|*.log) ;; # force less to work on these directly #150256 + + ### URLs ### + ftp://*|http://*|*.htm|*.html) + for b in links2 links lynx ; do + ${b} -dump "$1" && exit 0 + done + html2text -style pretty "$1" + ;; + + ### Tar files ### + *.tar|\ + *.tar.bz2|*.tar.bz|*.tar.gz|*.tar.z|\ + *.tar.lz|*.tar.tlz|\ + *.tar.lzma|*.tar.xz) + ${DECOMPRESSOR} -- "$1" | tar tvvf -;; + *.tbz2|*.tbz|*.tgz|*.tlz|*.txz) + lesspipe "$1" "$1".tar.${1##*.t} ;; + + ### Misc archives ### + *.bz2|\ + *.gz|*.z|\ + *.lz|\ + *.lzma|*.xz) ${DECOMPRESSOR} -- "$1" ;; + *.rpm) rpm -qpivl --changelog -- "$1" || rpm2tar -O "$1" | tar tvvf -;; + *.cpi|*.cpio) cpio -itv < "$1" ;; + *.ace) unace l "$1" ;; + *.arc) arc v "$1" ;; + *.arj) unarj l -- "$1" ;; + *.cab) cabextract -l -- "$1" ;; + *.lha|*.lzh) lha v "$1" ;; + *.zoo) zoo -list "$1" || unzoo -l "$1" ;; + *.7z|*.exe) 7z l -- "$1" || 7za l -- "$1" || 7zr l -- "$1" ;; + *.a) ar tv "$1" ;; + *.elf) readelf -a -W -- "$1" ;; + *.so) readelf -h -d -s -W -- "$1" ;; + *.mo|*.gmo) msgunfmt -- "$1" ;; + + *.rar|.r[0-9][0-9]) unrar l -- "$1" ;; + + *.jar|*.war|*.ear|*.xpi|*.zip) + unzip -v "$1" || miniunzip -l "$1" || miniunz -l "$1" || zipinfo -v "$1" + ;; + + *.deb|*.udeb) + if type -P dpkg > /dev/null ; then + dpkg --info "$1" + dpkg --contents "$1" + else + ar tv "$1" + ar p "$1" data.tar.gz | tar tzvvf - + fi + ;; + + ### Filesystems ### + *.squashfs) unsquashfs -s "$1" && unsquashfs -ll "$1" ;; + + ### Media ### + *.bmp|*.gif|*.jpeg|*.jpg|*.ico|*.pcd|*.pcx|*.png|*.ppm|*.tga|*.tiff|*.tif|*.webp) + identify "$1" || file -L -- "$1" + ;; + *.asf|*.avi|*.mov|*.mp4|*.mpeg|*.mpg|*.qt|*.ram|*.rm|*.webm|*.wmv) + midentify "$1" || file -L -- "$1" + ;; + *.mp3) mp3info "$1" || id3info "$1" ;; + *.ogg) ogginfo "$1" ;; + *.flac) metaflac --list "$1" ;; + *.torrent) torrentinfo "$1" || torrentinfo-console "$1" || ctorrent -x "$1" ;; + *.bin|*.cue|*.raw) + # not all .bin/.raw files are cd images #285507 + # fall back to lesspipe_file if .cue doesn't exist, or if + # cd-info failed to parse things sanely + [[ -e ${1%.*}.cue ]] \ + && cd-info --no-header --no-device-info "$1" \ + || lesspipe_file "$1" + ;; + *.iso) + iso_info=$(isoinfo -d -i "$1") + echo "${iso_info}" + # Joliet output overrides Rock Ridge, so prefer the better Rock + case ${iso_info} in + *$'\n'"Rock Ridge"*) iso_opts="-R";; + *$'\n'"Joliet"*) iso_opts="-J";; + *) iso_opts="";; + esac + isoinfo -l ${iso_opts} -i "$1" + ;; + + ### Encryption stuff ### + *.crl) openssl crl -hash -text -noout -in "$1" ;; + *.csr) openssl req -text -noout -in "$1" ;; + *.crt|*.pem) openssl x509 -hash -text -noout -in "$1" ;; + +# May not be such a good idea :) +# ### Device nodes ### +# /dev/[hs]d[a-z]*) +# fdisk -l "${1:0:8}" +# [[ $1 == *hd* ]] && hdparm -I "${1:0:8}" +# ;; + + ### Everything else ### + *) + case $(( recur++ )) in + # Maybe we didn't match due to case issues ... + 0) lesspipe "$1" "$(echo $1 | LC_ALL=C tr '[:upper:]' '[:lower:]')" ;; + + # Maybe we didn't match because the file is named weird ... + 1) lesspipe_file "$1" ;; + esac + + # So no matches from above ... finally fall back to an external + # coloring package. No matching here so we don't have to worry + # about keeping in sync with random packages. Any coloring tool + # you use should not output errors about unsupported files to + # stdout. If it does, it's your problem. + + # Allow people to flip color off if they dont want it + case ${LESSCOLOR} in + always) LESSCOLOR=2;; + [yY][eE][sS]|[yY]|1|true) LESSCOLOR=1;; + [nN][oO]|[nN]|0|false) LESSCOLOR=0;; + *) LESSCOLOR=0;; # default to no color #188835 + esac + if [[ ${LESSCOLOR} != "0" ]] && [[ -n ${LESSCOLORIZER=code2color} ]] ; then + # 2: Only colorize if user forces it ... + # 1: ... or we know less will handle raw codes -- this will + # not detect -seiRM, so set LESSCOLORIZER yourself + if [[ ${LESSCOLOR} == "2" ]] || [[ " ${LESS} " == *" -"[rR]" "* ]] ; then + LESSQUIET=true ${LESSCOLORIZER} "$1" + fi + fi + + # Nothing left to do but let less deal + exit 0 + ;; + esac +} + +if [[ -z $1 ]] ; then + echo "Usage: lesspipe " +elif [[ $1 == "-V" || $1 == "--version" ]] ; then + Id="cvsid" + cat <<-EOF + $Id$ + Copyright 2001-2013 Gentoo Foundation + Mike Frysinger + (with plenty of ideas stolen from other projects/distros) + + + EOF + less -V +elif [[ $1 == "-h" || $1 == "--help" ]] ; then + cat <<-EOF + lesspipe: preprocess files before sending them to less + + Usage: lesspipe + + lesspipe specific settings: + LESSCOLOR env - toggle colorizing of output (no/yes/always) + LESSCOLORIZER env - program used to colorize output (default: code2color) + LESSIGNORE - list of extensions to ignore (don't do anything fancy) + + You can create per-user filters as well by creating the executable file: + ~/.lessfilter + One argument is passed to it: the file to display. + + To use lesspipe, simply add to your environment: + export LESSOPEN="|lesspipe %s" + + Run 'less --help' or 'man less' for more info + EOF +elif [[ -d $1 ]] ; then + ls -alF -- "$1" +else + recur=0 + [[ -n ${LESSDEBUG} ]] \ + && lesspipe "$1" \ + || lesspipe "$1" 2> /dev/null +fi diff --git a/sys-apps/less/less-458.ebuild b/sys-apps/less/less-458.ebuild new file mode 100644 index 000000000000..88ccd60bae0e --- /dev/null +++ b/sys-apps/less/less-458.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +CODE2COLOR_PV="0.2" +CODE2COLOR_P="code2color-${CODE2COLOR_PV}" +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz + http://www-zeuthen.desy.de/~friebel/unix/less/code2color -> ${CODE2COLOR_P}" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="pcre unicode" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2 + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + cp "${DISTDIR}"/${CODE2COLOR_P} "${S}"/code2color || die +} + +src_prepare() { + epatch "${FILESDIR}"/${CODE2COLOR_P}.patch +} + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + econf \ + --with-regex=$(usex pcre pcre posix) \ + --with-editor="${EPREFIX}"/usr/libexec/editor +} + +src_install() { + default + + dobin code2color + newbin "${FILESDIR}"/lesspipe.sh lesspipe + dosym lesspipe /usr/bin/lesspipe.sh + newenvd "${FILESDIR}"/less.envd 70less + + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinst() { + elog "lesspipe offers colorization options. Run 'lesspipe -h' for info." +} diff --git a/sys-apps/less/less-476.ebuild b/sys-apps/less/less-476.ebuild new file mode 100644 index 000000000000..4602bbe70ebb --- /dev/null +++ b/sys-apps/less/less-476.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +CODE2COLOR_PV="0.2" +CODE2COLOR_P="code2color-${CODE2COLOR_PV}" +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz + http://www-zeuthen.desy.de/~friebel/unix/less/code2color -> ${CODE2COLOR_P}" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="pcre unicode" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2 + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + cp "${DISTDIR}"/${CODE2COLOR_P} "${S}"/code2color || die +} + +src_prepare() { + epatch "${FILESDIR}"/${CODE2COLOR_P}.patch + chmod a+x configure || die +} + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + econf \ + --with-regex=$(usex pcre pcre posix) \ + --with-editor="${EPREFIX}"/usr/libexec/editor +} + +src_install() { + default + + dobin code2color + newbin "${FILESDIR}"/lesspipe.sh lesspipe + dosym lesspipe /usr/bin/lesspipe.sh + newenvd "${FILESDIR}"/less.envd 70less + + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinst() { + elog "lesspipe offers colorization options. Run 'lesspipe -h' for info." +} diff --git a/sys-apps/less/less-477.ebuild b/sys-apps/less/less-477.ebuild new file mode 100644 index 000000000000..4602bbe70ebb --- /dev/null +++ b/sys-apps/less/less-477.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +CODE2COLOR_PV="0.2" +CODE2COLOR_P="code2color-${CODE2COLOR_PV}" +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz + http://www-zeuthen.desy.de/~friebel/unix/less/code2color -> ${CODE2COLOR_P}" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="pcre unicode" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2 + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + cp "${DISTDIR}"/${CODE2COLOR_P} "${S}"/code2color || die +} + +src_prepare() { + epatch "${FILESDIR}"/${CODE2COLOR_P}.patch + chmod a+x configure || die +} + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + econf \ + --with-regex=$(usex pcre pcre posix) \ + --with-editor="${EPREFIX}"/usr/libexec/editor +} + +src_install() { + default + + dobin code2color + newbin "${FILESDIR}"/lesspipe.sh lesspipe + dosym lesspipe /usr/bin/lesspipe.sh + newenvd "${FILESDIR}"/less.envd 70less + + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinst() { + elog "lesspipe offers colorization options. Run 'lesspipe -h' for info." +} diff --git a/sys-apps/less/less-478.ebuild b/sys-apps/less/less-478.ebuild new file mode 100644 index 000000000000..21dc22854ac8 --- /dev/null +++ b/sys-apps/less/less-478.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +CODE2COLOR_PV="0.2" +CODE2COLOR_P="code2color-${CODE2COLOR_PV}" +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz + http://www-zeuthen.desy.de/~friebel/unix/less/code2color -> ${CODE2COLOR_P}" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="pcre unicode" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2 + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + cp "${DISTDIR}"/${CODE2COLOR_P} "${S}"/code2color || die +} + +src_prepare() { + epatch "${FILESDIR}"/${CODE2COLOR_P}.patch + chmod a+x configure || die +} + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + econf \ + --with-regex=$(usex pcre pcre posix) \ + --with-editor="${EPREFIX}"/usr/libexec/editor +} + +src_install() { + default + + dobin code2color + newbin "${FILESDIR}"/lesspipe.sh lesspipe + dosym lesspipe /usr/bin/lesspipe.sh + newenvd "${FILESDIR}"/less.envd 70less + + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinst() { + elog "lesspipe offers colorization options. Run 'lesspipe -h' for info." +} diff --git a/sys-apps/less/less-479.ebuild b/sys-apps/less/less-479.ebuild new file mode 100644 index 000000000000..4602bbe70ebb --- /dev/null +++ b/sys-apps/less/less-479.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +CODE2COLOR_PV="0.2" +CODE2COLOR_P="code2color-${CODE2COLOR_PV}" +DESCRIPTION="Excellent text file viewer" +HOMEPAGE="http://www.greenwoodsoftware.com/less/" +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz + http://www-zeuthen.desy.de/~friebel/unix/less/code2color -> ${CODE2COLOR_P}" + +LICENSE="|| ( GPL-3 BSD-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="pcre unicode" + +DEPEND=">=app-misc/editor-wrapper-3 + >=sys-libs/ncurses-5.2 + pcre? ( dev-libs/libpcre )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + cp "${DISTDIR}"/${CODE2COLOR_P} "${S}"/code2color || die +} + +src_prepare() { + epatch "${FILESDIR}"/${CODE2COLOR_P}.patch + chmod a+x configure || die +} + +src_configure() { + export ac_cv_lib_ncursesw_initscr=$(usex unicode) + export ac_cv_lib_ncurses_initscr=$(usex !unicode) + econf \ + --with-regex=$(usex pcre pcre posix) \ + --with-editor="${EPREFIX}"/usr/libexec/editor +} + +src_install() { + default + + dobin code2color + newbin "${FILESDIR}"/lesspipe.sh lesspipe + dosym lesspipe /usr/bin/lesspipe.sh + newenvd "${FILESDIR}"/less.envd 70less + + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinst() { + elog "lesspipe offers colorization options. Run 'lesspipe -h' for info." +} diff --git a/sys-apps/less/metadata.xml b/sys-apps/less/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/less/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest new file mode 100644 index 000000000000..e8f7a4859361 --- /dev/null +++ b/sys-apps/likwid/Manifest @@ -0,0 +1 @@ +DIST likwid-3.1.3.tar.gz 605675 SHA256 05078ec55dce3d4cf1c94832bd289ccbcaee7bdee9a1ea9f6681ccd3f59ece5b SHA512 e31b4498e702d4ddf61e3c123d43f0804ef4cef149bb3732b61e3894aa9d76feb7a2654bbb0467dd30323031122ea01cf17e4f01a33f193e750cdbdfc09741d7 WHIRLPOOL bccfcc68e792f09a66eab99affa81250fbe34d4759a81a4e0bd0af2535e5bb09229bee4bc165986559d14101183e5be9a933273ec9f1a7c5c8da3f97f07f9e8e diff --git a/sys-apps/likwid/files/likwid-3.1.3-Makefile.patch b/sys-apps/likwid/files/likwid-3.1.3-Makefile.patch new file mode 100644 index 000000000000..a40d0c3262a2 --- /dev/null +++ b/sys-apps/likwid/files/likwid-3.1.3-Makefile.patch @@ -0,0 +1,42 @@ +--- Makefile.org 2015-03-04 16:25:59.942213571 +0800 ++++ Makefile 2015-03-04 16:46:05.640278082 +0800 +@@ -87,7 +87,7 @@ + + LIKWID_LIB = liblikwid + ifeq ($(SHARED_LIBRARY),true) +-CFLAGS += $(SHARED_CFLAGS) -ggdb ++CFLAGS += $(SHARED_CFLAGS) -g -Wa,--noexecstack + DYNAMIC_TARGET_LIB := $(LIKWID_LIB).so + TARGET_LIB := $(DYNAMIC_TARGET_LIB) + LIBS += -L. -llikwid +@@ -307,28 +307,8 @@ + echo "Only root can adjust the privileges of the daemon applications in $(PREFIX)/sbin"; \ + fi; \ + done +- @echo "===> INSTALL man pages to $(MANPREFIX)/man1" +- @mkdir -p $(MANPREFIX)/man1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-topology.1 > $(MANPREFIX)/man1/likwid-topology.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-features.1 > $(MANPREFIX)/man1/likwid-features.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-perfctr.1 > $(MANPREFIX)/man1/likwid-perfctr.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-powermeter.1 > $(MANPREFIX)/man1/likwid-powermeter.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-pin.1 > $(MANPREFIX)/man1/likwid-pin.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-setFrequencies.1 > $(MANPREFIX)/man1/likwid-setFrequencies.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-bench.1 > $(MANPREFIX)/man1/likwid-bench.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/feedGnuplot.1 > $(MANPREFIX)/man1/feedGnuplot.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-accessD.1 > $(MANPREFIX)/man1/likwid-accessD.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-genCfg.1 > $(MANPREFIX)/man1/likwid-genCfg.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-memsweeper.1 > $(MANPREFIX)/man1/likwid-memsweeper.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-mpirun.1 > $(MANPREFIX)/man1/likwid-mpirun.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-perfscope.1 > $(MANPREFIX)/man1/likwid-perfscope.1 +- @sed -e "s//$(VERSION)/g" -e "s//$(DATE)/g" < $(DOC_DIR)/likwid-setFreq.1 > $(MANPREFIX)/man1/likwid-setFreq.1 +- @chmod 644 $(MANPREFIX)/man1/likwid-* +- @echo "===> INSTALL headers to $(PREFIX)/include" +- @mkdir -p $(PREFIX)/include/likwid +- @cp -f src/includes/likwid*.h $(PREFIX)/include/ +- @cp -f src/includes/* $(PREFIX)/include/likwid +- @cp -f GCC/perfmon_group_types.h $(PREFIX)/include/likwid ++ @echo "===> INSTALL man pages" ++ @mkdir -p $(PREFIX)/include/ + $(FORTRAN_INSTALL) + @echo "===> INSTALL libraries to $(PREFIX)/lib" + @mkdir -p $(PREFIX)/lib diff --git a/sys-apps/likwid/files/likwid-3.1.3-fix-gnustack.patch b/sys-apps/likwid/files/likwid-3.1.3-fix-gnustack.patch new file mode 100644 index 000000000000..6ee4149dd5d7 --- /dev/null +++ b/sys-apps/likwid/files/likwid-3.1.3-fix-gnustack.patch @@ -0,0 +1,32 @@ +diff --git a/Makefile b/Makefile +index eecd4e9..34eee7c 100644 +--- a/Makefile ++++ b/Makefile +@@ -259,6 +259,7 @@ $(BUILD_DIR)/%.h: $(SRC_DIR)/includes/%.txt + $(BUILD_DIR)/%.o: $(BUILD_DIR)/%.pas + @echo "===> ASSEMBLE $@" + $(Q)$(PAS) -i $(PASFLAGS) -o $(BUILD_DIR)/$*.s $< '$(DEFINES)' ++ @cat fix_gnustack.txt >> $(BUILD_DIR)/$*.s + $(Q)$(AS) $(ASFLAGS) $(BUILD_DIR)/$*.s -o $@ + + ifeq ($(findstring $(MAKECMDGOALS),clean),) +diff --git a/fix_gnustack.txt b/fix_gnustack.txt +new file mode 100644 +index 0000000..965af94 +--- /dev/null ++++ b/fix_gnustack.txt +@@ -0,0 +1,3 @@ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +diff --git a/src/loadData.s b/src/loadData.s +index e176c53..9934f7d 100644 +--- a/src/loadData.s ++++ b/src/loadData.s +@@ -20,3 +20,6 @@ ret + .size _loadData, .-_loadData + + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/sys-apps/likwid/likwid-3.1.3.ebuild b/sys-apps/likwid/likwid-3.1.3.ebuild new file mode 100644 index 000000000000..f938441d27f0 --- /dev/null +++ b/sys-apps/likwid/likwid-3.1.3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +FORTRAN_NEEDED=fortran + +inherit eutils fcaps fortran-2 linux-info multilib + +DESCRIPTION="A lightweight performance-oriented tool suite for x86 multicore environments" +HOMEPAGE="https://code.google.com/p/likwid/" +SRC_URI="http://ftp.fau.de/pub/likwid/likwid-${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="-fortran" + +RDEPEND="dev-lang/perl" +DEPEND="${RDEPEND} + sys-apps/sed" + +CONFIG_CHECK="~X86_MSR" + +FILECAPS=( + cap_sys_rawio usr/sbin/likwid-accessD -- + cap_sys_rawio usr/bin/likwid-{perfctr,bench,powermeter} +) + +src_prepare() { + sed -e 's:^PREFIX = .*:PREFIX = '${D}'/usr:' \ + -e "/^LIBLIKWIDPIN/s|lib/|$(get_libdir)/|" \ + -i config.mk || die + sed -e "s:\$(PREFIX)/lib:\$(PREFIX)/$(get_libdir):" \ + -i Makefile || die + + sed -e '/LIBS/aSHARED_LFLAGS += -Wl,-soname,$@' \ + -i make/include_GCC.mk || die + sed -e '/^Q/d' -i Makefile || die + sed -e 's//12.02.2014/g' \ + -e "s/VERSION/${PV}/g" \ + -i doc/* || die + sed -e "/exeprog/s|TOSTRING(ACCESSDAEMON)|\"/usr/sbin/likwid-accessD\"|" \ + -i src/accessClient.c || die + + epatch "${FILESDIR}/${P}-Makefile.patch" + epatch "${FILESDIR}/${P}-fix-gnustack.patch" +} + +src_configure() { + if use fortran; then + sed -i 's:^FORTRAN_INTERFACE = false:FORTRAN_INTERFACE = likwid.mod:' config.mk || die + sed -i 's:^FC = ifort:FC = gfortran:' make/include_GCC.mk || die + sed -i '/^FCFLAGS/c\FCFLAGS = -J ./ -fsyntax-only' make/include_GCC.mk || die + fi +} + +src_install () { + default + if use fortran; then + insinto /usr/include + doins likwid.mod + fi + + doman doc/* +} diff --git a/sys-apps/likwid/metadata.xml b/sys-apps/likwid/metadata.xml new file mode 100644 index 000000000000..fa053a36fa48 --- /dev/null +++ b/sys-apps/likwid/metadata.xml @@ -0,0 +1,10 @@ + + + + proxy-maintainers + + brendan@horan.hk + Brendan Horan + Proxy - Maintainer. Assign bugs to him + + diff --git a/sys-apps/linux-misc-apps/Manifest b/sys-apps/linux-misc-apps/Manifest new file mode 100644 index 000000000000..a0a0e4d17c67 --- /dev/null +++ b/sys-apps/linux-misc-apps/Manifest @@ -0,0 +1,2 @@ +DIST linux-3.18.tar.xz 80934708 SHA256 becc413cc9e6d7f5cc52a3ce66d65c3725bc1d1cc1001f4ce6c32b69eb188cbd SHA512 2f0b72466e9bc538a675738aa416573d41bbbd7e3e2ffd5b5b127afde609ebc278cec5a3c37e73479607e957c13f1b4ed9782a3795e0dcc2cf8e550228594009 WHIRLPOOL 81634af631b7d30ccd1f4798f96f44d9aa0ba6609b73f2747eb6aebaf7a99487fb2dbd45767605186182533cb222bfd9236e8dd5e11a04fdb67c211e4e0a91d6 +DIST linux-3.6.tar.bz2 82296001 SHA256 88ae0a20fd39ecae79db0ce8f9397922fae33c8b06a54ed2c883c861126c9771 SHA512 cbaefc2c4c8ab2251c3345b7b2c88d55a49e3468d8b177b05dd6d96a802efa9a052b1a1ecab8b71298bac97f45259516d88253838332b4fdb4307780ebcddce9 WHIRLPOOL e17e3800951f0c3af21015d1a1c99698d0ef70815bd4f131dd60b30baef70d4c255988857533a9a7c058388c2febfcf02d12cde2a7ed46b24fa85aeb260c0251 diff --git a/sys-apps/linux-misc-apps/files/freefall.confd b/sys-apps/linux-misc-apps/files/freefall.confd new file mode 100644 index 000000000000..c082615cbcac --- /dev/null +++ b/sys-apps/linux-misc-apps/files/freefall.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/freefall + +# The name of the disk device that hpfall should protect. +# Usually this is 'sda' or 'hda' the primary master. + +DISK="sda" diff --git a/sys-apps/linux-misc-apps/files/freefall.initd b/sys-apps/linux-misc-apps/files/freefall.initd new file mode 100644 index 000000000000..1df5294534e9 --- /dev/null +++ b/sys-apps/linux-misc-apps/files/freefall.initd @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 2012-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +checkconfig() { + if [ -z "$DISK" ] ; then + eerror "You need to setup DISK in /etc/conf.d/freefall first" + return 1 + fi + + if [ ! -b /dev/${DISK} ]; then + eerror "Could not find disk /dev/${DISK}!" + eerror "Adjust the DISK setting in /etc/conf.d/freefall" + return 1 + fi + + if [ ! -e /sys/block/${DISK}/device/unload_heads ] ; then + eerror "No protect entry for ${DISK}!" + eerror "Kernel 2.6.28 and above is required" + return 1 + fi + + if [ ! -c /dev/freefall ]; then + ebegin "Loading hp_accel module" + modprobe hp_accel + eend $? || return 1 + fi +} + +start () { + checkconfig || return 1 + + ebegin "Starting active hard-drive protection daemon" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/freefall /dev/${DISK} + eend $? +} + +stop() { + ebegin "Stopping active hard-drive protection daemon" + start-stop-daemon --stop --quiet \ + --exec /usr/sbin/freefall + eend $? +} diff --git a/sys-apps/linux-misc-apps/files/hpfall.confd b/sys-apps/linux-misc-apps/files/hpfall.confd new file mode 100644 index 000000000000..4f3451b0bff6 --- /dev/null +++ b/sys-apps/linux-misc-apps/files/hpfall.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/hpfall + +# The name of the disk device that hpfall should protect. +# Usually this is 'sda' or 'hda' the primary master. + +DISK="sda" \ No newline at end of file diff --git a/sys-apps/linux-misc-apps/files/hpfall.initd b/sys-apps/linux-misc-apps/files/hpfall.initd new file mode 100644 index 000000000000..5b9a55ba5a8f --- /dev/null +++ b/sys-apps/linux-misc-apps/files/hpfall.initd @@ -0,0 +1,45 @@ +#!/sbin/runscript +# Copyright 2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +checkconfig() { + if [ -z "$DISK" ] ; then + eerror "You need to setup DISK in /etc/conf.d/hpfall first" + return 1 + fi + + if [ ! -b /dev/${DISK} ]; then + eerror "Could not find disk /dev/${DISK}!" + eerror "Adjust the DISK setting in /etc/conf.d/hpfall" + return 1 + fi + + if [ ! -e /sys/block/${DISK}/device/unload_heads ] ; then + eerror "No protect entry for ${DISK}!" + eerror "Kernel 2.6.28 and above is required" + return 1 + fi + + if [ ! -c /dev/freefall ]; then + ebegin "Loading hp_accel module" + modprobe hp_accel + eend $? || return 1 + fi +} + +start () { + checkconfig || return 1 + + ebegin "Starting active hard-drive protection daemon" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/hpfall /dev/${DISK} + eend $? +} + +stop() { + ebegin "Stopping active hard-drive protection daemon" + start-stop-daemon --stop --quiet \ + --exec /usr/sbin/hpfall + eend $? +} diff --git a/sys-apps/linux-misc-apps/linux-misc-apps-3.18.ebuild b/sys-apps/linux-misc-apps/linux-misc-apps-3.18.ebuild new file mode 100644 index 000000000000..be86d16228a7 --- /dev/null +++ b/sys-apps/linux-misc-apps/linux-misc-apps-3.18.ebuild @@ -0,0 +1,165 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit versionator eutils toolchain-funcs linux-info autotools flag-o-matic + +DESCRIPTION="Misc tools bundled with kernel sources" +HOMEPAGE="http://kernel.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="static-libs tcpd" + +MY_PV="${PV/_/-}" +MY_PV="${MY_PV/-pre/-git}" + +LINUX_V=$(get_version_component_range 1-2) + +if [ ${PV/_rc} != ${PV} ]; then + LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1)) + PATCH_VERSION=$(get_version_component_range 1-3) + LINUX_PATCH=patch-${PV//_/-}.xz + SRC_URI="mirror://kernel/linux/kernel/v3.x/testing/${LINUX_PATCH} + mirror://kernel/linux/kernel/v3.x/testing/v${PATCH_VERSION}/${LINUX_PATCH}" +elif [ $(get_version_component_count) == 4 ]; then + # stable-release series + LINUX_VER=$(get_version_component_range 1-3) + LINUX_PATCH=patch-${PV}.xz + SRC_URI="mirror://kernel/linux/kernel/v3.x/${LINUX_PATCH}" +else + LINUX_VER=${PV} +fi + +LINUX_SOURCES=linux-${LINUX_VER}.tar.xz +SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v3.x/${LINUX_SOURCES}" + +# pmtools also provides turbostat +# usbip available in seperate package now +RDEPEND="sys-apps/hwids + >=dev-libs/glib-2.6 + tcpd? ( sys-apps/tcp-wrappers ) + !sys-power/pmtools" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/linux-${LINUX_VER}" + +# All of these are integrated with the kernel build system, +# No make install, and ideally build with with the root Makefile +TARGETS_SIMPLE=( + Documentation/accounting/getdelays.c + tools/cgroup/cgroup_event_listener.c + Documentation/laptops/dslm.c + Documentation/laptops/freefall.c + Documentation/networking/timestamping/timestamping.c + Documentation/watchdog/src/watchdog-simple.c + tools/lguest/lguest.c + tools/vm/slabinfo.c + usr/gen_init_cpio.c +) +# tools/vm/page-types.c - broken, header path issue +# tools/hv/hv_kvp_daemon.c - broken in 3.7 by missing linux/hyperv.h userspace +# Documentation/networking/ifenslave.c - obsolete +# Documentation/ptp/testptp.c - pending linux-headers-3.0 + +# These have a broken make install, no DESTDIR +TARGET_MAKE_SIMPLE=( + tools/firewire:nosy-dump + tools/power/x86/turbostat:../../../../turbostat + tools/power/x86/x86_energy_perf_policy:x86_energy_perf_policy + Documentation/misc-devices/mei:mei-amt-version +) +# tools/perf - covered by dev-utils/perf +# tools/usb - testcases only +# tools/virtio - testcaes only + + #for _pattern in {Documentation,scripts,tools,usr,include,lib,"arch/*/include",Makefile,Kbuild,Kconfig}; do +src_unpack() { + unpack ${LINUX_SOURCES} + + MY_A= + for _AFILE in ${A}; do + [[ ${_AFILE} == ${LINUX_SOURCES} ]] && continue + [[ ${_AFILE} == ${LINUX_PATCH} ]] && continue + MY_A="${MY_A} ${_AFILE}" + done + [[ -n ${MY_A} ]] && unpack ${MY_A} +} + +src_prepare() { + if [[ -n ${LINUX_PATCH} ]]; then + epatch "${DISTDIR}"/${LINUX_PATCH} + fi + + sed -i \ + -e '/^nosy-dump.*LDFLAGS/d' \ + -e '/^nosy-dump.*CFLAGS/d' \ + -e '/^nosy-dump.*CPPFLAGS/s,CPPFLAGS =,CPPFLAGS +=,g' \ + "${S}"/tools/firewire/Makefile +} + +kernel_asm_arch() { + a="${1:${ARCH}}" + case ${a} in + # Merged arches + x86|amd64) echo x86 ;; + ppc*) echo powerpc ;; + # Non-merged + alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;; + *) die "TODO: Update the code for your asm-ARCH symlink" ;; + esac +} + +src_configure() { + : +} + +src_compile() { + local karch=$(kernel_asm_arch "${ARCH}") + # This is the minimal amount needed to start building host binaries. + #emake allmodconfig ARCH=${karch} + #emake prepare modules_prepare ARCH=${karch} + #touch Module.symvers + + # Now we can start building + for s in ${TARGETS_SIMPLE[@]} ; do + dir=$(dirname $s) src=$(basename $s) bin=${src%.c} + einfo "Building $s => $bin" + emake -f /dev/null M=${dir} ARCH=${karch} ${s%.c} + done + + for t in ${TARGET_MAKE_SIMPLE[@]} ; do + dir=${t/:*} target=${t/*:} + einfo "Building $dir => $target" + emake -C $dir ARCH=${karch} $target + done +} + +src_install() { + into /usr + for s in ${TARGETS_SIMPLE[@]} ; do + dir=$(dirname $s) src=$(basename $s) bin=${src%.c} + einfo "Installing $s => $bin" + dosbin ${dir}/${bin} + done + + for t in ${TARGET_MAKE_SIMPLE[@]} ; do + dir=${t/:*} target=${t/*:} + einfo "Installing $dir => $target" + dosbin ${dir}/${target} + done + + newconfd "${FILESDIR}"/freefall.confd freefall + newinitd "${FILESDIR}"/freefall.initd freefall + prune_libtool_files +} + +pkg_postinst() { + echo + elog "The cpupower utility is maintained separately at sys-power/cpupower" + elog "The usbip utility is maintained separately at net-misc/usbip" +} diff --git a/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r2.ebuild b/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r2.ebuild new file mode 100644 index 000000000000..3e02a428b973 --- /dev/null +++ b/sys-apps/linux-misc-apps/linux-misc-apps-3.6-r2.ebuild @@ -0,0 +1,185 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit versionator eutils toolchain-funcs linux-info autotools flag-o-matic + +DESCRIPTION="Misc tools bundled with kernel sources" +HOMEPAGE="http://kernel.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="static-libs tcpd" + +MY_PV="${PV/_/-}" +MY_PV="${MY_PV/-pre/-git}" + +LINUX_V=$(get_version_component_range 1-2) + +if [ ${PV/_rc} != ${PV} ]; then + LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1)) + PATCH_VERSION=$(get_version_component_range 1-3) + LINUX_PATCH=patch-${PV//_/-}.bz2 + SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} + mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" +elif [ $(get_version_component_count) == 4 ]; then + # stable-release series + LINUX_VER=$(get_version_component_range 1-3) + LINUX_PATCH=patch-${PV}.bz2 + SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" +else + LINUX_VER=${PV} +fi + +LINUX_SOURCES=linux-${LINUX_VER}.tar.bz2 +SRC_URI="${SRC_URI} mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" + +# pmtools also provides turbostat +# sysfsutils and glib for usbip - remove sysfsutils in 3.7 or 3.8 +RDEPEND="sys-apps/hwids + >=sys-fs/sysfsutils-2 + >=dev-libs/glib-2.6 + tcpd? ( sys-apps/tcp-wrappers ) + !sys-power/pmtools + !net-misc/usbip" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/linux-${LINUX_VER}" + +# All of these are integrated with the kernel build system, +# No make install, and ideally build with with the root Makefile +TARGETS_SIMPLE=( + Documentation/accounting/getdelays.c + Documentation/cgroups/cgroup_event_listener.c + Documentation/laptops/dslm.c + Documentation/laptops/hpfall.c + Documentation/networking/timestamping/timestamping.c + Documentation/watchdog/src/watchdog-simple.c + tools/lguest/lguest.c + tools/vm/page-types.c + tools/vm/slabinfo.c + usr/gen_init_cpio.c +) +# tools/hv/hv_kvp_daemon.c - broken in 3.7 by missing linux/hyperv.h userspace +# Documentation/networking/ifenslave.c - obsolete +# Documentation/ptp/testptp.c - pending linux-headers-3.0 + +# These have a broken make install, no DESTDIR +TARGET_MAKE_SIMPLE=( + tools/firewire:nosy-dump + tools/power/x86/turbostat:turbostat + tools/power/x86/x86_energy_perf_policy:x86_energy_perf_policy + Documentation/misc-devices/mei:mei-amt-version +) +# tools/perf - covered by dev-utils/perf +# tools/usb - testcases only +# tools/virtio - testcaes only + + #for _pattern in {Documentation,scripts,tools,usr,include,lib,"arch/*/include",Makefile,Kbuild,Kconfig}; do +src_unpack() { + unpack ${LINUX_SOURCES} + + MY_A= + for _AFILE in ${A}; do + [[ ${_AFILE} == ${LINUX_SOURCES} ]] && continue + [[ ${_AFILE} == ${LINUX_PATCH} ]] && continue + MY_A="${MY_A} ${_AFILE}" + done + [[ -n ${MY_A} ]] && unpack ${MY_A} +} + +src_prepare() { + if [[ -n ${LINUX_PATCH} ]]; then + epatch "${DISTDIR}"/${LINUX_PATCH} + fi + + pushd drivers/staging/usbip/userspace >/dev/null && + eautoreconf -i -f -v && + popd >/dev/null || die "usbip" + + sed -i \ + -e '/^nosy-dump.*LDFLAGS/d' \ + -e '/^nosy-dump.*CFLAGS/d' \ + -e '/^nosy-dump.*CPPFLAGS/s,CPPFLAGS =,CPPFLAGS +=,g' \ + "${S}"/tools/firewire/Makefile +} + +kernel_asm_arch() { + a="${1:${ARCH}}" + case ${a} in + # Merged arches + x86|amd64) echo x86 ;; + ppc*) echo powerpc ;; + # Non-merged + alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;; + *) die "TODO: Update the code for your asm-ARCH symlink" ;; + esac +} + +src_configure() { + cd drivers/staging/usbip/userspace && \ + econf \ + $(use_enable static-libs static) \ + $(use tcpd || echo --without-tcp-wrappers) \ + --with-usbids-dir=/usr/share/misc +} + +src_compile() { + local karch=$(kernel_asm_arch "${ARCH}") + # This is the minimal amount needed to start building host binaries. + #emake allmodconfig ARCH=${karch} + #emake prepare modules_prepare ARCH=${karch} + #touch Module.symvers + + # Now we can start building + for s in ${TARGETS_SIMPLE[@]} ; do + dir=$(dirname $s) src=$(basename $s) bin=${src%.c} + einfo "Building $s => $bin" + emake -f /dev/null M=${dir} ARCH=${karch} ${s%.c} + done + + for t in ${TARGET_MAKE_SIMPLE[@]} ; do + dir=${t/:*} target=${t/*:} + einfo "Building $dir => $target" + emake -C $dir ARCH=${karch} $target + done + + emake -C drivers/staging/usbip/userspace +} + +src_install() { + into /usr + for s in ${TARGETS_SIMPLE[@]} ; do + dir=$(dirname $s) src=$(basename $s) bin=${src%.c} + einfo "Installing $s => $bin" + dosbin ${dir}/${bin} + done + + for t in ${TARGET_MAKE_SIMPLE[@]} ; do + dir=${t/:*} target=${t/*:} + einfo "Installing $dir => $target" + dosbin ${dir}/${target} + done + + pushd drivers/staging/usbip/userspace >/dev/null \ + || die "Missing usbip/userspace" + emake DESTDIR="${D}" install + + newdoc README README.usbip + newdoc AUTHORS AUTHORS.usbip + dodoc ../usbip_protocol.txt + popd >/dev/null + + newconfd "${FILESDIR}"/hpfall.confd hpfall + newinitd "${FILESDIR}"/hpfall.initd hpfall + prune_libtool_files +} + +pkg_postinst() { + echo + elog "The cpupower utility is maintained separately at sys-power/cpupower" +} diff --git a/sys-apps/linux-misc-apps/metadata.xml b/sys-apps/linux-misc-apps/metadata.xml new file mode 100644 index 000000000000..c6d862855eb5 --- /dev/null +++ b/sys-apps/linux-misc-apps/metadata.xml @@ -0,0 +1,7 @@ + + + + + robbat2@gentoo.org + + diff --git a/sys-apps/lkcdutils/Manifest b/sys-apps/lkcdutils/Manifest new file mode 100644 index 000000000000..85da3b90ebd7 --- /dev/null +++ b/sys-apps/lkcdutils/Manifest @@ -0,0 +1,4 @@ +DIST lkcdutils-4.1-1.src.rpm 1502922 SHA256 3482dfca9f7a766eb8d2778640ed72a6fa621915639f6be1a4e1313ac545df71 +DIST lkcdutils-4.1-dhv8.tar.gz 8227 SHA256 1a7a9e6007c338ece8c8c1459af8c02db0ec624bff5f2f71b5dcab4310a998c0 +DIST lkcdutils-4.1-savedump.tar.gz 21626 SHA256 e3bd94c5a8cc4d97885020c841f47c7aec4fc746a6e3b10ab8840a5dfbc2ca82 +DIST lkcdutils-6.2.0.tar.gz 2967595 SHA256 f69d9eb293ad446d61a882e147120ec3d2f55280443efd859d6cdb196b0de22b diff --git a/sys-apps/lkcdutils/files/lkcdutils-6.2.0-build.patch b/sys-apps/lkcdutils/files/lkcdutils-6.2.0-build.patch new file mode 100644 index 000000000000..e8330074d9bd --- /dev/null +++ b/sys-apps/lkcdutils/files/lkcdutils-6.2.0-build.patch @@ -0,0 +1,24 @@ +--- a/libsial/Makefile ++++ b/libsial/Makefile +@@ -53,7 +53,7 @@ + ./mkbaseop > baseops.c + $(CC) $(CFLAGS) -c baseops.c + +-mkbaseop.c sial_member.o sial_op.o sial_stat.o sial_type.o y.tab.o : sial.tab.h ++mkbaseop.c sial_api.o sial_member.o sial_op.o sial_stat.o sial_type.o y.tab.o : sial.tab.h + + lex.sial.o: lex.sial.c sial.tab.c sial.h + $(CC) $(CFLAGS) -c lex.sial.c +--- a/libklib/kl_savedump.c ++++ b/libklib/kl_savedump.c +@@ -24,6 +24,10 @@ + #include + #include + ++#ifndef offsetof ++#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) ++#endif ++ + static int kl_check_type_dev(char *); + static int kl_check_type_dir(char *); + static int __kl_dump_retrieve_reg(int,int,char*,int,int); diff --git a/sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild b/sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild new file mode 100644 index 000000000000..47c6be3e553e --- /dev/null +++ b/sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_P=${P/4.1.1/4.1} +DESCRIPTION="Linux Kernel Crash Dumps (LKCD) Utilities" +HOMEPAGE="http://lkcd.sourceforge.net/ http://oss.software.ibm.com/developerworks/opensource/linux390/june2003_recommended.shtml" +SRC_URI="http://lkcd.sourceforge.net/download/OLD/4.1.1/lkcdutils/lkcdutils-4.1-1.src.rpm + mirror://gentoo/lkcdutils-4.1-savedump.tar.gz + mirror://gentoo/lkcdutils-4.1-dhv8.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="s390" +IUSE="" + +DEPEND="app-arch/rpm2targz + dev-util/byacc" +RDEPEND="" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + ebegin "Unpacking lkcd distribution..." + # This is the same as using rpm2targz then extracting 'cept that + # it's faster, less work, and less hard disk space. rpmoffset is + # provided by the rpm2targz package. + i="${DISTDIR}/${PN}-4.1-1.src.rpm" + dd ibs=`rpmoffset < ${i}` skip=1 if=$i 2>/dev/null \ + | gzip -dc | cpio -idmu 2>/dev/null && tar xzf ${PN}-4.1-1.tar.gz + eend ${?} + assert "Failed to extract lkcd distribution..." + + unpack lkcdutils-4.1-savedump.tar.gz + unpack lkcdutils-4.1-dhv8.tar.gz + cd "${S}" + epatch ../lkcdutils-4.1-savedump.diff + epatch ../lkcdutils-4.1-dhv8.diff +} + +src_compile() { + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir=/usr/share \ + --sysconfdir=/etc \ + --bfd_version=2.14.90 || die "configure failed" + + make || die "make failed" +} + +src_install() { + make install ROOT="${D}" || die "install failed" + # not needed on s390 + rm -rf "${D}"/usr/share/sial \ + "${D}"/usr/lib/libsial.a \ + "${D}"/usr/include/sial_api.h \ + "${D}"/usr/include/lkcd/asm/lc_dis.h \ + "${D}"/etc \ + "${D}"/sbin/lkcd* \ + "${D}"/usr/man/man/lkcd* + # broken configure script... + mv -f "${D}"/usr/man "${D}"/usr/share/man +} diff --git a/sys-apps/lkcdutils/lkcdutils-6.2.0.ebuild b/sys-apps/lkcdutils/lkcdutils-6.2.0.ebuild new file mode 100644 index 000000000000..c61b909da01b --- /dev/null +++ b/sys-apps/lkcdutils/lkcdutils-6.2.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Linux Kernel Crash Dumps (LKCD) Utilities" +HOMEPAGE="http://lkcd.sourceforge.net/" +SRC_URI="mirror://sourceforge/lkcd/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~s390" +IUSE="" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + ./configure \ + --cflags="${CFLAGS} ${CPPFLAGS}" \ + --lflags="${LDFLAGS}" \ + || die + emake || die "make failed" +} + +src_install() { + emake install ROOT="${D}" || die "install failed" + rm -r "${D}"/etc/sysconfig +} diff --git a/sys-apps/lkcdutils/metadata.xml b/sys-apps/lkcdutils/metadata.xml new file mode 100644 index 000000000000..fc290a9782b3 --- /dev/null +++ b/sys-apps/lkcdutils/metadata.xml @@ -0,0 +1,11 @@ + + + + s390 + + s390@gentoo.org + + + lkcd + + diff --git a/sys-apps/lm_sensors/Manifest b/sys-apps/lm_sensors/Manifest new file mode 100644 index 000000000000..f39831112d79 --- /dev/null +++ b/sys-apps/lm_sensors/Manifest @@ -0,0 +1,3 @@ +DIST lm_sensors-3.3.4.tar.bz2 172226 SHA256 b4608610cb5de4b24e3fe1ae357712e8633a8a929bbb42df5eecc4ccee6ba76d SHA512 a375f747a1687da0fe743d731893156f7983e001725c2d7cd284cefd3e8922deb3dfe542d3c901e3da8fff321633d64180a637d780b5e1bb3f1e9a254c16b7e6 WHIRLPOOL 4011264a56c36ffcfe28d357ceae1929fdf8a21c27bfaba928c9a7b48ef2b8422cd6650981a4c8f220900cc45526ca4bbfda9810b54db0efaf15cdaad4599838 +DIST lm_sensors-3.3.5.tar.bz2 173609 SHA256 5dae6a665e1150159a93743c4ff1943a7efe02cd9d3bb12c4805e7d7adcf4fcf SHA512 0874084c3dd40b93ed05e1955f76e35e78ac3ac2343341d8ab5412fd941ea300b3a4b1320bec3a5bfb07309e82f42cc5dac0a728cdfddac4053d4fdb96dc12e7 WHIRLPOOL f82d0d1a4b7647cf9076f16861024dd65fd97bd34a7498fcc06e851913f5b71805689d915b67a628b6cd7aea2b46225d64df8833550c785236311c9980ac8ed1 +DIST lm_sensors-3.4.0.tar.bz2 175802 SHA256 e0579016081a262dd23eafe1d22b41ebde78921e73a1dcef71e05e424340061f SHA512 993064bd14b855c1ae8c057e89313df5b3d5efe441fb2e8c3e508f42bb15658564df2563fac8fabbdb0d650dfdbc694037736c748d45cb9d85dfb8fb5a3d1ea9 WHIRLPOOL 82ed9b922a352702d974ea075222894c69a081da1fca9e026e3176266bb6a8911fd8fc0cd73f2d9ab3524cd30cfe2e688a015032829cf32d844592debaf9924d diff --git a/sys-apps/lm_sensors/files/fancontrol-init.d-2 b/sys-apps/lm_sensors/files/fancontrol-init.d-2 new file mode 100644 index 000000000000..0474d12b3208 --- /dev/null +++ b/sys-apps/lm_sensors/files/fancontrol-init.d-2 @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +CONFIG=/etc/fancontrol + +depend() { + need localmount + use lm_sensors +} + +command=/usr/sbin/fancontrol +command_arguments="${CONFIG}" +start_stop_daemon_args="--background" +pidfile=/var/run/fancontrol.pid + +start_pre() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} diff --git a/sys-apps/lm_sensors/files/fancontrol.service b/sys-apps/lm_sensors/files/fancontrol.service new file mode 100644 index 000000000000..c86b498f830c --- /dev/null +++ b/sys-apps/lm_sensors/files/fancontrol.service @@ -0,0 +1,9 @@ +[Unit] +Description=Fan control daemon + +[Service] +PIDFile=/var/run/fancontrol.pid +ExecStart=/usr/sbin/fancontrol + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/lm_sensors/files/lm_sensors-3-init.d b/sys-apps/lm_sensors/files/lm_sensors-3-init.d new file mode 100644 index 000000000000..b33814f62665 --- /dev/null +++ b/sys-apps/lm_sensors/files/lm_sensors-3-init.d @@ -0,0 +1,105 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +checkconfig() { + if [ ! -f /etc/conf.d/lm_sensors ]; then + eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect" + return 1 + fi + + if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then + if [ -z "${MODULE_0}" ]; then + eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect" + return 1 + fi + fi +} + +start() { + checkconfig || return 1 + + if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then + einfo "Loading lm_sensors modules..." + + mount | grep sysfs >/dev/null 2>&1 + if [ ${?} = 0 ]; then + if ! ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ); then + ebegin " Loading i2c-core" + modprobe i2c-core >/dev/null 2>&1 + if [ ${?} != 0 ]; then + eerror " Could not load i2c-core!" + eend 1 + fi + ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ) || return 1 + eend 0 + fi + elif ! [ -e /proc/sys/dev/sensors ]; then + ebegin " Loading i2c-proc" + modprobe i2c-proc >/dev/null 2>&1 + if [ ${?} != 0 ]; then + eerror " Could not load i2c-proc!" + eend 1 + fi + [ -e /proc/sys/dev/sensors ] || return 1 + eend 0 + fi + + i=0 + while true; do + module=`eval echo '$'MODULE_${i}` + module_args=`eval echo '$'MODULE_${i}_ARGS` + if [ -z "${module}" ]; then + break + fi + ebegin " Loading ${module}" + modprobe ${module} ${module_args} >/dev/null 2>&1 + eend $? + i=$(($i+1)) + done + fi + + if [ "${INITSENSORS}" = "yes" ]; then + if ! [ -f /etc/sensors3.conf ]; then + eerror "/etc/sensors3.conf does not exist!" + return 1 + fi + + ebegin "Initializing sensors" + /usr/bin/sensors -s >/dev/null 2>&1 + eend ${?} + fi +} + +stop() { + checkconfig || return 1 + + if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then + einfo "Unloading lm_sensors modules..." + + # find the highest possible MODULE_ number + i=0 + while true; do + module=`eval echo '$'MODULE_${i}` + if [ -z "${module}" ] ; then + break + fi + i=$(($i+1)) + done + + while [ ${i} -gt 0 ]; do + i=$(($i-1)) + module=`eval echo '$'MODULE_${i}` + ebegin " Unloading ${module}" + rmmod ${module} >/dev/null 2>&1 + eend $? + done + + if [ -e /proc/sys/dev/sensors ] ; then + ebegin " Unloading i2c-proc" + rmmod i2c-proc >/dev/null 2>&1 + eend $? + fi + fi +} diff --git a/sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch b/sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch new file mode 100644 index 000000000000..58772f215614 --- /dev/null +++ b/sys-apps/lm_sensors/files/lm_sensors-3.3.1-sensors-detect-gentoo.patch @@ -0,0 +1,129 @@ +--- lm_sensors-3.3.1/prog/detect/sensors-detect ++++ lm_sensors-3.3.1/prog/detect/sensors-detect +@@ -20,6 +20,9 @@ + # MA 02110-1301 USA. + # + ++# Gentoo specific modifications based on a patch from Rudo Thomas ++# ++ + require 5.004; + + use strict; +@@ -6471,26 +6474,33 @@ + print MODPROBE_D $configfile; + close(MODPROBE_D); + } else { ++ print "\nIf you want to load the modules at startup, generate a config file\n", ++ "below and make sure lm_sensors gets started at boot time; e.g\n", ++ "\$ rc-update add lm_sensors default\n"; + print "To make the sensors modules behave correctly, add these lines to\n". +- "/etc/modprobe.conf:\n\n"; ++ "/etc/modules.d/lm_sensors and run modules-update:\n\n"; + print "#----cut here----\n". + $configfile. + "#----cut here----\n\n"; + } + } + +- my $have_sysconfig = -d '/etc/sysconfig'; +- printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", +- (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), +- ($have_sysconfig ? 'YES/no' : 'yes/NO'); +- $_ = ; +- if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) { +- unless ($have_sysconfig) { +- mkdir('/etc/sysconfig', 0777) +- or die "Sorry, can't create /etc/sysconfig ($!)"; ++ my $have_config = -f '/etc/conf.d/lm_sensors'; ++ print "\nDo you want to ".($have_config?"overwrite":"generate"). ++ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", ++ " (".($have_config?"yes/NO":"YES/no")."/s): "; ++ my $reply = ; ++ ++ if (($have_config and $reply =~ /^\s*[Yy]/) or ++ (not $have_config and not $reply =~ /^\s*[Nn]/) or ++ $reply =~ /^\s*[Ss]/) { ++ my $filename = "/etc/conf.d/lm_sensors"; ++ if ($reply =~ /^\s*[Ss]/) { ++ print "Specify the file to store the configuration to: "; ++ $filename = ; + } +- open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") +- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; ++ open(local *SYSCONFIG, ">".$filename) ++ or die "Sorry, can't create $filename ($!)."; + print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; + print SYSCONFIG <<'EOT'; + # This file is sourced by /etc/init.d/lm_sensors and defines the modules to +@@ -6501,6 +6511,11 @@ + # BUS_MODULES for any required bus driver module (for example for I2C or SPI). + + EOT ++ print SYSCONFIG ++ "# Load modules at startup\n". ++ "LOADMODULES=yes\n\n". ++ "# Initialize sensors at startup\n". ++ "INITSENSORS=yes\n\n"; + print SYSCONFIG "BUS_MODULES=\"", join(" ", @{$bus_modules}), "\"\n" + if @{$bus_modules}; + print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; +@@ -6509,6 +6524,10 @@ + + # For compatibility reasons, modules are also listed individually as variables + # MODULE_0, MODULE_1, MODULE_2, etc. ++# Please note that the numbers in MODULE_X must start at 0 and increase in ++# steps of 1. Any number that is missing will make the init script skip the ++# rest of the modules. Use MODULE_X_ARGS for arguments. ++# + # You should use BUS_MODULES and HWMON_MODULES instead if possible. + + EOT +@@ -6519,25 +6538,7 @@ + } + close(SYSCONFIG); + +- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && +- ! -f "/lib/systemd/system/lm_sensors.service") { +- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". +- "and run 'systemctl enable lm_sensors.service'\n". +- "for initialization at boot time.\n"; +- return; +- } +- +- if (-x "/bin/systemctl" && +- -f "/lib/systemd/system/lm_sensors.service") { +- system("/bin/systemctl", "enable", "lm_sensors.service"); +- system("/bin/systemctl", "start", "lm_sensors.service"); +- # All done, don't check for /etc/init.d/lm_sensors +- return; +- } +- +- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". +- "for initialization at boot time.\n" +- unless -f "/etc/init.d/lm_sensors"; ++ print "Done.\n"; + + if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { + system("/sbin/insserv", "/etc/init.d/lm_sensors"); +@@ -6551,20 +6552,6 @@ + "kernel modules.\n\n"; + } + } else { +- print "To load everything that is needed, add this to one of the system\n". +- "initialization scripts (e.g. /etc/rc.d/rc.local):\n\n"; +- print "#----cut here----\n"; +- if (@{$bus_modules}) { +- print "# Adapter drivers\n"; +- print "modprobe $_\n" foreach (@{$bus_modules}); +- } +- print "# Chip drivers\n"; +- print "modprobe $_\n" foreach (@{$hwmon_modules}); +- print((-e '/usr/bin/sensors' ? +- "/usr/bin/sensors -s\n" : +- "/usr/local/bin/sensors -s\n"). +- "#----cut here----\n\n"); +- + print "If you have some drivers built into your kernel, the list above will\n". + "contain too many modules. Skip the appropriate ones! You really\n". + "should try these commands right now to make sure everything is\n". diff --git a/sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch b/sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch new file mode 100644 index 000000000000..215969af2cb6 --- /dev/null +++ b/sys-apps/lm_sensors/files/lm_sensors-3.3.4-sensors-detect-gentoo.patch @@ -0,0 +1,118 @@ +diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect +index fb17481..bb324c2 100755 +--- a/prog/detect/sensors-detect ++++ b/prog/detect/sensors-detect +@@ -20,6 +20,9 @@ + # MA 02110-1301 USA. + # + ++# Gentoo specific modifications based on a patch from Rudo Thomas ++# ++ + require 5.004; + + use strict; +@@ -6671,26 +6674,33 @@ sub write_config + print MODPROBE_D $configfile; + close(MODPROBE_D); + } else { ++ print "\nIf you want to load the modules at startup, generate a config file\n", ++ "below and make sure lm_sensors gets started at boot time; e.g\n", ++ "\$ rc-update add lm_sensors default\n"; + print "To make the sensors modules behave correctly, add these lines to\n". +- "/etc/modprobe.conf:\n\n"; ++ "/etc/modules.d/lm_sensors and run modules-update:\n\n"; + print "#----cut here----\n". + $configfile. + "#----cut here----\n\n"; + } + } + +- my $have_sysconfig = -d '/etc/sysconfig'; +- printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", +- (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), +- ($have_sysconfig ? 'YES/no' : 'yes/NO'); +- $_ = ; +- if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) { +- unless ($have_sysconfig) { +- mkdir('/etc/sysconfig', 0777) +- or die "Sorry, can't create /etc/sysconfig ($!)"; ++ my $have_config = -f '/etc/conf.d/lm_sensors'; ++ print "\nDo you want to ".($have_config?"overwrite":"generate"). ++ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", ++ " (".($have_config?"yes/NO":"YES/no")."/s): "; ++ my $reply = ; ++ ++ if (($have_config and $reply =~ /^\s*[Yy]/) or ++ (not $have_config and not $reply =~ /^\s*[Nn]/) or ++ $reply =~ /^\s*[Ss]/) { ++ my $filename = "/etc/conf.d/lm_sensors"; ++ if ($reply =~ /^\s*[Ss]/) { ++ print "Specify the file to store the configuration to: "; ++ $filename = ; + } +- open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") +- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; ++ open(local *SYSCONFIG, ">".$filename) ++ or die "Sorry, can't create $filename ($!)."; + print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; + print SYSCONFIG <<'EOT'; + # This file is sourced by /etc/init.d/lm_sensors and defines the modules to +@@ -6701,30 +6711,17 @@ sub write_config + # BUS_MODULES for any required bus driver module (for example for I2C or SPI). + + EOT ++ print SYSCONFIG ++ "# Load modules at startup\n". ++ "LOADMODULES=yes\n\n". ++ "# Initialize sensors at startup\n". ++ "INITSENSORS=yes\n\n"; + print SYSCONFIG "BUS_MODULES=\"", join(" ", @{$bus_modules}), "\"\n" + if @{$bus_modules}; + print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; + close(SYSCONFIG); + +- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && +- ! -f "/lib/systemd/system/lm_sensors.service") { +- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". +- "and run 'systemctl enable lm_sensors.service'\n". +- "for initialization at boot time.\n"; +- return; +- } +- +- if (-x "/bin/systemctl" && +- -f "/lib/systemd/system/lm_sensors.service") { +- system("/bin/systemctl", "enable", "lm_sensors.service"); +- system("/bin/systemctl", "start", "lm_sensors.service"); +- # All done, don't check for /etc/init.d/lm_sensors +- return; +- } +- +- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". +- "for initialization at boot time.\n" +- unless -f "/etc/init.d/lm_sensors"; ++ print "Done.\n"; + + if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { + system("/sbin/insserv", "/etc/init.d/lm_sensors"); +@@ -6738,20 +6735,6 @@ EOT + "kernel modules.\n\n"; + } + } else { +- print "To load everything that is needed, add this to one of the system\n". +- "initialization scripts (e.g. /etc/rc.d/rc.local):\n\n"; +- print "#----cut here----\n"; +- if (@{$bus_modules}) { +- print "# Adapter drivers\n"; +- print "modprobe $_\n" foreach (@{$bus_modules}); +- } +- print "# Chip drivers\n"; +- print "modprobe $_\n" foreach (@{$hwmon_modules}); +- print((-e '/usr/bin/sensors' ? +- "/usr/bin/sensors -s\n" : +- "/usr/local/bin/sensors -s\n"). +- "#----cut here----\n\n"); +- + print "If you have some drivers built into your kernel, the list above will\n". + "contain too many modules. Skip the appropriate ones! You really\n". + "should try these commands right now to make sure everything is\n". diff --git a/sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch b/sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch new file mode 100644 index 000000000000..0ea9a02b3f9a --- /dev/null +++ b/sys-apps/lm_sensors/files/lm_sensors-3.3.5-sensors-detect-gentoo.patch @@ -0,0 +1,120 @@ +--- lm_sensors-3.3.5/prog/detect/sensors-detect ++++ lm_sensors-3.3.5/prog/detect/sensors-detect +@@ -20,6 +20,9 @@ + # MA 02110-1301 USA. + # + ++# Gentoo specific modifications based on a patch from Rudo Thomas ++# ++ + require 5.004; + + use strict; +@@ -6762,26 +6765,33 @@ + print MODPROBE_D $configfile; + close(MODPROBE_D); + } else { ++ print "\nIf you want to load the modules at startup, generate a config file\n", ++ "below and make sure lm_sensors gets started at boot time; e.g\n", ++ "\$ rc-update add lm_sensors default\n"; + print "To make the sensors modules behave correctly, add these lines to\n". +- "/etc/modprobe.conf:\n\n"; ++ "/etc/modules.d/lm_sensors and run modules-update:\n\n"; + print "#----cut here----\n". + $configfile. + "#----cut here----\n\n"; + } + } + +- my $have_sysconfig = -d '/etc/sysconfig'; +- printf "Do you want to \%s /etc/sysconfig/lm_sensors? (\%s): ", +- (-e '/etc/sysconfig/lm_sensors' ? 'overwrite' : 'generate'), +- ($have_sysconfig ? 'YES/no' : 'yes/NO'); +- $_ = read_answer(); +- if (($have_sysconfig and not m/^\s*n/i) or m/^\s*y/i) { +- unless ($have_sysconfig) { +- mkdir('/etc/sysconfig', 0777) +- or die "Sorry, can't create /etc/sysconfig ($!)"; ++ my $have_sysconfig = -f '/etc/conf.d/lm_sensors'; ++ printf "Do you want to ".($have_sysconfig?"overwrite":"generate"). ++ " /etc/conf.d/lm_sensors? Enter s to specify other file name?\n", ++ " (".($have_sysconfig?"yes/NO":"YES/no")."/s): "; ++ my $reply = read_answer(); ++ ++ if (($have_sysconfig and $reply =~ /^\s*[Yy]/) or ++ (not $have_sysconfig and not $reply =~ /^\s*[Nn]/) or ++ $reply =~ /^\s*[Ss]/) { ++ my $filename = "/etc/conf.d/lm_sensors"; ++ if ($reply =~ /^\s*[Ss]/) { ++ print "Specify the file to store the configuration to: "; ++ $filename = read_answer(); + } +- open(local *SYSCONFIG, ">/etc/sysconfig/lm_sensors") +- or die "Sorry, can't create /etc/sysconfig/lm_sensors ($!)"; ++ open(local *SYSCONFIG, ">".$filename) ++ or die "Sorry, can't create $filename ($!)."; + print SYSCONFIG "# Generated by sensors-detect on " . scalar localtime() . "\n"; + print SYSCONFIG <<'EOT'; + # This file is sourced by /etc/init.d/lm_sensors and defines the modules to +@@ -6792,30 +6802,17 @@ + # BUS_MODULES for any required bus driver module (for example for I2C or SPI). + + EOT ++ print SYSCONFIG ++ "# Load modules at startup\n". ++ "LOADMODULES=yes\n\n". ++ "# Initialize sensors at startup\n". ++ "INITSENSORS=yes\n\n"; + print SYSCONFIG "BUS_MODULES=\"", join(" ", @{$bus_modules}), "\"\n" + if @{$bus_modules}; + print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; + close(SYSCONFIG); + +- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && +- ! -f "/lib/systemd/system/lm_sensors.service") { +- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". +- "and run 'systemctl enable lm_sensors.service'\n". +- "for initialization at boot time.\n"; +- return; +- } +- +- if (-x "/bin/systemctl" && +- -f "/lib/systemd/system/lm_sensors.service") { +- system("/bin/systemctl", "enable", "lm_sensors.service"); +- system("/bin/systemctl", "start", "lm_sensors.service"); +- # All done, don't check for /etc/init.d/lm_sensors +- return; +- } +- +- print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n". +- "for initialization at boot time.\n" +- unless -f "/etc/init.d/lm_sensors"; ++ print "Done.\n"; + + if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { + system("/sbin/insserv", "/etc/init.d/lm_sensors"); +@@ -6828,24 +6825,6 @@ + print "You should now start the lm_sensors service to load the required\n". + "kernel modules.\n\n"; + } +- } else { +- print "To load everything that is needed, add this to one of the system\n". +- "initialization scripts (e.g. /etc/rc.d/rc.local):\n\n"; +- print "#----cut here----\n"; +- if (@{$bus_modules}) { +- print "# Adapter drivers\n"; +- print "modprobe $_\n" foreach (@{$bus_modules}); +- } +- print "# Chip drivers\n"; +- print "modprobe $_\n" foreach (@{$hwmon_modules}); +- print((-e '/usr/bin/sensors' ? +- "/usr/bin/sensors -s\n" : +- "/usr/local/bin/sensors -s\n"). +- "#----cut here----\n\n"); +- +- print "You really should try these commands right now to make sure everything\n". +- "is working properly. Monitoring programs won't work until the needed\n". +- "modules are loaded.\n\n"; + } + } + diff --git a/sys-apps/lm_sensors/files/sensord-4-init.d b/sys-apps/lm_sensors/files/sensord-4-init.d new file mode 100644 index 000000000000..3734dfede1d9 --- /dev/null +++ b/sys-apps/lm_sensors/files/sensord-4-init.d @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +CONFIG=/etc/sensors3.conf + +depend() { + need localmount + use logger lm_sensors +} + +pidfile=/run/sensord.pid +command=/usr/sbin/sensord +command_args="--config-file ${CONFIG} ${SENSORD_OPTIONS} --pid-file ${pidfile}" + +start_pre() { + if [ ! -f ${CONFIG} ]; then + eerror "Configuration file ${CONFIG} not found" + return 1 + fi +} diff --git a/sys-apps/lm_sensors/files/sensord-conf.d b/sys-apps/lm_sensors/files/sensord-conf.d new file mode 100644 index 000000000000..d82841aebd4a --- /dev/null +++ b/sys-apps/lm_sensors/files/sensord-conf.d @@ -0,0 +1,3 @@ +# Extra options to pass to the sensord daemon, +# see sensord(8) for more information +SENSORD_OPTIONS="" diff --git a/sys-apps/lm_sensors/files/sensord.service b/sys-apps/lm_sensors/files/sensord.service new file mode 100644 index 000000000000..6d272f1efd15 --- /dev/null +++ b/sys-apps/lm_sensors/files/sensord.service @@ -0,0 +1,9 @@ +[Unit] +Description=Sensor information logging daemon + +[Service] +PIDFile=/var/run/sensord.pid +ExecStart=/usr/sbin/sensord + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild new file mode 100644 index 000000000000..52ffdff31243 --- /dev/null +++ b/sys-apps/lm_sensors/lm_sensors-3.3.4-r1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils linux-info multilib systemd toolchain-funcs + +DESCRIPTION="Hardware Monitoring user-space utilities" +HOMEPAGE="http://www.lm-sensors.org/" +SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~mips ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="sensord static-libs" + +RDEPEND=" + dev-lang/perl + sensord? ( + net-analyzer/rrdtool + virtual/logger + )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +CONFIG_CHECK="~HWMON ~I2C_CHARDEV ~I2C" +WARNING_HWMON="${PN} requires CONFIG_HWMON to be enabled for use." +WARNING_I2C_CHARDEV="sensors-detect requires CONFIG_I2C_CHARDEV to be enabled." +WARNING_I2C="${PN} requires CONFIG_I2C to be enabled for most sensors." + +src_prepare() { + epatch "${FILESDIR}"/${P}-sensors-detect-gentoo.patch + + use sensord && { sed -i -e 's:^#\(PROG_EXTRA.*\):\1:' Makefile || die; } + + # Respect LDFLAGS + sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die + + # Fix shipped unit file paths + sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ + prog/init/lm_sensors.service || die + + use static-libs || { sed -i -e '/^BUILD_STATIC_LIB/d' Makefile || die; } +} + +src_compile() { + einfo + einfo "You may safely ignore any errors from compilation" + einfo "that contain \"No such file or directory\" references." + einfo + + emake CC="$(tc-getCC)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + MANDIR="${EPREFIX}/usr/share/man" \ + ETCDIR="${EPREFIX}/etc" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + newinitd "${FILESDIR}"/${PN}-3-init.d ${PN} + systemd_dounit prog/init/lm_sensors.service + + newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol + systemd_dounit "${FILESDIR}"/fancontrol.service + + if use sensord; then + newconfd "${FILESDIR}"/sensord-conf.d sensord + newinitd "${FILESDIR}"/sensord-4-init.d sensord + systemd_dounit "${FILESDIR}"/sensord.service + fi + + dodoc CHANGES CONTRIBUTORS INSTALL README \ + doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} + + docinto developers + dodoc doc/developers/applications +} + +pkg_postinst() { + echo + elog "Please run \`/usr/sbin/sensors-detect' in order to setup" + elog "/etc/conf.d/${PN}." + echo + elog "/etc/conf.d/${PN} is vital to the init-script." + elog "Please make sure you also add ${PN} to the desired" + elog "runlevel. Otherwise your I2C modules won't get loaded" + elog "on the next startup." + echo + elog "You will also need to run the above command if you're upgrading from" + elog "<=${PN}-2, as the needed entries in /etc/conf.d/${PN} has" + elog "changed." + echo + elog "Be warned, the probing of hardware in your system performed by" + elog "sensors-detect could freeze your system. Also make sure you read" + elog "the documentation before running ${PN} on IBM ThinkPads." + echo + elog "Also make sure you have read:" + elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" + echo + elog "Please refer to the ${PN} documentation for more information." + elog "(http://www.lm-sensors.org/wiki/Documentation)" + echo +} diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild new file mode 100644 index 000000000000..8c69ed406394 --- /dev/null +++ b/sys-apps/lm_sensors/lm_sensors-3.3.5.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils linux-info multilib systemd toolchain-funcs + +DESCRIPTION="Hardware Monitoring user-space utilities" +HOMEPAGE="http://www.lm-sensors.org/" +SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha ~amd64 arm ~mips ~ppc ~ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="sensord static-libs" + +RDEPEND=" + dev-lang/perl + sensord? ( + net-analyzer/rrdtool + virtual/logger + )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +CONFIG_CHECK="~HWMON ~I2C_CHARDEV ~I2C" +WARNING_HWMON="${PN} requires CONFIG_HWMON to be enabled for use." +WARNING_I2C_CHARDEV="sensors-detect requires CONFIG_I2C_CHARDEV to be enabled." +WARNING_I2C="${PN} requires CONFIG_I2C to be enabled for most sensors." + +src_prepare() { + epatch "${FILESDIR}"/${P}-sensors-detect-gentoo.patch + + use sensord && { sed -i -e 's:^#\(PROG_EXTRA.*\):\1:' Makefile || die; } + + # Respect LDFLAGS + sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die + + # Fix shipped unit file paths + sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ + prog/init/lm_sensors.service || die + + use static-libs || { sed -i -e '/^BUILD_STATIC_LIB/d' Makefile || die; } +} + +src_compile() { + einfo + einfo "You may safely ignore any errors from compilation" + einfo "that contain \"No such file or directory\" references." + einfo + + emake CC="$(tc-getCC)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + MANDIR="${EPREFIX}/usr/share/man" \ + ETCDIR="${EPREFIX}/etc" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + newinitd "${FILESDIR}"/${PN}-3-init.d ${PN} + systemd_dounit prog/init/lm_sensors.service + + newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol + systemd_dounit "${FILESDIR}"/fancontrol.service + + if use sensord; then + newconfd "${FILESDIR}"/sensord-conf.d sensord + newinitd "${FILESDIR}"/sensord-4-init.d sensord + systemd_dounit "${FILESDIR}"/sensord.service + fi + + dodoc CHANGES CONTRIBUTORS INSTALL README \ + doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} + + docinto developers + dodoc doc/developers/applications +} + +pkg_postinst() { + echo + elog "Please run \`/usr/sbin/sensors-detect' in order to setup" + elog "/etc/conf.d/${PN}." + echo + elog "/etc/conf.d/${PN} is vital to the init-script." + elog "Please make sure you also add ${PN} to the desired" + elog "runlevel. Otherwise your I2C modules won't get loaded" + elog "on the next startup." + echo + elog "You will also need to run the above command if you're upgrading from" + elog "<=${PN}-2, as the needed entries in /etc/conf.d/${PN} has" + elog "changed." + echo + elog "Be warned, the probing of hardware in your system performed by" + elog "sensors-detect could freeze your system. Also make sure you read" + elog "the documentation before running ${PN} on IBM ThinkPads." + echo + elog "Also make sure you have read:" + elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" + echo + elog "Please refer to the ${PN} documentation for more information." + elog "(http://www.lm-sensors.org/wiki/Documentation)" + echo +} diff --git a/sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild b/sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild new file mode 100644 index 000000000000..0752370fe836 --- /dev/null +++ b/sys-apps/lm_sensors/lm_sensors-3.4.0.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils linux-info multilib systemd toolchain-funcs + +DESCRIPTION="Hardware Monitoring user-space utilities" +HOMEPAGE="http://www.lm-sensors.org/" +SRC_URI="http://dl.lm-sensors.org/lm-sensors/releases/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="sensord static-libs" + +RDEPEND=" + dev-lang/perl + sensord? ( + net-analyzer/rrdtool + virtual/logger + )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +CONFIG_CHECK="~HWMON ~I2C_CHARDEV ~I2C" +WARNING_HWMON="${PN} requires CONFIG_HWMON to be enabled for use." +WARNING_I2C_CHARDEV="sensors-detect requires CONFIG_I2C_CHARDEV to be enabled." +WARNING_I2C="${PN} requires CONFIG_I2C to be enabled for most sensors." + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.3.5-sensors-detect-gentoo.patch + + use sensord && { sed -i -e 's:^#\(PROG_EXTRA.*\):\1:' Makefile || die; } + + # Respect LDFLAGS + sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die + + # Fix shipped unit file paths + sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ + prog/init/lm_sensors.service || die + + use static-libs || { sed -i -e '/^BUILD_STATIC_LIB/d' Makefile || die; } +} + +src_compile() { + einfo + einfo "You may safely ignore any errors from compilation" + einfo "that contain \"No such file or directory\" references." + einfo + + emake CC="$(tc-getCC)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + MANDIR="${EPREFIX}/usr/share/man" \ + ETCDIR="${EPREFIX}/etc" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + newinitd "${FILESDIR}"/${PN}-3-init.d ${PN} + systemd_dounit prog/init/lm_sensors.service + + newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol + systemd_dounit "${FILESDIR}"/fancontrol.service + + if use sensord; then + newconfd "${FILESDIR}"/sensord-conf.d sensord + newinitd "${FILESDIR}"/sensord-4-init.d sensord + systemd_dounit "${FILESDIR}"/sensord.service + fi + + dodoc CHANGES CONTRIBUTORS INSTALL README \ + doc/{donations,fancontrol.txt,fan-divisors,libsensors-API.txt,progs,temperature-sensors,vid} + + docinto developers + dodoc doc/developers/applications +} + +pkg_postinst() { + echo + elog "Please run \`/usr/sbin/sensors-detect' in order to setup" + elog "/etc/conf.d/${PN}." + echo + elog "/etc/conf.d/${PN} is vital to the init-script." + elog "Please make sure you also add ${PN} to the desired" + elog "runlevel. Otherwise your I2C modules won't get loaded" + elog "on the next startup." + echo + elog "You will also need to run the above command if you're upgrading from" + elog "<=${PN}-2, as the needed entries in /etc/conf.d/${PN} has" + elog "changed." + echo + elog "Be warned, the probing of hardware in your system performed by" + elog "sensors-detect could freeze your system. Also make sure you read" + elog "the documentation before running ${PN} on IBM ThinkPads." + echo + elog "Also make sure you have read:" + elog "http://www.lm-sensors.org/wiki/FAQ/Chapter3#Mysensorshavestoppedworkinginkernel2.6.31" + echo + elog "Please refer to the ${PN} documentation for more information." + elog "(http://www.lm-sensors.org/wiki/Documentation)" + echo +} diff --git a/sys-apps/lm_sensors/metadata.xml b/sys-apps/lm_sensors/metadata.xml new file mode 100644 index 000000000000..4e32df6e6234 --- /dev/null +++ b/sys-apps/lm_sensors/metadata.xml @@ -0,0 +1,13 @@ + + + + + polynomial-c@gentoo.org + Lars Wendler + + + Enable sensord - a daemon that can be used to + periodically log sensor readings from hardware health-monitoring + chips + + diff --git a/sys-apps/lmctfy/Manifest b/sys-apps/lmctfy/Manifest new file mode 100644 index 000000000000..c252b93cd7c5 --- /dev/null +++ b/sys-apps/lmctfy/Manifest @@ -0,0 +1,4 @@ +DIST lmctfy-0.2.0.tar.gz 2291473 SHA256 b99310179ca36397074ca4719d8611a5cd567db967641214d365cefa95264f41 SHA512 533990025a9a88e2e2a467e571a80a5b057a0ef3523bfc71c155ad81e6a89463d1e1e094323d5dc875f1b86f4d2d2749819d10b8d6c781e06a93bd37747f12be WHIRLPOOL 5d3a71175dc02bc297ab8d7dfae599f70ea5185b815b6de96f21d466372f6c3c13306417a544127fd0b640f87ab5e460d8882e8c1623fa88d3f9d1a890cec836 +DIST lmctfy-0.3.0.tar.gz 2305226 SHA256 7b334456546b590d9298a3204b38ff91acc51409cc1fb2de0e92737faf017384 SHA512 9083af2d2b9ea34e6dbb911a24cf7b8a7fe5aa3a0f464d20115db86b5abac530d24122079f97ea2ef98bf4fb20a3980e598d89f38b570ba796665b0af08339d5 WHIRLPOOL 5371392de1eda88cd9b7f56f0bf032f3f3023201be43d15f4340092a756d1d6039537693ad3326666905ca91336dee251326e0fe5ab9bc4074783f0cd2e3fbce +DIST lmctfy-0.3.1.tar.gz 2312481 SHA256 a04a52617501d8f486b34e64b34225dc8ef3c18c47ef92c870cd67879e6587b5 SHA512 ab9f2a065a49fae00b540c0592d9356022ba14e0f9dc681731e0757c259f3632a9b34b5fc629eaf2d0943d59e7747af06cfe59a64f447192e8c196a9d41b9522 WHIRLPOOL 40a3198aa7e03f46350ddec8fe7f20f1c8ced8929a10f23b7306967230df18977bb05c725f9817e1fe10e153ab61ac5c58b1ee13516fdc505d7f85ec562e5e53 +DIST lmctfy-0.5.0.tar.gz 2447650 SHA256 1afd0ea7cafe33eaccb6adc47223344a4e6b1d798e27b12a9ab0769918004d9c SHA512 638472b3e8cc98e7ff7ecc48eb0f58fb6a74600db22b7a1962ac3fe137d3549233f3f3b0c97f5783dff6f1851f9c3f9b0607fedea91cb23c1124ed8e2b54aea1 WHIRLPOOL 6f40f84679d3e17310b4678b444abd98ddcffd27a05a715d4590de37d40688292e5f5df5ad3ea8f2a310a1dd5d88ceb0627b88190d07e1aea48c0bae24820843 diff --git a/sys-apps/lmctfy/lmctfy-0.2.0.ebuild b/sys-apps/lmctfy/lmctfy-0.2.0.ebuild new file mode 100644 index 000000000000..ff7801d21d50 --- /dev/null +++ b/sys-apps/lmctfy/lmctfy-0.2.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Linux application container management from Google" +HOMEPAGE="https://github.com/google/lmctfy" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + dev-libs/protobuf + dev-cpp/gflags + dev-libs/re2 + " +RDEPEND="${DEPEND}" + +src_compile() { + # test deps take too long to compile + use test && emake || emake lmctfy liblmctfy.a +} + +src_install() { + # silly upstream! + mkdir -p "${D}/usr/bin" + cp "${S}/bin/lmctfy/cli/lmctfy" "${D}/usr/bin/" || die "Failed to copy cli binary" + dolib.a "${S}/bin/liblmctfy.a" || die "Failed to copy library" +} diff --git a/sys-apps/lmctfy/lmctfy-0.3.0.ebuild b/sys-apps/lmctfy/lmctfy-0.3.0.ebuild new file mode 100644 index 000000000000..556ae0e9da2e --- /dev/null +++ b/sys-apps/lmctfy/lmctfy-0.3.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Linux application container management from Google" +HOMEPAGE="https://github.com/google/lmctfy" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + dev-libs/protobuf + dev-cpp/gflags + dev-libs/re2 + " +RDEPEND="${DEPEND}" + +src_compile() { + # test deps take too long to compile + use test && emake || emake lmctfy liblmctfy.a +} + +src_install() { + # silly upstream! + mkdir -p "${D}/usr/bin" + cp "${S}/bin/lmctfy/cli/lmctfy" "${D}/usr/bin/" || die "Failed to copy cli binary" + dolib.a "${S}/bin/liblmctfy.a" || die "Failed to copy library" +} diff --git a/sys-apps/lmctfy/lmctfy-0.3.1.ebuild b/sys-apps/lmctfy/lmctfy-0.3.1.ebuild new file mode 100644 index 000000000000..556ae0e9da2e --- /dev/null +++ b/sys-apps/lmctfy/lmctfy-0.3.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Linux application container management from Google" +HOMEPAGE="https://github.com/google/lmctfy" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + dev-libs/protobuf + dev-cpp/gflags + dev-libs/re2 + " +RDEPEND="${DEPEND}" + +src_compile() { + # test deps take too long to compile + use test && emake || emake lmctfy liblmctfy.a +} + +src_install() { + # silly upstream! + mkdir -p "${D}/usr/bin" + cp "${S}/bin/lmctfy/cli/lmctfy" "${D}/usr/bin/" || die "Failed to copy cli binary" + dolib.a "${S}/bin/liblmctfy.a" || die "Failed to copy library" +} diff --git a/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild b/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild new file mode 100644 index 000000000000..4a81c9039372 --- /dev/null +++ b/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Linux application container management from Google" +HOMEPAGE="https://github.com/google/lmctfy" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +COMMON_DEPEND=" + dev-libs/protobuf + >=dev-cpp/gflags-2.1.1 + dev-libs/re2 + sys-libs/libapparmor + " +DEPEND=" + ${COMMON_DEPEND} + dev-lang/go:= + " +RDEPEND="${COMMON_DEPEND}" + +src_compile() { + # test deps take too long to compile + use test && emake || emake lmctfy liblmctfy.a +} + +src_install() { + dobin bin/lmctfy/cli/lmctfy + dolib.a bin/liblmctfy.a +} diff --git a/sys-apps/lmctfy/lmctfy-0.5.0.ebuild b/sys-apps/lmctfy/lmctfy-0.5.0.ebuild new file mode 100644 index 000000000000..4e390ac4313f --- /dev/null +++ b/sys-apps/lmctfy/lmctfy-0.5.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Linux application container management from Google" +HOMEPAGE="https://github.com/google/lmctfy" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + dev-libs/protobuf + >=dev-cpp/gflags-2.1.1 + dev-libs/re2 + dev-lang/go + sys-libs/libapparmor + " +RDEPEND="${DEPEND}" + +src_compile() { + # test deps take too long to compile + use test && emake || emake lmctfy liblmctfy.a +} + +src_install() { + dobin bin/lmctfy/cli/lmctfy + dolib.a bin/liblmctfy.a +} diff --git a/sys-apps/lmctfy/metadata.xml b/sys-apps/lmctfy/metadata.xml new file mode 100644 index 000000000000..56dba6227128 --- /dev/null +++ b/sys-apps/lmctfy/metadata.xml @@ -0,0 +1,11 @@ + + + + + patrick@gentoo.org + Patrick Lauer + + + google/lmctfy + + diff --git a/sys-apps/lnxhc/Manifest b/sys-apps/lnxhc/Manifest new file mode 100644 index 000000000000..285a611415e8 --- /dev/null +++ b/sys-apps/lnxhc/Manifest @@ -0,0 +1 @@ +DIST lnxhc-1.2.tar.gz 360869 SHA256 a94a748171b812528567a0f7a3c19f048a57463cb0fddb9e152b38e2ed8a66c0 SHA512 200ab6443c3b8f4dd99928d2f18b31e8e05c1f9c1f976052017a643430ed87fa08a399e9e8430eafb2925126bd2d90fc4f65ce1c220d6100b71c31fc0505aab0 WHIRLPOOL aa0b7f1f86bae2fce4da3db40dc97c525fb1d94b86298142675d64654676be391487c33612fb8018cae5b5bb1cedd610696092f8ef1944e4ce446f50bdcddef4 diff --git a/sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch b/sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch new file mode 100644 index 000000000000..89e184704857 --- /dev/null +++ b/sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch @@ -0,0 +1,23 @@ +--- lnxhc-1.2/checks/net_hsi_outbound_errors/definitions ++++ lnxhc-1.2-patched/checks/net_hsi_outbound_errors/definitions +@@ -9,7 +9,7 @@ + default = "1" + + [sysinfo ifconfig] +-program = "/sbin/ifconfig" ++program = "/bin/ifconfig" + + [exception slow_hsi_receivers] + severity = medium + +--- lnxhc-1.2/checks/net_inbound_errors/definitions 2013-02-06 04:08:55.000000000 -0500 ++++ lnxhc-1.2-patched/checks/net_inbound_errors/definitions 2013-05-22 17:13:56.088787813 -0400 +@@ -11,7 +11,7 @@ + # The above value in percentage + + [sysinfo ifconfig] +-program = "/sbin/ifconfig" ++program = "/bin/ifconfig" + + [exception limits_exceeded] + severity = medium diff --git a/sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch b/sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch new file mode 100644 index 000000000000..fe237502785f --- /dev/null +++ b/sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch @@ -0,0 +1,43 @@ +diff -ruN lnxhc-1.2/Makefile lnxhc-1.2-patched/Makefile +--- lnxhc-1.2/Makefile 2013-02-06 04:14:17.000000000 -0500 ++++ lnxhc-1.2-patched/Makefile 2013-02-09 13:39:25.096883794 -0500 +@@ -71,7 +71,6 @@ + pycheckdir := $(libdir)/python/check + exampledir := $(docdir)/examples + dbdir1 := $(libdir) +-dbdir2 := /usr/local/lib/lnxhc + + # Base files + binfiles := $(wildcard bin/*) +@@ -154,7 +153,7 @@ + $(DESTDIR)$(sysvardir) $(DESTDIR)$(pmdir) \ + $(DESTDIR)$(checkdir) $(DESTDIR)$(consdir) \ + $(DESTDIR)$(profiledir) $(DESTDIR)$(dbdir1) \ +- $(DESTDIR)$(dbdir2) $(DESTDIR)$(pmcheckdir) \ ++ $(DESTDIR)$(pmcheckdir) \ + $(DESTDIR)$(pmconsumerdir) $(DESTDIR)$(pydir) \ + $(DESTDIR)$(pycheckdir) $(DESTDIR)$(exampledir) + +@@ -164,7 +163,7 @@ + $(DESTDIR)$(checkdir) $(DESTDIR)$(consdir) \ + $(DESTDIR)$(profiledir) $(DESTDIR)$(pycheckdir) \ + $(DESTDIR)$(pydir) $(DESTDIR)$(libdir) \ +- $(DESTDIR)$(dbdir2) $(DESTDIR)$(exampledir) \ ++ $(DESTDIR)$(exampledir) \ + $(DESTDIR)$(docdir) + + installbase: installdirs +@@ -184,11 +183,11 @@ + $(CP) -rp $(examples) $(DESTDIR)$(exampledir) + for FILE in $(notdir $(binfiles)) ; do \ + $(FIXPATH) "$(DESTDIR)/$(bindir)/$${FILE}" "$(libdir)" \ +- "$(dbdir1)" "$(dbdir2)" ; \ ++ "$(dbdir1)" ; \ + done + for FILE in $(notdir $(conffiles)) ; do \ + $(FIXPATH) "$(DESTDIR)/$(confdir)/$${FILE}" "$(libdir)" \ +- "$(dbdir1)" "$(dbdir2)" ; \ ++ "$(dbdir1)" ; \ + done + + uninstallbase: diff --git a/sys-apps/lnxhc/lnxhc-1.2-r1.ebuild b/sys-apps/lnxhc/lnxhc-1.2-r1.ebuild new file mode 100644 index 000000000000..478ae56d9502 --- /dev/null +++ b/sys-apps/lnxhc/lnxhc-1.2-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils +DESCRIPTION="Linux Health Checker" +HOMEPAGE="http://lnxhc.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.8" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.2-usrlocal.patch" + epatch "${FILESDIR}/${PN}-1.2-ifconfig-path.patch" +} diff --git a/sys-apps/lnxhc/metadata.xml b/sys-apps/lnxhc/metadata.xml new file mode 100644 index 000000000000..69a1599e0a5e --- /dev/null +++ b/sys-apps/lnxhc/metadata.xml @@ -0,0 +1,11 @@ + + + + + creffett@gentoo.org + Chris Reffett + + + lnxhc + + diff --git a/sys-apps/logwatch/Manifest b/sys-apps/logwatch/Manifest new file mode 100644 index 000000000000..8bbcd3ba2e0f --- /dev/null +++ b/sys-apps/logwatch/Manifest @@ -0,0 +1,3 @@ +DIST logwatch-7.4.0.tar.gz 294398 SHA256 b8fd136a07a6b79962380d68b26328cdccc8b6a20310195e24e39b0bfd3287c4 SHA512 d556a5768ceeedc21396a38f02f2b2d8ca3556de92274038819840a6d41770437673a531d91f54cf3a905b6b4b8d72fa4011b838f81ed04b02265bde39b7b3c7 WHIRLPOOL 7643cb55ed330dacda223d5ff06dca16a29df2a8c50a6f4b2bded1ba764c07126101bce08422e5531cc7dd531960e6dd9a29114ac5e43987a3d2d9b796204d21 +DIST logwatch-7.4.0_p170.tar.gz 455794 SHA256 27f4ae2692190aa96a3af997d66b39a595e9c72e4a078cbdfa7c13f5c885a42f SHA512 6c07cfb20c0bd121b698b48f060d50b45e018b81b2ed78c96d33c5b8cb43fd23a139cf95c64af9c3148c99fe1f9e9d2c0936e1d2ab6dfba105e4ad621db2fcdb WHIRLPOOL 6af221787ce7d71f0c238fbb18d3b272cfe42cb18a3a24a70fbf617f2a6d39fd41d4978dd2c8b67687fa003594300e4beb2fc0b2f0c2425cc1c6fd1d501cda50 +DIST logwatch-7.4.1.tar.gz 464970 SHA256 35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb SHA512 f53400e6654b498371265ade82d51f0625904a33400f7f82b2dc8522ad561c8998fd9f23d569281f031142bb527fc1b38af1d7534fe3b3aef23780b0152e67d4 WHIRLPOOL 947f0796f5313c9eb5aff3cca8b47a861eda3ff0b3b65134a11792ddca2262fbd8fd0bdf83ce430d06efb4905187ca82a6978e6b5ae656ade63a7d181cc3faac diff --git a/sys-apps/logwatch/files/logwatch b/sys-apps/logwatch/files/logwatch new file mode 100755 index 000000000000..50ba356d3984 --- /dev/null +++ b/sys-apps/logwatch/files/logwatch @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -x /usr/sbin/logwatch.pl ] ; then + mkdir -p /var/cache/logwatch + exec /usr/sbin/logwatch.pl --output mail +fi diff --git a/sys-apps/logwatch/files/logwatch-7.4.0-openssh-hpn.patch b/sys-apps/logwatch/files/logwatch-7.4.0-openssh-hpn.patch new file mode 100644 index 000000000000..7eeed3b59dad --- /dev/null +++ b/sys-apps/logwatch/files/logwatch-7.4.0-openssh-hpn.patch @@ -0,0 +1,19 @@ +Add an 'ignore' line for the HPN patch that we enable on our openssh +by default. + +http://sourceforge.net/tracker/?func=detail&aid=3257504&group_id=312875&atid=1316824 + +diff --git a/scripts/services/sshd b/scripts/services/sshd +index a4c3354..50e8cf2 100755 +--- a/scripts/services/sshd ++++ b/scripts/services/sshd +@@ -290,7 +290,8 @@ while (defined(my $ThisLine = )) { + ($ThisLine =~ /^Failed keyboard-interactive for from/ ) or + ($ThisLine =~ /^Keyboard-interactive \(PAM\) userauth failed/ ) or + ($ThisLine =~ /^debug1: /) or +- ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/) ++ ($ThisLine =~ /Nasty PTR record .* is set up for [\da-fA-F.:]+, ignoring/) or ++ ($ThisLine =~ /^SSH: Server;L[Tt]ype: /) + ) { + # Ignore these + } elsif ( my ($Method,$User,$Host,$Port) = ($ThisLine =~ /^Accepted (\S+) for (\S+) from ([\d\.:a-f]+) port (\d+)/) ) { diff --git a/sys-apps/logwatch/logwatch-7.4.0-r1.ebuild b/sys-apps/logwatch/logwatch-7.4.0-r1.ebuild new file mode 100644 index 000000000000..71f70a6bd8ca --- /dev/null +++ b/sys-apps/logwatch/logwatch-7.4.0-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Analyzes and Reports on system logs" +HOMEPAGE="http://www.logwatch.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="virtual/cron + virtual/mta + virtual/mailx + dev-lang/perl + dev-perl/Date-Calc + dev-perl/DateManip + dev-perl/Tie-IxHash + dev-perl/Sys-CPU + dev-perl/Sys-MemInfo" + +src_prepare() { + epatch "${FILESDIR}/${P}-openssh-hpn.patch" +} + +src_install() { + dodir /usr/share/logwatch/lib + dodir /usr/share/logwatch/scripts/services + dodir /usr/share/logwatch/scripts/shared + dodir /usr/share/logwatch/default.conf/logfiles + dodir /usr/share/logwatch/default.conf/services + dodir /usr/share/logwatch/default.conf/html + keepdir /etc/logwatch + keepdir /var/cache/logwatch + + newsbin scripts/logwatch.pl logwatch.pl + + for i in scripts/logfiles/* ; do + exeinto /usr/share/logwatch/$i + doexe $i/* + done + + exeinto /usr/share/logwatch/lib + doexe lib/*.pm + + exeinto /usr/share/logwatch/scripts/services + doexe scripts/services/* + + exeinto /usr/share/logwatch/scripts/shared + doexe scripts/shared/* + + insinto /usr/share/logwatch/default.conf + doins conf/logwatch.conf + + insinto /usr/share/logwatch/default.conf/logfiles + doins conf/logfiles/* + + insinto /usr/share/logwatch/default.conf/services + doins conf/services/* + + insinto /usr/share/logwatch/default.conf/html + doins conf/html/* + + # Make sure logwatch is run before anything else #100243 + exeinto /etc/cron.daily + newexe "${FILESDIR}"/logwatch 00-logwatch + + doman logwatch.8 + dodoc README HOWTO-Customize-LogWatch +} + +pkg_postinst() { + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ + && rm -f "${ROOT}"/etc/cron.daily/logwatch \ + || ewarn "You have two logwatch files in /etc/cron.daily/" + fi +} diff --git a/sys-apps/logwatch/logwatch-7.4.0.ebuild b/sys-apps/logwatch/logwatch-7.4.0.ebuild new file mode 100644 index 000000000000..7b2dba0a98bb --- /dev/null +++ b/sys-apps/logwatch/logwatch-7.4.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Analyzes and Reports on system logs" +HOMEPAGE="http://www.logwatch.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="virtual/cron + virtual/mta + virtual/mailx + dev-lang/perl + dev-perl/Date-Calc + dev-perl/DateManip + dev-perl/Tie-IxHash + dev-perl/Sys-CPU + dev-perl/Sys-MemInfo" + +src_install() { + dodir /usr/share/logwatch/lib + dodir /usr/share/logwatch/scripts/services + dodir /usr/share/logwatch/scripts/shared + dodir /usr/share/logwatch/default.conf/logfiles + dodir /usr/share/logwatch/default.conf/services + dodir /usr/share/logwatch/default.conf/html + keepdir /etc/logwatch + keepdir /var/cache/logwatch + + newsbin scripts/logwatch.pl logwatch.pl || die "dosbin logwatch failed" + + for i in scripts/logfiles/* ; do + exeinto /usr/share/logwatch/$i + doexe $i/* || die "doexe $i failed" + done + + exeinto /usr/share/logwatch/lib + doexe lib/*.pm + + exeinto /usr/share/logwatch/scripts/services + doexe scripts/services/* + + exeinto /usr/share/logwatch/scripts/shared + doexe scripts/shared/* + + insinto /usr/share/logwatch/default.conf + doins conf/logwatch.conf + + insinto /usr/share/logwatch/default.conf/logfiles + doins conf/logfiles/* + + insinto /usr/share/logwatch/default.conf/services + doins conf/services/* + + insinto /usr/share/logwatch/default.conf/html + doins conf/html/* + + # Make sure logwatch is run before anything else #100243 + exeinto /etc/cron.daily + newexe "${FILESDIR}"/logwatch 00-logwatch + + doman logwatch.8 + dodoc README HOWTO-Customize-LogWatch +} + +pkg_postinst() { + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ + && rm -f "${ROOT}"/etc/cron.daily/logwatch \ + || ewarn "You have two logwatch files in /etc/cron.daily/" + fi +} diff --git a/sys-apps/logwatch/logwatch-7.4.0_p170-r1.ebuild b/sys-apps/logwatch/logwatch-7.4.0_p170-r1.ebuild new file mode 100644 index 000000000000..1e3de9579ab3 --- /dev/null +++ b/sys-apps/logwatch/logwatch-7.4.0_p170-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Analyzes and Reports on system logs" +HOMEPAGE="http://www.logwatch.org/" +#SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~polynomial-c/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="virtual/cron + virtual/mta + virtual/mailx + dev-lang/perl + dev-perl/Date-Calc + dev-perl/DateManip + dev-perl/Tie-IxHash + dev-perl/Sys-CPU + dev-perl/Sys-MemInfo" + +src_prepare() { + epatch "${FILESDIR}/${P/_p*}-openssh-hpn.patch" +} + +src_install() { + dodir /usr/share/logwatch/lib + dodir /usr/share/logwatch/scripts/services + dodir /usr/share/logwatch/scripts/shared + dodir /usr/share/logwatch/default.conf/logfiles + dodir /usr/share/logwatch/default.conf/services + dodir /usr/share/logwatch/default.conf/html + keepdir /etc/logwatch + keepdir /var/cache/logwatch + + newsbin scripts/logwatch.pl logwatch.pl + + for i in scripts/logfiles/* ; do + exeinto /usr/share/logwatch/$i + doexe $i/* + done + + exeinto /usr/share/logwatch/lib + doexe lib/*.pm + + exeinto /usr/share/logwatch/scripts/services + doexe scripts/services/* + + exeinto /usr/share/logwatch/scripts/shared + doexe scripts/shared/* + + insinto /usr/share/logwatch/default.conf + doins conf/logwatch.conf + + insinto /usr/share/logwatch/default.conf/logfiles + doins conf/logfiles/* + + insinto /usr/share/logwatch/default.conf/services + doins conf/services/* + + insinto /usr/share/logwatch/default.conf/html + doins conf/html/* + + # Make sure logwatch is run before anything else #100243 + exeinto /etc/cron.daily + newexe "${FILESDIR}"/logwatch 00-logwatch + + doman logwatch.8 + dodoc README HOWTO-Customize-LogWatch +} + +pkg_postinst() { + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ + && rm -f "${ROOT}"/etc/cron.daily/logwatch \ + || ewarn "You have two logwatch files in /etc/cron.daily/" + fi +} diff --git a/sys-apps/logwatch/logwatch-7.4.1.ebuild b/sys-apps/logwatch/logwatch-7.4.1.ebuild new file mode 100644 index 000000000000..15fe8b2302be --- /dev/null +++ b/sys-apps/logwatch/logwatch-7.4.1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Analyzes and Reports on system logs" +HOMEPAGE="http://www.logwatch.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="virtual/cron + virtual/mta + virtual/mailx + dev-lang/perl + dev-perl/Date-Calc + dev-perl/DateManip + dev-perl/Tie-IxHash + dev-perl/Sys-CPU + dev-perl/Sys-MemInfo" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-7.4.0-openssh-hpn.patch +} + +src_install() { + dodir /usr/share/logwatch/lib + dodir /usr/share/logwatch/scripts/services + dodir /usr/share/logwatch/scripts/shared + dodir /usr/share/logwatch/default.conf/logfiles + dodir /usr/share/logwatch/default.conf/services + dodir /usr/share/logwatch/default.conf/html + keepdir /etc/logwatch + + newsbin scripts/logwatch.pl logwatch.pl + + exeinto /usr/share/logwatch/lib + doexe lib/*.pm + + exeinto /usr/share/logwatch/scripts/services + doexe scripts/services/* + + exeinto /usr/share/logwatch/scripts/shared + doexe scripts/shared/* + + insinto /usr/share/logwatch/default.conf + doins conf/logwatch.conf + + insinto /usr/share/logwatch/default.conf/logfiles + doins conf/logfiles/* + + insinto /usr/share/logwatch/default.conf/services + doins conf/services/* + + insinto /usr/share/logwatch/default.conf/html + doins conf/html/* + + # Make sure logwatch is run before anything else #100243 + exeinto /etc/cron.daily + newexe "${FILESDIR}"/logwatch 00-logwatch + + doman logwatch.8 + dodoc README HOWTO-Customize-LogWatch + + # Do last due to insopts modification. + insinto /usr/share/logwatch/scripts/logfiles + insopts -m755 + doins -r scripts/logfiles/* +} + +pkg_postinst() { + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ + && rm -f "${ROOT}"/etc/cron.daily/logwatch \ + || ewarn "You have two logwatch files in /etc/cron.daily/" + fi +} diff --git a/sys-apps/logwatch/metadata.xml b/sys-apps/logwatch/metadata.xml new file mode 100644 index 000000000000..b348d7452f58 --- /dev/null +++ b/sys-apps/logwatch/metadata.xml @@ -0,0 +1,8 @@ + + + + base-system + + logwatch + + diff --git a/sys-apps/lomoco/Manifest b/sys-apps/lomoco/Manifest new file mode 100644 index 000000000000..106ae4627fcf --- /dev/null +++ b/sys-apps/lomoco/Manifest @@ -0,0 +1 @@ +DIST lomoco-1.0.tar.gz 24573 SHA256 e9e537e8bca6186f84b457394a9e934b89c36870c66aa202ed188c7aa24e9dcc SHA512 5cd04c956fe11112be83e8d4ad91e4a8fac1bacd03666e8959ce20f2cc372fc8c53a5ac86b94125088f6b303936f087caafe71248ca8511b6a580f58459aee9f WHIRLPOOL 2bf5368351879f7f77e1dc9a61404a6f23f3ff96a1fa943aad3954741e1492df2833f306b774bc2e44dd63ec0c85c4b8fe3661f48b7d2b82e384b9f12fa82943 diff --git a/sys-apps/lomoco/files/lomoco-1.0-gentoo-hardware-support.patch b/sys-apps/lomoco/files/lomoco-1.0-gentoo-hardware-support.patch new file mode 100644 index 000000000000..5a5cd7d3fcb9 --- /dev/null +++ b/sys-apps/lomoco/files/lomoco-1.0-gentoo-hardware-support.patch @@ -0,0 +1,287 @@ +- Support for other hardware +- ssr comment in the mouse array. +- Use of defines for numeric constants to improve code readability. +- Debian patch integrated + +diff -Nuar --exclude '*~' lomoco-1.0.old/src/lomoco.c lomoco-1.0/src/lomoco.c +--- lomoco-1.0.old/src/lomoco.c 2006-03-01 06:10:05.000000000 -0800 ++++ lomoco-1.0/src/lomoco.c 2006-04-30 02:38:05.107430674 -0700 +@@ -32,11 +32,12 @@ + * model: you can find on the hardware, look for M/N: ... + * csr: mouse with receiver (wireless) + * res: mouse has resolution control +- * sms: mouse has smart control ++ * ssr: mouse has smart scroll reporting ++ * sms: mouse has smart scroll + * dual: dual receiver (wireless mouse+wireless keyboard) + * + * product id, name, model, csr, res, ssr, sms, dual */ +-mouse_t mice [] = { ++static mouse_t mice [] = { + {0xc00e, "Wheel Mouse Optical", "M-BJ58", 0, 1, 0, 0, 0}, + {0xc00f, "MouseMan Traveler", "M-BJ79", 0, 1, 0, 0, 0}, + {0xc012, "MouseMan Dual Optical", "M-BL63B", 0, 1, 0, 0, 0}, +@@ -42,6 +42,7 @@ + {0xc012, "MouseMan Dual Optical", "M-BL63B", 0, 1, 0, 0, 0}, + {0xc01d, "MX510 Optical Mouse", "M-BS81A", 0, 1, 1, 1, 0}, + {0xc01e, "MX518 Optical Mouse", "M-BS81A", 0, 1, 1, 0, 0}, ++ {0xc051, "MX518 Optical Mouse", "M-BS81A", 0, 1, 1, 0, 0}, + {0xc024, "MX300 Optical Mouse", "M-BP82", 0, 1, 0, 0, 0}, + {0xc01b, "MX310 Optical Mouse", "M-BP86", 0, 1, 0, 0, 0}, + {0xc025, "MX500 Optical Mouse", "M-BP81A", 0, 1, 1, 1, 0}, +@@ -49,50 +50,37 @@ + {0xc041, "G5 Laser Gaming Mouse", "M-UAC113", 0, 1, 0, 1, 0}, + {0xc501, "Mouse Receiver", "C-BA4-MSE", 1, 0, 0, 0, 0}, + {0xc502, "Dual Receiver", "C-UA3-DUAL", 1, 0, 0, 0, 1}, +- {0xc503, "Receiver for MX900 Receiver", "C-UJ16A", 1, 0, 0, 1, 0}, ++ {0xc503, "Receiver for MX900", "C-UJ16A", 1, 0, 0, 1, 0}, + {0xc504, "Receiver for Cordless Freedom Optical", "C-BD9-DUAL", 1, 0, 0, 0, 1}, + {0xc505, "Receiver for Cordless Elite Duo", "C-BG17-DUAL", 1, 0, 0, 0, 1}, + {0xc506, "Receiver for MX700 Optical Mouse", "C-BF16-MSE", 1, 0, 0, 1, 0}, + {0xc508, "Receiver for Cordless Optical TrackMan", "C-BA4-MSE", 1, 0, 0, 1, 0}, +- {0xc702, "Receiver for Cordless Presenter", "C-UF15", 1, 0, 0, 0, 0}, +- {0xc704, "Receiver for diNovo Media Desktop", "C-BQ16A", 1, 0, 1, 1, 0}, ++ ++ /* From Michele Noberasco */ ++ {0xc50a, "Reciveer for Cordless Optical Mouse for Notebooks", "C-BJ27-MSE", 1, 0, 0, 0, 0}, ++ ++ /* From Robin H. Johnson */ ++ {0xc50b, "Receiver for Cordless Desktop MX", "C-BK16A-DUAL",1, 0, 0, 1, 1}, ++ + /* From Markus Wiesner */ + {0xc50e, "Receiver for MX1000 Laser", "C-BN34", 1, 0, 1, 1, 0}, + {0xc512, "Receiver for Cordless Desktop MX3100 Laser", "C-BO34", 1, 0, 0, 1, 1}, ++ ++ {0xc702, "Receiver for Cordless Presenter", "C-UF15", 1, 0, 0, 0, 0}, ++ {0xc704, "Receiver for diNovo Media Desktop", "C-BQ16A", 1, 0, 1, 1, 0}, + {0x0000, NULL, NULL, 0, 0, 0, 0} + }; + +- + /* +- * Description: Query the mouse and report all cordless mouse specific infos ++ * Description: Print out a set of CSR data + * e.g. receiver type, mouse type, battery status + * +- * Parameters: mouse_t *m +- * mouse struct with the mouse specs +- * struct usb_dev_handle *handle +- * usb device handle of the mouse +- * unsigned int addr +- * address for dual receivers ++ * Parameters: unsigned char* buf ++ * result from query_csr internals + * + * Return: void + */ +-static void query_csr(mouse_t *m, struct usb_dev_handle *handle, +- unsigned int addr) { +- unsigned char buf[12] = {0}; +- +- if (usb_control_msg ( handle, +- USB_TYPE_VENDOR | USB_ENDPOINT_IN, +- 0x09, +- (0x0003 | addr), +- (0x0000 | addr), +- (char *) buf, +- 8, +- TIMEOUT ) != 8) { +- +- perror("Writing to USB device: CSR"); +- exit(EXIT_FAILURE); +- } +- ++static void print_csr(unsigned char* buf) { + /* We have not obtained blocks P6 P0 P4 P5 P8 P9 PB0 PB1 */ + + /* Is a C504 receiver busy? */ +@@ -111,6 +99,7 @@ + case 0x3c: printf ("C508\n"); break; + case 0x3d: printf ("C506\n"); break; + case 0x3e: printf ("C505\n"); break; ++ case 0x3f: printf ("C50B\n"); break; + case 0x42: printf ("C512\n"); break; + default: printf ("Unknown (type %x)\n", P0); + } +@@ -138,6 +127,7 @@ + case 0x82: printf ("Cordless Optical TrackMan\n"); break; + case 0x8A: printf ("MX700 Cordless Optical Mouse\n"); break; + case 0x8B: printf ("MX700 Cordless Optical Mouse (2ch)\n"); break; ++ case 0x94: printf ("Cordless Optical Mouse for Notebooks\n"); break; + default: printf ("Unknown (type %x)\n", P4); + } + +@@ -199,6 +189,38 @@ + } + } + ++/* ++ * Description: Query the mouse and report all cordless mouse specific infos ++ * e.g. receiver type, mouse type, battery status ++ * ++ * Parameters: mouse_t *m ++ * mouse struct with the mouse specs ++ * struct usb_dev_handle *handle ++ * usb device handle of the mouse ++ * unsigned int addr ++ * address for dual receivers ++ * ++ * Return: void ++ */ ++static void query_csr(mouse_t *m, struct usb_dev_handle *handle, ++ unsigned int addr) { ++ unsigned char buf[12] = {0}; ++ ++ if (usb_control_msg ( handle, ++ USB_TYPE_VENDOR | USB_ENDPOINT_IN, ++ REQUEST_MOUSE_CSR, ++ (0x0003 | addr), ++ (0x0000 | addr), ++ (char *) buf, ++ 8, ++ TIMEOUT ) != 8) { ++ ++ perror("Writing to USB device: CSR"); ++ exit(EXIT_FAILURE); ++ } ++ print_csr(buf); ++ ++} + + /* + * Description: Query the mouse and report the current resolution +@@ -218,8 +240,8 @@ + + if (usb_control_msg ( handle, + USB_TYPE_VENDOR | USB_ENDPOINT_IN, +- 0x01, +- (0x000e | addr), ++ REQUEST_MOUSE_GET_RES_SSR, ++ (VALUE_MOUSE_GET_RES | addr), + (0x0000 | addr), + (char *) buf, + 1, +@@ -255,8 +277,8 @@ + if (m->has_ssr) { + if (usb_control_msg ( handle, + USB_TYPE_VENDOR | USB_ENDPOINT_IN, +- 0x01, +- (0x0017 | addr), ++ REQUEST_MOUSE_GET_RES_SSR, ++ (VALUE_MOUSE_GET_SSR | addr), + (0x0000 | addr), + (char*) buf, + 1, +@@ -394,8 +416,8 @@ + assert ((set_channel == 1) || (set_channel == 2)); + if (usb_control_msg ( handle, + USB_TYPE_VENDOR, +- 0x02, +- (0x0008 | addr), ++ REQUEST_MOUSE_PUT_RES_SMS, ++ (VALUE_MOUSE_CHANNEL | addr), + ((set_channel - 1) | addr), + NULL, + 0, +@@ -412,8 +434,8 @@ + if (set_unlock) { + if (usb_control_msg ( handle, + USB_TYPE_VENDOR, +- 0x02, +- (0x06 | addr), ++ REQUEST_MOUSE_PUT_RES_SMS, ++ (VALUE_MOUSE_UNLOCK | addr), + (0x1 | addr), + NULL, + 0, +@@ -430,8 +452,8 @@ + if (set_lock) { + if (usb_control_msg ( handle, + USB_TYPE_VENDOR, +- 0x02, +- (0x0006 | addr), ++ REQUEST_MOUSE_PUT_RES_SMS, ++ (VALUE_MOUSE_UNLOCK | addr), + (0x0000 | addr), + NULL, + 0, +@@ -448,8 +470,8 @@ + if (set_clear) { + if (usb_control_msg ( handle, + USB_TYPE_VENDOR, +- 0x09, +- (0x0004 | addr), ++ REQUEST_MOUSE_CSR, ++ (VALUE_MOUSE_CLEAR | addr), + (0x0000 | addr), + NULL, + 0, +@@ -483,8 +505,8 @@ + + if (usb_control_msg ( handle, + USB_TYPE_VENDOR, +- 0x0002, +- 0x000e, ++ REQUEST_MOUSE_PUT_RES_SMS, ++ VALUE_MOUSE_PUT_RES, + (set_res / 400) + 2, + NULL, + 0, +@@ -514,8 +536,8 @@ + assert ((set_sms == 1) || (set_sms == -1)); + if (usb_control_msg ( handle, + USB_TYPE_VENDOR, +- 0x02, +- 0x0017, ++ REQUEST_MOUSE_PUT_RES_SMS, ++ VALUE_MOUSE_PUT_SSR, + (set_sms == 1 ? 0x0001 : 0x0000), + NULL, + 0, +@@ -641,7 +663,7 @@ + /* Do we support this device? If so, list it. */ + if ((m = find_mouse (device)) != NULL) { + +- printf ("%s.%s: %04x:%04x %s (%s) Caps: %s%s%s\n", ++ printf ("%s.%s: %04x:%04x %s (%s) Caps: %s%s%s%s\n", + device->bus->dirname, + device->filename, + device->descriptor.idVendor, +@@ -650,6 +672,7 @@ + m->model, + m->has_csr? "CSR ": "", + m->has_res? "RES ": "", ++ m->has_ssr? "SSR ": "", + m->has_sms? "SMS ": "" + ); + } +@@ -667,7 +671,7 @@ + device->filename, + device->descriptor.idVendor, + device->descriptor.idProduct, +- ret ? product : "Unknown" ++ ret > 0 ? product : "Unknown" + ); + continue; + } +diff -Nuar --exclude '*~' lomoco-1.0.old/src/lomoco.h lomoco-1.0/src/lomoco.h +--- lomoco-1.0.old/src/lomoco.h 2006-03-01 06:10:05.000000000 -0800 ++++ lomoco-1.0/src/lomoco.h 2006-04-30 02:34:04.381175920 -0700 +@@ -97,4 +97,17 @@ + int is_dual; + } mouse_t; + ++ ++#define REQUEST_MOUSE_CSR 0x09 ++#define VALUE_MOUSE_GET 0x0003 ++#define VALUE_MOUSE_CLEAR 0x0004 ++#define REQUEST_MOUSE_GET_RES_SSR 0x01 ++#define VALUE_MOUSE_GET_RES 0x000e ++#define VALUE_MOUSE_GET_SSR 0x0017 ++#define REQUEST_MOUSE_PUT_RES_SMS 0x02 ++#define VALUE_MOUSE_UNLOCK 0x0006 ++#define VALUE_MOUSE_CHANNEL 0x0008 ++#define VALUE_MOUSE_PUT_RES 0x000e ++#define VALUE_MOUSE_PUT_SSR 0x0017 ++ + #endif /* __LOMOCO_H */ diff --git a/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch b/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch new file mode 100644 index 000000000000..783a2d5e712a --- /dev/null +++ b/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch @@ -0,0 +1,95 @@ +diff --git a/udev/toudev.awk b/udev/toudev.awk +index 822421d..ada40e5 100644 +--- a/udev/toudev.awk ++++ b/udev/toudev.awk +@@ -1,15 +1,20 @@ + #!/bin/awk -f + BEGIN { + FS = "," ++ print "# udev.rules file for Logitech mouse control using lomoco" ++ print "#" ++ print "" + print "ACTION != \"add\", GOTO=\"lomoco_end\"" +- print "SUBSYSTEM != \"usb\", GOTO=\"lomoco_end\"" +- print "SYSFS{idVendor} != \"046d\", GOTO=\"lomoco_end\"" ++ print "SUBSYSTEM == \"usb\", ENV{DEVTYPE}==\"usb_device\", GOTO=\"lomoco_start\"" ++ print "SUBSYSTEM != \"usb_device\", GOTO=\"lomoco_end\"" ++ print "" ++ print "LABEL=\"lomoco_start\"" + print "" + } + + $1 ~ /0xc[a-f0-9][a-f0-9][a-f0-9]/ { + print "# " substr($3, index($3, "\"")) ", " $2 +- print "SYSFS{idProduct}==\"" substr($1, index($1, "x")+1) \ ++ print "ATTRS{idVendor}==\"046d\", ATTRS{idProduct}==\"" substr($1, index($1, "x")+1) \ + "\", RUN=\"lomoco\"" + } + +diff --git a/udev/udev.lomoco b/udev/udev.lomoco +index 9e55511..da896d9 100755 +--- a/udev/udev.lomoco ++++ b/udev/udev.lomoco +@@ -1,26 +1,36 @@ +-#!/bin/bash +- +-case "$DEVPATH" in +- *usbdev*.*) +- dev=${DEVPATH##*usbdev} +- bus=$(printf %03d ${dev%.*}) +- dev=$(printf %03d ${dev#*.}) +- +- . /etc/sysconfig/logitech_mouse +- +- options= +- +- if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then +- options="--$LOGITECH_MOUSE_RESOLUTION" +- fi +- +- if [ -z "$LOGITECH_MOUSE_DISABLE_CC" -o "$LOGITECH_MOUSE_DISABLE_CC" = yes ]; then +- options="$options --no-sms" +- fi +- +- if [ -n "$options" ]; then +- /usr/bin/lomoco -b $bus -d $dev $options +- fi +- ;; +-esac 2>&1 | /bin/logger -t lomoco +- ++#!/bin/sh ++# ++# udev helper script for the locomo utility ++# ++ ++test -x /usr/bin/lomoco || exit 0 ++test -r /etc/lomoco.conf || exit 0 ++ ++options= ++. /etc/lomoco.conf ++ ++if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then ++ options="--$LOGITECH_MOUSE_RESOLUTION" ++fi ++ ++if [ -z "$LOGITECH_MOUSE_DISABLE_CC" -o "$LOGITECH_MOUSE_DISABLE_CC" = yes ]; then ++ options="$options --no-sms" ++fi ++ ++if [ -n "$BUSNUM" ]; then ++ options="$options -b $BUSNUM" ++fi ++ ++if [ -n "$DEVNUM" ]; then ++ options="$options -d $DEVNUM" ++fi ++ ++if [ -n "$MODEL_ID" ]; then ++ options="$options -p $MODEL_ID" ++fi ++ ++if [ -n "$options" ]; then ++ /usr/bin/lomoco $options 2>&1 | \ ++ sed -e 's/^[[:blank:]]\+//' -e 's/ \+$//' -e '/^$/ d' | \ ++ logger -t lomoco -p daemon.info ++fi diff --git a/sys-apps/lomoco/files/lomoco-pm-utils-r1 b/sys-apps/lomoco/files/lomoco-pm-utils-r1 new file mode 100644 index 000000000000..602de3d11571 --- /dev/null +++ b/sys-apps/lomoco/files/lomoco-pm-utils-r1 @@ -0,0 +1,7 @@ +#!/bin/sh + +case "$1" in + thaw|resume) + @UDEVDIR@/lomoco + ;; +esac diff --git a/sys-apps/lomoco/files/lomoco.conf b/sys-apps/lomoco/files/lomoco.conf new file mode 100644 index 000000000000..d69c6185bb61 --- /dev/null +++ b/sys-apps/lomoco/files/lomoco.conf @@ -0,0 +1,9 @@ +LOGITECH_MOUSE_RESOLUTION=800 +LOGITECH_MOUSE_DISABLE_CC=no + +# Use the lsusb output to configure additional parameters bellow +# Bus Device : ID 046d: Logitech, Inc. MX510 Optical Mouse +# Note: DEVNUM is dynamic and not recommened +#BUSNUM=001 +#DEVNUM=009 +#MODEL_ID=c01d diff --git a/sys-apps/lomoco/lomoco-1.0-r9.ebuild b/sys-apps/lomoco/lomoco-1.0-r9.ebuild new file mode 100644 index 000000000000..629ea061fef7 --- /dev/null +++ b/sys-apps/lomoco/lomoco-1.0-r9.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools eutils multilib toolchain-funcs udev + +DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice" +HOMEPAGE="http://www.lomoco.org/" +SRC_URI="http://www.lomoco.org/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 x86" +IUSE="" + +RDEPEND="virtual/libusb:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_prepare() { + cp -f "${FILESDIR}"/lomoco-pm-utils-r1 "${T}" || die + sed -i -e "s|@UDEVDIR@|$(get_udevdir)|" "${T}"/lomoco-pm-utils-r1 || die + + epatch \ + "${FILESDIR}"/${P}-gentoo-hardware-support.patch \ + "${FILESDIR}"/${P}-updated-udev.patch + + eautoreconf +} + +src_compile() { + emake + emake udev-rules +} + +src_install() { + default + + insinto "$(get_udevdir)"/rules.d + newins udev/lomoco.rules 40-lomoco.rules + + exeinto "$(get_udevdir)" + newexe udev/udev.lomoco lomoco + + insinto /etc + doins "${FILESDIR}"/lomoco.conf + + exeinto /etc/pm/sleep.d + newexe "${T}"/lomoco-pm-utils-r1 lomoco +} diff --git a/sys-apps/lomoco/metadata.xml b/sys-apps/lomoco/metadata.xml new file mode 100644 index 000000000000..a11c7e26e88e --- /dev/null +++ b/sys-apps/lomoco/metadata.xml @@ -0,0 +1,10 @@ + + + + proxy-maintainers + + anton.bugs@gmail.com + Anton Bolshakov + Proxy maintainer. Assign bugs to him + + diff --git a/sys-apps/lsadb/Manifest b/sys-apps/lsadb/Manifest new file mode 100644 index 000000000000..cfce7ff0d93c --- /dev/null +++ b/sys-apps/lsadb/Manifest @@ -0,0 +1 @@ +DIST lsadb-0.1.3.tgz 7098 RMD160 52f8a70ad855f7fec801f064f2034ce251b779b7 SHA1 8a88a12636672b54f93dd6180e2f61d3dbc806f3 SHA256 eff3a0b0e113f3c97838f542e1761762f544b0a416d73a7f6b7ad0ff2f9326d0 diff --git a/sys-apps/lsadb/files/lsadb-makefile.patch b/sys-apps/lsadb/files/lsadb-makefile.patch new file mode 100644 index 000000000000..fb396cc85b22 --- /dev/null +++ b/sys-apps/lsadb/files/lsadb-makefile.patch @@ -0,0 +1,10 @@ +--- Makefile.bak 2009-11-30 14:31:07.000000000 -0500 ++++ Makefile 2009-11-30 14:31:34.000000000 -0500 +@@ -1,6 +1,2 @@ +- +- + lsadb: lsadb.c lsadb.h +- gcc -Wall -O2 -o $@ $< && strip $@ +- +- ++ ${CC} -Wall ${CFLAGS} -o $@ $< diff --git a/sys-apps/lsadb/lsadb-0.1.3.ebuild b/sys-apps/lsadb/lsadb-0.1.3.ebuild new file mode 100644 index 000000000000..2f3b2766e9f1 --- /dev/null +++ b/sys-apps/lsadb/lsadb-0.1.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils toolchain-funcs + +DESCRIPTION="Prints out information on all devices attached to the ADB bus" +HOMEPAGE="http://pbbuttons.berlios.de/projects/lsadb/" +SRC_URI="mirror://berlios/pub/pbbuttons/${PN}-${PV}.tgz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~ppc" +IUSE="" +DEPEND="" +RDEPEND="$DEPEND" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-makefile.patch" +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + dobin lsadb + doman lsadb.1 + dodoc README +} diff --git a/sys-apps/lsadb/metadata.xml b/sys-apps/lsadb/metadata.xml new file mode 100644 index 000000000000..e75d5a5857f0 --- /dev/null +++ b/sys-apps/lsadb/metadata.xml @@ -0,0 +1,5 @@ + + + + ppc + diff --git a/sys-apps/lsb-release/Manifest b/sys-apps/lsb-release/Manifest new file mode 100644 index 000000000000..12d1a2310504 --- /dev/null +++ b/sys-apps/lsb-release/Manifest @@ -0,0 +1 @@ +DIST lsb-release-1.4.tar.gz 10769 SHA256 99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172 SHA512 84f6f8794380463587005043f601b7a40190cd9e3409abff7f5ce7658cf029a14346eff87838296d90307192bdeff68cc00480c5c04814da7acdb3e220640fde WHIRLPOOL e8e322f3d5fddf589ae1cdc97d143da907aad418ab6099f79e90e988450a3304c58d483e2ba8c80a9a7093f73af515e6c66a1c33881681bef2da70a35c31c28d diff --git a/sys-apps/lsb-release/files/lsb-release-1.4-os-release.patch b/sys-apps/lsb-release/files/lsb-release-1.4-os-release.patch new file mode 100644 index 000000000000..830726074c7e --- /dev/null +++ b/sys-apps/lsb-release/files/lsb-release-1.4-os-release.patch @@ -0,0 +1,10 @@ +--- a/lsb_release ++++ b/lsb_release +@@ -250,6 +250,7 @@ + CHECKFIRST=$(find $INFO_ROOT/ -maxdepth 1 \ + -name \*$INFO_DISTRIB_SUFFIX \ + -and ! -name $INFO_LSB_FILE \ ++ -and ! -name os-release \ + -and -type f \ + 2>/dev/null \ + | head -1 ) # keep one of the files found (if many) diff --git a/sys-apps/lsb-release/lsb-release-1.4-r1.ebuild b/sys-apps/lsb-release/lsb-release-1.4-r1.ebuild new file mode 100644 index 000000000000..e206316caac4 --- /dev/null +++ b/sys-apps/lsb-release/lsb-release-1.4-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="LSB version query program" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/lsb" +SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +# Perl isn't needed at runtime, it is just used to generate the man page. +DEPEND="dev-lang/perl" + +src_prepare() { + epatch "${FILESDIR}"/${P}-os-release.patch # bug 443116 +} + +src_install() { + emake \ + prefix="${D}/usr" \ + mandir="${D}/usr/share/man" \ + install + + dodir /etc + cat > "${D}/etc/lsb-release" <<- EOF + DISTRIB_ID="Gentoo" + EOF +} diff --git a/sys-apps/lsb-release/lsb-release-1.4-r2.ebuild b/sys-apps/lsb-release/lsb-release-1.4-r2.ebuild new file mode 100644 index 000000000000..8f2ef1240f69 --- /dev/null +++ b/sys-apps/lsb-release/lsb-release-1.4-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="LSB version query program" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/lsb" +SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +# Perl isn't needed at runtime, it is just used to generate the man page. +DEPEND="dev-lang/perl" + +src_prepare() { + epatch "${FILESDIR}"/${P}-os-release.patch # bug 443116 + + # use POSIX 'printf' instead of bash 'echo -e', bug #482370 + sed -i -e "s:echo -e:printf '%b\\\n':g" lsb_release || die +} + +src_install() { + emake \ + prefix="${D}/usr" \ + mandir="${D}/usr/share/man" \ + install + + dodir /etc + cat > "${D}/etc/lsb-release" <<- EOF + DISTRIB_ID="Gentoo" + EOF +} diff --git a/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild b/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild new file mode 100644 index 000000000000..01c683f825b0 --- /dev/null +++ b/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +DESCRIPTION="LSB version query program" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/lsb" +SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +# Perl isn't needed at runtime, it is just used to generate the man page. +DEPEND="dev-lang/perl" + +src_prepare() { + epatch "${FILESDIR}"/${P}-os-release.patch # bug 443116 + + # use POSIX 'printf' instead of bash 'echo -e', bug #482370 + sed -i \ + -e "s:echo -e:printf '%b\\\n':g" \ + -e 's:--long:-l:g' \ + lsb_release || die +} + +src_install() { + emake \ + prefix="${D}/usr" \ + mandir="${D}/usr/share/man" \ + install + + dodir /etc + cat > "${D}/etc/lsb-release" <<- EOF + DISTRIB_ID="Gentoo" + EOF +} diff --git a/sys-apps/lsb-release/lsb-release-1.4.ebuild b/sys-apps/lsb-release/lsb-release-1.4.ebuild new file mode 100644 index 000000000000..6987a9620bb8 --- /dev/null +++ b/sys-apps/lsb-release/lsb-release-1.4.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="LSB version query program" +HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/lsb" +SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="" + +# Perl isn't needed at runtime, it is just used to generate the man page. +DEPEND="dev-lang/perl" +RDEPEND="" + +src_install() { + emake \ + prefix="${D}/usr" \ + mandir="${D}/usr/share/man" \ + install \ + || die "emake install failed" + + mkdir -p "${D}/etc" + cat > "${D}/etc/lsb-release" <<- EOF + DISTRIB_ID="Gentoo" + EOF +} diff --git a/sys-apps/lsb-release/metadata.xml b/sys-apps/lsb-release/metadata.xml new file mode 100644 index 000000000000..98edb104f446 --- /dev/null +++ b/sys-apps/lsb-release/metadata.xml @@ -0,0 +1,22 @@ + + + + + jer@gentoo.org + Jeroen Roovers + + + This program forms part of the required functionality of + the LSB (Linux Standard Base) specification. + + The program queries the installed state of the distribution + to display certain properties such as the version of the + LSB against which the distribution claims compliance as + well. It can also attempt to display the name and release + of the distribution along with an identifier of who produces + the distribution. + + + lsb + + diff --git a/sys-apps/lshw/Manifest b/sys-apps/lshw/Manifest new file mode 100644 index 000000000000..84a667f93028 --- /dev/null +++ b/sys-apps/lshw/Manifest @@ -0,0 +1,2 @@ +DIST lshw-B.02.16.tar.gz 1845891 SHA256 809882429555b93259785cc261dbff04c16c93d064db5f445a51945bc47157cb SHA512 ad3bd3d7b6f36f912265f0853f5aa37158c6d420a90a5e84b3e8fcd8a3c6137f7505cb5361e3eceb49954332d2466c686c946dcda8db0da3d51b3c48e343c2ab WHIRLPOOL 8e3200b726432859965be744c6afa437ffb4b57166084432064621773018b6f997a282ddea813916bc7faeced22a1286044b91bd69422b83372f03cf0878ca2d +DIST lshw-B.02.17.tar.gz 2005737 SHA256 eb9cc053fa0f1e78685cb695596e73931bfb55d2377e3bc3b8b94aff4c5a489c SHA512 868899dce98e786a08a2134d6e132c388d71ab0f03fa6e10881e14d7a882c1882b46bbc6bd6ddb021cfab87ad6c9fd369453c3916f0b3353027eb2d470e55d9b WHIRLPOOL 5b18df2732e50f38dd8d9168adb6083e9a637cf9596f692a7e6806cda2ad05c777babdbeab470d948604f45bbbf1282be6d9fc68bf5c70741acf2d884e93e749 diff --git a/sys-apps/lshw/files/lshw-02.15b-build.patch b/sys-apps/lshw/files/lshw-02.15b-build.patch new file mode 100644 index 000000000000..af2b3893ae17 --- /dev/null +++ b/sys-apps/lshw/files/lshw-02.15b-build.patch @@ -0,0 +1,116 @@ +--- lshw-B.02.15.orig/src/core/Makefile ++++ lshw-B.02.15/src/core/Makefile +@@ -1,10 +1,10 @@ + PACKAGENAME?=lshw + +-CXX=c++ ++CXX?=c++ + INCLUDES= + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) +-LDFLAGS= ++CXXFLAGS ?= -g ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + LDSTATIC= + LIBS= + +--- lshw-B.02.15.orig/src/gui/Makefile ++++ lshw-B.02.15/src/gui/Makefile +@@ -8,11 +8,11 @@ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" + GTKINCLUDES=$(shell pkg-config gtk+-2.0 --cflags) + INCLUDES=-I../core $(GTKINCLUDES) +-CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS ?= -g ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + CFLAGS=$(CXXFLAGS) $(DEFINES) + GTKLIBS=$(shell pkg-config gtk+-2.0 --libs) + LIBS=-L../core -llshw -lresolv -lsqlite3 $(GTKLIBS) +-LDFLAGS= + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +@@ -39,7 +39,6 @@ + $(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) + + install: all +- $(STRIP) gtk-$(PACKAGENAME) + + clean: + rm -f $(OBJS) gtk-$(PACKAGENAME) gtk-lshw.glade.bak gtk-lshw.gladep.bak interface.c.bak interface.h.bak callbacks.c.bak callbacks.h.bak Makefile.bak +--- lshw-B.02.15.orig/src/Makefile ++++ lshw-B.02.15/src/Makefile +@@ -21,11 +21,13 @@ + CXX?=c++ + INCLUDES=-I./core/ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS ?= -g ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + ifeq ($(SQLITE), 1) + CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) + endif +-LDFLAGS=-L./core/ -g ++LDFLAGS ?= -g ++LDFLAGS += -L./core/ + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +@@ -48,18 +50,18 @@ + + .PHONY: core + core: +- +make -C core all ++ +$(MAKE) -C core all + + $(PACKAGENAME): core $(PACKAGENAME).o + $(CXX) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) + + .PHONY: po + po: +- +make -C po all ++ +$(MAKE) -C po all + + .PHONY: gui + gui: core +- +make -C gui all ++ +$(MAKE) -C gui all + + .PHONY: nologo + nologo: +@@ -70,7 +72,6 @@ + + $(PACKAGENAME)-static: core core/lib$(PACKAGENAME).a $(PACKAGENAME).o + $(CXX) $(LDSTATIC) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) +- $(STRIP) $@ + + .PHONY: compressed + compressed: $(PACKAGENAME)-compressed +@@ -93,14 +94,14 @@ + manuf.txt: + wget http://www.ethereal.com/distribution/manuf.txt + +-install: all ++install: + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) + $(INSTALL) -m 0755 $(PACKAGENAME) $(DESTDIR)/$(SBINDIR) + $(INSTALL) -d -m 0755 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -m 0644 $(PACKAGENAME).1 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -d -m 0755 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) + $(INSTALL) -m 0644 $(DATAFILES) $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) +- make -C po install ++ $(MAKE) -C po install + + install-gui: gui + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) +@@ -110,8 +111,8 @@ + + clean: + rm -f $(PACKAGENAME).o $(PACKAGENAME) $(PACKAGENAME)-static $(PACKAGENAME)-compressed +- make -C core clean +- make -C gui clean ++ $(MAKE) -C core clean ++ $(MAKE) -C gui clean + + .timestamp: + date --utc +%Y%m%d%H%M%S > $@ diff --git a/sys-apps/lshw/files/lshw-02.16b-gentoo.patch b/sys-apps/lshw/files/lshw-02.16b-gentoo.patch new file mode 100644 index 000000000000..dfd2c8983704 --- /dev/null +++ b/sys-apps/lshw/files/lshw-02.16b-gentoo.patch @@ -0,0 +1,161 @@ +--- lshw-B.02.16.orig/src/core/Makefile ++++ lshw-B.02.16/src/core/Makefile +@@ -1,10 +1,9 @@ + PACKAGENAME?=lshw + +-CXX=c++ ++CXX?=c++ + INCLUDES= + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) +-LDFLAGS= ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + LDSTATIC= + LIBS= + +--- lshw-B.02.16.orig/src/gui/Makefile ++++ lshw-B.02.16/src/gui/Makefile +@@ -1,5 +1,7 @@ + PACKAGENAME?=lshw + ++SQLITE?=0 ++ + CXX?=c++ + CC?=cc + STRIP?=strip +@@ -8,13 +10,14 @@ OBJCOPY?=objcopy + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" + GTKINCLUDES=$(shell pkg-config gtk+-2.0 --cflags) + INCLUDES=-I../core $(GTKINCLUDES) +-CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + CFLAGS=$(CXXFLAGS) $(DEFINES) + GTKLIBS=$(shell pkg-config gtk+-2.0 gmodule-2.0 --libs) +-LIBS=-L../core -llshw -lresolv -lsqlite3 $(GTKLIBS) +-LDFLAGS= +-ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) +- LDFLAGS+= -Wl,--as-needed ++LIBS=-L../core -llshw -lresolv $(GTKLIBS) ++ ++ifeq ($(SQLITE), 1) ++ CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) ++ LIBS+= $(shell pkg-config --libs sqlite3) + endif + + OBJS = gtk-lshw.o callbacks.o engine.o print-gui.o stock.o +@@ -39,8 +42,7 @@ gtk-$(PACKAGENAME): $(OBJS) ../core/libl + $(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) + + install: all +- $(STRIP) gtk-$(PACKAGENAME) +- ++ + clean: + rm -f $(OBJS) gtk-$(PACKAGENAME) gtk-lshw.glade.bak gtk-lshw.gladep.bak callbacks.c.bak callbacks.h.bak Makefile.bak + +--- lshw-B.02.16.orig/src/Makefile ++++ lshw-B.02.16/src/Makefile +@@ -21,11 +21,11 @@ export SQLITE + CXX?=c++ + INCLUDES=-I./core/ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + ifeq ($(SQLITE), 1) + CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) + endif +-LDFLAGS=-L./core/ -g ++LDFLAGS += -L./core/ + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +@@ -39,27 +39,25 @@ export CXXFLAGS + export LIBS + export LDFLAGS + +-DATAFILES = pci.ids usb.ids oui.txt manuf.txt +- +-all: $(PACKAGENAME) $(PACKAGENAME).1 $(DATAFILES) ++all: $(PACKAGENAME) $(PACKAGENAME).1 + + .cc.o: + $(CXX) $(CXXFLAGS) -c $< -o $@ + + .PHONY: core + core: +- +make -C core all ++ $(MAKE) -C core all + + $(PACKAGENAME): core $(PACKAGENAME).o + $(CXX) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) + + .PHONY: po + po: +- +make -C po all ++ $(MAKE) -C po all + + .PHONY: gui + gui: core +- +make -C gui all ++ $(MAKE) -C gui all + + .PHONY: nologo + nologo: +@@ -70,7 +68,6 @@ static: $(PACKAGENAME)-static + + $(PACKAGENAME)-static: core core/lib$(PACKAGENAME).a $(PACKAGENAME).o + $(CXX) $(LDSTATIC) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) +- $(STRIP) $@ + + .PHONY: compressed + compressed: $(PACKAGENAME)-compressed +@@ -93,14 +90,13 @@ oui.txt: + manuf.txt: + wget -O $@ http://anonsvn.wireshark.org/wireshark/trunk/manuf + +-install: all ++install: + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) + $(INSTALL) -m 0755 $(PACKAGENAME) $(DESTDIR)/$(SBINDIR) + $(INSTALL) -d -m 0755 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -m 0644 $(PACKAGENAME).1 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -d -m 0755 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) +- $(INSTALL) -m 0644 $(DATAFILES) $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) +- make -C po install ++ $(MAKE) -C po install + + install-gui: gui + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) +@@ -112,8 +108,8 @@ install-gui: gui + + clean: + rm -f $(PACKAGENAME).o $(PACKAGENAME) $(PACKAGENAME)-static $(PACKAGENAME)-compressed +- make -C core clean +- make -C gui clean ++ $(MAKE) -C core clean ++ $(MAKE) -C gui clean + + .timestamp: + date --utc +%Y%m%d%H%M%S > $@ +--- lshw-B.02.16.orig/src/core/pci.cc ++++ lshw-B.02.16/src/core/pci.cc +@@ -17,7 +17,7 @@ __ID("@(#) $Id + + #define PROC_BUS_PCI "/proc/bus/pci" + #define SYS_BUS_PCI "/sys/bus/pci" +-#define PCIID_PATH DATADIR"/pci.ids:/usr/share/lshw/pci.ids:/usr/local/share/pci.ids:/usr/share/pci.ids:/etc/pci.ids:/usr/share/hwdata/pci.ids:/usr/share/misc/pci.ids" ++#define PCIID_PATH "/usr/share/misc/pci.ids" + + #define PCI_CLASS_REVISION 0x08 /* High 24 bits are class, low 8 revision */ + #define PCI_VENDOR_ID 0x00 /* 16 bits */ +--- lshw-B.02.16.orig/src/core/usb.cc ++++ lshw-B.02.16/src/core/usb.cc +@@ -27,7 +27,7 @@ + + #define PROCBUSUSBDEVICES "/proc/bus/usb/devices" + #define SYSBUSUSBDEVICES "/sys/bus/usb/devices" +-#define USBID_PATH DATADIR"/usb.ids:/usr/share/lshw/usb.ids:/usr/local/share/usb.ids:/usr/share/usb.ids:/etc/usb.ids:/usr/share/hwdata/usb.ids:/usr/share/misc/usb.ids" ++#define USBID_PATH "/usr/share/misc/usb.ids" + + #define USB_CLASS_PER_INTERFACE 0 /* for DeviceClass */ + #define USB_CLASS_AUDIO 1 diff --git a/sys-apps/lshw/files/lshw-02.17b-fat.patch b/sys-apps/lshw/files/lshw-02.17b-fat.patch new file mode 100644 index 000000000000..08654fd5af6f --- /dev/null +++ b/sys-apps/lshw/files/lshw-02.17b-fat.patch @@ -0,0 +1,10 @@ +http://bugs.gentoo.org/485496 + +--- src/core/fat.cc ++++ src/core/fat.cc +@@ -82,4 +82,5 @@ + uint8_t pmagic[2]; + } __attribute__((__packed__)) fat32; ++ char sector[512]; // to make sure the whole struct is at least 512 bytes long + } __attribute__((__packed__)) type; + } __attribute__((__packed__)); diff --git a/sys-apps/lshw/files/lshw-02.17b-gentoo.patch b/sys-apps/lshw/files/lshw-02.17b-gentoo.patch new file mode 100644 index 000000000000..1d3d431ec806 --- /dev/null +++ b/sys-apps/lshw/files/lshw-02.17b-gentoo.patch @@ -0,0 +1,159 @@ +--- lshw-B.02.17.orig/src/Makefile ++++ lshw-B.02.17/src/Makefile +@@ -21,11 +21,11 @@ + CXX?=c++ + INCLUDES=-I./core/ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + ifeq ($(SQLITE), 1) + CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) + endif +-LDFLAGS=-L./core/ -g ++LDFLAGS += -L./core/ + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +@@ -39,27 +39,25 @@ + export LIBS + export LDFLAGS + +-DATAFILES = pci.ids usb.ids oui.txt manuf.txt +- +-all: $(PACKAGENAME) $(PACKAGENAME).1 $(DATAFILES) ++all: $(PACKAGENAME) $(PACKAGENAME).1 + + .cc.o: + $(CXX) $(CXXFLAGS) -c $< -o $@ + + .PHONY: core + core: +- +make -C core all ++ $(MAKE) -C core all + + $(PACKAGENAME): core $(PACKAGENAME).o + $(CXX) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) + + .PHONY: po + po: +- +make -C po all ++ $(MAKE) -C po all + + .PHONY: gui + gui: core +- +make -C gui all ++ $(MAKE) -C gui all + + .PHONY: nologo + nologo: +@@ -70,7 +68,6 @@ + + $(PACKAGENAME)-static: core core/lib$(PACKAGENAME).a $(PACKAGENAME).o + $(CXX) $(LDSTATIC) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) +- $(STRIP) $@ + + .PHONY: compressed + compressed: $(PACKAGENAME)-compressed +@@ -93,14 +90,13 @@ + manuf.txt: + wget -O $@ http://anonsvn.wireshark.org/wireshark/trunk/manuf + +-install: all ++install: + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) + $(INSTALL) -m 0755 $(PACKAGENAME) $(DESTDIR)/$(SBINDIR) + $(INSTALL) -d -m 0755 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -m 0644 $(PACKAGENAME).1 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -d -m 0755 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) +- $(INSTALL) -m 0644 $(DATAFILES) $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) +- make -C po install ++ $(MAKE) -C po install + + install-gui: gui + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) +@@ -112,8 +108,8 @@ + + clean: + rm -f $(PACKAGENAME).o $(PACKAGENAME) $(PACKAGENAME)-static $(PACKAGENAME)-compressed +- make -C core clean +- make -C gui clean ++ $(MAKE) -C core clean ++ $(MAKE) -C gui clean + + .timestamp: + date --utc +%Y%m%d%H%M%S > $@ +--- lshw-B.02.17.orig/src/core/Makefile ++++ lshw-B.02.17/src/core/Makefile +@@ -1,10 +1,9 @@ + PACKAGENAME?=lshw + +-CXX=c++ ++CXX?=c++ + INCLUDES= + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) +-LDFLAGS= ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + LDSTATIC= + LIBS= + +--- lshw-B.02.17.orig/src/core/pci.cc ++++ lshw-B.02.17/src/core/pci.cc +@@ -17,7 +17,7 @@ + + #define PROC_BUS_PCI "/proc/bus/pci" + #define SYS_BUS_PCI "/sys/bus/pci" +-#define PCIID_PATH DATADIR"/pci.ids:/usr/share/lshw/pci.ids:/usr/local/share/pci.ids:/usr/share/pci.ids:/etc/pci.ids:/usr/share/hwdata/pci.ids:/usr/share/misc/pci.ids" ++#define PCIID_PATH "/usr/share/misc/pci.ids" + + #define PCI_CLASS_REVISION 0x08 /* High 24 bits are class, low 8 revision */ + #define PCI_VENDOR_ID 0x00 /* 16 bits */ +--- lshw-B.02.17.orig/src/core/usb.cc ++++ lshw-B.02.17/src/core/usb.cc +@@ -27,7 +27,7 @@ + + #define PROCBUSUSBDEVICES "/proc/bus/usb/devices" + #define SYSKERNELDEBUGUSBDEVICES "/sys/kernel/debug/usb/devices" +-#define USBID_PATH DATADIR"/usb.ids:/usr/share/lshw/usb.ids:/usr/local/share/usb.ids:/usr/share/usb.ids:/etc/usb.ids:/usr/share/hwdata/usb.ids:/usr/share/misc/usb.ids" ++#define USBID_PATH "/usr/share/misc/usb.ids" + + #define USB_CLASS_PER_INTERFACE 0 /* for DeviceClass */ + #define USB_CLASS_AUDIO 1 +--- lshw-B.02.17.orig/src/gui/Makefile ++++ lshw-B.02.17/src/gui/Makefile +@@ -1,5 +1,7 @@ + PACKAGENAME?=lshw + ++SQLITE?=0 ++ + CXX?=c++ + CC?=cc + STRIP?=strip +@@ -8,13 +10,14 @@ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" + GTKINCLUDES=$(shell pkg-config gtk+-2.0 --cflags) + INCLUDES=-I../core $(GTKINCLUDES) +-CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + CFLAGS=$(CXXFLAGS) $(DEFINES) + GTKLIBS=$(shell pkg-config gtk+-2.0 gmodule-2.0 --libs) +-LIBS=-L../core -llshw -lresolv -lsqlite3 $(GTKLIBS) +-LDFLAGS= +-ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) +- LDFLAGS+= -Wl,--as-needed ++LIBS=-L../core -llshw -lresolv $(GTKLIBS) ++ ++ifeq ($(SQLITE), 1) ++ CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) ++ LIBS+= $(shell pkg-config --libs sqlite3) + endif + + OBJS = gtk-lshw.o callbacks.o engine.o print-gui.o stock.o +@@ -39,7 +42,6 @@ + $(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) + + install: all +- $(STRIP) gtk-$(PACKAGENAME) + + clean: + rm -f $(OBJS) gtk-$(PACKAGENAME) gtk-lshw.glade.bak gtk-lshw.gladep.bak callbacks.c.bak callbacks.h.bak Makefile.bak diff --git a/sys-apps/lshw/lshw-02.16b-r2.ebuild b/sys-apps/lshw/lshw-02.16b-r2.ebuild new file mode 100644 index 000000000000..2d49dc80a6e4 --- /dev/null +++ b/sys-apps/lshw/lshw-02.16b-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit flag-o-matic eutils toolchain-funcs + +MAJ_PV=${PV:0:${#PV}-1} +MIN_PVE=${PV:0-1} +MIN_PV=${MIN_PVE/b/B} + +MY_P="$PN-$MIN_PV.$MAJ_PV" +DESCRIPTION="Hardware Lister" +HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter" +SRC_URI="http://ezix.org/software/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="gtk sqlite static" + +REQUIRED_USE="static? ( !gtk )" + +RDEPEND="gtk? ( x11-libs/gtk+:2 ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND} + gtk? ( virtual/pkgconfig ) + sqlite? ( virtual/pkgconfig )" +RDEPEND="${RDEPEND} + sys-apps/hwids" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + local langs + + for i in $(cd po ; echo *.po | sed 's/\.po//') ; do + if has ${i} ${LINGUAS} ; then + langs += " ${i}" + fi + done + sed -i \ + -e "/^LANGUAGES =/ s/=.*/= $langs/" \ + src/po/Makefile || die + fi +} + +src_compile() { + tc-export CC CXX AR + use static && append-ldflags -static + + local sqlite=$(usex sqlite 1 0) + + emake SQLITE=$sqlite all + if use gtk ; then + emake SQLITE=$sqlite gui + fi +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc README docs/* + if use gtk ; then + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui + make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg" + fi +} diff --git a/sys-apps/lshw/lshw-02.17b-r1.ebuild b/sys-apps/lshw/lshw-02.17b-r1.ebuild new file mode 100644 index 000000000000..c16dc9abb817 --- /dev/null +++ b/sys-apps/lshw/lshw-02.17b-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils toolchain-funcs + +MAJ_PV=${PV:0:${#PV}-1} +MIN_PVE=${PV:0-1} +MIN_PV=${MIN_PVE/b/B} + +MY_P="$PN-$MIN_PV.$MAJ_PV" +DESCRIPTION="Hardware Lister" +HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter" +SRC_URI="http://ezix.org/software/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="gtk sqlite static" + +REQUIRED_USE="static? ( !gtk )" + +RDEPEND="gtk? ( x11-libs/gtk+:2 ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND} + gtk? ( virtual/pkgconfig ) + sqlite? ( virtual/pkgconfig )" +RDEPEND="${RDEPEND} + sys-apps/hwids" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-fat.patch + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + local langs + + for i in $(cd src/po ; echo *.po | sed 's/\.po//') ; do + if has ${i} ${LINGUAS} ; then + langs += " ${i}" + fi + done + sed -i \ + -e "/^LANGUAGES =/ s/=.*/= $langs/" \ + src/po/Makefile || die + fi +} + +src_compile() { + tc-export CC CXX AR + use static && append-ldflags -static + + local sqlite=$(usex sqlite 1 0) + + emake SQLITE=$sqlite all + if use gtk ; then + emake SQLITE=$sqlite gui + fi +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc README docs/* + if use gtk ; then + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui + make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg" + fi +} diff --git a/sys-apps/lshw/lshw-02.17b.ebuild b/sys-apps/lshw/lshw-02.17b.ebuild new file mode 100644 index 000000000000..a7f7c0b6792f --- /dev/null +++ b/sys-apps/lshw/lshw-02.17b.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit flag-o-matic eutils toolchain-funcs + +MAJ_PV=${PV:0:${#PV}-1} +MIN_PVE=${PV:0-1} +MIN_PV=${MIN_PVE/b/B} + +MY_P="$PN-$MIN_PV.$MAJ_PV" +DESCRIPTION="Hardware Lister" +HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter" +SRC_URI="http://ezix.org/software/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="gtk sqlite static" + +REQUIRED_USE="static? ( !gtk )" + +RDEPEND="gtk? ( x11-libs/gtk+:2 ) + sqlite? ( dev-db/sqlite:3 )" +DEPEND="${RDEPEND} + gtk? ( virtual/pkgconfig ) + sqlite? ( virtual/pkgconfig )" +RDEPEND="${RDEPEND} + sys-apps/hwids" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + local langs + + for i in $(cd src/po ; echo *.po | sed 's/\.po//') ; do + if has ${i} ${LINGUAS} ; then + langs += " ${i}" + fi + done + sed -i \ + -e "/^LANGUAGES =/ s/=.*/= $langs/" \ + src/po/Makefile || die + fi +} + +src_compile() { + tc-export CC CXX AR + use static && append-ldflags -static + + local sqlite=$(usex sqlite 1 0) + + emake SQLITE=$sqlite all + if use gtk ; then + emake SQLITE=$sqlite gui + fi +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc README docs/* + if use gtk ; then + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui + make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg" + fi +} diff --git a/sys-apps/lshw/metadata.xml b/sys-apps/lshw/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/lshw/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/lssbus/Manifest b/sys-apps/lssbus/Manifest new file mode 100644 index 000000000000..1809be1bab1c --- /dev/null +++ b/sys-apps/lssbus/Manifest @@ -0,0 +1 @@ +DIST lssbus-0.1.tar.gz 13576 RMD160 f9fc25011f51f6f534f1883888db41126b3169d5 SHA1 7c2f54e67a5173419c650a31ce001807ae216adc SHA256 d88a03ecfeef505cfbe4444013ea46832cf0a3297c34b87e78c494b0e31896e0 diff --git a/sys-apps/lssbus/lssbus-0.1.ebuild b/sys-apps/lssbus/lssbus-0.1.ebuild new file mode 100644 index 000000000000..f6a951d2fa0f --- /dev/null +++ b/sys-apps/lssbus/lssbus-0.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Small utility for Linux/SPARC that list devices on SBUS" +HOMEPAGE="http://people.redhat.com/tcallawa/lssbus/" +SRC_URI="http://people.redhat.com/tcallawa/lssbus/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* sparc" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_install() { + dosbin lssbus + dodoc COPYING README +} diff --git a/sys-apps/lssbus/metadata.xml b/sys-apps/lssbus/metadata.xml new file mode 100644 index 000000000000..343785db6261 --- /dev/null +++ b/sys-apps/lssbus/metadata.xml @@ -0,0 +1,12 @@ + + + +sparc + + sparc@gentoo.org + Sparc Team + + +lssbus is a tool to list sbus devices in a manner similar to lspci. + + diff --git a/sys-apps/magneto-core/Manifest b/sys-apps/magneto-core/Manifest new file mode 100644 index 000000000000..520d012e476c --- /dev/null +++ b/sys-apps/magneto-core/Manifest @@ -0,0 +1 @@ +DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5 diff --git a/sys-apps/magneto-core/magneto-core-254.ebuild b/sys-apps/magneto-core/magneto-core-254.ebuild new file mode 100644 index 000000000000..d15490f0d8c7 --- /dev/null +++ b/sys-apps/magneto-core/magneto-core-254.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 multilib + +DESCRIPTION="Entropy Package Manager notification applet library" +HOMEPAGE="http://www.sabayon.org" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2" +S="${WORKDIR}/entropy-${PV}/magneto" + +DEPEND="~sys-apps/rigo-daemon-${PV}[${PYTHON_USEDEP}] + ${PYTHON_DEPS}" +RDEPEND="${DEPEND} + x11-misc/xdg-utils" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_install() { + emake DESTDIR="${D}" LIBDIR="usr/lib" magneto-core-install || die "make install failed" + python_optimize "${D}/usr/$(get_libdir)/entropy/magneto" +} diff --git a/sys-apps/magneto-core/metadata.xml b/sys-apps/magneto-core/metadata.xml new file mode 100644 index 000000000000..54af5bbe222c --- /dev/null +++ b/sys-apps/magneto-core/metadata.xml @@ -0,0 +1,9 @@ + + + + + lxnay@gentoo.org + Fabio Erculiani + + + diff --git a/sys-apps/makedev/Manifest b/sys-apps/makedev/Manifest new file mode 100644 index 000000000000..7bd3ed305330 --- /dev/null +++ b/sys-apps/makedev/Manifest @@ -0,0 +1 @@ +DIST MAKEDEV-3.23-1.tar.gz 122613 SHA256 46cebf1e5e36838a5637bdd2b7af07eb1773599e1288c2d1c777e2875d721965 SHA512 5ca82cdcc4544042ede552370acf6266929fa34d177bd8e831573ccc1c57e06ec87766b9e60a686ec1449b204ae0ac3c048eab32b57ce8d610366219d3a77dbc WHIRLPOOL fa11a2e0a143755af7c877171f67a95f6ea566cf0e9e8218bd412b98e75e50763e06cfc1c659527596a50f39cc905a3484f2fd5578a96d6389c7dc22ecadd103 diff --git a/sys-apps/makedev/files/makedev-3.23.1-headers.patch b/sys-apps/makedev/files/makedev-3.23.1-headers.patch new file mode 100644 index 000000000000..fac3fb1b711c --- /dev/null +++ b/sys-apps/makedev/files/makedev-3.23.1-headers.patch @@ -0,0 +1,12 @@ +http://bugs.gentoo.org/339674 + +--- a/MAKEDEV-3.23/sel.h ++++ b/MAKEDEV-3.23/sel.h +@@ -18,6 +18,7 @@ + */ + + #ifdef MAKEDEV_SELINUX ++#include + #include + static char secontextname[PATH_MAX + 2]; + static char secontextflag[PATH_MAX + 7]; diff --git a/sys-apps/makedev/makedev-3.23.1.ebuild b/sys-apps/makedev/makedev-3.23.1.ebuild new file mode 100644 index 000000000000..6cc925cf58af --- /dev/null +++ b/sys-apps/makedev/makedev-3.23.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs + +MY_PN="MAKEDEV" +MY_VER=${PV%.*} +MY_REL=${PV#${MY_VER}.} +MY_P="${MY_PN}-${MY_VER}" +DESCRIPTION="program used for creating device files in /dev" +HOMEPAGE="http://people.redhat.com/nalin/MAKEDEV/" +SRC_URI="http://people.redhat.com/nalin/MAKEDEV/${MY_P}-${MY_REL}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="build selinux" + +RDEPEND="! + + +base-system + diff --git a/sys-apps/man-db/Manifest b/sys-apps/man-db/Manifest new file mode 100644 index 000000000000..65d14004dacb --- /dev/null +++ b/sys-apps/man-db/Manifest @@ -0,0 +1,3 @@ +DIST man-db-2.6.6.tar.xz 1448576 SHA256 7da90f8d8df91e0e682769d50f4bdb905f525b5d0f01e7e5b8cc3c6da45f66c3 SHA512 7abb8609e1113dd1852076c4c71557c3b376fefa7e42fa39198f7b882f4b3fe733983045742c4b3903be2c953c09c724f735619b4396283a4ed2ad7816aaf4ec WHIRLPOOL e5c7b41afd7374bb1df3024134f9bd8a1af42b5ad63d4e516e946b0e8ccc88bafc055fdba707b0c764030e92748b225a72672bfe07e2bc3e8d78526d17f5ff72 +DIST man-db-2.6.7.1.tar.xz 1452280 SHA256 8d65559838fccca774e3ef7c15c073180c786e728785c735e136297facca41fc SHA512 91e1036701174c5623a4cf4208a93130822dc9c61ffd9c6bf0dddaf7c4c5b2401e6238f60578dfa81a11d67d360cbc4d45af920542fb4a0624c7169b17a618f8 WHIRLPOOL 30c510289d1444b3231704c22ddf2c17b58d4aa8b9e8a94552537fbc971b23f16b2c43a32fa9f85fb7b8eca2fd71a73d52955fcd0ab24ef49d3903832eafecf7 +DIST man-db-2.7.1.tar.xz 1498272 SHA256 c4876204a3fafb4d8ccc1d172c0431ee581d95558cbd6c4e79caca7717049e0e SHA512 246d833bd456a6dd178035b4be37dc810872b6480145d6c2c605deeb664d105b285f61827b739717d6936de28c4275a99ed8fae2d173b16c1c0673b1171a65ce WHIRLPOOL 10c56b861411674f4ca92bafe7c0faf4f6c2cbcc6b2db8f87f2e2ee59152797667619e60ae50cae33ee21ff3e58cb7b10627ce2f16adf65fd8794b0fabb71290 diff --git a/sys-apps/man-db/files/man-db.cron b/sys-apps/man-db/files/man-db.cron new file mode 100644 index 000000000000..ced63900fca6 --- /dev/null +++ b/sys-apps/man-db/files/man-db.cron @@ -0,0 +1,10 @@ +#!/bin/sh + +# Use same perms/settings as the ebuild. +if [ ! -d /var/cache/man ]; then + mkdir -p /var/cache/man + chown man:root /var/cache/man + chmod 2755 /var/cache/man +fi + +exec nice mandb --quiet diff --git a/sys-apps/man-db/man-db-2.6.6.ebuild b/sys-apps/man-db/man-db-2.6.6.ebuild new file mode 100644 index 000000000000..3c9d1959730e --- /dev/null +++ b/sys-apps/man-db/man-db-2.6.6.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils user + +DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" +HOMEPAGE="http://www.nongnu.org/man-db/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~arm-linux ~x86-linux" +IUSE="berkdb +gdbm nls selinux static-libs zlib" + +CDEPEND="dev-libs/libpipeline + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + !berkdb? ( !gdbm? ( sys-libs/gdbm ) ) + sys-apps/groff + zlib? ( sys-libs/zlib ) + !sys-apps/man" +DEPEND="${CDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( + >=app-text/po4a-0.45 + sys-devel/gettext + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mandb ) +" + +pkg_setup() { + # Create user now as Makefile in src_install does setuid/chown + enewgroup man 15 + enewuser man 13 -1 /usr/share/man man + + if (use gdbm && use berkdb) || (use !gdbm && use !berkdb) ; then #496150 + ewarn "Defaulting to USE=gdbm due to ambiguous berkdb/gdbm USE flag settings" + fi +} + +src_configure() { + export ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + --docdir='$(datarootdir)'/doc/${PF} \ + --enable-setuid \ + --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \ + $(use_enable nls) \ + $(use_enable static-libs static) \ + --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm)) +} + +src_install() { + default + dodoc docs/{HACKING,TODO} + prune_libtool_files + + exeinto /etc/cron.daily + newexe "${FILESDIR}"/man-db.cron man-db #289884 + + keepdir /var/cache/man + fowners man:0 /var/cache/man + fperms 2755 /var/cache/man +} + +pkg_preinst() { + if [[ -f ${EROOT}var/cache/man/whatis ]] ; then + einfo "Cleaning ${EROOT}var/cache/man from sys-apps/man" + find "${EROOT}"var/cache/man -type f '!' '(' -name index.bt -o -name index.db ')' -delete + fi + if [[ ! -g ${EROOT}var/cache/man ]] ; then + einfo "Resetting permissions on ${EROOT}var/cache/man" #447944 + mkdir -p "${EROOT}var/cache/man" + chown -R man:0 "${EROOT}"var/cache/man + find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} + + fi +} diff --git a/sys-apps/man-db/man-db-2.6.7.1.ebuild b/sys-apps/man-db/man-db-2.6.7.1.ebuild new file mode 100644 index 000000000000..5d3dccdba664 --- /dev/null +++ b/sys-apps/man-db/man-db-2.6.7.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils user + +DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" +HOMEPAGE="http://www.nongnu.org/man-db/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux" +IUSE="berkdb +gdbm nls selinux static-libs zlib" + +CDEPEND=">=dev-libs/libpipeline-1.3.0 + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + !berkdb? ( !gdbm? ( sys-libs/gdbm ) ) + sys-apps/groff + zlib? ( sys-libs/zlib ) + !sys-apps/man" +DEPEND="${CDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( + >=app-text/po4a-0.45 + sys-devel/gettext + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mandb ) +" + +pkg_setup() { + # Create user now as Makefile in src_install does setuid/chown + enewgroup man 15 + enewuser man 13 -1 /usr/share/man man + + if (use gdbm && use berkdb) || (use !gdbm && use !berkdb) ; then #496150 + ewarn "Defaulting to USE=gdbm due to ambiguous berkdb/gdbm USE flag settings" + fi +} + +src_configure() { + export ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + --docdir='$(datarootdir)'/doc/${PF} \ + --enable-setuid \ + --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \ + $(use_enable nls) \ + $(use_enable static-libs static) \ + --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm)) +} + +src_install() { + default + dodoc docs/{HACKING,TODO} + prune_libtool_files + + exeinto /etc/cron.daily + newexe "${FILESDIR}"/man-db.cron man-db #289884 + + keepdir /var/cache/man + fowners man:0 /var/cache/man + fperms 2755 /var/cache/man +} + +pkg_preinst() { + if [[ -f ${EROOT}var/cache/man/whatis ]] ; then + einfo "Cleaning ${EROOT}var/cache/man from sys-apps/man" + find "${EROOT}"var/cache/man -type f '!' '(' -name index.bt -o -name index.db ')' -delete + fi + if [[ ! -g ${EROOT}var/cache/man ]] ; then + einfo "Resetting permissions on ${EROOT}var/cache/man" #447944 + mkdir -p "${EROOT}var/cache/man" + chown -R man:0 "${EROOT}"var/cache/man + find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} + + fi +} diff --git a/sys-apps/man-db/man-db-2.7.1.ebuild b/sys-apps/man-db/man-db-2.7.1.ebuild new file mode 100644 index 000000000000..30b5a8bd6873 --- /dev/null +++ b/sys-apps/man-db/man-db-2.7.1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils user versionator + +DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" +HOMEPAGE="http://www.nongnu.org/man-db/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux" +IUSE="berkdb +gdbm nls selinux static-libs zlib" + +CDEPEND=">=dev-libs/libpipeline-1.4.0 + berkdb? ( sys-libs/db ) + gdbm? ( sys-libs/gdbm ) + !berkdb? ( !gdbm? ( sys-libs/gdbm ) ) + sys-apps/groff + zlib? ( sys-libs/zlib ) + !sys-apps/man" +DEPEND="${CDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( + >=app-text/po4a-0.45 + sys-devel/gettext + )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-mandb ) +" + +pkg_setup() { + # Create user now as Makefile in src_install does setuid/chown + enewgroup man 15 + enewuser man 13 -1 /usr/share/man man + + if (use gdbm && use berkdb) || (use !gdbm && use !berkdb) ; then #496150 + ewarn "Defaulting to USE=gdbm due to ambiguous berkdb/gdbm USE flag settings" + fi +} + +src_configure() { + export ac_cv_lib_z_gzopen=$(usex zlib) + econf \ + --docdir='$(datarootdir)'/doc/${PF} \ + --with-systemdtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \ + --enable-setuid \ + --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \ + $(use_enable nls) \ + $(use_enable static-libs static) \ + --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm)) +} + +src_install() { + default + dodoc docs/{HACKING,TODO} + prune_libtool_files + + exeinto /etc/cron.daily + newexe "${FILESDIR}"/man-db.cron man-db #289884 + + keepdir /var/cache/man + fowners man:0 /var/cache/man + fperms 2755 /var/cache/man +} + +pkg_preinst() { + if [[ -f ${EROOT}var/cache/man/whatis ]] ; then + einfo "Cleaning ${EROOT}var/cache/man from sys-apps/man" + find "${EROOT}"var/cache/man -type f '!' '(' -name index.bt -o -name index.db ')' -delete + fi + if [[ ! -g ${EROOT}var/cache/man ]] ; then + einfo "Resetting permissions on ${EROOT}var/cache/man" #447944 + mkdir -p "${EROOT}var/cache/man" + chown -R man:0 "${EROOT}"var/cache/man + find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} + + fi +} + +pkg_postinst() { + if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then + einfo "Rebuilding man-db from scratch with new database format!" + mandb --quiet --create + fi +} diff --git a/sys-apps/man-db/metadata.xml b/sys-apps/man-db/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/man-db/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/man-pages-posix/Manifest b/sys-apps/man-pages-posix/Manifest new file mode 100644 index 000000000000..8aa3d8930e67 --- /dev/null +++ b/sys-apps/man-pages-posix/Manifest @@ -0,0 +1 @@ +DIST man-pages-posix-2013-a.tar.xz 930736 SHA256 19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808 SHA512 e6ec8eb57269fadf368aeaac31b5a98b9c71723d4d5cc189f9c4642d6e865c88e44f77481dccbdb72e31526488eb531f624d455016361687a834ccfcac19fa14 WHIRLPOOL d2dcd2c09e0696f8eaffec7b2c64b73e1fc2965edfd45c2e0b547acb6035ce6ac60cf3cc247dd3754050fc7520adf04e7ba0a411605206cfead2d15d05d67665 diff --git a/sys-apps/man-pages-posix/files/man-pages-2.08-updates.patch b/sys-apps/man-pages-posix/files/man-pages-2.08-updates.patch new file mode 100644 index 000000000000..b660e9137ed9 --- /dev/null +++ b/sys-apps/man-pages-posix/files/man-pages-2.08-updates.patch @@ -0,0 +1,11 @@ +--- man1p/ipcs.1p ++++ man1p/ipcs.1p +@@ -544,7 +544,7 @@ + None. + .SH SEE ALSO + .LP +-The System Interfaces volume of IEEE\ Std\ 1003.1-2001, \fImsgrcv\fP(), ++\fIipcrm\fP , The System Interfaces volume of IEEE\ Std\ 1003.1-2001, \fImsgrcv\fP(), + \fImsgsnd\fP(), \fIsemget\fP(), \fIsemop\fP(), \fIshmat\fP(), \fIshmdt\fP(), + \fIshmget\fP() + .SH COPYRIGHT diff --git a/sys-apps/man-pages-posix/man-pages-posix-2013a.ebuild b/sys-apps/man-pages-posix/man-pages-posix-2013a.ebuild new file mode 100644 index 000000000000..20214606e5e9 --- /dev/null +++ b/sys-apps/man-pages-posix/man-pages-posix-2013a.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_P="${PN}-${PV:0:4}-${PV:0-1}" +DESCRIPTION="POSIX man-pages (0p, 1p, 3p)" +HOMEPAGE="http://www.kernel.org/doc/man-pages/" +SRC_URI="mirror://kernel/linux/docs/man-pages/${PN}/${MY_P}.tar.xz" + +LICENSE="man-pages-posix-2013" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" +RESTRICT="binchecks" + +RDEPEND="virtual/man ! + + +base-system + diff --git a/sys-apps/man-pages/Manifest b/sys-apps/man-pages/Manifest new file mode 100644 index 000000000000..03832061efcd --- /dev/null +++ b/sys-apps/man-pages/Manifest @@ -0,0 +1,11 @@ +DIST man-pages-3.75.tar.xz 1293528 SHA256 06aaca0a3958c3fdae3b3cfc3c2a92d54c2a4ceafad8a6d97f67fda14650d2f6 SHA512 fd09bdadbfe6303f1a136b7b51a65cfa0857811e928d7d13b5a090fed045fb69c3889236b98e8ea67c3f42ccf014200f86bf44c0fa5e732b9ccac7393c509c96 WHIRLPOOL 4ea054ea3cd2091784fa1e42e9bed24dec917a7d8d55da8f45fcc2b5c9753aa1770facf00ebdce67eda13e4bd9fb738b40208ff13e80a7cee2eb789ab4f5a831 +DIST man-pages-3.77.tar.xz 1308048 SHA256 fc630f063b4671cece6cffee47d0ad25b871219ffba8bf2784f084512af5954f SHA512 83140224efd007b5e5eddd6b8b2d78ddd505a44d897b07a215ec128041d82523de42eee737d1ac7047b1c0f40a6b8d1fc58bb6e03df6b81e383458431309b46f WHIRLPOOL 9ea997c9e559134c71120f711e5870233ed71e4165a37755a2f6bbb548dc19f647d195245fe336dfbd8a1fa6150667e1794b300c2b5991f05ee145a2725d4a82 +DIST man-pages-3.78.tar.xz 1315792 SHA256 c52897a17fbc6304d3fe273e7eb12d6feff82d460a62290121cfbaf501d3a37e SHA512 fd84bac9c38902c4a0d5e9a781a81ba62aaded06ca1fdb664460fcf93e2b9fb657edd06bdbf2b4ccfd2eb2ff1408e7c7b961c2aae3e9e592c1575489dc3bfd0f WHIRLPOOL a9d6caca7a1141a3068e4aa9e3bd07e3129b539f1f18cec0be11f1ad2bf19b2c56f8b01ba5e2fa559d2f90815446e0d0357dd0db16ea63a8ad4b53034e2ec9e8 +DIST man-pages-3.79.tar.xz 1320688 SHA256 b2d608c8910850c560658370a9acd5d25cb92a686e3e7f3735884922c8aad6be SHA512 7bcfb815222f1665ae5be39c809b309acc0da9cf2712ddaa51a040a31018275cf77adf25571543e640e37f1f7ca1ebe2fcc515930151606f35d4d933b9547efe WHIRLPOOL 897747ad8d8e14a2b38d6c98321a39ff19ea09a02b47e079e9caa8f6d49b8acef5334a7557bffa10adba943451d3b54b5ea561f609e9f81b7edfb99f1e8051cb +DIST man-pages-3.80.tar.xz 1332548 SHA256 686847880557aec5a4f09bdc12d92185a784baa47c52f53676f06acc4b0d40c2 SHA512 a21be65f566654c3ecaea2b6a4da4db2b83cd64debaeb36c4ff5b4771d70c382fe24c66a025f9e531799a99d0be53a6a28545481c2403dc6193952999c1c84f0 WHIRLPOOL e4a9a39660f99c206469871934d1145b42b88670fb5525bfe329a39e62b2657bf5730ac071fb87e4f3110ecd4f299253979c6b53496c5b378d2ff4a4a37af353 +DIST man-pages-3.81.tar.xz 1344848 SHA256 b5b98411ff4548262d9ab30e1ad68ca1ea228f6c5c51ed5490bd92f00b9cf2c2 SHA512 4f152f4f833f011ce9a39bbf70663dcd565d74a9ccaf10a0c9da810df0efc14227b9ef98edd1087ae722b5d21b827868d32c5c66150953645bd17a3f25ea2fc4 WHIRLPOOL 93fb6f29776dd704c685092eb312d2cc72e267f06dc5787489fa78e2ce99ceec503a632e90de347e55c74f8fbf9bd4a501140cce7395c785f7dec7d58942e0c8 +DIST man-pages-3.82.tar.xz 1357152 SHA256 547273dd0a1c26e5bb2169baa50a7e0e0c93b6e41997729d4d8638a8513018b1 SHA512 d81ddcab7385f2e92db3dc5643d28ca767b2bd96077cdffbe20866bd0a1f0a2811eba6b0f07becbe82110e8ff4f971379d5229995bb99d6eebf9d65ba42bba93 WHIRLPOOL 58323b003dcc02d0c46b941105269a8cd5a74400b7a8160c2c56e78ab93f38b33da70519dd322fe0d953967aa5b9cd325b0fcf9e180ec79d3cc9238af6f36468 +DIST man-pages-3.83.tar.xz 1364196 SHA256 72fce6a1f282146504556ed54b93f06acef77f30114c1c00755b21bb5def7af2 SHA512 48ccca8f3a8f86bf1256e018230a2a9012f0684ac8243fae95ff0bc42cb7289ef577762f890c4ca2115967bde73378b29b7ee23c549653126c052253499827e5 WHIRLPOOL 0a005dc2b58a8e8e983c85725eafd02e0bb3b69835b76fc3ded338102ae68994f168aa7409a1d03e7d5ed4c453210a7122ab1a05a9368a901d540181db343942 +DIST man-pages-4.00.tar.xz 1368256 SHA256 444264eb7e3582f980ee3de073af394182ee6b9d5e03e89c55ba042dc20beba3 SHA512 cec9a539b549c500ec1ed86ec5f1d3e1b11b944a4166cd44e3c5fa0051c597528880809e3cde52dbc95ce5e7eadc3dcb2bf4a9eed1f40ec0401c4e84763a9d55 WHIRLPOOL e4c69f0ee80102339660a9bda9159fe6d4448839015c52855e3e7776f8a2e57f14c9f68502c61609c9d6a46a869f1b24b6b5f2eb7173dfb6e1b9a3346a5da169 +DIST man-pages-4.01.tar.xz 1395072 SHA256 d194b5d4a381724dc291d9f36621ab2cbb51c003d72dcbd95896366db3b8d284 SHA512 9b5680a1b230ba27b8b5277f8da3b06d09cc27b77c858b2deede50e09c455d75b334aa855e8a028e9ff2be10b7872b8e9f3ec1f7b0d17c546af445cadad3a89f WHIRLPOOL 42d029e8299de096ad67b75e5be09836d209130592955df6644d6e4b84d243ee9b69476b52477a217d7bfba4abc9a1a3b97a2553d021e6779fa9b2dfe09626e8 +DIST man-pages-gentoo-2.tar.bz2 5141 SHA256 b7d9423c2069e587deb7671273d4a1ffed7d31b9f95a689b128a759d636762f0 SHA512 6e6524b8ad6f1b8c9b147665ee32af49e05603dac61d433acd6b4f1164adef27cd542898f272b07d8659725013dac59c7f34a858968cc054a4785c945e14a770 WHIRLPOOL dcacb319a54ccd2a965786c816684de286581dee6f7b3f8ba4c97cc368e2e50abc92aad403dbdb7b0c15764accb06cd562046bcf14229ad12be242bb2bc7f651 diff --git a/sys-apps/man-pages/man-pages-3.75.ebuild b/sys-apps/man-pages/man-pages-3.75.ebuild new file mode 100644 index 000000000000..9349878efcb6 --- /dev/null +++ b/sys-apps/man-pages/man-pages-3.75.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +GENTOO_PATCH=2 + +DESCRIPTION="A somewhat comprehensive collection of Linux man pages" +HOMEPAGE="http://www.kernel.org/doc/man-pages/" +SRC_URI="mirror://kernel/linux/docs/man-pages/Archive/${P}.tar.xz + mirror://kernel/linux/docs/man-pages/${P}.tar.xz + http://man7.org/linux/man-pages/download/${P}.tar.xz + mirror://gentoo/man-pages-gentoo-${GENTOO_PATCH}.tar.bz2 + http://dev.gentoo.org/~cardoe/files/man-pages-gentoo-${GENTOO_PATCH}.tar.bz2" + +LICENSE="man-pages GPL-2+ BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux" +IUSE_LINGUAS=" da de fr it ja nl pl ro ru zh_CN" +IUSE="nls ${IUSE_LINGUAS// / linguas_}" +RESTRICT="binchecks" + +RDEPEND="virtual/man + ! + + +base-system + diff --git a/sys-apps/man/Manifest b/sys-apps/man/Manifest new file mode 100644 index 000000000000..677fe5cffdaa --- /dev/null +++ b/sys-apps/man/Manifest @@ -0,0 +1 @@ +DIST man-1.6g.tar.gz 256906 SHA256 ccdcb8c3f4e0080923d7e818f0e4a202db26c46415eaef361387c20995b8959f SHA512 c786fa2201aed92293e5590dc3ad5d550cf14e5059fa274ef7719af86ee4c892e747576495b6dc0a09286e73e2f0f0caf860216e0c8032d9ef13e5d26853048b WHIRLPOOL 1b531476108c27a3993023da430831c2d20f8045a51490d559a7f588f0771931defd7a3a745e9f1f03797e681eea8767aad4a27ab9abdd5d06ad935dc96a5020 diff --git a/sys-apps/man/files/makewhatis.cron b/sys-apps/man/files/makewhatis.cron new file mode 100644 index 000000000000..bef5ea6d1e2d --- /dev/null +++ b/sys-apps/man/files/makewhatis.cron @@ -0,0 +1,5 @@ +#!/bin/sh +# this is part of the man package +# it updates the search database for manpages + +exec nice makewhatis -u diff --git a/sys-apps/man/files/man-1.5m2-apropos.patch b/sys-apps/man/files/man-1.5m2-apropos.patch new file mode 100644 index 000000000000..9735a5330e88 --- /dev/null +++ b/sys-apps/man/files/man-1.5m2-apropos.patch @@ -0,0 +1,16 @@ +Ripped from Fedora + +--- man-1.5m2/src/apropos.sh ++++ man-1.5m2/src/apropos.sh +@@ -19,9 +19,9 @@ + + # When man pages in your favorite locale look to grep like binary files + # (and you use GNU grep) you may want to add the 'a' option to *grepopt1. +-aproposgrepopt1='i' ++aproposgrepopt1='ai' + aproposgrepopt2='' +-whatisgrepopt1='iw' ++whatisgrepopt1='aiw' + whatisgrepopt2='^' + grepopt1=$%apropos_or_whatis%grepopt1 + grepopt2=$%apropos_or_whatis%grepopt2 diff --git a/sys-apps/man/files/man-1.6-cross-compile.patch b/sys-apps/man/files/man-1.6-cross-compile.patch new file mode 100644 index 000000000000..184236918b91 --- /dev/null +++ b/sys-apps/man/files/man-1.6-cross-compile.patch @@ -0,0 +1,61 @@ +Fix up to work with cross-compiling ... most of these tests only +need to see if the example compiled, not whether it runs ... + +--- configure ++++ configure +@@ -232,15 +232,13 @@ + + echo checking for POSIX.1 header files + echo "#include +-main() { + #ifdef _POSIX_VERSION +-exit(0); ++main() { exit(0); } + #else +-exit(1); +-#endif +-}" > conftest.c ++# error no _POSIX_VERSION ++#endif" > conftest.c + eval $compile +-if test -s conftest && ./conftest 2>/dev/null; then ++if test -s conftest ; then + DEFS="$DEFS -DPOSIX" + fi + rm -f conftest conftest.c +@@ -249,7 +247,7 @@ + echo "#include + main() { exit(0); rindex(0, 0); bzero(0, 0); }" > conftest.c + eval $compile +-if test -s conftest && ./conftest 2>/dev/null; then : ++if test -s conftest ; then : + else DEFS="$DEFS -DUSG" + fi + rm -f conftest conftest.c +@@ -258,7 +256,7 @@ + echo '#include + main() { uid_t x; exit(0); }' > conftest.c + eval $compile +-if test -s conftest && ./conftest 2>/dev/null; then : ++if test -s conftest ; then : + else + uid_t=`awk '/pw_uid;/ {print $1}' $INCLUDEDIR/pwd.h` + DEFS="$DEFS -Duid_t=${uid_t} -Dgid_t=${uid_t}" +@@ -291,7 +289,7 @@ + #endif + main() { char *p = (char *) alloca(1); exit(0); }' > conftest.c + eval $compile +-if test -s conftest && ./conftest 2>/dev/null; then : ++if test -s conftest ; then : + elif test -d /usr/ucblib; then LIBS="$LIBS -L/usr/ucblib -lucb" + elif test -f /usr/lib/libPW.a; then LIBS="$LIBS -lPW" + else DEFS="$DEFS -DALLOCA_MISSING" +@@ -321,7 +319,7 @@ + struct option long_opts[] = { { "", no_argument, NULL, 0 } }; + main() { exit(0); }' > conftest.c + eval $compile +-if test -s conftest && ./conftest 2>/dev/null; then ++if test -s conftest ; then + manpathoption="--path" + else + manpathoption="-w" diff --git a/sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch b/sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch new file mode 100644 index 000000000000..9ecaeb70e16e --- /dev/null +++ b/sys-apps/man/files/man-1.6c-cut-duplicate-manpaths.patch @@ -0,0 +1,83 @@ +http://bugs.gentoo.org/90186 + +If we have entries in MANPATH that are really symlinks to other entries, +then many man functions will yield duplicate entries. + +Without this patch, we see this behavior: +$ echo $MANPATH +/usr/share/man:/usr/man +$ man --path +/usr/share/man:/usr/man +$ ls -ld /usr/share/man /usr/man +lrwxrwxrwx 1 /usr/man -> /usr/share/man +drwxr-xr-x 36 /usr/share/man +$ man -k passwd +passwd (1) - change user password +passwd (1) - change user password + +With this patch, we get: +$ echo $MANPATH +/usr/share/man:/usr/man +$ man --path +/usr/share/man +$ ls -ld /usr/share/man /usr/man +lrwxrwxrwx 1 /usr/man -> /usr/share/man +drwxr-xr-x 36 /usr/share/man +$ man -k passwd +passwd (1) - change user password + +--- man-1.6c/src/manpath.c ++++ man-1.6c/src/manpath.c +@@ -380,6 +380,44 @@ + } + } + ++void trim_symlinked_manpaths (void); ++void ++trim_symlinked_manpaths () { ++ /* ++ * Skip symlinks to other entries in path. ++ * Do this after we've built the entire list. ++ */ ++ struct stat *stat_cache; ++ size_t i, j, size; ++ ++ if (!mandirlist) ++ return; ++ ++ for (size = 0; mandirlist[size]; ++size) ++ /* count # of elements */; ++ if (size == 0) ++ return; ++ /* cache stat information for every element */ ++ stat_cache = (struct stat *) my_malloc (size * sizeof(*stat_cache)); ++ for (i = 0; i < size; ++i) ++ stat(mandirlist[i], &stat_cache[i]); ++ ++#define EQU_STAT(s,d) ((s).st_dev == (d).st_dev && (s).st_ino == (d).st_ino) ++ for (i = 0; i < size; ++i) { ++ for (j = i+1; j < size; ++j) { ++ if (EQU_STAT(stat_cache[i], stat_cache[j])) { ++ /* these two entries are the same, so cut out the second one */ ++ memmove(mandirlist+j, mandirlist+j+1, (size-j)*sizeof(*mandirlist)); ++ memmove(stat_cache+j, stat_cache+j+1, (size-j)*sizeof(*stat_cache)); ++ mandirlist[--size] = NULL; ++ --j; ++ } ++ } ++ } ++ ++ free(stat_cache); ++} ++ + void + init_manpath () { + static int done = 0; +@@ -391,6 +431,7 @@ + (manp = getenv ("MANPATH")) == NULL) + manp = ""; /* default path */ + split (manp, to_mandirlist, 0); ++ trim_symlinked_manpaths (); + done = 1; + } + } diff --git a/sys-apps/man/files/man-1.6e-headers.patch b/sys-apps/man/files/man-1.6e-headers.patch new file mode 100644 index 000000000000..9c6fd6f43516 --- /dev/null +++ b/sys-apps/man/files/man-1.6e-headers.patch @@ -0,0 +1,13 @@ +--- gencat/genlib.c ++++ gencat/genlib.c +@@ -49,10 +49,8 @@ + + #include + #include +-#ifdef SYSV + #include + #include +-#endif + + #if !defined(__linux__) && !defined(__FreeBSD__) + #include diff --git a/sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch b/sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch new file mode 100644 index 000000000000..a7d74c32be3a --- /dev/null +++ b/sys-apps/man/files/man-1.6f-makewhatis-compression-cleanup.patch @@ -0,0 +1,69 @@ +http://bugs.gentoo.org/331979 + +patch by William Throwe + +The problem is that a failed match() resets the RSTART variable used to +extract filename_no_gz (visible in the trailing context of the patch), +so it is important that no more match() commands are attempted after the +successful one. Without the scoping, if (for example) the test for .bz2 +succeeds, it prevents testing for .lzma, but doesn't prevent testing for +.xz. The failing .xz test causes RSTART to be set to zero so +filename_no_gz becomes the empty string. + +--- man-1.6f/src/makewhatis.sh ++++ man-1.6f/src/makewhatis.sh +@@ -234,7 +234,7 @@ + find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK ' + + function readline() { +- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { ++ if (use_compression) { + result = (pipe_cmd | getline); + if (result < 0) { + print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; +@@ -249,7 +249,7 @@ + } + + function closeline() { +- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { ++ if (use_compression) { + return close(pipe_cmd); + } else { + return close(filename); +@@ -263,16 +263,20 @@ + if (verbose) { + print "adding " filename > "/dev/stderr" + } +- ++ + use_zcat = match(filename,"\\.Z$") || + match(filename,"\\.z$") || match(filename,"\\.gz$"); +- if (!use_zcat) ++ if (!use_zcat) { + use_bzcat = match(filename,"\\.bz2"); +- if(!use_bzcat) +- use_lzcat = match(filename,"\\.lzma"); +- if(!use_lzcat) +- use_xzcat = match(filename,"\\.xz"); +- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { ++ if (!use_bzcat) { ++ use_lzcat = match(filename,"\\.lzma"); ++ if (!use_lzcat) { ++ use_xzcat = match(filename,"\\.xz"); ++ } ++ } ++ } ++ use_compression = (use_zcat || use_bzcat || use_lzcat || use_xzcat); ++ if (use_compression) { + filename_no_gz = substr(filename, 0, RSTART - 1); + } else { + filename_no_gz = filename; +@@ -285,7 +289,7 @@ + actual_section = section; + } + sub(/\..*/, "", progname); +- if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { ++ if (use_compression) { + if (use_zcat) { + pipe_cmd = "zcat \"" filename "\""; + } else if (use_bzcat) { diff --git a/sys-apps/man/files/man-1.6f-man2html-compression-2.patch b/sys-apps/man/files/man-1.6f-man2html-compression-2.patch new file mode 100644 index 000000000000..b79b3a1872f1 --- /dev/null +++ b/sys-apps/man/files/man-1.6f-man2html-compression-2.patch @@ -0,0 +1,61 @@ +add support for bzip2/lzma to man2html and friends + +--- man2html/glimpse_filters ++++ man2html/glimpse_filters +@@ -1,3 +1,6 @@ ++*.bz2 bzip2 -d -c ++*.lzma lzma -d -c ++*.xz xz -d -c + *.gz gzip -d -c + *.Z gzip -d -c + +--- man2html/scripts/cgi-bin/man/man2html ++++ man2html/scripts/cgi-bin/man/man2html +@@ -93,6 +93,12 @@ + *.bz2) + bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" + ;; ++ *.lzma) ++ lzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" ++ ;; ++ *.xz) ++ xzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" ++ ;; + *) + "$MAN2HTML" "$LL" "$PAGE" + ;; +@@ -103,6 +106,12 @@ + elif [ -r "$PAGE".bz2 ] + then + bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE" ++elif [ -r "$PAGE".lzma ] ++then ++ lzcat "$PAGE".lzma | "$MAN2HTML" "$LL" -D "$PAGE" ++elif [ -r "$PAGE".xz ] ++then ++ xzcat "$PAGE".xz | "$MAN2HTML" "$LL" -D "$PAGE" + else + "$MAN2HTML" -E "Strange... Cannot find (or read) $PAGE." + fi +--- man2html/scripts/cgi-bin/man/mansearch ++++ man2html/scripts/cgi-bin/man/mansearch +@@ -153,7 +153,7 @@ + } + print "
"; + textname = filename; +- sub(/\.(gz)|Z|z$/, "", textname); ++ sub(/\.([zZ]|gz|bz2|lzma|xz)$/, "", textname); + sub(/\./, "(", textname); + textname = textname ")"; + print textname; +--- man2html/scripts/cgi-bin/man/mansec ++++ man2html/scripts/cgi-bin/man/mansec +@@ -128,7 +128,7 @@ + # Print out alphabetic quick index and other links + } + # Split page.n into "page" and "n" and generate an entry +- sub(/[.]([zZ]|(gz))$/, "", manpage); ++ sub(/[.]([zZ]|gz|bz2|lzma|xz)$/, "", manpage); + match(manpage, /[.][^.]+$/); + title = substr(manpage, 1, RSTART - 1); + if (section != "all") { diff --git a/sys-apps/man/files/man-1.6f-parallel-build.patch b/sys-apps/man/files/man-1.6f-parallel-build.patch new file mode 100644 index 000000000000..41918d9244da --- /dev/null +++ b/sys-apps/man/files/man-1.6f-parallel-build.patch @@ -0,0 +1,78 @@ +http://bugs.gentoo.org/207148 + +patch by Kevin Pyle to fix parallel build issues + +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -42,9 +42,12 @@ + makemsg: + $(BUILD_CC) -o makemsg makemsg.c + +-msg.c gripedefs.h: ../msgs/mess.en makemsg ++gripedefs.h: ../msgs/mess.en makemsg + ./makemsg ../msgs/mess.en gripedefs.h msg.c + ++# avoid parallel build issues with makemsg ++msg.c: gripedefs.h ++ + # glob.c does not have prototypes + glob.o: glob.c ndir.h + $(CC) -c $(CWARNNP) $(CFLAGS) -I. $(DEFS) glob.c + +http://bugs.gentoo.org/258916 + +avoid: + make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. + +--- a/man/Makefile.in ++++ b/man/Makefile.in +@@ -3,7 +3,7 @@ + MAN5 = man.conf + MAN8 = makewhatis + ALL = man.1 whatis.1 apropos.1 man.conf.5 +-MAYBE8 = makewhatis ++MAYBE8 = $(wildcard makewhatis.man) + + .SUFFIXES: .man .1 .5 .8 + +@@ -21,9 +21,7 @@ + # Where to put the manual pages. + mandir = $(DESTDIR)$(PREFIX)@mandir@$(SLANG) + +-all: $(ALL) +- for i in $(MAYBE8); \ +- do if test -f $$i.man; then make -f ../Makefile $$i.8; fi; done ++all: $(ALL) $(MAYBE8:.man=.8) + + install: $(ALL) + mkdir -p $(mandir)/man1 $(mandir)/man5 $(mandir)/man8 +@@ -39,18 +37,17 @@ + + spotless: + +-subdirs: +- @for i in @languages@; do if test -d $$i; then echo; \ +- echo "==== Making the `cat $$i.txt` man pages. ===="; \ +- cd $$i; make -f ../Makefile; cd ..; \ +- else echo "==== No $$i man pages found. ===="; fi; done +- +-installsubdirs: +- @for i in @languages@; do if test -d $$i; then echo; \ +- echo "==== Installing the `cat $$i.txt` man pages. ===="; \ +- cd $$i; SLANG=/$$i; if test $$SLANG = /en; then SLANG= ; fi; \ +- export SLANG; make -f ../Makefile install; cd ..; \ +- else echo "==== No $$i man pages found. ===="; fi; done ++MAN_LANGS = $(wildcard @languages@) ++subdirs: $(MAN_LANGS:=_lang_subdir) ++%_lang_subdir: ++ @echo "==== Making the `cat $(@:_lang_subdir=).txt` man pages. ====" ++ $(MAKE) -f ../Makefile -C $(@:_lang_subdir=) ++ ++installsubdirs: $(MAN_LANGS:=_lang_installsubdir) ++%_lang_installsubdir: ++ @echo "==== Making the `cat $(@:_lang_installsubdir=).txt` man pages. ====" ++ $(MAKE) -f ../Makefile -C $(@:_lang_installsubdir=) install \ ++ SLANG=`s=$(@:_lang_installsubdir=); test $$s = en || echo /$$s` + + cleansubdirs: + @for i in ??; do cd $$i; make -f ../Makefile clean; cd ..; done diff --git a/sys-apps/man/files/man-1.6f-so-search-2.patch b/sys-apps/man/files/man-1.6f-so-search-2.patch new file mode 100644 index 000000000000..ac42c8df7b37 --- /dev/null +++ b/sys-apps/man/files/man-1.6f-so-search-2.patch @@ -0,0 +1,34 @@ +improve the uncompressed .so search + +--- a/src/man.c ++++ b/src/man.c +@@ -381,13 +381,23 @@ again: + } + /* + * Some people have compressed man pages, but uncompressed +- * .so files - we could glob for all possible extensions, +- * for now: only try .gz ++ * .so files - we should discover this list dynamically, but ++ * for now just hardcode it. + */ +- else if (fp == NULL && get_expander(".gz") && +- strlen(name)+strlen(".gz") < BUFSIZE) { +- strcat(name, ".gz"); +- fp = fopen (name, "r"); ++ else if (fp == NULL) { ++#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) ++ size_t i, name_len = strlen(name); ++ const char *extensions[] = { ".gz", ".bz2", ".lzma", ".xz", ".z", ".Z" }; ++ for (i = 0; i < ARRAY_SIZE(extensions); ++i) { ++ const char *comp = extensions[i]; ++ name[name_len] = '\0'; ++ if (get_expander(comp) && name_len+strlen(comp) < BUFSIZE) { ++ strcat(name, comp); ++ fp = fopen(name, "r"); ++ if (fp) ++ break; ++ } ++ } + } + + if (fp == NULL) { diff --git a/sys-apps/man/files/man-1.6f-unicode.patch b/sys-apps/man/files/man-1.6f-unicode.patch new file mode 100644 index 000000000000..89d3821df3ca --- /dev/null +++ b/sys-apps/man/files/man-1.6f-unicode.patch @@ -0,0 +1,28 @@ +let the active locale work its magic + +http://bugs.gentoo.org/146315 + +--- man-1.6f/configure ++++ man-1.6f/configure +@@ -473,9 +473,9 @@ + then + if test $Fnroff = "missing" + then +- nroff="nroff -Tlatin1 -mandoc" ++ nroff="nroff -Tascii -c -mandoc" + else +- nroff="$Fnroff -Tlatin1 -mandoc" ++ nroff="$Fnroff -mandoc" + fi + troff="troff -mandoc" + echo "Warning: could not find groff" +@@ -484,7 +484,7 @@ + then + nroff="$Fgroff -Tlatin1 -mandoc" + else +- nroff="$Fnroff -Tlatin1 -mandoc" ++ nroff="$Fnroff -mandoc" + fi + troff="$Fgroff -Tps -mandoc" + jnroff="$Fgroff -Tnippon -mandocj" + diff --git a/sys-apps/man/files/man-1.6g-compress.patch b/sys-apps/man/files/man-1.6g-compress.patch new file mode 100644 index 000000000000..374d80730074 --- /dev/null +++ b/sys-apps/man/files/man-1.6g-compress.patch @@ -0,0 +1,17 @@ +allow selection of default cache compressor + +http://bugs.gentoo.org/205147 + +--- configure ++++ configure +@@ -1012,6 +1012,10 @@ + done + done + ++ if [ x$COMPRESS != x ]; then ++ compress=$COMPRESS ++ fi ++ + if [ x$default = x ]; then + echo "" + echo "What program should be used to compress the formatted pages?" diff --git a/sys-apps/man/files/man-1.6g-echo-escape.patch b/sys-apps/man/files/man-1.6g-echo-escape.patch new file mode 100644 index 000000000000..96e950a51e86 --- /dev/null +++ b/sys-apps/man/files/man-1.6g-echo-escape.patch @@ -0,0 +1,15 @@ +avoid using escape sequences in echo as they're not portable + +https://bugs.gentoo.org/523874 + +--- a/src/man.c ++++ b/src/man.c +@@ -626,7 +626,7 @@ make_roff_command (const char *path, const char *file) { + the current position plus 10 lines. This plus setpl() + gives us a single page that just contains the whole + man page. (William Webber, wew@cs.rmit.edu.au) */ +- strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \\n(nlu+10\""); ++ strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \"; echo \"(nlu+10\""); + #if 0 + /* In case this doesnt work for some reason, + michaelkjohnson suggests: I've got a simple diff --git a/sys-apps/man/files/man-1.6g-fbsd.patch b/sys-apps/man/files/man-1.6g-fbsd.patch new file mode 100644 index 000000000000..ef01a6e01fc0 --- /dev/null +++ b/sys-apps/man/files/man-1.6g-fbsd.patch @@ -0,0 +1,15 @@ +Fixes compilation in FreeBSD + +http://bugs.gentoo.org/138123 + +--- man-1.6g/gencat/genlib.c ++++ man-1.6g/gencat/genlib.c +@@ -54,7 +54,7 @@ + #include + #endif + +-#if !defined(__linux__) && !defined(__CYGWIN__) ++#if !defined(__linux__) && !defined(__CYGWIN__) && !defined(__FreeBSD__) + #include + static int bcopy(src, dst, length) + char *src, *dst; diff --git a/sys-apps/man/files/man-1.6g-xz.patch b/sys-apps/man/files/man-1.6g-xz.patch new file mode 100644 index 000000000000..fcf91f71d376 --- /dev/null +++ b/sys-apps/man/files/man-1.6g-xz.patch @@ -0,0 +1,53 @@ +add support for xz + +http://bugs.gentoo.org/302380 + +--- a/src/makewhatis.sh ++++ b/src/makewhatis.sh +@@ -230,7 +230,7 @@ + find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK ' + + function readline() { +- if (use_zcat || use_bzcat || use_lzcat) { ++ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { + result = (pipe_cmd | getline); + if (result < 0) { + print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; +@@ -245,7 +245,7 @@ + } + + function closeline() { +- if (use_zcat || use_bzcat || use_lzcat) { ++ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { + return close(pipe_cmd); + } else { + return close(filename); +@@ -266,7 +266,9 @@ + use_bzcat = match(filename,"\\.bz2"); + if(!use_bzcat) + use_lzcat = match(filename,"\\.lzma"); +- if (use_zcat || use_bzcat || use_lzcat ) { ++ if(!use_lzcat) ++ use_xzcat = match(filename,"\\.xz"); ++ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { + filename_no_gz = substr(filename, 0, RSTART - 1); + } else { + filename_no_gz = filename; +@@ -279,13 +281,15 @@ + actual_section = section; + } + sub(/\..*/, "", progname); +- if (use_zcat || use_bzcat || use_lzcat) { ++ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) { + if (use_zcat) { + pipe_cmd = "zcat \"" filename "\""; + } else if (use_bzcat) { + pipe_cmd = "bzcat \"" filename "\""; +- } else { ++ } else if (use_lzcat) { + pipe_cmd = "lzcat \"" filename "\""; ++ } else { ++ pipe_cmd = "xzcat \"" filename "\""; + } + # try to avoid suspicious stuff + if (filename ~ /[;&|`$(]/) { diff --git a/sys-apps/man/man-1.6g-r1.ebuild b/sys-apps/man/man-1.6g-r1.ebuild new file mode 100644 index 000000000000..9923c81c5779 --- /dev/null +++ b/sys-apps/man/man-1.6g-r1.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs user + +DESCRIPTION="Standard commands to read man pages" +HOMEPAGE="http://primates.ximian.com/~flucifredi/man/" +SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="+lzma nls selinux" + +DEPEND="nls? ( sys-devel/gettext )" +RDEPEND="|| ( >=sys-apps/groff-1.19.2-r1 app-doc/heirloom-doctools ) + !sys-apps/man-db + !/dev/null) + for f in ${files} ; do + [[ ${f} == */etc/cron.daily/makewhatis ]] && continue + [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \ + && rm -f "${f}" + done + files=$(ls "${ROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null) + if [[ ${files/$'\n'} != ${files} ]] ; then + ewarn "You have multiple makewhatis cron files installed." + ewarn "You might want to delete all but one of these:" + ewarn ${files} + fi + + if has_version app-doc/heirloom-doctools; then + ewarn "Please note that the /etc/man.conf file installed will not" + ewarn "work with heirloom's nroff by default (yet)." + ewarn "" + ewarn "Check app-doc/heirloom-doctools elog messages for the proper" + ewarn "configuration." + fi +} diff --git a/sys-apps/man/man-1.6g.ebuild b/sys-apps/man/man-1.6g.ebuild new file mode 100644 index 000000000000..d36a02632483 --- /dev/null +++ b/sys-apps/man/man-1.6g.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs user + +DESCRIPTION="Standard commands to read man pages" +HOMEPAGE="http://primates.ximian.com/~flucifredi/man/" +SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="+lzma nls selinux" + +DEPEND="nls? ( sys-devel/gettext )" +RDEPEND="|| ( >=sys-apps/groff-1.19.2-r1 app-doc/heirloom-doctools ) + !sys-apps/man-db + !/dev/null) + for f in ${files} ; do + [[ ${f} == */etc/cron.daily/makewhatis ]] && continue + [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \ + && rm -f "${f}" + done + files=$(ls "${ROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null) + if [[ ${files/$'\n'} != ${files} ]] ; then + ewarn "You have multiple makewhatis cron files installed." + ewarn "You might want to delete all but one of these:" + ewarn ${files} + fi + + if has_version app-doc/heirloom-doctools; then + ewarn "Please note that the /etc/man.conf file installed will not" + ewarn "work with heirloom's nroff by default (yet)." + ewarn "" + ewarn "Check app-doc/heirloom-doctools elog messages for the proper" + ewarn "configuration." + fi +} diff --git a/sys-apps/man/metadata.xml b/sys-apps/man/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/man/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/mawk/Manifest b/sys-apps/mawk/Manifest new file mode 100644 index 000000000000..f0fe3d063ca8 --- /dev/null +++ b/sys-apps/mawk/Manifest @@ -0,0 +1,5 @@ +DIST mawk-1.3.4-20100625.tgz 304970 SHA256 a8837a66ecee746edc149d7c38686209656c455290a1805c5e05ebad3184d2c9 SHA512 06623b8e647dabffd34d6e655cee72fb8a70eaf70b5cd8165d687c6913fecd868c584306d9b37666e36a473fb6c8dd7c211cdf89fffe1c838eaa826e2865de69 WHIRLPOOL bc375ddfd423fe45a0a89ac5b16a4dbf04ef360cdacc9ca9aa33cceb92e6e9ebfc8447604bf396c5c89529a42555b4d7d55474740a4117717224f983604d1b20 +DIST mawk-1.3.4-20131226.tgz 355479 SHA256 a89956b60c31dcd626271d1c4f17145fe738daa6e7d4b231320ee26d03a946fc SHA512 1e9bce2c738289283b0ed56ed4706eeb42da8951fd2c8d13d8858af15c41bd2bd18d73f0a1de997086089fbfb557f5ff3b033a27acbd11751106fe9f37ed7c5d WHIRLPOOL 94cde6dd9bb3f64bb3a173fbf9673628c1b841ea16fd395049dd6b778a6fe74fc6f5887025f297185843c10dff2820d312b592cf16e91ae79ff729e2902e2fb1 +DIST mawk-1.3.4-20140914.tgz 464855 SHA256 fb8fb2b7a4906c49d5262344835ab96c9e1ca82ad532c15fb81c51a5a77e0e78 SHA512 4083163ea7f7a9507174de292cec3944c44e1c40cca1437e6e6c2a8728e947e91da8b3f03298c52f897ae7617fa1d040e194588e4beb1deae1e7510caab968df WHIRLPOOL 0024fb066e72e03064d06574a60dc552a876f01b0be103137e1cc783c7e56b14250828ffe85904de780012fc8a7255dce2cebdc31b595ef3c921730e3b6e7e3e +DIST mawk-1.3.4-20141027.tgz 464939 SHA256 a88f50c1a0800ae6d2cedb0672b15bd32cc57e482715ca7c1471fb398e89767a SHA512 6a16f34f8749c42ed4b008e1229718673309041c926ce96cf1739b191af39f5ca6713ca0cfc70bbd86d6f17630c6ca3d5f04c84bede94d2d9469fdac40f38eab WHIRLPOOL 2fc7efd3509e7397abc6b114f97e6fbfb4b543daa98b34cdfa032c98d2908e53797f8d0ea8411b8d824d33ef673f524846c9c80eeb99ff1ea5aea5560b9d7da1 +DIST mawk-1.3.4-20141206.tgz 465025 SHA256 efa092ec3ea5dfd54571e8ba3b0327073f1fa51b8efa0953c2cadd87a87389c8 SHA512 636c863d759c8001fd51dea5fd1bfabed193976e9d7e7d614848bf8b5b4714b16325833099abf33c0a94c9cd746608da10e6e7b1199cd2480cab419f89813814 WHIRLPOOL a10a6517092fe97f0ae23766b055c20b73b26d5fcdf18c50e8a9f571be5d694b01a039d3ce6e7ca6294477d013b6a70ae24f5f48426e827a7673e8282a0bf91b diff --git a/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch b/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch new file mode 100644 index 000000000000..104bb46d2457 --- /dev/null +++ b/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch @@ -0,0 +1,13 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -104,8 +104,9 @@ + -@rm -f $@ + notangle -R'"array.h"' array.w | $(NOIDENT) | cpif array.h + ++BUILD_CC ?= gcc + scancode.c : $(srcdir)/makescan.c scancode.h nstd.h config.h +- @ECHO_LD@$(CC) $(CFLAGS) $(CPPFLAGS) -o makescan.exe $(srcdir)/makescan.c ++ @ECHO_LD@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o makescan.exe $(srcdir)/makescan.c + rm -f scancode.c + ./makescan.exe > scancode.c + rm makescan.exe diff --git a/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild b/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild new file mode 100644 index 000000000000..061566eae878 --- /dev/null +++ b/sys-apps/mawk/mawk-1.3.4_p20100625.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit toolchain-funcs eutils + +MY_P=${P/_p/-} +DESCRIPTION="an (often faster than gawk) awk-interpreter" +HOMEPAGE="http://invisible-island.net/mawk/mawk.html" +SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~hppa ia64 ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.3.4-cross-compile.patch + tc-export BUILD_CC +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ACKNOWLEDGMENT CHANGES INSTALL README + + exeinto /usr/share/doc/${PF}/examples + doexe examples/* # avoid compression of dodoc + make executable +} diff --git a/sys-apps/mawk/mawk-1.3.4_p20131226.ebuild b/sys-apps/mawk/mawk-1.3.4_p20131226.ebuild new file mode 100644 index 000000000000..bba32451c649 --- /dev/null +++ b/sys-apps/mawk/mawk-1.3.4_p20131226.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs eutils + +MY_P=${P/_p/-} +DESCRIPTION="an (often faster than gawk) awk-interpreter" +HOMEPAGE="http://invisible-island.net/mawk/mawk.html" +SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +RDEPEND="app-eselect/eselect-awk" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( ACKNOWLEDGMENT CHANGES README ) + +src_prepare() { + tc-export BUILD_CC +} + +src_install() { + default + + exeinto /usr/share/doc/${PF}/examples + doexe examples/* + docompress -x /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +} diff --git a/sys-apps/mawk/mawk-1.3.4_p20140914.ebuild b/sys-apps/mawk/mawk-1.3.4_p20140914.ebuild new file mode 100644 index 000000000000..99b3cb942f19 --- /dev/null +++ b/sys-apps/mawk/mawk-1.3.4_p20140914.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs eutils + +MY_P=${P/_p/-} +DESCRIPTION="an (often faster than gawk) awk-interpreter" +HOMEPAGE="http://invisible-island.net/mawk/mawk.html" +SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +RDEPEND="app-eselect/eselect-awk" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( ACKNOWLEDGMENT CHANGES README ) + +src_prepare() { + tc-export BUILD_CC +} + +src_install() { + default + + exeinto /usr/share/doc/${PF}/examples + doexe examples/* + docompress -x /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +} diff --git a/sys-apps/mawk/mawk-1.3.4_p20141027.ebuild b/sys-apps/mawk/mawk-1.3.4_p20141027.ebuild new file mode 100644 index 000000000000..99b3cb942f19 --- /dev/null +++ b/sys-apps/mawk/mawk-1.3.4_p20141027.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs eutils + +MY_P=${P/_p/-} +DESCRIPTION="an (often faster than gawk) awk-interpreter" +HOMEPAGE="http://invisible-island.net/mawk/mawk.html" +SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +RDEPEND="app-eselect/eselect-awk" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( ACKNOWLEDGMENT CHANGES README ) + +src_prepare() { + tc-export BUILD_CC +} + +src_install() { + default + + exeinto /usr/share/doc/${PF}/examples + doexe examples/* + docompress -x /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +} diff --git a/sys-apps/mawk/mawk-1.3.4_p20141206.ebuild b/sys-apps/mawk/mawk-1.3.4_p20141206.ebuild new file mode 100644 index 000000000000..720265d75c48 --- /dev/null +++ b/sys-apps/mawk/mawk-1.3.4_p20141206.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit toolchain-funcs + +MY_P=${P/_p/-} +DESCRIPTION="an (often faster than gawk) awk-interpreter" +HOMEPAGE="http://invisible-island.net/mawk/mawk.html" +SRC_URI="ftp://invisible-island.net/mawk/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" + +RDEPEND="app-eselect/eselect-awk" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( ACKNOWLEDGMENT CHANGES README ) + +src_prepare() { + tc-export BUILD_CC +} + +src_install() { + default + + exeinto /usr/share/doc/${PF}/examples + doexe examples/* + docompress -x /usr/share/doc/${PF}/examples +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +} diff --git a/sys-apps/mawk/metadata.xml b/sys-apps/mawk/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/mawk/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/memtest86+/Manifest b/sys-apps/memtest86+/Manifest new file mode 100644 index 000000000000..ec4eb2992499 --- /dev/null +++ b/sys-apps/memtest86+/Manifest @@ -0,0 +1,4 @@ +DIST memtest86+-2.01.tar.gz 165984 SHA256 35ad452f4fd12f07756abccccf1bce70d42596c2c5e9c29247ffc8e0b76bd1ae +DIST memtest86+-4.00.tar.gz 270327 SHA256 6ec42f549da81b715bfc5c55b93b74774fb5c35f7578c7eecebab3ca37866ca4 +DIST memtest86+-4.20.tar.gz 206044 SHA256 5630ce978d0e6b671891df4253fc5c54659764d0cdfc7515ac0df3d8dd9e8737 SHA512 2213a64cd3036f840dd816dd49b62b0f082e1fbfe64e02f52370f04e39857f042dc8bc0044c1a88ba678e72c1eb8629aa706fabfd3c052e41c29c073f4e8c441 WHIRLPOOL 16b2f0a447516b24e4e29cf526ffc2ba03406105473c1d0cff44d737473b81db0482131385f2a39a5d202b3ccd52300f2c7109adf1b64b8bdb0a5244cb32d2cb +DIST memtest86+-5.01.tar.gz 214877 SHA256 142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039 SHA512 d872db35ef733ec8f49094251f2bf6b98cc80eb06d04044be3aecf28d534f24ba293a08b9979b112dbd07cf27368148939a33a32c7010fc9581a3a5b150c94d7 WHIRLPOOL c8e240c8420990c93156fcd407a4b00d350392bbf8e974398b4d51fa219d33012b4e0d60f58cb2dff59c06e36e322467031bc0231d77d4e773d97e30939d3c8f diff --git a/sys-apps/memtest86+/files/39_memtest86+ b/sys-apps/memtest86+/files/39_memtest86+ new file mode 100644 index 000000000000..14f27a276888 --- /dev/null +++ b/sys-apps/memtest86+/files/39_memtest86+ @@ -0,0 +1,33 @@ +#!/bin/sh + +. /usr/share/grub/grub-mkconfig_lib + +memtest=/boot/memtest86plus/memtest + +if [ -f "${memtest}" ]; then + device="$("${grub_probe}" --target=device "${memtest}")" + path="$(make_system_path_relative_to_its_root "${memtest}")" + cat < +# - original version +# (c) 2004 Yann Dirson +# - added parameters +# - ability to work on a floppy image instead of a real floppy +# - adapted patches from Martin Koeppe , to use +# mtools and install full grub + +# TODO: +# - add a flag to generate a default boot entry for (hd0) + +set -e + +MEMTEST=/boot/memtest86plus/memtest.bin +FLOPPYIMAGE=/dev/fd0 +GRUBBIN=/sbin/grub +GRUBLIB=/lib/grub +MFORMAT=/usr/bin/mformat + +arch=$(uname -m) + +case "$arch" in + i386|i486|i686) GRUBARCH=i386-pc;; + x86_64) GRUBARCH=x86_64-pc;; + *) error "Unsupported architecture: $arch";; +esac + +error() +{ + echo >&2 "$0: $*" + exit 1 +} + +needsarg() +{ + [ $1 -ge 2 ] || error "syntax error" +} + +[ -d $GRUBLIB ] || error "Can't find $GRUBLIB - did you install a recent grub package (0.95+cvs20040624 or later) ?" +[ -x $MFORMAT ] || error "Can't find mformat - did you install the mtools package ?" + +while [ $# -gt 0 ] +do + case "$1" in + --help) echo "$0 [--memtest $MEMTEST] [--floppyimage $FLOPPYIMAGE]"; exit 0 ;; + --memtest) needsarg $#; MEMTEST="$2"; shift ;; + --floppyimage) needsarg $#; FLOPPYIMAGE="$2"; shift ;; + *) error "syntax error" ;; + esac + shift +done + +MOUNTPOINT=$(mktemp -d) + +if [ -b "$FLOPPYIMAGE" ] +then + FINALDEV="$FLOPPYIMAGE" + FLOPPYIMAGE="$(mktemp)" +else + FINALDEV="" +fi + +echo "* Creating msdos file system" +echo +if [ ! -s "$FLOPPYIMAGE" ]; then + # unless a non-empty image exists, create a blank one first + dd bs=1024 count=1440 if=/dev/zero of="$FLOPPYIMAGE" +fi +# FIXME: "-f 1440" should probably be dropped +mformat -i $FLOPPYIMAGE -f 1440 :: + +mmd -i $FLOPPYIMAGE ::/boot +mmd -i $FLOPPYIMAGE ::/boot/grub + +echo +echo "* Installing GRUB files" +mcopy -v -i "$FLOPPYIMAGE" - ::/boot/grub/menu.lst < +.B ] [ \-\-floppyimage +.I +.B ] + +.SH DESCRIPTION +.B make-memtest86+-boot-floppy +can create a memtest86+ boot floppy using GRUB as the bootloader. + +.SH OPTIONS + +.IP "\-\-memtest " +Path to the memtest86+-image, default is /boot/memtest86+.bin. + +.IP "\-\-floppyimage " +File or device where the boot-image should be written to, default is /dev/fd0. + +.IP "\-\-help" +Display a short message about the options of the tool. + +.SH AUTHOR +This man-page has been written by Thomas Schmidt +.PP +Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 any +later version published by the Free Software Foundation. +.PP +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common\-licenses/GPL. diff --git a/sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch b/sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch new file mode 100644 index 000000000000..5a9e06dc06d7 --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-1.70-gnu_hash.patch @@ -0,0 +1,11 @@ +diff -Naurp memtest86+-1.70-orig/memtest_shared.lds memtest86+-1.70/memtest_shared.lds +--- memtest86+-1.70-orig/memtest_shared.lds 2007-01-27 13:34:16.000000000 +0100 ++++ memtest86+-1.70/memtest_shared.lds 2007-01-27 13:41:30.000000000 +0100 +@@ -18,6 +18,7 @@ SECTIONS { + .dynsym : { *(.dynsym) } + .dynstr : { *(.dynstr) } + .hash : { *(.hash) } ++ .gnu.hash : { *(.gnu.hash) } + .dynamic : { *(.dynamic) } + + .rel.text : { *(.rel.text .rel.text.*) } diff --git a/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch new file mode 100644 index 000000000000..3b07731daadd --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-2.01-hardcoded_cc.patch @@ -0,0 +1,30 @@ +diff -Naurp memtest86+-2.01-orig/Makefile memtest86+-2.01/Makefile +--- memtest86+-2.01-orig/Makefile 2008-03-11 21:04:28.000000000 +0100 ++++ memtest86+-2.01/Makefile 2008-03-11 21:05:25.000000000 +0100 +@@ -8,10 +8,9 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc +- +-CFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC ++CPPFLAGS=-m32 ++CFLAGS=-Wall -m32 -march=i486 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector ++ASFLAGS=-32 + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o linuxbios.o memsize.o pci.o controller.o random.o extra.o \ +@@ -47,10 +46,10 @@ memtest.bin: memtest_shared.bin bootsect + memtest_shared.bin -o memtest.bin + + reloc.o: reloc.c +- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c ++ $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie -nopie test.c + + clean: + rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin diff --git a/sys-apps/memtest86+/files/memtest86+-4.00-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-4.00-hardcoded_cc.patch new file mode 100644 index 000000000000..f2950b64e807 --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-4.00-hardcoded_cc.patch @@ -0,0 +1,30 @@ +diff -Nuar --exclude '*.orig' --exclude '*rej' --exclude '*~' memtest86+-4.00.orig/Makefile memtest86+-4.00/Makefile +--- memtest86+-4.00.orig/Makefile 2009-09-21 17:35:46.000000000 -0700 ++++ memtest86+-4.00/Makefile 2009-09-25 09:04:23.000000000 -0700 +@@ -8,10 +8,9 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc +- +-CFLAGS= -Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC ++CPPFLAGS=-m32 ++CFLAGS=-Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector ++ASFLAGS=-32 + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o linuxbios.o memsize.o pci.o controller.o random.o spd.o \ +@@ -47,10 +46,10 @@ + memtest_shared.bin -o memtest.bin + + reloc.o: reloc.c +- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c ++ $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie -nopie test.c + + clean: + rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin diff --git a/sys-apps/memtest86+/files/memtest86+-4.20-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-4.20-hardcoded_cc.patch new file mode 100644 index 000000000000..2eb750c8dd93 --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-4.20-hardcoded_cc.patch @@ -0,0 +1,30 @@ +diff -Naurp memtest86+-4.10-orig/Makefile memtest86+-4.10/Makefile +--- memtest86+-4.10-orig/Makefile 2010-06-24 00:27:22.864634431 +0200 ++++ memtest86+-4.10/Makefile 2010-06-24 00:28:42.402478590 +0200 +@@ -8,10 +8,9 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc +- +-CFLAGS= -Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector ++CFLAGS=-Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector ++CPPFLAGS=-m32 ++ASFLAGS=-32 + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o linuxbios.o memsize.o pci.o controller.o random.o spd.o \ +@@ -47,10 +46,10 @@ memtest.bin: memtest_shared.bin bootsect + memtest_shared.bin -o memtest.bin + + reloc.o: reloc.c +- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c ++ $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie test.c + + clean: + rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch b/sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch new file mode 100644 index 000000000000..ff9b15a9e4e1 --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-5.01-gcc-473.patch @@ -0,0 +1,54 @@ +diff -Narup memtest86+-5.01-orig/controller.c memtest86+-5.01/controller.c +--- memtest86+-5.01-orig/controller.c 2013-08-09 22:01:58.000000000 -0400 ++++ memtest86+-5.01/controller.c 2014-06-22 11:01:17.347923472 -0400 +@@ -292,7 +292,7 @@ static void setup_nhm(void) + + /* First, locate the PCI bus where the MCH is located */ + +- for(i = 0; i < sizeof(possible_nhm_bus); i++) { ++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); + vid &= 0xFFFF; +@@ -327,7 +327,7 @@ static void setup_nhm32(void) + ctrl.mode = ECC_NONE; + + /* First, locate the PCI bus where the MCH is located */ +- for(i = 0; i < sizeof(possible_nhm_bus); i++) { ++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); + vid &= 0xFFFF; +diff -Narup memtest86+-5.01-orig/io.h memtest86+-5.01/io.h +--- memtest86+-5.01-orig/io.h 2013-08-09 22:01:58.000000000 -0400 ++++ memtest86+-5.01/io.h 2014-06-22 11:00:19.279251873 -0400 +@@ -31,7 +31,7 @@ + */ + + #define __OUT1(s,x) \ +-extern inline void __out##s(unsigned x value, unsigned short port) { ++static inline void __out##s(unsigned x value, unsigned short port) { + + #define __OUT2(s,s1,s2) \ + __asm__ __volatile__ ("out" #s " %" s1 "0,%" s2 "1" +@@ -43,7 +43,7 @@ __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" + __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; } + + #define __IN1(s) \ +-extern inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v; ++static inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v; + + #define __IN2(s,s1,s2) \ + __asm__ __volatile__ ("in" #s " %" s2 "1,%" s1 "0" +diff -Narup memtest86+-5.01-orig/Makefile memtest86+-5.01/Makefile +--- memtest86+-5.01-orig/Makefile 2013-08-09 22:01:58.000000000 -0400 ++++ memtest86+-5.01/Makefile 2014-06-22 10:59:27.463573842 -0400 +@@ -12,7 +12,7 @@ FDISK=/dev/fd0 + AS=as -32 + CC=gcc + +-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ ++CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \ + -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch b/sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch new file mode 100644 index 000000000000..f140a7fc6605 --- /dev/null +++ b/sys-apps/memtest86+/files/memtest86+-5.01-hardcoded_cc.patch @@ -0,0 +1,16 @@ +--- Makefile.orig 2015-02-01 01:08:33.000000000 +0300 ++++ Makefile 2015-02-01 01:10:17.624757244 +0300 +@@ -9,11 +9,10 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc +- + CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \ + -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector ++CPPFLAGS= -m32 ++ASFLAGS= -32 + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o cpuid.o linuxbios.o pci.o memsize.o spd.o error.o dmi.o controller.o \ diff --git a/sys-apps/memtest86+/memtest86+-2.01.ebuild b/sys-apps/memtest86+/memtest86+-2.01.ebuild new file mode 100644 index 000000000000..747415f50430 --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-2.01.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit mount-boot eutils + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="serial" +RESTRICT="test" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-2.01-hardcoded_cc.patch + epatch "${FILESDIR}"/${PN}-1.70-gnu_hash.patch + + if use serial ; then + sed -e 's/#define SERIAL_CONSOLE_DEFAULT 0/#define SERIAL_CONSOLE_DEFAULT 1/' -i config.h + fi +} + +src_compile() { + emake || die +} + +src_install() { + insinto /boot/memtest86plus + doins memtest.bin || die + dodoc README README.build-process +} + +pkg_postinst() { + einfo + einfo "memtest.bin has been installed in /boot/memtest86plus/" + einfo "You may wish to update your bootloader configs" + einfo "by adding these lines:" + + einfo " - For grub: (replace '?' with correct numbers for your boot partition)" + einfo " > title=Memtest86Plus" + einfo " > root (hd?,?)" + einfo " > kernel /boot/memtest86plus/memtest.bin" + + einfo " - For lilo:" + einfo " > image = /boot/memtest86plus/memtest.bin" + einfo " > label = Memtest86Plus" + einfo +} diff --git a/sys-apps/memtest86+/memtest86+-4.00.ebuild b/sys-apps/memtest86+/memtest86+-4.00.ebuild new file mode 100644 index 000000000000..17412a02cbab --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-4.00.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +QA_PRESTRIPPED=/boot/memtest86plus/memtest + +inherit mount-boot eutils + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="floppy serial" +RESTRICT="test" + +RDEPEND="floppy? ( >=sys-boot/grub-0.95 sys-fs/mtools )" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-4.00-hardcoded_cc.patch + + # Merged upstream + #epatch "${FILESDIR}"/${PN}-1.70-gnu_hash.patch + + sed -i -e's/$(LD) -s /$(LD) /' Makefile + sed -i -e's,0x10000,0x100000,' memtest.lds + + if use serial ; then + sed -i -e 's/#define SERIAL_CONSOLE_DEFAULT 0/#define SERIAL_CONSOLE_DEFAULT 1/' config.h + fi +} + +src_compile() { + emake || die +} + +src_install() { + insinto /boot/memtest86plus + newins memtest.bin memtest || die + newins memtest memtest.netbsd || die + dosym memtest /boot/memtest86plus/memtest.bin + dodoc README README.build-process + + if use floppy ; then + dobin "${FILESDIR}"/make-memtest86+-boot-floppy + doman "${FILESDIR}"/make-memtest86+-boot-floppy.1 + fi +} + +pkg_postinst() { + mount-boot_pkg_postinst + einfo + einfo "memtest has been installed in /boot/memtest86plus/" + einfo "You may wish to update your bootloader configs" + einfo "by adding these lines:" + einfo " - For grub: (replace '?' with correct numbers for your boot partition)" + einfo " > title=Memtest86Plus" + einfo " > root (hd?,?)" + einfo " > kernel /boot/memtest86plus/memtest" + einfo " or try this if you get grub error 28:" + einfo " > title=Memtest86Plus" + einfo " > root (hd?,?)" + einfo " > kernel --type=netbsd /boot/memtest86plus/memtest.netbsd" + einfo + einfo " - For lilo:" + einfo " > image = /boot/memtest86plus/memtest" + einfo " > label = Memtest86Plus" + einfo +} diff --git a/sys-apps/memtest86+/memtest86+-4.20-r1.ebuild b/sys-apps/memtest86+/memtest86+-4.20-r1.ebuild new file mode 100644 index 000000000000..bda1e1aae492 --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-4.20-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit mount-boot eutils toolchain-funcs + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="floppy serial" + +BOOTDIR=/boot/memtest86plus +QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd" + +RDEPEND="floppy? ( >=sys-boot/grub-0.95:0 sys-fs/mtools )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.20-hardcoded_cc.patch + + sed -i -e 's,0x10000,0x100000,' memtest.lds || die + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi + + cat - > "${T}"/39_${PN} < title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest" + elog " > label = ${PN}" + elog +} diff --git a/sys-apps/memtest86+/memtest86+-4.20-r2.ebuild b/sys-apps/memtest86+/memtest86+-4.20-r2.ebuild new file mode 100644 index 000000000000..06dac9cca1e0 --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-4.20-r2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit mount-boot eutils toolchain-funcs + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="floppy serial" + +BOOTDIR=/boot/memtest86plus +QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd" + +RDEPEND="floppy? ( >=sys-boot/grub-0.95:0 sys-fs/mtools )" +DEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.20-hardcoded_cc.patch + + sed -i -e 's,0x10000,0x100000,' memtest.lds || die + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi + + tc-export AS CC LD +} + +src_test() { :; } + +src_install() { + insinto ${BOOTDIR} + newins memtest.bin memtest + newins memtest memtest.netbsd + dosym memtest ${BOOTDIR}/memtest.bin + + exeinto /etc/grub.d + doexe "${FILESDIR}"/39_memtest86+ + + dodoc README README.build-process FAQ changelog + + if use floppy ; then + dobin "${FILESDIR}"/make-memtest86+-boot-floppy + doman "${FILESDIR}"/make-memtest86+-boot-floppy.1 + fi +} + +pkg_postinst() { + mount-boot_pkg_postinst + elog + elog "memtest has been installed in ${BOOTDIR}/" + elog "You may wish to update your bootloader configs" + elog "by adding these lines:" + elog " - For grub2 just run grub-mkconfig, a configuration file is installed" + elog " as /etc/grub.d/39_${PN}" + elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)" + elog " > title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest" + elog " > label = ${PN}" + elog +} diff --git a/sys-apps/memtest86+/memtest86+-5.01-r1.ebuild b/sys-apps/memtest86+/memtest86+-5.01-r1.ebuild new file mode 100644 index 000000000000..1232c12688c4 --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-5.01-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit mount-boot eutils toolchain-funcs + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="floppy serial" + +BOOTDIR=/boot/memtest86plus +QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd" +QA_FLAGS_IGNORED="${BOOTDIR}/memtest.netbsd" + +RDEPEND="floppy? ( >=sys-boot/grub-0.95:0 sys-fs/mtools )" +DEPEND="" + +src_prepare() { + sed -i -e 's,0x10000,0x100000,' memtest.lds || die + sed -e "s/scp memtest.bin root@192.168.0.12:\/srv\/tftp\/mt86plus//g" -i Makefile + epatch "${FILESDIR}/${P}-gcc-473.patch" \ + "${FILESDIR}/${P}-hardcoded_cc.patch" + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi + + tc-export AS CC LD +} + +src_test() { :; } + +src_install() { + insinto ${BOOTDIR} + newins memtest.bin memtest + newins memtest memtest.netbsd + dosym memtest ${BOOTDIR}/memtest.bin + + exeinto /etc/grub.d + doexe "${FILESDIR}"/39_memtest86+ + + dodoc README README.build-process FAQ changelog + + if use floppy ; then + dobin "${FILESDIR}"/make-memtest86+-boot-floppy + doman "${FILESDIR}"/make-memtest86+-boot-floppy.1 + fi +} + +pkg_postinst() { + mount-boot_pkg_postinst + elog + elog "memtest has been installed in ${BOOTDIR}/" + elog "You may wish to update your bootloader configs" + elog "by adding these lines:" + elog " - For grub2 just run grub-mkconfig, a configuration file is installed" + elog " as /etc/grub.d/39_${PN}" + elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)" + elog " > title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest" + elog " > label = ${PN}" + elog +} diff --git a/sys-apps/memtest86+/memtest86+-5.01.ebuild b/sys-apps/memtest86+/memtest86+-5.01.ebuild new file mode 100644 index 000000000000..88def26d997e --- /dev/null +++ b/sys-apps/memtest86+/memtest86+-5.01.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit mount-boot eutils toolchain-funcs + +DESCRIPTION="Memory tester based on memtest86" +HOMEPAGE="http://www.memtest.org/" +SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="floppy serial" + +BOOTDIR=/boot/memtest86plus +QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd" +QA_FLAGS_IGNORED="${BOOTDIR}/memtest.netbsd" + +RDEPEND="floppy? ( >=sys-boot/grub-0.95:0 sys-fs/mtools )" +DEPEND="" + +src_prepare() { + sed -i -e 's,0x10000,0x100000,' memtest.lds || die + sed -e "s/scp memtest.bin root@192.168.0.12:\/srv\/tftp\/mt86plus//g" -i Makefile + epatch "${FILESDIR}/${P}-gcc-473.patch" \ + "${FILESDIR}/${P}-hardcoded_cc.patch" + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi + + cat - > "${T}"/39_${PN} < title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest" + elog " > label = ${PN}" + elog +} diff --git a/sys-apps/memtest86+/metadata.xml b/sys-apps/memtest86+/metadata.xml new file mode 100644 index 000000000000..d7975494757f --- /dev/null +++ b/sys-apps/memtest86+/metadata.xml @@ -0,0 +1,9 @@ + + + +base-system + + Compile with serial console support + Install a script to create floppy disks containing memtest86+ binaries. + + diff --git a/sys-apps/memtest86/Manifest b/sys-apps/memtest86/Manifest new file mode 100644 index 000000000000..d00c7355f805 --- /dev/null +++ b/sys-apps/memtest86/Manifest @@ -0,0 +1,3 @@ +DIST memtest86-3.3.tar.gz 137922 SHA256 f4580d15636b18885709c8aca06759a512911b2efa76d28de2389165dfb9548c +DIST memtest86-4.3.6-src.tar.gz 125475 SHA256 bbe2e2d13cd9f8a39232bd4f0fa70e01e1614515aeae7fac08755628a8d77361 SHA512 42f4478deca9550692ca36d704037b7eb85ca979a6d0f3f0ee3ed88cdfc7b10652340fc986135c3bf4403b6b6f5355f838a3cb1030758f68b2327bb1ff7030f0 WHIRLPOOL 166415dd84b8cc23958255058277d8a0ed67e351e506dfad6a119d207d436b72d7deff20db116b89bf2c82400e9a22b77554f20344cd1a838b5933671f95a53d +DIST memtest86-4.3.7-src.tar.gz 125583 SHA256 784bf81107a8f8dbf06eadf5d8cc9f57a3249cade67c0635fea8b0e8691a96e7 SHA512 f1cee9085e157b399869222310c65e8094c028565d2b21fe40fd485505b988d20cff49b2c56559181ac114c39089b60c6eacb9aa5d7652df78b3f8e7530cb644 WHIRLPOOL 55283adb62b47f95e689e61e3bebdb65c51712b2d54e4cae0b012ffc4bb11f68309ad2a6ed31c911586e4e5ea5261d117fa827265935ce6e4f7341c58e5dc833 diff --git a/sys-apps/memtest86/files/39_memtest86 b/sys-apps/memtest86/files/39_memtest86 new file mode 100644 index 000000000000..a736bce6a316 --- /dev/null +++ b/sys-apps/memtest86/files/39_memtest86 @@ -0,0 +1,18 @@ +#!/bin/sh + +. /usr/share/grub/grub-mkconfig_lib + +memtest=/boot/memtest86/memtest + +if [ -f "${memtest}" ]; then + device="$("${grub_probe}" --target=device "${memtest}")" + path="$(make_system_path_relative_to_its_root "${memtest}")" + cat <pass_ticks=0, i=0; ipass_ticks=0, i=0; itestsel >= 0) { diff --git a/sys-apps/memtest86/files/memtest86-3.3-gnu-hash.patch b/sys-apps/memtest86/files/memtest86-3.3-gnu-hash.patch new file mode 100644 index 000000000000..397b2c8bbee7 --- /dev/null +++ b/sys-apps/memtest86/files/memtest86-3.3-gnu-hash.patch @@ -0,0 +1,12 @@ +sent upstream already ... + +--- memtest_shared.lds ++++ memtest_shared.lds +@@ -19,6 +19,7 @@ + .dynsym : { *(.dynsym) } + .dynstr : { *(.dynstr) } + .hash : { *(.hash) } ++ .gnu.hash : { *(.gnu.hash) } + .dynamic : { *(.dynamic) } + + .rel.text : { *(.rel.text .rel.text.*) } diff --git a/sys-apps/memtest86/files/memtest86-4.0-build.patch b/sys-apps/memtest86/files/memtest86-4.0-build.patch new file mode 100644 index 000000000000..7dfd6c2f6aae --- /dev/null +++ b/sys-apps/memtest86/files/memtest86-4.0-build.patch @@ -0,0 +1,41 @@ +--- a/Makefile ++++ b/Makefile +@@ -8,11 +8,9 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc ++ASFLAGS=-32 + +-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ +- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector ++CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector $(SMP_FL) + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o linuxbios.o memsize.o error.o smp.o cpuid.o vmem.o random.o +@@ -23,7 +21,7 @@ + # symbols and then link it dynamically so I have full + # relocation information + memtest_shared: $(OBJS) memtest_shared.lds Makefile +- $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds \ ++ $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds -m elf_i386 \ + -o $@ $(OBJS) && \ + $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) + +@@ -50,7 +48,7 @@ + $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c $(CFLAGS:-fPIC=) -o $@ $< + + random.o: random.c + $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c +@@ -72,3 +70,6 @@ + dos: all + cat mt86+_loader memtest.bin > memtest.exe + ++head.o: head.s ++bootsect.o: bootsect.s ++setup.o: setup.s diff --git a/sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch b/sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch new file mode 100644 index 000000000000..adbbe6f86dc7 --- /dev/null +++ b/sys-apps/memtest86/files/memtest86-4.3.3-build-nopie.patch @@ -0,0 +1,47 @@ +diff -Naur src.orig/Makefile src/Makefile +--- src.orig/Makefile 2013-10-10 16:52:14.292140058 -0400 ++++ src/Makefile 2013-10-10 16:51:37.431138380 -0400 +@@ -8,11 +8,9 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc ++ASFLAGS=-32 + +-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ +- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector ++CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -fno-pie $(SMP_FL) + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o memsize.o error.o smp.o cpuid.o vmem.o random.o +@@ -23,7 +21,7 @@ + # symbols and then link it dynamically so I have full + # relocation information + memtest_shared: $(OBJS) memtest_shared.lds Makefile +- $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds \ ++ $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds -m elf_i386 \ + -o $@ $(OBJS) && \ + $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) + +@@ -50,10 +48,10 @@ + $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c $(CFLAGS:-fPIC=) -o $@ $< + + random.o: random.c +- $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c ++ $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie random.c + + clean: + rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \ +@@ -72,3 +70,7 @@ + dos: all + cat mt86+_loader memtest.bin > memtest.exe + ++head.o: head.s ++bootsect.o: bootsect.s ++setup.o: setup.s ++ diff --git a/sys-apps/memtest86/files/memtest86-4.3.3-build.patch b/sys-apps/memtest86/files/memtest86-4.3.3-build.patch new file mode 100644 index 000000000000..2c5906ad5cad --- /dev/null +++ b/sys-apps/memtest86/files/memtest86-4.3.3-build.patch @@ -0,0 +1,43 @@ +diff -uNr src.orig/Makefile src/Makefile +--- src.orig/Makefile 2013-10-10 19:35:27.354179645 +0100 ++++ src/Makefile 2013-10-10 19:38:07.344184547 +0100 +@@ -8,11 +8,9 @@ + # + FDISK=/dev/fd0 + +-AS=as -32 +-CC=gcc ++ASFLAGS=-32 + +-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \ +- -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector ++CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector $(SMP_FL) + + OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \ + config.o memsize.o error.o smp.o cpuid.o vmem.o random.o +@@ -23,7 +21,7 @@ + # symbols and then link it dynamically so I have full + # relocation information + memtest_shared: $(OBJS) memtest_shared.lds Makefile +- $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds \ ++ $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds -m elf_i386 \ + -o $@ $(OBJS) && \ + $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) + +@@ -50,7 +48,7 @@ + $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c + + test.o: test.c +- $(CC) -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c ++ $(CC) -c $(CFLAGS:-fPIC=) -o $@ $< + + random.o: random.c + $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c +@@ -72,3 +70,7 @@ + dos: all + cat mt86+_loader memtest.bin > memtest.exe + ++head.o: head.s ++bootsect.o: bootsect.s ++setup.o: setup.s ++ diff --git a/sys-apps/memtest86/memtest86-3.3.ebuild b/sys-apps/memtest86/memtest86-3.3.ebuild new file mode 100644 index 000000000000..c908800ffc89 --- /dev/null +++ b/sys-apps/memtest86/memtest86-3.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit mount-boot eutils + +DESCRIPTION="A stand alone memory test for x86 computers" +HOMEPAGE="http://www.memtest86.com/" +SRC_URI="http://www.memtest86.com/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="serial" +RESTRICT="test" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-3.2-solar.patch #66630 + epatch "${FILESDIR}"/${P}-funky-test.patch + epatch "${FILESDIR}"/${P}-gnu-hash.patch + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi +} + +src_install() { + insinto /boot/memtest86 + doins memtest.bin || die "doins failed" + dodoc README README.build-process +} + +pkg_postinst() { + mount-boot_pkg_postinst + einfo + einfo "memtest.bin has been installed in /boot/memtest86/" + einfo "You may wish to update your bootloader configs" + einfo "by adding these lines:" + einfo " - For grub: (replace '?' with correct numbers for your boot partition)" + einfo " > root (hd?,?)" + einfo " > title=Memtest86" + einfo " > kernel /boot/memtest86/memtest.bin" + einfo " - For lilo:" + einfo " > image = /boot/memtest86/memtest.bin" + einfo " > label = Memtest86" + einfo +} diff --git a/sys-apps/memtest86/memtest86-4.3.6.ebuild b/sys-apps/memtest86/memtest86-4.3.6.ebuild new file mode 100644 index 000000000000..7a543827d99a --- /dev/null +++ b/sys-apps/memtest86/memtest86-4.3.6.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit mount-boot eutils toolchain-funcs + +DESCRIPTION="A stand alone memory test for x86 computers" +HOMEPAGE="http://www.memtest86.com/" +SRC_URI="http://www.memtest86.com/downloads/${P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="serial" +S="${WORKDIR}/src" + +BOOTDIR=/boot/memtest86 + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.3.3-build-nopie.patch #66630 + #206726 + + sed -i -e 's,0x10000,0x100000,' memtest.lds || die + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi + + tc-export AS CC LD +} + +src_test() { :; } + +src_install() { + insinto ${BOOTDIR} + newins memtest.bin memtest + dosym memtest ${BOOTDIR}/memtest.bin + + exeinto /etc/grub.d + doexe "${FILESDIR}"/39_memtest86 + + dodoc README README.build-process README.background +} + +pkg_postinst() { + mount-boot_pkg_postinst + elog + elog "memtest has been installed in ${BOOTDIR}/" + elog "You may wish to update your bootloader configs" + elog "by adding these lines:" + elog " - For grub2 just run grub-mkconfig, a configuration file is installed" + elog " as /etc/grub/39_${PN}" + elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)" + elog " > title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest" + elog " > label = ${PN}" + elog +} diff --git a/sys-apps/memtest86/memtest86-4.3.7.ebuild b/sys-apps/memtest86/memtest86-4.3.7.ebuild new file mode 100644 index 000000000000..7a543827d99a --- /dev/null +++ b/sys-apps/memtest86/memtest86-4.3.7.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit mount-boot eutils toolchain-funcs + +DESCRIPTION="A stand alone memory test for x86 computers" +HOMEPAGE="http://www.memtest86.com/" +SRC_URI="http://www.memtest86.com/downloads/${P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="serial" +S="${WORKDIR}/src" + +BOOTDIR=/boot/memtest86 + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.3.3-build-nopie.patch #66630 + #206726 + + sed -i -e 's,0x10000,0x100000,' memtest.lds || die + + if use serial ; then + sed -i \ + -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \ + config.h \ + || die "sed failed" + fi + + tc-export AS CC LD +} + +src_test() { :; } + +src_install() { + insinto ${BOOTDIR} + newins memtest.bin memtest + dosym memtest ${BOOTDIR}/memtest.bin + + exeinto /etc/grub.d + doexe "${FILESDIR}"/39_memtest86 + + dodoc README README.build-process README.background +} + +pkg_postinst() { + mount-boot_pkg_postinst + elog + elog "memtest has been installed in ${BOOTDIR}/" + elog "You may wish to update your bootloader configs" + elog "by adding these lines:" + elog " - For grub2 just run grub-mkconfig, a configuration file is installed" + elog " as /etc/grub/39_${PN}" + elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)" + elog " > title=${PN}" + elog " > root (hd?,?)" + elog " > kernel ${BOOTDIR}/memtest" + elog " - For lilo:" + elog " > image = ${BOOTDIR}/memtest" + elog " > label = ${PN}" + elog +} diff --git a/sys-apps/memtest86/metadata.xml b/sys-apps/memtest86/metadata.xml new file mode 100644 index 000000000000..6865707310d8 --- /dev/null +++ b/sys-apps/memtest86/metadata.xml @@ -0,0 +1,8 @@ + + + +base-system + + Compile with serial console support + + diff --git a/sys-apps/memtester/Manifest b/sys-apps/memtester/Manifest new file mode 100644 index 000000000000..9235a7b5da29 --- /dev/null +++ b/sys-apps/memtester/Manifest @@ -0,0 +1,2 @@ +DIST memtester-4.2.2.tar.gz 20952 SHA256 a494569d58d642c796332a1b7f3b4b86845b52da66c15c96fbeecd74e48dae8e SHA512 9ddff98e3173583e3edd50fb5e8a951f20956a75768231c8576d33d091776f22eeb15717a8b87e968e9c49211c83551d518f62ad3a1b0ee1db76152fee925bfa WHIRLPOOL 5de1bab98cb6d0bc2b49f75608fed4f46f36616ff070587a2b06592e36b26db6a0d9389fec6aca59f087f1dc5e1ee6b1d0a146ee6942a4286af4525c3b3a0364 +DIST memtester-4.3.0.tar.gz 22113 SHA256 f9dfe2fd737c38fad6535bbab327da9a21f7ce4ea6f18c7b3339adef6bf5fd88 SHA512 045bcc73855706ff03e8ca65297a0d6e5b5ac02f99dae0f17cef1310b403efcb78d9a7295eca6d2de703b0a7b2f71b58a37f5a42040f01fc77a321a8d2205888 WHIRLPOOL 6f4389ba575134c9407939f9852bacbd29868da380a1df5a43dba9437e96c17b7cf8637ddbff971250d7dc78f42fc7f3235541d17f4b5879a46a9ab9ada7f2a8 diff --git a/sys-apps/memtester/memtester-4.2.2.ebuild b/sys-apps/memtester/memtester-4.2.2.ebuild new file mode 100644 index 000000000000..bdce08738fe7 --- /dev/null +++ b/sys-apps/memtester/memtester-4.2.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="userspace utility for testing the memory subsystem for faults" +HOMEPAGE="http://pyropus.ca/software/memtester/" +SRC_URI="http://pyropus.ca/software/memtester/${P}.tar.gz + http://pyropus.ca/software/memtester/old-versions/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ia64 ~mips ppc ppc64 ~sparc x86" +IUSE="" + +src_prepare() { + echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DPOSIX -c" > conf-cc + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld +} + +src_install() { + dosbin memtester + doman memtester.8 + dodoc BUGS CHANGELOG README README.tests +} diff --git a/sys-apps/memtester/memtester-4.3.0.ebuild b/sys-apps/memtester/memtester-4.3.0.ebuild new file mode 100644 index 000000000000..e1f4318b2f68 --- /dev/null +++ b/sys-apps/memtester/memtester-4.3.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="userspace utility for testing the memory subsystem for faults" +HOMEPAGE="http://pyropus.ca/software/memtester/" +SRC_URI="http://pyropus.ca/software/memtester/${P}.tar.gz + http://pyropus.ca/software/memtester/old-versions/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ppc ppc64 sparc x86" +IUSE="" + +src_prepare() { + echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DPOSIX -c" > conf-cc + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld +} + +src_install() { + dosbin memtester + doman memtester.8 + dodoc BUGS CHANGELOG README README.tests +} diff --git a/sys-apps/memtester/metadata.xml b/sys-apps/memtester/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/memtester/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/metadata.xml b/sys-apps/metadata.xml new file mode 100644 index 000000000000..e780a8953053 --- /dev/null +++ b/sys-apps/metadata.xml @@ -0,0 +1,45 @@ + + + + + The sys-apps category contains various core system applications, and + some non-core system applications which have not yet been moved out into + other sys- categories. + + + La categoría sys-apps contiene varios paquetes esenciales del sistema, y + algunos paquetes no esenciales que aún no han sido movidos a otras + categorías sys-. + + + Die Kategorie sys-apps enthält sowohl Programme die Bestandteil des Basissystems sind, + als auch Applikationen die noch nicht in eine der anderen sys- Kategorien eingeordnet + wurden. + + + sys-appsカテゴリには様々なコアシステムアプリケーションの他、まだ他のsys-カテゴリに + 移動されていないシステムアプリケーションが含まれています。 + + + De sys-apps categorie bevat kerenbestanddelen van het systeem, en bepaalde + niet-kern toepassingen die nog niet in andere categorien zijn geplaatst. + + + Nhóm sys-apps chứa các phần mềm hệ thống cốt lõi, và vài phần mềm + hệ thống không phải cốt lõi mà chưa được chuyển sang các nhóm sys- khác. + + + La categoria sys-apps contiene vari pacchetti essenziali per il sistema, e alcuni pacchetti + non essenziali che non sono ancora stati spostati in altre categorie sys-. + + + A categoria sys-apps contém vários pacotes essenciais do sistema, e + algumas aplicações não-centrais que ainda não foram colocadas em + outras categorias sys-. + + + Kategoria sys-apps zawiera programy systemowe oraz inne dodatkowe + programy, których jeszcze nie przeniesiono do kategorii sys-. + + + diff --git a/sys-apps/microcode-ctl/Manifest b/sys-apps/microcode-ctl/Manifest new file mode 100644 index 000000000000..542af0778941 --- /dev/null +++ b/sys-apps/microcode-ctl/Manifest @@ -0,0 +1,3 @@ +DIST microcode_ctl-1.23.tar.xz 755448 SHA256 1a06416f56d54b748258499e1599e75bab6bbee82ac834982ecec0276e5992eb SHA512 f33b4fd43c39b3d4e9b6eb9a12285c7ea26ee43e6c4aa1e45f9aa92a0d2b7d55d1a950ee82d8aea5c86faa15dd1e85e829719b6c772a2c09f262bea630bc7edb WHIRLPOOL 09c4698ab72efbf6240f6c6461549311d01941d53dd81e9f5a08749535d589b0ea24c01999b13f5208626b639aa4611fbbf9c2d5a1fb203689b4405e37aa8b9a +DIST microcode_ctl-1.27.tar.xz 856240 SHA256 bfaa2847954c6149912e4c7b8b5b5504fdbe09213c4efcf25d37e632a2a55f99 SHA512 ac4bce583f756b777488605687fe1bef0038763ed4a0afc51b454140f00caf04ef8a6d790d95684aa82c857f9cefd59b2413b96ad3d0c349da4b88166c5aa556 WHIRLPOOL b8b3b8094c0f1719126fe8208a7292adf9370633bce773cfd2684e5f207341e3cf6c51272520adfdeb0213ee2927d72d6565d840a3e240cf094d1707e38b27f6 +DIST microcode_ctl-1.28.tar.xz 876760 SHA256 be015f6c7aff736b01d0d57b7f9345aebcca6dd73e5c9026a6ad8a9c09107de2 SHA512 ed5deb0f96c895b7783c23a1c91d2e03f713a793a21140b049e1b5f08f553dce103b4a11016ebd5076424b1032342d009d952e0089badfea2e91ad486d2cf7f8 WHIRLPOOL eddabcf355b219564604fdf3ecfb94670df6d78412051f23b0c7024bad05fc18eb11eccfe84f3a7b4aff8e52e504c32f304e3e9b5762db05b189407421deb050 diff --git a/sys-apps/microcode-ctl/files/microcode_ctl.conf.d b/sys-apps/microcode-ctl/files/microcode_ctl.conf.d new file mode 100644 index 000000000000..0505a80ae92b --- /dev/null +++ b/sys-apps/microcode-ctl/files/microcode_ctl.conf.d @@ -0,0 +1,11 @@ +# /etc/conf.d/microcode_ctl + +# Device to pass to microcode_ctl + +MICROCODE_DEV="/dev/cpu/microcode" + + +# Should we try to unload the microcode module after we +# update the cpu microcode ? + +MICROCODE_UNLOAD="yes" diff --git a/sys-apps/microcode-ctl/files/microcode_ctl.rc b/sys-apps/microcode-ctl/files/microcode_ctl.rc new file mode 100644 index 000000000000..da6be097e577 --- /dev/null +++ b/sys-apps/microcode-ctl/files/microcode_ctl.rc @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need localmount +} + +start() { + local ret + + # Make sure the kernel supports the microcode device ... + # if it doesnt, try to modprobe the kernel module + grep -qs ' microcode$' /proc/misc || modprobe -q microcode + + ebegin "Updating microcode" + microcode_ctl -qu -d ${MICROCODE_DEV} + ret=$? + eend ${ret} "Failed to update microcode via '${MICROCODE_DEV}'" + + [ "${MICROCODE_UNLOAD}" = "yes" ] && rmmod microcode >/dev/null 2>&1 + + return ${ret} +} diff --git a/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1 b/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1 new file mode 100644 index 000000000000..e23347fb1df8 --- /dev/null +++ b/sys-apps/microcode-ctl/files/microcode_ctl.rc-r1 @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +depend() { + need localmount +} + +start() { + local ret + + # Make sure the kernel supports the microcode device ... + # if it doesnt, try to modprobe the kernel module + grep -qs ' microcode$' /proc/misc || modprobe -q microcode + + ebegin "Updating microcode" + microcode_ctl -qu -f /lib/firmware/microcode.dat -d ${MICROCODE_DEV} + ret=$? + eend ${ret} "Failed to update microcode via '${MICROCODE_DEV}'" + + [ "${MICROCODE_UNLOAD}" = "yes" ] && rmmod microcode >/dev/null 2>&1 + + return ${ret} +} diff --git a/sys-apps/microcode-ctl/metadata.xml b/sys-apps/microcode-ctl/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/microcode-ctl/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.23.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.23.ebuild new file mode 100644 index 000000000000..1d9e1b2a52b5 --- /dev/null +++ b/sys-apps/microcode-ctl/microcode-ctl-1.23.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit linux-info toolchain-funcs + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="Intel processor microcode update utility" +HOMEPAGE="https://fedorahosted.org/microcode_ctl/" +SRC_URI="https://fedorahosted.org/released/${PN/-/_}/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="selinux" + +DEPEND="" +RDEPEND=">=sys-apps/microcode-data-20090330 + selinux? ( sec-policy/selinux-cpucontrol )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" +} + +src_install() { + dosbin microcode_ctl + doman microcode_ctl.8 + dodoc Changelog README + + newinitd "${FILESDIR}"/microcode_ctl.rc-r1 microcode_ctl + newconfd "${FILESDIR}"/microcode_ctl.conf.d microcode_ctl +} + +pkg_postinst() { + # Just a friendly warning + if ! linux_config_exists || ! linux_chkconfig_present MICROCODE; then + echo + ewarn "Your kernel must include microcode update support." + ewarn " Processor type and features --->" + ewarn " <*> /dev/cpu/microcode - microcode support" + echo + fi + elog "Microcode updates will be lost at every reboot." + elog "You can use the init.d script to update at boot time." +} diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.27.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.27.ebuild new file mode 100644 index 000000000000..bb90b80a5ce1 --- /dev/null +++ b/sys-apps/microcode-ctl/microcode-ctl-1.27.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit linux-info toolchain-funcs + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="Intel processor microcode update utility" +HOMEPAGE="https://fedorahosted.org/microcode_ctl/" +SRC_URI="https://fedorahosted.org/released/${PN/-/_}/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="selinux" + +DEPEND="" +RDEPEND=">=sys-apps/microcode-data-20090330 + selinux? ( sec-policy/selinux-cpucontrol )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" +} + +src_install() { + dosbin microcode_ctl + doman microcode_ctl.8 + dodoc Changelog README + + newinitd "${FILESDIR}"/microcode_ctl.rc-r1 microcode_ctl + newconfd "${FILESDIR}"/microcode_ctl.conf.d microcode_ctl +} + +pkg_postinst() { + # Just a friendly warning + if ! linux_config_exists || ! linux_chkconfig_present MICROCODE; then + echo + ewarn "Your kernel must include microcode update support." + ewarn " Processor type and features --->" + ewarn " <*> /dev/cpu/microcode - microcode support" + echo + fi + elog "Microcode updates will be lost at every reboot." + elog "You can use the init.d script to update at boot time." +} diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.28.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.28.ebuild new file mode 100644 index 000000000000..bb90b80a5ce1 --- /dev/null +++ b/sys-apps/microcode-ctl/microcode-ctl-1.28.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit linux-info toolchain-funcs + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="Intel processor microcode update utility" +HOMEPAGE="https://fedorahosted.org/microcode_ctl/" +SRC_URI="https://fedorahosted.org/released/${PN/-/_}/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="selinux" + +DEPEND="" +RDEPEND=">=sys-apps/microcode-data-20090330 + selinux? ( sec-policy/selinux-cpucontrol )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" +} + +src_install() { + dosbin microcode_ctl + doman microcode_ctl.8 + dodoc Changelog README + + newinitd "${FILESDIR}"/microcode_ctl.rc-r1 microcode_ctl + newconfd "${FILESDIR}"/microcode_ctl.conf.d microcode_ctl +} + +pkg_postinst() { + # Just a friendly warning + if ! linux_config_exists || ! linux_chkconfig_present MICROCODE; then + echo + ewarn "Your kernel must include microcode update support." + ewarn " Processor type and features --->" + ewarn " <*> /dev/cpu/microcode - microcode support" + echo + fi + elog "Microcode updates will be lost at every reboot." + elog "You can use the init.d script to update at boot time." +} diff --git a/sys-apps/microcode-data/Manifest b/sys-apps/microcode-data/Manifest new file mode 100644 index 000000000000..2fe33baa9f37 --- /dev/null +++ b/sys-apps/microcode-data/Manifest @@ -0,0 +1,4 @@ +DIST microcode-20140430.tgz 785594 SHA256 2e67767fd561164a2b09831020c2d36600ad336a9c0c117f1964edef284e4351 SHA512 12954522629ce15c4b95c158b6288b3877a3d1f87bea838f8138e53987ef1b6c0edc7a8cbb802a981ccca178b70b4323907aafa7479c0c2fed4497f6fb7bbc1c WHIRLPOOL 92bb063bc14308568ef8a872de54ad99946eb9ec42ac890b11b6cf1f8c07667d386f030a7459cd168652044d87686b61e06ff5a2bcd582c704de6b3b621dbaa2 +DIST microcode-20140624.tgz 787237 SHA256 b4662ac780438a7b2d87e6d26a7066feb807f37c6e5b6fa147089f4edb02ea37 SHA512 c774006aae639e7fae90bc1f5d8308b407e7cd3b7d0da6e35577560bf6201c2b15f7d7b6b0cd727c50be1e9d508b484b067856631fa2598498982109bff0e44c WHIRLPOOL 6051d4a7547e6f74c653d332c54a4711838b670d2707408de7dccddb5d1409994417bae26ce5ec2f72d91b613e14a3381ded301027995bca1fb746baf85000c4 +DIST microcode-20140913.tgz 830537 SHA256 ea6c0ee21d1fbf261f093176a78089c21411e5fe0e2c35b258cedf2b39987e15 SHA512 e179fe0001b1157cc95aee39185f51fd182d53c1bdb30bfc95bc3a70795c32012050f3a4adf06735a77d8ef9c703a330c6a2610b73b70f09f5760e31d39cb89c WHIRLPOOL de56d52d184dd2f21e0ca41dca0bb5b539758de614f4e0eb8e7c8281e97ea6dfcc33c50a3fec7262112dc11e8a78b458b3d7ef8c8b5579d500d358393911565d +DIST microcode-20150121.tgz 850761 SHA256 23353b93bb421971496cea5e9f9d390ce0ed22580a8cc45ae7b3b322dcd8f6b3 SHA512 f62edd1b666cf381605613766d7e123f0c6debee4448c0ff0882d33c144ad2174656d2501a449f24eb3e4708259e7ec0ff42810739b7d1f34a6a1d9950d17bc4 WHIRLPOOL 573368845333aee9ca23a98cc6711cc22da5b5893a3c29df292df281a024ad9b50ab4893cc0a44b65e86f388fc55e2c53cd0f99a619c3315dd4db5e090b91319 diff --git a/sys-apps/microcode-data/files/intel-microcode2ucode.c b/sys-apps/microcode-data/files/intel-microcode2ucode.c new file mode 100644 index 000000000000..caad0323e805 --- /dev/null +++ b/sys-apps/microcode-data/files/intel-microcode2ucode.c @@ -0,0 +1,163 @@ +/* + * Convert Intel microcode.dat into individual ucode files + * named: intel-ucode/$family-$model-$stepping + * + * The subdir intel-ucode/ is created in the current working + * directory. We get multiple ucodes in the same file, so they + * are appended to an existing file. Make sure the directory + * is empty before every run of the converter. + * + * Kay Sievers + */ + + +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +struct microcode_header_intel { + unsigned int hdrver; + unsigned int rev; + unsigned int date; + unsigned int sig; + unsigned int cksum; + unsigned int ldrver; + unsigned int pf; + unsigned int datasize; + unsigned int totalsize; + unsigned int reserved[3]; +}; + +union mcbuf { + struct microcode_header_intel hdr; + unsigned int i[0]; + char c[0]; +}; + +int main(int argc, char *argv[]) +{ + char *filename = "/lib/firmware/microcode.dat"; + FILE *f; + char line[LINE_MAX]; + char buf[4000000]; + union mcbuf *mc; + size_t bufsize, count, start; + int rc = EXIT_SUCCESS; + + if (argv[1] != NULL) + filename = argv[1]; + + count = 0; + mc = (union mcbuf *) buf; + f = fopen(filename, "re"); + if (f == NULL) { + printf("open %s: %m\n", filename); + rc = EXIT_FAILURE; + goto out; + } + + while (fgets(line, sizeof(line), f) != NULL) { + if (sscanf(line, "%x, %x, %x, %x", + &mc->i[count], + &mc->i[count + 1], + &mc->i[count + 2], + &mc->i[count + 3]) != 4) + continue; + count += 4; + } + fclose(f); + + bufsize = count * sizeof(int); + printf("%s: %lu(%luk) bytes, %zu integers\n", + filename, + bufsize, + bufsize / 1024, + count); + + if (bufsize < sizeof(struct microcode_header_intel)) + goto out; + + mkdir("intel-ucode", 0750); + + start = 0; + for (;;) { + size_t size; + unsigned int family, model, stepping; + unsigned int year, month, day; + + mc = (union mcbuf *) &buf[start]; + + if (mc->hdr.totalsize) + size = mc->hdr.totalsize; + else + size = 2000 + sizeof(struct microcode_header_intel); + + if (mc->hdr.ldrver != 1 || mc->hdr.hdrver != 1) { + printf("unknown version/format:\n"); + rc = EXIT_FAILURE; + break; + } + + /* + * 0- 3 stepping + * 4- 7 model + * 8-11 family + * 12-13 type + * 16-19 extended model + * 20-27 extended family + */ + family = (mc->hdr.sig >> 8) & 0xf; + if (family == 0xf) + family += (mc->hdr.sig >> 20) & 0xff; + model = (mc->hdr.sig >> 4) & 0x0f; + if (family == 0x06) + model += ((mc->hdr.sig >> 16) & 0x0f) << 4; + stepping = mc->hdr.sig & 0x0f; + + year = mc->hdr.date & 0xffff; + month = mc->hdr.date >> 24; + day = (mc->hdr.date >> 16) & 0xff; + + asprintf(&filename, "intel-ucode/%02x-%02x-%02x", family, model, stepping); + printf("\n"); + printf("%s\n", filename); + printf("signature: 0x%02x\n", mc->hdr.sig); + printf("flags: 0x%02x\n", mc->hdr.pf); + printf("revision: 0x%02x\n", mc->hdr.rev); + printf("date: %04x-%02x-%02x\n", year, month, day); + printf("size: %zu\n", size); + + f = fopen(filename, "ae"); + if (f == NULL) { + printf("open %s: %m\n", filename); + rc = EXIT_FAILURE; + goto out; + } + if (fwrite(mc, size, 1, f) != 1) { + printf("write %s: %m\n", filename); + rc = EXIT_FAILURE; + goto out; + } + fclose(f); + free(filename); + + start += size; + if (start >= bufsize) + break; + } + printf("\n"); +out: + return rc; +} diff --git a/sys-apps/microcode-data/metadata.xml b/sys-apps/microcode-data/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/microcode-data/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/microcode-data/microcode-data-20140430.ebuild b/sys-apps/microcode-data/microcode-data-20140430.ebuild new file mode 100644 index 000000000000..f1ab23ccac05 --- /dev/null +++ b/sys-apps/microcode-data/microcode-data-20140430.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit toolchain-funcs + +# Find updates by searching and clicking the first link (hopefully it's the one): +# http://www.intel.com/content/www/us/en/search.html?keyword=Processor+Microcode+Data+File + +NUM="23829" +DESCRIPTION="Intel IA32 microcode update data" +HOMEPAGE="http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}" +SRC_URI="http://downloadmirror.intel.com/${NUM}/eng/microcode-${PV}.tgz" + +LICENSE="intel-ucode" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" + +RDEPEND="! + + +embedded +base-system + diff --git a/sys-apps/minised/minised-1.13.ebuild b/sys-apps/minised/minised-1.13.ebuild new file mode 100644 index 000000000000..c462388aabfc --- /dev/null +++ b/sys-apps/minised/minised-1.13.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="a smaller, cheaper, faster SED implementation" +HOMEPAGE="http://www.exactcode.de/oss/minised/" +SRC_URI="http://dl.exactcode.de/oss/minised/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +src_compile() { + tc-export CC + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc BUGS README +} diff --git a/sys-apps/minised/minised-1.14.ebuild b/sys-apps/minised/minised-1.14.ebuild new file mode 100644 index 000000000000..edd9bc7693aa --- /dev/null +++ b/sys-apps/minised/minised-1.14.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="a smaller, cheaper, faster SED implementation" +HOMEPAGE="http://www.exactcode.de/oss/minised/" +SRC_URI="http://dl.exactcode.de/oss/minised/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +src_prepare() { + tc-export CC +} diff --git a/sys-apps/miscfiles/Manifest b/sys-apps/miscfiles/Manifest new file mode 100644 index 000000000000..c26e4d5f9eff --- /dev/null +++ b/sys-apps/miscfiles/Manifest @@ -0,0 +1,5 @@ +DIST UnicodeData-5.2.0.txt.bz2 159460 SHA256 0b4b03725d313f0cc1056b80a4ea6d30a3b0a959316228c60b7a05e958d90486 SHA512 65573a2ad50d6964d593928d34e4315b2dbf7a7b49a480e5bc8a10025975280bb097ea670fb979d6c1da7d8911049313220712dc9ac5d5aa34e85c9193411fdc WHIRLPOOL 72b613fe5a578069b5e2933bb7155ded918602af4fe0063dd86e355c430840844f36feb6960fbc07863ec706cc57801e6e28dfd04ba1a0d872d17c46695c5b58 +DIST UnicodeData-6.0.0.txt.xz 126812 SHA256 5ddb4746fe92abbeeae7ff3fc1401383797cdfaa252b63045053520140a93855 SHA512 4923c2a21ae7d430f77fc3b8b78f84eec80370595e6ae57b3cf5bad4ac71a16b3b540e83939be7d3dffdfc3d774744ef161dc87d4a7258eca13b1a2f2e7db0a4 WHIRLPOOL 50d4f1e6cb59a2d4e691f26282336254b446a812221f4fdee6cfcad2d932462573d46b96bcf7fd0fd07a41a6d1b591a56d8f8cd56a1a18ab3876bc79e28994f7 +DIST UnicodeData-6.1.0.txt.xz 129972 SHA256 044c7f014c601ec4602d8e19c1541a952e2c7e30930c623acc65b1f45acb170a SHA512 9ada361d915f3883e673c6e55f351c7411dc970e180e7e0b05fef498c2f80a5a29bfd6c22513ff4b6b6c4c9fba5c77f0aca2dd54c7a76d3fa9b78623b1fdd93f WHIRLPOOL b052639f5ffe6acab1b875ee55aa917ed6f526deffce1f12f15530f1dd44d3cbb259516c40c725f7a35838d7ecb68f5452e099aef904d0763720cde87cebebf1 +DIST miscfiles-1.4.2.tar.gz 1524786 SHA256 b699ca60d61475578f1f9adb28e6d6e6b649fcf1bdd25aaec7d96b358c0701e6 SHA512 e5cfdb82d9f8901016daff874efce0616bfaaae12cc3587b6bf950df2bd19fa80f2286f69e10ddbb413d5bc632bf91e4165b0187f8cfb5a0d98882ac9b2cccc2 WHIRLPOOL 2867bbfdde83a50cf8666f34c72f8364955eb21df86b891b3f740489c87fe72cf0d3b50c63c938b836889a26080f856531a6ceda6dd4691788c4c9a2ad240c77 +DIST miscfiles-1.5.tar.gz 1585293 SHA256 6aaaa8898b0f6dac18bcaa5492874a6cd1243ffbe7a6dd347ca8f3ec3642a500 SHA512 d7ab23a709539278cce59e0c32bfcb3a0f11dc52ef537e3823e72382962af7f4fedb8b957f39ff1da51a93a00e3c4f6ec29f7332d7879c77fd7f4ec0ee4f82aa WHIRLPOOL 3d134944fcf75231f682d05320ad9b198b99f9eb4c27a949b67e724cb3b16181afedd61e83bcdb672fb7df516d8cdc43310209a07108b35fdb40ea9025be297a diff --git a/sys-apps/miscfiles/files/miscfiles-1.3-Makefile.diff b/sys-apps/miscfiles/files/miscfiles-1.3-Makefile.diff new file mode 100644 index 000000000000..011d1731acd1 --- /dev/null +++ b/sys-apps/miscfiles/files/miscfiles-1.3-Makefile.diff @@ -0,0 +1,18 @@ +--- Makefile.in.orig 2003-03-08 17:26:28.000000000 +0200 ++++ Makefile.in 2003-03-08 17:28:59.000000000 +0200 +@@ -60,6 +60,7 @@ + $(INSTALL_DATA) $(srcdir)/dict-README $(datadir)/dict/README + rm -f $(datadir)/dict/words + ln $(datadir)/dict/web2 $(datadir)/dict/words ++ ln $(datadir)/dict/web2a $(datadir)/dict/extra.words + for i in $(miscfiles); do \ + $(INSTALL_DATA) $(srcdir)/$$i $(datadir)/misc/$$i ; \ + done +@@ -80,6 +81,7 @@ + rm -f $(datadir)/dict/$$i ; \ + done + rm -f $(datadir)/dict/README $(datadir)/dict/words ++ rm -f $(datadir)/dict/extra.words + for i in $(miscfiles); do \ + rm -f $(datadir)/misc/$$i ; \ + done diff --git a/sys-apps/miscfiles/metadata.xml b/sys-apps/miscfiles/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/miscfiles/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild b/sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild new file mode 100644 index 000000000000..4527f23f7e3b --- /dev/null +++ b/sys-apps/miscfiles/miscfiles-1.4.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils + +UNI_PV=5.2.0 +DESCRIPTION="Miscellaneous files" +HOMEPAGE="http://savannah.gnu.org/projects/miscfiles/" +# updated unicode data file from: +# http://www.unicode.org/Public/${UNI_PV}/ucd/UnicodeData.txt +SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz + mirror://gentoo/UnicodeData-${UNI_PV}.txt.bz2" + +LICENSE="GPL-2 unicode" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris" +IUSE="minimal" +# Collides with older versions/revisions +RDEPEND="!/dev/null ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null + eend $? + fi +} diff --git a/sys-apps/miscfiles/miscfiles-1.5-r1.ebuild b/sys-apps/miscfiles/miscfiles-1.5-r1.ebuild new file mode 100644 index 000000000000..022064cfd346 --- /dev/null +++ b/sys-apps/miscfiles/miscfiles-1.5-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +UNI_PV=6.1.0 +DESCRIPTION="Miscellaneous files" +HOMEPAGE="http://savannah.gnu.org/projects/miscfiles/" +# http://www.unicode.org/Public/${UNI_PV}/ucd/UnicodeData.txt +SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz + mirror://gentoo/UnicodeData-${UNI_PV}.txt.xz" + +LICENSE="GPL-2 unicode" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris" +IUSE="minimal" + +# Collides with older versions/revisions +RDEPEND="!/dev/null ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null + eend $? + fi +} diff --git a/sys-apps/miscfiles/miscfiles-1.5.ebuild b/sys-apps/miscfiles/miscfiles-1.5.ebuild new file mode 100644 index 000000000000..ce519b167a14 --- /dev/null +++ b/sys-apps/miscfiles/miscfiles-1.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +UNI_PV=6.0.0 +DESCRIPTION="Miscellaneous files" +HOMEPAGE="http://savannah.gnu.org/projects/miscfiles/" +# http://www.unicode.org/Public/${UNI_PV}/ucd/UnicodeData.txt +SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz + mirror://gentoo/UnicodeData-${UNI_PV}.txt.xz" + +LICENSE="GPL-2 unicode" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris" +IUSE="minimal" + +# Collides with older versions/revisions +RDEPEND="!/dev/null ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null + eend $? + fi +} diff --git a/sys-apps/mlocate/Manifest b/sys-apps/mlocate/Manifest new file mode 100644 index 000000000000..9fc2073ef19b --- /dev/null +++ b/sys-apps/mlocate/Manifest @@ -0,0 +1 @@ +DIST mlocate-0.26.tar.xz 359204 SHA256 3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e SHA512 b1207047e30a551cba39e70812439b554def567ebe9b8b81fed6f26435bb575beafe4875a21cd72876eadd85da4e7bfc942eb28b17c430b537c351690364837f WHIRLPOOL 7f0a2df135ce2ec74f2a113e7f88b29f3964aa53fff1c47eb9aa44df4447d7b41b59615571a7626a3b7395208df75641d407b7a9456e590338962cde85093129 diff --git a/sys-apps/mlocate/files/mlocate-cron.conf b/sys-apps/mlocate/files/mlocate-cron.conf new file mode 100644 index 000000000000..f207344a9e6c --- /dev/null +++ b/sys-apps/mlocate/files/mlocate-cron.conf @@ -0,0 +1,9 @@ +# nice value to run at: see -n in nice(1) +NICE="19" + +# ionice class to run at: see -c in ionice(1) +# you have to install sys-apps/util-linux manually +IONICE_CLASS="2" + +# ionice priority to run at: see -n in ionice(1) +IONICE_PRIORITY="7" diff --git a/sys-apps/mlocate/files/mlocate.cron-r2 b/sys-apps/mlocate/files/mlocate.cron-r2 new file mode 100644 index 000000000000..51cb504977e2 --- /dev/null +++ b/sys-apps/mlocate/files/mlocate.cron-r2 @@ -0,0 +1,48 @@ +#! /bin/sh +set -e + +# check if we run on battery and if so then don't run +if which on_ac_power >/dev/null 2>&1; then + ON_BATTERY=0 + on_ac_power >/dev/null 2>&1 || ON_BATTERY=$? + if [ "${ON_BATTERY}" -eq 1 ]; then + exit 0 + fi +fi + +# check if we are already running (lockfile) +LOCKFILE="/var/lock/mlocate.daily.lock" +if [ -e "${LOCKFILE}" ]; then + echo >&2 "Warning: \"${LOCKFILE}\" already present, not running updatedb." + exit 1 +fi +touch "${LOCKFILE}" +# trap the lockfile only if we really run the updatedb +trap "rm -f ${LOCKFILE}" EXIT + +# source the user specified variables +if [ -f /etc/mlocate-cron.conf ]; then + . /etc/mlocate-cron.conf +fi + +# check the config file +NODEVS="" +if [ ! -f /etc/updatedb.conf ]; then + NODEVS=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { print $2 }') +fi + +# alter the priority of the updatedb process +if [ -x /usr/bin/renice ]; then + /usr/bin/renice +${NICE:-19} -p $$ > /dev/null 2>&1 +fi +if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then + /usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > /dev/null 2>&1 +fi + +# run the updatedb if possible +if [ -x /usr/bin/updatedb ]; then + /usr/bin/updatedb -f "${NODEVS}" +else + echo >&2 "Warning: \"/usr/bin/updatedb\" is not executable, unable to run updatedb." + exit 0 +fi diff --git a/sys-apps/mlocate/files/updatedb.conf b/sys-apps/mlocate/files/updatedb.conf new file mode 100644 index 000000000000..3501ee30163d --- /dev/null +++ b/sys-apps/mlocate/files/updatedb.conf @@ -0,0 +1,17 @@ +# /etc/updatedb.conf: config file for slocate +# $Id$ + +# This file sets variables that are used by updatedb. +# For more info, see the updatedb.conf(5) manpage. + +# Filesystems that are pruned from updatedb database +PRUNEFS="afs anon_inodefs auto autofs bdev binfmt binfmt_misc cgroup cifs coda configfs cramfs cpuset debugfs devfs devpts devtmpfs ecryptfs eventpollfs exofs futexfs ftpfs fuse fusectl gfs gfs2 hostfs hugetlbfs inotifyfs iso9660 jffs2 lustre misc mqueue ncpfs nfs NFS nfs4 nfsd nnpfs ocfs ocfs2 pipefs proc ramfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs spufs sshfs subfs supermount sysfs tmpfs ubifs udf usbfs vboxsf vperfctrfs" + +# Paths which are pruned from updatedb database +PRUNEPATHS="/tmp /var/tmp /var/cache /var/lock /var/run /var/spool" + +# Folder names that are pruned from updatedb database +PRUNENAMES=".git .hg .svn CVS" + +# Skip bind mounts. +PRUNE_BIND_MOUNTS="yes" diff --git a/sys-apps/mlocate/metadata.xml b/sys-apps/mlocate/metadata.xml new file mode 100644 index 000000000000..67bbc5a3f787 --- /dev/null +++ b/sys-apps/mlocate/metadata.xml @@ -0,0 +1,9 @@ + + + +base-system + + fauli@gentoo.org + Christian Faulhammer + + diff --git a/sys-apps/mlocate/mlocate-0.26-r1.ebuild b/sys-apps/mlocate/mlocate-0.26-r1.ebuild new file mode 100644 index 000000000000..41bf8dfcceb1 --- /dev/null +++ b/sys-apps/mlocate/mlocate-0.26-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils user toolchain-funcs + +DESCRIPTION="Merging locate is an utility to index and quickly search for files" +HOMEPAGE="https://fedorahosted.org/mlocate/" +SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="nls selinux" + +RDEPEND="!sys-apps/slocate + !sys-apps/rlocate + selinux? ( sec-policy/selinux-slocate )" +DEPEND="app-arch/xz-utils + nls? ( sys-devel/gettext ) +" + +pkg_setup() { + enewgroup locate +} + +src_configure() { + econf $(use_enable nls) +} + +src_compile() { + emake groupname=locate AR="$(tc-getAR)" +} + +src_install() { + emake groupname=locate DESTDIR="${D}" install + dodoc AUTHORS ChangeLog README NEWS + + insinto /etc + doins "${FILESDIR}"/updatedb.conf + doins "${FILESDIR}"/mlocate-cron.conf + fperms 0644 /etc/{updatedb,mlocate-cron}.conf + + insinto /etc/cron.daily + newins "${FILESDIR}"/mlocate.cron-r2 mlocate + fperms 0755 /etc/cron.daily/mlocate + + fowners 0:locate /usr/bin/locate + fperms go-r,g+s /usr/bin/locate + + keepdir /var/lib/mlocate + chown -R 0:locate "${ED}"/var/lib/mlocate + fperms 0750 /var/lib/mlocate +} + +pkg_postinst() { + elog "The database for the locate command is generated daily by a cron job," + elog "if you install for the first time you can run the updatedb command manually now." + elog + elog "Note that the /etc/updatedb.conf file is generic," + elog "please customize it to your system requirements." +} diff --git a/sys-apps/modutils/Manifest b/sys-apps/modutils/Manifest new file mode 100644 index 000000000000..bc4977da1dd3 --- /dev/null +++ b/sys-apps/modutils/Manifest @@ -0,0 +1 @@ +DIST modutils-2.4.27.tar.bz2 234963 RMD160 3179d364106859cf6dbd1fad82d8356337634735 SHA1 fa268b48d98e0efab349d45fa7fb2372d58320c1 SHA256 ab4c9191645f9ffb455ae7c014d8c45339c13a1d0f6914817cfbf30a0bc56bf0 diff --git a/sys-apps/modutils/files/modutils-2.4.27-alias.patch b/sys-apps/modutils/files/modutils-2.4.27-alias.patch new file mode 100644 index 000000000000..1fefffb62f85 --- /dev/null +++ b/sys-apps/modutils/files/modutils-2.4.27-alias.patch @@ -0,0 +1,86 @@ +Taken from Debian. + +Update misc alias cruft. + +--- util/alias.h ++++ util/alias.h +@@ -52,7 +52,11 @@ + "binfmt--310 binfmt_java", + + "block-major-1 rd", ++#if defined(__s390__) || defined(__s390x__) || defined(__ia64__) || defined(__powerpc__) ++ "block-major-2 off", ++#else + "block-major-2 floppy", ++#endif + "block-major-3 ide-probe-mod", + "block-major-7 loop", + "block-major-8 sd_mod", +@@ -107,6 +111,7 @@ + /* /dev/sunmouse Sun mouse */ + /* /dev/beep Fancy beep device */ + /* /dev/modreq Kernel module load request */ ++ "char-major-10-116 snd", + "char-major-10-130 wdt", /* /dev/watchdog Watchdog timer port */ + "char-major-10-131 wdt", /* /dev/temperature Machine internal temperature */ + /* /dev/hwtrap Hardware fault trap */ +@@ -116,7 +121,11 @@ + "char-major-10-144 nvram", /* from Tigran Aivazian */ + "char-major-10-157 applicom", /* from David Woodhouse */ + "char-major-10-175 agpgart", /* /dev/agpgart GART AGP mapping access */ ++ "char-major-10-181 toshiba", ++ "char-major-10-183 hw_random", + "char-major-10-184 microcode", /* Tigran Aivazian */ ++ "char-major-10-187 irnet", ++ "char-major-10-189 ussp", + "char-major-10-200 tun", /* Universal TUN/TAP device driver */ + "char-major-10-250 hci_vhci", + +@@ -179,6 +203,11 @@ + /* next two from Thanks! */ + "net-pf-17 af_packet", + "net-pf-19 off", /* acorn econet */ ++ "net-pf-20 atm", ++ "net-pf-23 irda", ++ "net-pf-24 pppoe", ++ "net-pf-25 wanrouter", ++ "net-pf-26 llc", + + "net-pf-31 bluez", + +@@ -199,6 +228,10 @@ + "bt-proto-2 sco", + "bt-proto-3 rfcomm", + "bt-proto-4 bnep", ++ "bt-proto-5 cmtp", ++ "bt-proto-6 hidp", ++ "bt-proto-7 avdtp", ++ + + "plip0 plip", + "plip1 plip", +@@ -228,6 +261,7 @@ + "ppp-compress-21 bsd_comp", + "ppp-compress-24 ppp_deflate", + "ppp-compress-26 ppp_deflate", ++ "ppp ppp_async", /* for 2.4 */ + + #ifndef __sparc__ + "parport_lowlevel parport_pc", +@@ -271,9 +305,6 @@ + */ + char *above[] = + { +- "hid keybdev mousedev", +- "usbmouse hid", +- "wacom evdev", + NULL /* marks the end of the list! */ + }; + +@@ -284,7 +315,6 @@ + */ + char *below[] = + { +- "ov518_decomp ov511", + NULL /* marks the end of the list! */ + }; diff --git a/sys-apps/modutils/files/modutils-2.4.27-flex.patch b/sys-apps/modutils/files/modutils-2.4.27-flex.patch new file mode 100644 index 000000000000..c07e929b8b42 --- /dev/null +++ b/sys-apps/modutils/files/modutils-2.4.27-flex.patch @@ -0,0 +1,37 @@ +Taken from Debian. + +Build with newer flex versions. + +--- modutils-2.4.27.0.orig/genksyms/lex.l ++++ modutils-2.4.27.0/genksyms/lex.l +@@ -130,6 +130,7 @@ + + static int suppress_type_lookup, dont_want_brace_phrase; + static struct string_list *next_node; ++ static int next_token = 0; + + int token, count = 0; + struct string_list *cur_node; +@@ -144,7 +145,12 @@ + } + + repeat: +- token = yylex1(); ++ if (next_token != 0) { ++ token = next_token; ++ next_token = 0; ++ } ++ else ++ token = yylex1(); + + if (token == 0) + return 0; +@@ -425,7 +431,7 @@ + { + /* Put back the token we just read so's we can find it again + after registering the expression. */ +- unput(token); ++ next_token = token; + + lexstate = ST_NORMAL; + token = EXPRESSION_PHRASE; diff --git a/sys-apps/modutils/files/modutils-2.4.27-gcc.patch b/sys-apps/modutils/files/modutils-2.4.27-gcc.patch new file mode 100644 index 000000000000..3f90a9b2b2de --- /dev/null +++ b/sys-apps/modutils/files/modutils-2.4.27-gcc.patch @@ -0,0 +1,280 @@ +Fix building with newer gcc versions. + +Most changes taken from Debian. + +--- obj/obj_ia64.c ++++ obj/obj_ia64.c +@@ -127,6 +127,7 @@ + return (*(bundle + 1) >> 23) & 0x1ffffffffff; + + default: ++ ; + } + return (-1); + } +--- depmod/depmod.c ++++ depmod/depmod.c +@@ -1133,7 +1133,7 @@ + + for (ksym = ksyms; so_far < nksyms; ++so_far, ksym++) { + if (strncmp((char *)ksym->name, "GPLONLY_", 8) == 0) +- ((char *)ksym->name) += 8; ++ ksym->name = ((char *)ksym->name) + 8; + assert(n_syms < MAX_MAP_SYM); + symtab[n_syms++] = addsym((char *)ksym->name, mod, SYM_DEFINED, 0); + } +@@ -1265,7 +1265,7 @@ + * error. Use the error() routine but do not count + * any errors. Remove in 2.5. + */ +- int save_errors = errors; ++ int save_errors = error_count; + if (!quiet && nberr == 0) + error("*** Unresolved symbols in %s", + ptmod->name); +@@ -1274,7 +1274,7 @@ + nberr++; + if (flag_unresolved_error) + ret = 1; +- errors = save_errors; ++ error_count = save_errors; + } + } + verbose("%s\n", ptmod->name + skipchars); +@@ -1675,6 +1675,6 @@ + #else + int main(int argc, char **argv) + { +- return depmod_main(argc, argv) || errors; ++ return depmod_main(argc, argv) || error_count; + } + #endif /* defined(COMMON_3264) && defined(ONLY_32) */ +--- genksyms/genksyms.c ++++ genksyms/genksyms.c +@@ -45,7 +45,7 @@ + int flag_debug, flag_dump_defs, flag_warnings; + int checksum_version = 1, kernel_version = version(2,0,0); + +-static int errors; ++static int num_errors; + static int nsyms; + + static struct symbol *expansion_trail; +@@ -458,7 +458,7 @@ + va_end(args); + putc('\n', stderr); + +- errors++; ++ num_errors++; + } + } + +@@ -476,7 +476,7 @@ + va_end(args); + putc('\n', stderr); + +- errors++; ++ num_errors++; + } + } + +@@ -597,5 +597,5 @@ + nsyms, HASH_BUCKETS, (double)nsyms / (double)HASH_BUCKETS); + } + +- return errors != 0; ++ return num_errors != 0; + } +--- include/util.h ++++ include/util.h +@@ -39,8 +39,8 @@ + extern int xftw(const char *directory, xftw_func_t); + + /* Error logging */ +-extern int log; +-extern int errors; ++extern int logging; ++extern int error_count; + extern const char *error_file; + + extern int flag_verbose; +--- insmod/insmod.c ++++ insmod/insmod.c +@@ -275,7 +275,7 @@ + if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) { + gplonly_seen = 1; + if (gpl) +- ((char *)s->name) += 8; ++ s->name = ((char *)s->name) + 8; + else + continue; + } +@@ -1679,7 +1679,7 @@ + error_file = "insmod"; + + /* To handle repeated calls from combined modprobe */ +- errors = optind = 0; ++ error_count = optind = 0; + + /* Process the command line. */ + while ((o = getopt_long(argc, argv, "fhkLmnpqrsSvVxXyYNe:o:O:P:R:", +@@ -2064,7 +2064,7 @@ + goto out; + /**** No symbols or sections to be changed after kallsyms above ***/ + +- if (errors) ++ if (error_count) + goto out; + + /* If we were just checking, we made it. */ +@@ -2123,10 +2123,10 @@ + test_read.m.read_start = m_addr + sizeof(struct module); + test_read.m.read_end = test_read.m.read_start + sizeof(test_read.data); + if (sys_init_module(m_name, (struct module *) &test_read)) { +- int old_errors = errors; ++ int old_errors = error_count; + error("has persistent data but the kernel is too old to support it." + " Expect errors during rmmod as well"); +- errors = old_errors; ++ error_count = old_errors; + } + } + +@@ -2152,7 +2152,7 @@ + #else + init_module(m_name, f, m_size, blob_name, noload, flag_load_map); + #endif +- if (errors) { ++ if (error_count) { + if (!noload) + delete_module(m_name); + goto out; +--- insmod/kallsyms.c ++++ insmod/kallsyms.c +@@ -80,7 +80,7 @@ + error_file = "kallsyms"; + + /* To handle repeated calls from combined modprobe */ +- errors = optind = 0; ++ error_count = optind = 0; + + /* Process the command line. */ + while ((c = getopt_long(argc, argv, "Vh", +--- insmod/modprobe.c ++++ insmod/modprobe.c +@@ -1023,7 +1023,7 @@ + if (quiet) + my_argv[my_argc++] = "-q"; + +- if (log) ++ if (logging) + my_argv[my_argc++] = "-s"; + + if (insmod_opt) { +--- insmod/rmmod.c ++++ insmod/rmmod.c +@@ -261,9 +261,9 @@ + read_parm.m.read_start = mp->sym->value; + read_parm.m.read_end = read_parm.m.read_start + datasize; + if (sys_init_module(module, (struct module *) &read_parm)) { +- int old_errors = errors; ++ int old_errors = error_count; + error("has persistent data but the kernel is too old to support it."); +- errors = old_errors; ++ error_count = old_errors; + return(0); + } + +--- util/logger.c ++++ util/logger.c +@@ -31,10 +31,10 @@ + + /*======================================================================*/ + +-int log; ++int logging; + static int silent; + +-int errors; ++int error_count; + const char *error_file; + const char *program_name; + +@@ -75,7 +75,7 @@ + + if (silent) + ; +- else if (log) { ++ else if (logging) { + char buf[2*PATH_MAX]; + int n; + +@@ -100,7 +100,7 @@ + putc('\n', stderr); + } + +- errors++; ++ error_count++; + } + + void lprintf(const char *fmt,...) +@@ -108,7 +108,7 @@ + va_list args; + + if (silent); +- else if (log) { ++ else if (logging) { + char buf[2*PATH_MAX]; + va_start(args, fmt); + vsnprintf(buf, sizeof(buf), fmt, args); +@@ -132,5 +132,5 @@ + #ifdef STOREMSG + atexit(dumpmsg); + #endif +- log = 1; ++ logging = 1; + } +--- obj/obj_kallsyms.c ++++ obj/obj_kallsyms.c +@@ -200,8 +200,8 @@ + + /* Initial contents, header + one entry per input section. No strings. */ + osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec); +- a_hdr = (struct kallsyms_header *) osec->contents = +- xmalloc(osec->header.sh_size); ++ osec->contents = xmalloc(osec->header.sh_size); ++ a_hdr = (struct kallsyms_header *) osec->contents; + memset(osec->contents, 0, osec->header.sh_size); + a_hdr->size = sizeof(*a_hdr); + a_hdr->sections = loaded; +@@ -275,8 +275,8 @@ + a_hdr->symbol_off + + a_hdr->symbols*a_hdr->symbol_size + + strings_size - strings_left; +- a_hdr = (struct kallsyms_header *) osec->contents = +- xrealloc(a_hdr, a_hdr->total_size); ++ osec->contents = xrealloc(a_hdr, a_hdr->total_size); ++ a_hdr = (struct kallsyms_header *) osec->contents; + p = (char *)a_hdr + a_hdr->symbol_off; + memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size); + free(symbols); +--- obj/obj_ppc.c ++++ obj/obj_ppc.c +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + + /*======================================================================*/ +@@ -255,7 +256,8 @@ + archdata_sec->header.sh_size = 0; + sec = obj_find_section(f, "__ftr_fixup"); + if (sec) { +- ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad)); ++ archdata_sec->contents = xmalloc(sizeof(*ad)); ++ ad = (struct archdata *) (archdata_sec->contents); + memset(ad, 0, sizeof(*ad)); + archdata_sec->header.sh_size = sizeof(*ad); + ad->__start___ftr_fixup = sec->header.sh_addr; diff --git a/sys-apps/modutils/files/modutils-2.4.27-no-nested-function.patch b/sys-apps/modutils/files/modutils-2.4.27-no-nested-function.patch new file mode 100644 index 000000000000..7af4599c7154 --- /dev/null +++ b/sys-apps/modutils/files/modutils-2.4.27-no-nested-function.patch @@ -0,0 +1,43 @@ +Patch by the PaX team to get rid of executable stacks. + +--- modutils/insmod/insmod.c ++++ modutils/insmod/insmod.c +@@ -366,18 +366,21 @@ static void hide_special_symbols(struct + sym->info = ELFW(ST_INFO) (STB_LOCAL, ELFW(ST_TYPE) (sym->info)); + } + ++static struct obj_file *load_map_file; ++ ++static int load_map_cmp(const void *a, const void *b) { ++ struct obj_symbol **as = (struct obj_symbol **) a; ++ struct obj_symbol **bs = (struct obj_symbol **) b; ++ unsigned long aa = obj_symbol_final_value(load_map_file, *as); ++ unsigned long ba = obj_symbol_final_value(load_map_file, *bs); ++ return aa < ba ? -1 : aa > ba ? 1 : 0; ++} ++ + static void print_load_map(struct obj_file *f) + { + struct obj_symbol *sym; + struct obj_symbol **all, **p; + struct obj_section *sec; +- int load_map_cmp(const void *a, const void *b) { +- struct obj_symbol **as = (struct obj_symbol **) a; +- struct obj_symbol **bs = (struct obj_symbol **) b; +- unsigned long aa = obj_symbol_final_value(f, *as); +- unsigned long ba = obj_symbol_final_value(f, *bs); +- return aa < ba ? -1 : aa > ba ? 1 : 0; +- } + int i, nsyms, *loaded; + + /* Report on the section layout. */ +@@ -425,7 +428,9 @@ static void print_load_map(struct obj_fi + *p++ = sym; + + /* Sort them by final value. */ ++ load_map_file = f; + qsort(all, nsyms, sizeof(struct obj_file *), load_map_cmp); ++ load_map_file = NULL; + + /* And list them. */ + lprintf("\nSymbols:"); diff --git a/sys-apps/modutils/metadata.xml b/sys-apps/modutils/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/modutils/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/modutils/modutils-2.4.27-r1.ebuild b/sys-apps/modutils/modutils-2.4.27-r1.ebuild new file mode 100644 index 000000000000..e878f2845150 --- /dev/null +++ b/sys-apps/modutils/modutils-2.4.27-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Standard kernel module utilities for linux-2.4 and older" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/modutils/" +SRC_URI="mirror://kernel/linux/utils/kernel/${PN}/v2.4/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="" + +RDEPEND="!sys-apps/module-init-tools + !sys-apps/kmod" + +src_prepare() { + epatch "${FILESDIR}"/${P}-alias.patch + epatch "${FILESDIR}"/${P}-gcc.patch + epatch "${FILESDIR}"/${P}-flex.patch + epatch "${FILESDIR}"/${P}-no-nested-function.patch +} + +src_configure() { + econf \ + --prefix=/ \ + --disable-strip \ + --enable-insmod-static \ + --disable-zlib +} + +src_install() { + einstall prefix="${D}" + rm -r "${ED}"/usr/share/man/man2 || die + dodoc CREDITS ChangeLog NEWS README TODO +} diff --git a/sys-apps/more/Manifest b/sys-apps/more/Manifest new file mode 100644 index 000000000000..569b7a1eb5bb --- /dev/null +++ b/sys-apps/more/Manifest @@ -0,0 +1 @@ +DIST util-linux-2.12r.tar.bz2 1370907 SHA256 b8e499b338ce9fbd1fb315194b26540ec823c0afc46c9e145ac7a3e38ad57e6b diff --git a/sys-apps/more/files/more-2.12r-freebsd.patch b/sys-apps/more/files/more-2.12r-freebsd.patch new file mode 100644 index 000000000000..09a1ac60f717 --- /dev/null +++ b/sys-apps/more/files/more-2.12r-freebsd.patch @@ -0,0 +1,65 @@ +diff -Nur util-linux-2.12r.orig/text-utils/Makefile util-linux-2.12r/text-utils/Makefile +--- util-linux-2.12r.orig/text-utils/Makefile 2007-06-14 13:37:07 -0600 ++++ util-linux-2.12r/text-utils/Makefile 2007-06-14 15:11:01 -0600 +@@ -30,13 +30,19 @@ + CFLAGS:=$(CFLAGS) -DPGNOBELL + endif + ++# On FreeBSD, we need to include libcompat (more uses re_comp & re_exec) ++OS=$(shell uname) ++ifeq "$(OS)" "FreeBSD" ++ LIBCOMPAT=-lcompat ++endif ++ + all: $(BIN) $(USRBIN) + + # more and pg and ul use curses - maybe we can't compile them + ifeq "$(HAVE_NCURSES)" "yes" + # Have ncurses - make more and pg and ul + more pg ul: +- $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBCURSES) ++ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBCURSES) $(LIBCOMPAT) + more: more.o $(LIB)/xstrncpy.o + pg: pg.o + ul: ul.o +diff -Nur util-linux-2.12r.orig/text-utils/more.c util-linux-2.12r/text-utils/more.c +--- util-linux-2.12r.orig/text-utils/more.c 2007-06-14 13:37:07 -0600 ++++ util-linux-2.12r/text-utils/more.c 2007-06-14 13:28:34 -0600 +@@ -63,6 +63,16 @@ + #include + #undef _REGEX_RE_COMP + ++/* Include limits.h on FreeBSD */ ++#ifdef __FreeBSD__ ++#include ++#endif ++ ++/* Define CBAUD for FreeBSD */ ++#ifndef CBAUD ++#define CBAUD 0010017 ++#endif ++ + #define VI "vi" /* found on the user's path */ + + #define Fopen(s,m) (Currline = 0,file_pos=0,fopen(s,m)) +@@ -1560,7 +1570,7 @@ + } + if (feof (file)) { + if (!no_intty) { +-#ifndef __linux__ ++#if !defined(__linux__) && !defined(__FreeBSD__) + /* No longer in libc 4.5.8. . . */ + file->_flags &= ~STDIO_S_EOF_SEEN; /* why doesn't fseek do this ??!!??! */ + #endif +@@ -1805,7 +1815,11 @@ + tcgetattr(fileno(stderr), &otty); + savetty0 = otty; + slow_tty = (otty.c_cflag & CBAUD) < B1200; ++#ifdef __FreeBSD__ ++ hardtabs = 1; ++#else + hardtabs = (otty.c_oflag & TABDLY) != XTABS; ++#endif + if (!no_tty) { + otty.c_lflag &= ~(ICANON|ECHO); + otty.c_cc[VMIN] = 1; diff --git a/sys-apps/more/metadata.xml b/sys-apps/more/metadata.xml new file mode 100644 index 000000000000..d9cd2cad66c2 --- /dev/null +++ b/sys-apps/more/metadata.xml @@ -0,0 +1,7 @@ + + + + +maintainer-needed@gentoo.org + + diff --git a/sys-apps/more/more-2.12r.ebuild b/sys-apps/more/more-2.12r.ebuild new file mode 100644 index 000000000000..fb2699e53c73 --- /dev/null +++ b/sys-apps/more/more-2.12r.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils flag-o-matic + +DESCRIPTION="Primitive text file viewer" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/" +SRC_URI="mirror://kernel/linux/utils/util-linux/util-linux-${PV}.tar.bz2" +S=${WORKDIR}/util-linux-${PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64-fbsd ~x86-fbsd" +IUSE="static nls selinux" + +RDEPEND="!static? ( >=sys-libs/ncurses-5.2-r2 ) + selinux? ( sys-libs/libselinux ) + !sys-apps/util-linux" +DEPEND="${RDEPEND} + static? ( >=sys-libs/ncurses-5.2-r2[static-libs] ) + nls? ( sys-devel/gettext )" + +yesno() { use $1 && echo yes || echo no; } + +src_prepare() { + epatch "${FILESDIR}"/${P}-freebsd.patch + + # Enable random features + local mconfigs="MCONFIG" + sed -i \ + -e "/^HAVE_SELINUX=/s:no:$(yesno selinux):" \ + -e "/^DISABLE_NLS=/s:no:$(yesno !nls):" \ + -e "/^HAVE_KILL=/s:no:yes:" \ + -e "/^HAVE_SLN=/s:no:yes:" \ + -e "/^HAVE_TSORT/s:no:yes:" \ + -e "s:-pipe -O2 \$(CPUOPT) -fomit-frame-pointer:${CFLAGS}:" \ + -e "s:CPU=.*:CPU=${CHOST%%-*}:" \ + -e "s:SUIDMODE=.*4755:SUIDMODE=4711:" \ + ${mconfigs} || die "MCONFIG sed" +} + +src_configure() { + use static && append-ldflags -static + export CC="$(tc-getCC)" + + econf || die "configure failed" +} + +src_compile() { + emake -C lib xstrncpy.o || die "emake xstrncpy.o failed" + emake -C text-utils more || die "emake more failed" +} + +src_install() { + exeinto /bin + doexe text-utils/more || die + doman text-utils/more.1 || die + dodoc HISTORY MAINTAINER README VERSION +} diff --git a/sys-apps/moreutils/Manifest b/sys-apps/moreutils/Manifest new file mode 100644 index 000000000000..f2988ac52299 --- /dev/null +++ b/sys-apps/moreutils/Manifest @@ -0,0 +1,7 @@ +DIST moreutils_0.50.tar.gz 46952 SHA256 4df833f17c2c6781c1d500ac51455af1929db5aeb96d06e45b00489393b37714 SHA512 d83a0552693cf32509b5ea2bf781e5f415d6a78470200234f1f18197d2d1f7ffefb0eed0a5cb09737211dc35009d175cf261651a7d9af99ead7df2b2161b9e54 WHIRLPOOL ac74c23824d76e97b410bde0e345f358fa8817e55e94380bdb5b1906d4d737853885238bd346397cfbc4baa29e9e6a756c4c6b8c1c2af1e7a070da2d0841ab5a +DIST moreutils_0.51.tar.gz 47404 SHA256 579e1e61f874d105ec3b6cf898a3ce7e487a58773a44769ce34c2fc7315cb141 SHA512 d81e2a51d5a7740590bebef7db929a0296f73fe3d58a58e3524cbe8392b3ba8c77769136327784bda0c23558a2b4109ec84c263a48abfa3a1fbdaeef12e877aa WHIRLPOOL 7fbbae5937ca9e634ba888fa99090c534f7c43618ab227f06725d68f36294816ecbdb2e81bdb66db95d2486ca39135f7ea86220dd793e2bbd36f6a6d4e25e79e +DIST moreutils_0.52.tar.gz 47511 SHA256 c4bcf2f5bac09312ed5aa48d2cecd77a1c9609017b7a2acb2ac9fdd197480ffb SHA512 a2d9380bcaa1cefc1c1c744e71bf551fadeee4a76d7fac67051d4ca746e8f8df2a1c0a8e5721b430223958208189931168885777a5a0cb1ca66dc74421ef5b1b WHIRLPOOL e78fc1d9299e1dd2c333e895323566dac25cbe513d5ecddbfeee6104d1d925a4e67d3bcf1195dd4faf44b025e7619d15a4c257fc37150bc77bff42bfe9cb8b5a +DIST moreutils_0.53.tar.gz 47613 SHA256 4f1842467759b6747f28a624c317a315f0b54a44440d2c8e2eec4d10144696fc SHA512 ea4eec3f66b14d86898da178dc3b7900ea4b266a8118e6b2decb2dd01217ae5918d4b45b952366be12a27b8b83791ec877ec0749e3272e6adb4fb1f14b706bf1 WHIRLPOOL b9d7f14fd1b77bb7f2bbc6ccbfeb07a0af743509809ecb2f1b9a448ecaf0a5f517cca384e3792e149b95679054cc27d73ffb9c5dd71c9c735fd0a4921960980b +DIST moreutils_0.54.orig.tar.gz 45575 SHA256 50281c4d6bbbc8ab08f881c44a01c367049a09c19b7375023dec2543493b529f SHA512 c398ed126e5735356688654ee361063cbe8dbd76ff28aa856feb87c0a1fe812d78c2cd1ee84b029180c45161720659669960362583744ad4c9e3105c2575a2a1 WHIRLPOOL 0911b70552bcd2d542503fd3b1f84362f62b5a4719fff8aa4452774e735a28ff86f674f85ce66285fdb14e8397a65f857cfc4b86a27d81b27df9eaf8f1a8dee8 +DIST moreutils_0.55.orig.tar.gz 46500 SHA256 da9d5cd145ceea967a65dd50031d168d66199c3eb41b9390b57f35d4a5808ab5 SHA512 9a64057015cb9d1f957c438a35efc57c09438a033d0e58aed5e7fc0cd3c125df91b075a2f14b78d75c7e89b3b41fdba573b4cf41aba08bef7230f5a8794ee1a3 WHIRLPOOL 595692ac0d3ef5eee5323d682bd2a9e722fae2f33ef63199539d5612cc9b9a6c9a8eb96561149e13f03a6df4587532a231f7b00ff45694e2752b0753bd17efee +DIST moreutils_0.56.orig.tar.gz 46704 SHA256 ec4b7a1e1d1e1d6ec606d2877301ec06c6cf4091776687d9b76f4d019705e77f SHA512 1793619f791fa2da9d233e0ee90ba4d843ced638f059406bec84f476a1300df33288fc34452a2912de7006e1ba2a75492785024148fad6c8372987147fb8616f WHIRLPOOL 21eecda882856d0c4ee2fa744a9a10a8ac71333f64d592277fcb93cd6ed14bf59003dd16a2a8985f27556344e884d60e2c28556fd024638e3ce30f7397aa5bd1 diff --git a/sys-apps/moreutils/files/moreutils-0.47-dtd-path.patch b/sys-apps/moreutils/files/moreutils-0.47-dtd-path.patch new file mode 100644 index 000000000000..fe3b290ca61f --- /dev/null +++ b/sys-apps/moreutils/files/moreutils-0.47-dtd-path.patch @@ -0,0 +1,99 @@ +--- moreutils/errno.docbook ++++ moreutils/errno.docbook +@@ -21,7 +21,7 @@ + --> + + + + +--- moreutils/ifdata.docbook ++++ moreutils/ifdata.docbook +@@ -21,7 +21,7 @@ + --> + + + + +--- moreutils/ifne.docbook ++++ moreutils/ifne.docbook +@@ -21,7 +21,7 @@ + --> + + + + +--- moreutils/isutf8.docbook ++++ moreutils/isutf8.docbook +@@ -21,7 +21,7 @@ + --> + + + + +--- moreutils/lckdo.docbook ++++ moreutils/lckdo.docbook +@@ -8,7 +8,7 @@ + --> + + + + +--- moreutils/mispipe.docbook ++++ moreutils/mispipe.docbook +@@ -21,7 +21,7 @@ + --> + + + + +--- moreutils/parallel.docbook ++++ moreutils/parallel.docbook +@@ -7,7 +7,7 @@ + --> + + + + +--- moreutils/pee.docbook ++++ moreutils/pee.docbook +@@ -21,7 +21,7 @@ + --> + + + + +--- moreutils/sponge.docbook ++++ moreutils/sponge.docbook +@@ -21,7 +21,7 @@ + --> + + + + diff --git a/sys-apps/moreutils/metadata.xml b/sys-apps/moreutils/metadata.xml new file mode 100644 index 000000000000..c788db534783 --- /dev/null +++ b/sys-apps/moreutils/metadata.xml @@ -0,0 +1,15 @@ + + + + + gregkh@gentoo.org + Greg Kroah-Hartman + + + radhermit@gentoo.org + Tim Harder + + + Install scripts written in Perl + + diff --git a/sys-apps/moreutils/moreutils-0.50.ebuild b/sys-apps/moreutils/moreutils-0.50.ebuild new file mode 100644 index 000000000000..68f5ef3fae4f --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.50.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs prefix + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~ppc ~ppc64 x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.47-dtd-path.patch + eprefixify *.docbook + + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/moreutils/moreutils-0.51.ebuild b/sys-apps/moreutils/moreutils-0.51.ebuild new file mode 100644 index 000000000000..70a13f71c110 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.51.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +S=${WORKDIR}/${PN} + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/moreutils/moreutils-0.52.ebuild b/sys-apps/moreutils/moreutils-0.52.ebuild new file mode 100644 index 000000000000..70a13f71c110 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.52.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +S=${WORKDIR}/${PN} + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/moreutils/moreutils-0.53.ebuild b/sys-apps/moreutils/moreutils-0.53.ebuild new file mode 100644 index 000000000000..70a13f71c110 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.53.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +S=${WORKDIR}/${PN} + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/moreutils/moreutils-0.54.ebuild b/sys-apps/moreutils/moreutils-0.54.ebuild new file mode 100644 index 000000000000..eb319399b3b1 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.54.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/moreutils/moreutils-0.55.ebuild b/sys-apps/moreutils/moreutils-0.55.ebuild new file mode 100644 index 000000000000..c0eafcc02891 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.55.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/moreutils/moreutils-0.56.ebuild b/sys-apps/moreutils/moreutils-0.56.ebuild new file mode 100644 index 000000000000..c0eafcc02891 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.56.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="a growing collection of the unix tools that nobody thought to write thirty years ago" +HOMEPAGE="http://joeyh.name/code/moreutils/" +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} diff --git a/sys-apps/most/Manifest b/sys-apps/most/Manifest new file mode 100644 index 000000000000..9ae65ec729bb --- /dev/null +++ b/sys-apps/most/Manifest @@ -0,0 +1 @@ +DIST most-5.0.0a.tar.bz2 131130 SHA256 94cb5a2e71b6b9063116f4398a002a757e59cd1499f1019dde8874f408485aa9 SHA512 0c101777250a15ed9cbe0bfbaa17d0ac5ef973a7e0730d096bd931ba578dbcbd4f244305c99a50bc8fd8aa1937b621a97a6452b3821fee7d72f33a02da278e5d WHIRLPOOL 26beeeed2b46b06edb5dcfb8cf009070964e74e42e78a29068c343b5863764e4b8fa8e8457481523589f37f72171b3be4b603d071fba80ad756dd9c3cdbac374 diff --git a/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch b/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch new file mode 100644 index 000000000000..37e786c26b0c --- /dev/null +++ b/sys-apps/most/files/most-5.0.0a-donot-hardcode-path.patch @@ -0,0 +1,33 @@ +Author: Benda Xu +Date: 2014-12-08 +Forwarded: John E. Davis + +cp or rm does not necessarily reside in /bin. If it does, /bin is +in $PATH by convention. In either case, hardcoding /bin/cp or /bin/rm +is not a good idea. + +Index: most-5.0.0a/src/Makefile.in +=================================================================== +--- most-5.0.0a.orig/src/Makefile.in ++++ most-5.0.0a/src/Makefile.in +@@ -61,7 +61,7 @@ $(OBJDIR): + -mkdir $(OBJDIR) + # + $(CONFIG_H) : $(SRCDIR)/sysconf.h +- /bin/cp $(SRCDIR)/sysconf.h $(CONFIG_H) ++ cp $(SRCDIR)/sysconf.h $(CONFIG_H) + # + slangversion: $(OBJDIR)/chkslang + $(OBJDIR)/chkslang $(EXEC) 20000 +@@ -75,9 +75,9 @@ $(SRCDIR)/version.h: $(SRCDIR)/../change + fi + # + clean: +- /bin/rm -f $(OBJDIR)/* *~ ++ rm -f $(OBJDIR)/* *~ + distclean: clean +- /bin/rm -rf $(OBJDIR) Makefile sysconf.h ++ rm -rf $(OBJDIR) Makefile sysconf.h + installdirs: + $(MKINSDIR) $(DEST_DOCDIR) + $(MKINSDIR) $(DEST_MANDIR)/man1 diff --git a/sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch b/sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch new file mode 100644 index 000000000000..f858f56f7bc1 --- /dev/null +++ b/sys-apps/most/files/most-5.0.0a-no-explicit-termcap.patch @@ -0,0 +1,216 @@ +Author: Benda Xu +Date: 2014-12-08 +Forwarded: John E. Davis + +"most" completely replies on slang to access terminfo/termcap, by +SLtt_get_terminfo() and friends. + +Nothing should be considered by most but to find slang. Therefore it +should not link against libtermcap in any case. + + * configure.ac: remove JD_TERMCAP + * configure: regenerate with autoconf-2.61 + * src/Makefile.in: remove libtermcap linking + +Index: most-5.0.0a/autoconf/configure.ac +=================================================================== +--- most-5.0.0a.orig/autoconf/configure.ac ++++ most-5.0.0a/autoconf/configure.ac +@@ -62,7 +62,6 @@ getpgrp tcgetpgrp \ + ) + + JD_SET_OBJ_SRC_DIR +-JD_TERMCAP + JD_WITH_LIBRARY(slang) + JD_GCC_WARNINGS + JD_GET_MODULES(src/modules.lis) +Index: most-5.0.0a/configure +=================================================================== +--- most-5.0.0a.orig/configure ++++ most-5.0.0a/configure +@@ -700,8 +700,6 @@ X_EXTRA_LIBS + SRCDIR + OBJDIR + ELFDIR +-TERMCAP +-MISC_TERMINFO_DIRS + SLANG_LIB + SLANG_INC + PROGRAM_OFILES +@@ -9064,13 +9062,11 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ +-#include /* for off_t */ +- #include ++#include + int + main () + { +-int (*fp) (FILE *, off_t, int) = fseeko; +- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); ++return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); + ; + return 0; + } +@@ -9110,13 +9106,11 @@ cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + #define _LARGEFILE_SOURCE 1 +-#include /* for off_t */ +- #include ++#include + int + main () + { +-int (*fp) (FILE *, off_t, int) = fseeko; +- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); ++return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); + ; + return 0; + } +@@ -9777,42 +9771,6 @@ OBJDIR=$SRCDIR/"$ARCH"objs + ELFDIR=$SRCDIR/elf"$ARCH"objs + + +-{ echo "$as_me:$LINENO: checking for Terminfo" >&5 +-echo $ECHO_N "checking for Terminfo... $ECHO_C" >&6; } +-MISC_TERMINFO_DIRS="$FINKPREFIX/share/terminfo" +-if test ! -d $MISC_TERMINFO_DIRS +-then +- MISC_TERMINFO_DIRS="" +-fi +- +-JD_Terminfo_Dirs="/usr/lib/terminfo \ +- /usr/share/terminfo \ +- /usr/share/lib/terminfo \ +- /usr/local/lib/terminfo \ +- $MISC_TERMINFO_DIRS" +- +-TERMCAP=-ltermcap +- +-for terminfo_dir in $JD_Terminfo_Dirs +-do +- if test -d $terminfo_dir +- then +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +- TERMCAP="" +- break +- fi +-done +-if test "$TERMCAP"; then +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +- cat >>confdefs.h <<\_ACEOF +-#define USE_TERMCAP 1 +-_ACEOF +- +-fi +- +- + if test "X$jd_prefix" = "X" + then + jd_prefix=$ac_default_prefix +@@ -10858,8 +10816,6 @@ X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim + SRCDIR!$SRCDIR$ac_delim + OBJDIR!$OBJDIR$ac_delim + ELFDIR!$ELFDIR$ac_delim +-TERMCAP!$TERMCAP$ac_delim +-MISC_TERMINFO_DIRS!$MISC_TERMINFO_DIRS$ac_delim + SLANG_LIB!$SLANG_LIB$ac_delim + SLANG_INC!$SLANG_INC$ac_delim + PROGRAM_OFILES!$PROGRAM_OFILES$ac_delim +@@ -10868,9 +10824,10 @@ PROGRAM_HFILES!$PROGRAM_HFILES$ac_delim + PROGRAM_OBJECTS!$PROGRAM_OBJECTS$ac_delim + PROGRAM_ELFOBJECTS!$PROGRAM_ELFOBJECTS$ac_delim + LIBOBJS!$LIBOBJS$ac_delim ++LTLIBOBJS!$LTLIBOBJS$ac_delim + _ACEOF + +- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then + break + elif $ac_last_try; then + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +@@ -10906,50 +10863,6 @@ CEOF$ac_eof + _ACEOF + + +-ac_delim='%!_!# ' +-for ac_last_try in false false false false false :; do +- cat >conf$$subs.sed <<_ACEOF +-LTLIBOBJS!$LTLIBOBJS$ac_delim +-_ACEOF +- +- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then +- break +- elif $ac_last_try; then +- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} +- { (exit 1); exit 1; }; } +- else +- ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +- fi +-done +- +-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` +-if test -n "$ac_eof"; then +- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` +- ac_eof=`expr $ac_eof + 1` +-fi +- +-cat >>$CONFIG_STATUS <<_ACEOF +-cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof +-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end +-_ACEOF +-sed ' +-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g +-s/^/s,@/; s/!/@,|#_!!_#|/ +-:n +-t n +-s/'"$ac_delim"'$/,g/; t +-s/$/\\/; p +-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n +-' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF +-:end +-s/|#_!!_#|//g +-CEOF$ac_eof +-_ACEOF +- +- + # VPATH may cause trouble with some makes, so we remove $(srcdir), + # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and + # trailing colons and then remove the whole line if VPATH becomes empty +@@ -11193,7 +11106,7 @@ s&@abs_builddir@&$ac_abs_builddir&;t t + s&@abs_top_builddir@&$ac_abs_top_builddir&;t t + s&@INSTALL@&$ac_INSTALL&;t t + $ac_datarootdir_hack +-" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out ++" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out + + test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && +Index: most-5.0.0a/src/Makefile.in +=================================================================== +--- most-5.0.0a.orig/src/Makefile.in ++++ most-5.0.0a/src/Makefile.in +@@ -3,7 +3,6 @@ CFLAGS = @CFLAGS@ @SLANG_DLL_CFLAGS@ + LDFLAGS = @LDFLAGS@ + SLANG_INC = @SLANG_INC@ + SLANG_LIB = @SLANG_LIB@ -lslang +-MISCLIBS = @TERMCAP@ + RPATH = @RPATH@ + + #----------------------------------------------------------------------------- +@@ -44,7 +43,7 @@ EXEC = most + CONFIG_H = config.h + INCS = $(SLANG_INC) + ALL_CFLAGS = $(CFLAGS) -Dunix $(INCS) +-EXECLIBS = $(RPATH) $(SLANG_LIB) $(MISCLIBS) -lm ++EXECLIBS = $(RPATH) $(SLANG_LIB) -lm + # + most_O_DEP = $(SRCDIR)/version.h + UPDATE_VERSION_SCRIPT = $(HOME)/bin/update_changes_version diff --git a/sys-apps/most/metadata.xml b/sys-apps/most/metadata.xml new file mode 100644 index 000000000000..f23b9cae1593 --- /dev/null +++ b/sys-apps/most/metadata.xml @@ -0,0 +1,5 @@ + + + + shell-tools + diff --git a/sys-apps/most/most-5.0.0a-r1.ebuild b/sys-apps/most/most-5.0.0a-r1.ebuild new file mode 100644 index 000000000000..d6cfd9955f5c --- /dev/null +++ b/sys-apps/most/most-5.0.0a-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="Paging program that displays, one windowful at a time, the contents of a file" +HOMEPAGE="ftp://space.mit.edu/pub/davis/most" +SRC_URI="ftp://space.mit.edu/pub/davis/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~mips ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND=">=sys-libs/slang-2.1.3" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.0.0a-no-explicit-termcap.patch + epatch "${FILESDIR}"/${PN}-5.0.0a-donot-hardcode-path.patch + sed -i -e 's:$(INSTALL) -s:$(INSTALL):' src/Makefile.in || die + export MAKEOPTS+=" -j1" +} + +src_configure() { + unset ARCH + econf +} + +src_install() { + emake DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" \ + install +} diff --git a/sys-apps/mount-gtk/Manifest b/sys-apps/mount-gtk/Manifest new file mode 100644 index 000000000000..0a9d18f75063 --- /dev/null +++ b/sys-apps/mount-gtk/Manifest @@ -0,0 +1 @@ +DIST mount-gtk-1.4.2.tar.gz 232132 SHA256 755a4aae98c8c14c909dfc8da2e46f32ce720137edecdb3d8fcdc99fa02dbd03 SHA512 90fa174238d19bf009f5863e5571030091681038ddbfdc06c7a39f8859b78d9864b398899d66463d0f8a189e484201c7a32753b38898e0f5d55970feb85420ba WHIRLPOOL 17ea7baab7df013116e0c302c9fe9810c8a6d941e9de79cf05e3e9826a69fbc0ff49efb8d44d64658c472439019119b47adf7bab51a198616b5abda9708c47ea diff --git a/sys-apps/mount-gtk/files/mount-gtk-1.4.2-c++11.patch b/sys-apps/mount-gtk/files/mount-gtk-1.4.2-c++11.patch new file mode 100644 index 000000000000..f2898a0d2ca8 --- /dev/null +++ b/sys-apps/mount-gtk/files/mount-gtk-1.4.2-c++11.patch @@ -0,0 +1,31 @@ +http://bugs.gentoo.org/484264 + +--- configure.ac ++++ configure.ac +@@ -27,6 +27,7 @@ + AC_LANG_CPLUSPLUS dnl switch to C++ + AC_TYPE_SIZE_T + AC_CHECK_TYPES(ssize_t) ++AX_CHECK_COMPILE_FLAG([-std=c++11], [CXXFLAGS="$CXXFLAGS -std=c++11"]) + AC_CHECK_RANGE_FOR_SUPPORT + AC_CHECK_LAMBDA_SUPPORT + +--- m4/ax_check_compile_flag.m4 ++++ m4/ax_check_compile_flag.m4 +@@ -0,0 +1,16 @@ ++# This macro is part of autoconf-archive with license GPL-3 or any later version ++AC_DEFUN([AX_CHECK_COMPILE_FLAG], ++[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX ++AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl ++AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ ++ ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS ++ _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" ++ AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], ++ [AS_VAR_SET(CACHEVAR,[yes])], ++ [AS_VAR_SET(CACHEVAR,[no])]) ++ _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) ++AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes], ++ [m4_default([$2], :)], ++ [m4_default([$3], :)]) ++AS_VAR_POPDEF([CACHEVAR])dnl ++])dnl AX_CHECK_COMPILE_FLAGS diff --git a/sys-apps/mount-gtk/metadata.xml b/sys-apps/mount-gtk/metadata.xml new file mode 100644 index 000000000000..e734d7e194fd --- /dev/null +++ b/sys-apps/mount-gtk/metadata.xml @@ -0,0 +1,12 @@ + + + + desktop-misc + + ssuominen@gentoo.org + Samuli Suominen + + + mount-gtk + + diff --git a/sys-apps/mount-gtk/mount-gtk-1.4.2.ebuild b/sys-apps/mount-gtk/mount-gtk-1.4.2.ebuild new file mode 100644 index 000000000000..7945e065f7ed --- /dev/null +++ b/sys-apps/mount-gtk/mount-gtk-1.4.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic + +DESCRIPTION="GTK+ based UDisks2 frontend" +HOMEPAGE="http://mount-gtk.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-libs/glib-2.28 + sys-fs/udisks:2 + x11-libs/c++-gtk-utils:0 + x11-libs/libX11 + x11-libs/libnotify:=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS BUGS ChangeLog ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-c++11.patch + sed -i -e 's:AC_CONFIG_HEADER:&S:' configure.ac || die + eautoreconf +} + +src_configure() { + # acinclude.m4 is broken and environment flags override these: + append-cxxflags -fexceptions -frtti -fsigned-char -fno-check-new -pthread + econf --docdir=/usr/share/doc/${PF} +} diff --git a/sys-apps/mouseemu/Manifest b/sys-apps/mouseemu/Manifest new file mode 100644 index 000000000000..6c8c00787ebd --- /dev/null +++ b/sys-apps/mouseemu/Manifest @@ -0,0 +1,2 @@ +DIST mouseemu-0.15.tar.gz 13958 SHA256 bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59 +DIST mouseemu.tar.gz 12019 SHA256 67d5015d2859a58794208278178eabb7b189cb9da106628085c75c7a50f7ee9c diff --git a/sys-apps/mouseemu/files/mouseemu-0.12-fix.diff b/sys-apps/mouseemu/files/mouseemu-0.12-fix.diff new file mode 100644 index 000000000000..993f7633e127 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.12-fix.diff @@ -0,0 +1,48 @@ +--- mouseemu-0.12.orig/Makefile ++++ mouseemu-0.12/Makefile +@@ -1,6 +1,6 @@ + all: +- gcc -Wall -I/usr/src/linux/include -g -o mouseemu mouseemu.c ++ gcc -Wall -g -o mouseemu mouseemu.c + clean: + rm -f *.o core* mouseemu + install: +- cp -f mouseemu /usr/sbin/ ++ cp -f mouseemu $(DESTDIR)/usr/sbin/ +--- mouseemu-0.12.orig/mouseemu.conf ++++ mouseemu-0.12/mouseemu.conf +@@ -0,0 +1,10 @@ ++# Mouseemu Configuration File ++# Each uncommented line is read by the mouseemu initscript ++# (/etc/init.d/mouseemu). If you use mouseemu without the ++# initscript, source this file in your .bashrc/.cshrc/.zshrc ++# Keycodes can be found using the "showkey" program. ++ ++#MID_CLICK="-middle 0 68" # F10 with no modifier ++#RIGHT_CLICK="-right 0 87" # F11 with no modifier ++#SCROLL="-scroll 56" # Alt key ++#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress +--- mouseemu-0.12.orig/mouseemu.c ++++ mouseemu-0.12/mouseemu.c +@@ -428,7 +428,7 @@ + "\t[-nofork]\n", + argv[0]); + printf("Key codes can be found in " +- "/usr/src/linux/include/linux.h,\n" ++ "/usr/src/linux/include/linux/input.h,\n" + "or by using `showkey` in console.\n" + "Use decimal values. BTN_LEFT(272) is usable as " + "B2_KEY or B3_KEY.\n\n"); +--- mouseemu-0.12.orig/mouseemu.init.gentoo.old ++++ mouseemu-0.12/mouseemu.init.gentoo +@@ -13,6 +13,10 @@ + + start() { + ebegin "Starting mouseemu" ++ # Source configuration file /etc/mouseemu.conf ++ if [ -f /etc/mouseemu.conf ] ; then ++ . /etc/mouseemu.conf ++ fi + start-stop-daemon --start --quiet \ + --exec /usr/sbin/mouseemu -- \ + $MID_CLICK $RIGHT_CLICK $SCROLL $TYPING_BLOCK > /var/log/mouseemu.log diff --git a/sys-apps/mouseemu/files/mouseemu-0.13-fix.patch b/sys-apps/mouseemu/files/mouseemu-0.13-fix.patch new file mode 100644 index 000000000000..f4d0aa981762 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.13-fix.patch @@ -0,0 +1,14 @@ +diff -Naur ../mouseemu.orig/mouseemu.conf ./mouseemu.conf +--- ../mouseemu.orig/mouseemu.conf 1970-01-01 01:00:00.000000000 +0100 ++++ ./mouseemu.conf 2005-02-14 09:10:30.236462888 +0100 +@@ -0,0 +1,10 @@ ++# Mouseemu Configuration File ++# Each uncommented line is read by the mouseemu initscript ++# (/etc/init.d/mouseemu). If you use mouseemu without the ++# initscript, source this file in your .bashrc/.cshrc/.zshrc ++# Keycodes can be found using the "showkey" program. ++ ++#MID_CLICK="-middle 0 68" # F10 with no modifier ++#RIGHT_CLICK="-right 0 87" # F11 with no modifier ++#SCROLL="-scroll 56" # Alt key ++#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress diff --git a/sys-apps/mouseemu/files/mouseemu-0.15-build.patch b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch new file mode 100644 index 000000000000..882d66fa7750 --- /dev/null +++ b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch @@ -0,0 +1,9 @@ +--- Makefile ++++ Makefile +@@ -1,5 +1,5 @@ + all: +- gcc -Wall -g -o mouseemu mouseemu.c ++ gcc -Wall $(CFLAGS) $(LDFLAGS) -o mouseemu mouseemu.c + clean: + rm -f *.o core* mouseemu + install: diff --git a/sys-apps/mouseemu/metadata.xml b/sys-apps/mouseemu/metadata.xml new file mode 100644 index 000000000000..034c09eb248a --- /dev/null +++ b/sys-apps/mouseemu/metadata.xml @@ -0,0 +1,5 @@ + + + +ppc + diff --git a/sys-apps/mouseemu/mouseemu-0.12.ebuild b/sys-apps/mouseemu/mouseemu-0.12.ebuild new file mode 100644 index 000000000000..b0c33169a8e8 --- /dev/null +++ b/sys-apps/mouseemu/mouseemu-0.12.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads" +HOMEPAGE="http://geekounet.org/powerbook/" +SRC_URI="http://geekounet.org/powerbook/files/${PN}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ppc" +IUSE="" +DEPEND="" + +src_unpack() { + unpack ${A} + mv ${WORKDIR}/${PN} ${WORKDIR}/${P} + epatch ${FILESDIR}/${P}-fix.diff +} + +src_compile() { + emake || die +} + +src_install() { + dosbin mouseemu + dodoc README COPYING + newinitd mouseemu.init.gentoo mouseemu + insinto /etc + doins mouseemu.conf +} + +pkg_postinst() { + einfo "For mouseemu to work you need uinput support in your kernel:" + einfo " CONFIG_INPUT_UINPUT=y" + einfo "(Device Drivers->Input device support->Misc->User level driver support)" + einfo "Don't forget to add mouseemu to your default runlevel:" + einfo " rc-update add mouseemu default" + einfo "Configuration is in /etc/mouseemu.conf." +} diff --git a/sys-apps/mouseemu/mouseemu-0.15.ebuild b/sys-apps/mouseemu/mouseemu-0.15.ebuild new file mode 100644 index 000000000000..42a1873fc250 --- /dev/null +++ b/sys-apps/mouseemu/mouseemu-0.15.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads" +HOMEPAGE="http://geekounet.org/powerbook/" +SRC_URI="http://geekounet.org/powerbook/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~ppc" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-0.13-fix.patch + epatch "${FILESDIR}"/${PN}-0.15-build.patch +} + +src_install() { + dosbin mouseemu || die + dodoc README + newinitd mouseemu.init.gentoo mouseemu + insinto /etc + doins mouseemu.conf +} + +pkg_postinst() { + einfo "For mouseemu to work you need uinput support in your kernel:" + einfo " CONFIG_INPUT_UINPUT=y" + einfo "(Device Drivers->Input device support->Misc->User level driver support)" + einfo "Don't forget to add mouseemu to your default runlevel:" + einfo " rc-update add mouseemu default" + einfo "Configuration is in /etc/mouseemu.conf." +} diff --git a/sys-apps/msr-tools/Manifest b/sys-apps/msr-tools/Manifest new file mode 100644 index 000000000000..19fc9289b823 --- /dev/null +++ b/sys-apps/msr-tools/Manifest @@ -0,0 +1,2 @@ +DIST msr-tools-1.2.tar.gz 3382 SHA256 5184cdcabd3e88e37023a5ca5a1c3d5cac22f17c7f2e47023336738209f1e94a SHA512 5f4265a1ab4b2dd78e7e964e2f3eb26997ccf1eac8abb273b18ffc9e5f6671c4983d99b8f734ef6b80a82c3eb75b672fbb4769f84e5df8a398f835f5f6194971 WHIRLPOOL ce5bbd25a1392d864288141df972af1f71062e6a11e819d28b6236890cdf6d92c63245a2a76c533f2c708ec8bcb847d1f7a93532f00fa687aae8c060f99c4b33 +DIST msr-tools_1.2-3.diff.gz 2276 SHA256 da0f4e9f4822a1b715190f4302f4cdeeb6545da7daebf82ab8ea299d62f1593c SHA512 eeaa35e45356042cb93ce0d1473dfebacbe9cf9099498827220bd5ec0036c88ee5c9842d602b5d147b2a0f2030358e9a02cec5bc77e4eb45e23b7ff2804fd6bd WHIRLPOOL 8e32d3adc4396e2136a96dc507495029b0d03105810a9bc08abe15f5c48db39ff30b432f928c19796b0fb885122d8775727a23a140bf7e4ddaf2258d4cef311b diff --git a/sys-apps/msr-tools/metadata.xml b/sys-apps/msr-tools/metadata.xml new file mode 100644 index 000000000000..07339f6f0ce8 --- /dev/null +++ b/sys-apps/msr-tools/metadata.xml @@ -0,0 +1,7 @@ + + + + + kensington@gentoo.org + + diff --git a/sys-apps/msr-tools/msr-tools-1.2.ebuild b/sys-apps/msr-tools/msr-tools-1.2.ebuild new file mode 100644 index 000000000000..208075366290 --- /dev/null +++ b/sys-apps/msr-tools/msr-tools-1.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CONFIG_CHECK="~X86_MSR" +DEB_P="msr-tools_1.2-3" + +inherit eutils linux-info toolchain-funcs + +DESCRIPTION="Utilities allowing the read and write of CPU model-specific registers (MSR)" +HOMEPAGE="http://www.kernel.org/pub/linux/utils/cpu/msr-tools/" +SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${P}.tar.gz mirror://debian/pool/main/m/${PN}/${DEB_P}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_prepare() { + epatch "${WORKDIR}"/${DEB_P}.diff +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dosbin rdmsr + dosbin wrmsr + + doman ${P}/debian/rdmsr.1 ${P}/debian/wrmsr.1 +} diff --git a/sys-apps/mtree/Manifest b/sys-apps/mtree/Manifest new file mode 100644 index 000000000000..d9e708d679c0 --- /dev/null +++ b/sys-apps/mtree/Manifest @@ -0,0 +1,2 @@ +DIST mtree-1.0.1.tar.gz 110979 SHA256 9f3283fc7b8b4961a611c8c66e1d873a4936fe0039998863ea9d116601a730c3 SHA512 47897a1763ba02d095d9d7179ffb513ca847c5e9bde27908a4ef94feced2d59baef6f95f8024cfce3c5f47e4f7b7ae64e283ce1589b2e3826fd14b13f88d4990 WHIRLPOOL 35c83ef93fed86b480b1be170c7b90d11f86a2b806270c559ccedbab2597706cb820dbd4e31dc053b3070bac9a73f09cbdc5549dd70f959ef9ccbcc7164b915d +DIST mtree-1.0.tar.gz 107599 SHA256 d58e180e48f298caf0ae0e9153b77b7a025898b7e978d51587a63318b0e3692f diff --git a/sys-apps/mtree/files/mtree-1.5-gcc4.patch b/sys-apps/mtree/files/mtree-1.5-gcc4.patch new file mode 100644 index 000000000000..a57feed85085 --- /dev/null +++ b/sys-apps/mtree/files/mtree-1.5-gcc4.patch @@ -0,0 +1,29 @@ +Index: bootstrap-pkgsrc/digest/sha2.h +=================================================================== +--- bootstrap-pkgsrc.orig/digest/sha2.h ++++ bootstrap-pkgsrc/digest/sha2.h +@@ -99,21 +99,21 @@ void SHA256_Init(SHA256_CTX *); + void SHA256_Update(SHA256_CTX*, const u_int8_t*, size_t); + void SHA256_Final(u_int8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); + char* SHA256_End(SHA256_CTX*, u_char *); +-char* SHA256_Data(const u_int8_t*, size_t, u_char *); ++char* SHA256_Data(const u_char*, size_t, u_char *); + char *SHA256_File(char *, char *); + + void SHA384_Init(SHA384_CTX*); + void SHA384_Update(SHA384_CTX*, const u_int8_t*, size_t); + void SHA384_Final(u_int8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*); + char* SHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]); +-char* SHA384_Data(const u_int8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]); ++char* SHA384_Data(const u_char*, size_t, char[SHA384_DIGEST_STRING_LENGTH]); + char *SHA384_File(char *, char *); + + void SHA512_Init(SHA512_CTX*); + void SHA512_Update(SHA512_CTX*, const u_int8_t*, size_t); + void SHA512_Final(u_int8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); + char* SHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]); +-char* SHA512_Data(const u_int8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH]); ++char* SHA512_Data(const u_char*, size_t, char[SHA512_DIGEST_STRING_LENGTH]); + char *SHA512_File(char *, char *); + + #endif /* SHA2_USE_INTTYPES_H */ diff --git a/sys-apps/mtree/files/mtree-2007.4+glibc-2.8.patch b/sys-apps/mtree/files/mtree-2007.4+glibc-2.8.patch new file mode 100644 index 000000000000..998715766f65 --- /dev/null +++ b/sys-apps/mtree/files/mtree-2007.4+glibc-2.8.patch @@ -0,0 +1,25 @@ +Index: pkgsrc/pkgtools/libnbcompat/files/nbcompat/limits.h +=================================================================== +--- pkgsrc.orig/pkgtools/libnbcompat/files/nbcompat/limits.h ++++ pkgsrc/pkgtools/libnbcompat/files/nbcompat/limits.h +@@ -43,6 +43,11 @@ + # include + #endif + ++/* Needed for glibc 2.8 */ ++#ifdef HAVE_SYS_PARAM_H ++# include ++#endif ++ + /* + * Declare functions and macros that may be missing in . + */ +@@ -77,4 +82,8 @@ + # define UID_MAX 2147483647U /* max value for a uid_t (2^31-2) */ + #endif + ++#if !defined(ARG_MAX) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) ) ++# define ARG_MAX sysconf(_SC_ARG_MAX) ++#endif ++ + #endif /* !_NBCOMPAT_LIMITS_H_ */ diff --git a/sys-apps/mtree/metadata.xml b/sys-apps/mtree/metadata.xml new file mode 100644 index 000000000000..659da0ca93c2 --- /dev/null +++ b/sys-apps/mtree/metadata.xml @@ -0,0 +1,5 @@ + + + + base-system + diff --git a/sys-apps/mtree/mtree-1.0.1.ebuild b/sys-apps/mtree/mtree-1.0.1.ebuild new file mode 100644 index 000000000000..59f2affe7a8d --- /dev/null +++ b/sys-apps/mtree/mtree-1.0.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools + +DESCRIPTION="Directory hierarchy mapping tool from FreeBSD" +HOMEPAGE="http://code.google.com/p/mtree-port/" +SRC_URI="http://mtree-port.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_prepare() { + # don't install unneeded docs + sed -i '/doc_DATA=/d' Makefile.am || die + eautoreconf +} + +src_install() { + default + + # avoid conflict with app-arch/libarchive + rm "${ED}usr/share/man/man5/mtree.5" +} diff --git a/sys-apps/mtree/mtree-1.0.ebuild b/sys-apps/mtree/mtree-1.0.ebuild new file mode 100644 index 000000000000..15ffa3656718 --- /dev/null +++ b/sys-apps/mtree/mtree-1.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +DESCRIPTION="Directory hierarchy mapping tool from FreeBSD" +HOMEPAGE="http://code.google.com/p/mtree-port/" +SRC_URI="http://mtree-port.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_install() +{ + + default_src_install + + # Avoid conflict with app-arch/libarchive + rm "${ED}usr/share/man/man5/mtree.5" + +} diff --git a/sys-apps/nawk/Manifest b/sys-apps/nawk/Manifest new file mode 100644 index 000000000000..7e5f8ec12c60 --- /dev/null +++ b/sys-apps/nawk/Manifest @@ -0,0 +1 @@ +DIST nawk-20121220.tar.gz 88970 SHA256 8dc092165c5a4e1449f964286483d06d0dbfba4b0bd003cb5dab30de8f6d9b83 SHA512 1dd62e1aa4c8cfad7ce599b10d88e9b450ecae3217cf8327cc0f3ce77d0d0dcb731101b8f211066462d46dc4ef23e20ccd7f70d799d7d48940026abe8fa79d4f WHIRLPOOL 6d8effe600eaf49c9bce79b027732909992f606ba89e771ad041f5ef3b32a44e7b0fa41576fdeb3e220f1e4859e2701397946fa90cb0ee4a334eb0178fabee91 diff --git a/sys-apps/nawk/files/nawk-20121220-parallel-build.patch b/sys-apps/nawk/files/nawk-20121220-parallel-build.patch new file mode 100644 index 000000000000..45a3e5624a40 --- /dev/null +++ b/sys-apps/nawk/files/nawk-20121220-parallel-build.patch @@ -0,0 +1,61 @@ +--- makefile.orig 2013-02-06 10:26:36.452829647 -0700 ++++ makefile 2013-02-07 09:12:13.293898947 -0700 +@@ -44,7 +44,7 @@ + LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ + lib.c run.c tran.c + +-SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile \ ++SHIP = README FIXES $(SOURCE) makefile \ + awk.1 + + a.out: ytab.o $(OFILES) +@@ -52,11 +52,15 @@ + + $(OFILES): awk.h ytab.h proto.h + +-ytab.o: awk.h proto.h awkgram.y ++#Clear dependency for parallel build: (make -j) ++#YACC generated y.tab.c and y.tab.h at the same time ++#this needs to be a static pattern rules otherwise multiple target ++#are mapped onto multiple executions of yacc, which overwrite ++#each others outputs. ++y%.c y%.h: awk.h proto.h awkgram.y + $(YACC) $(YFLAGS) awkgram.y +- mv y.tab.c ytab.c +- mv y.tab.h ytab.h +- $(CC) $(CFLAGS) -c ytab.c ++ mv y.$*.c y$*.c ++ mv y.$*.h y$*.h + + proctab.c: maketab + ./maketab >proctab.c +@@ -64,23 +68,23 @@ + maketab: ytab.h maketab.c + $(CC) $(CFLAGS) maketab.c -o maketab + +-bundle: ++bundle: $(SHIP) + @cp ytab.h ytabh.bak + @cp ytab.c ytabc.bak +- @bundle $(SHIP) ++ @bundle $(SHIP) ytabh.bak ytabc.bak + +-tar: ++tar: $(SHIP) + @cp ytab.h ytabh.bak + @cp ytab.c ytabc.bak + @bundle $(SHIP) >awk.shar +- @tar cf awk.tar $(SHIP) ++ @tar cf awk.tar $(SHIP) ytabh.bak ytabc.bak + gzip awk.tar + ls -l awk.tar.gz +- @zip awk.zip $(SHIP) ++ @zip awk.zip $(SHIP) ytabh.bak ytabc.bak + ls -l awk.zip + + names: + @echo $(LISTING) + + clean: +- rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c ++ rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda ytab.c ytab.h # proctab.c diff --git a/sys-apps/nawk/metadata.xml b/sys-apps/nawk/metadata.xml new file mode 100644 index 000000000000..6ce7863fe532 --- /dev/null +++ b/sys-apps/nawk/metadata.xml @@ -0,0 +1,9 @@ + + + + + ottxor@gentoo.org + Christoph Junghans + + base-system + diff --git a/sys-apps/nawk/nawk-20121220-r2.ebuild b/sys-apps/nawk/nawk-20121220-r2.ebuild new file mode 100644 index 000000000000..ad4ea9ed8eb9 --- /dev/null +++ b/sys-apps/nawk/nawk-20121220-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Brian Kernighan's pattern scanning and processing language" +HOMEPAGE="http://cm.bell-labs.com/cm/cs/awkbook/index.html" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-macos" +IUSE="" + +RDEPEND="app-eselect/eselect-awk + !sys-freebsd/freebsd-ubin" +DEPEND="${RDEPEND} + virtual/yacc" + +S="${WORKDIR}" + +src_prepare() { + rm -f ytab.[hc] + epatch "${FILESDIR}/${P}"-parallel-build.patch +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CPPFLAGS=-DHAS_ISBLANK ALLOC="${LDFLAGS}" YACC=$(type -p yacc) YFLAGS="-d" +} + +src_install() { + newbin a.out "${PN}" + sed -e 's/awk/nawk/g' \ + -e 's/AWK/NAWK/g' \ + -e 's/Awk/Nawk/g' \ + awk.1 > "${PN}".1 || die "manpage patch failed" + doman "${PN}".1 + dodoc README FIXES +} + +pkg_postinst() { + eselect awk update ifunset +} + +pkg_postrm() { + eselect awk update ifunset +} diff --git a/sys-apps/nca/Manifest b/sys-apps/nca/Manifest new file mode 100644 index 000000000000..b3a2b81ff177 --- /dev/null +++ b/sys-apps/nca/Manifest @@ -0,0 +1 @@ +DIST nca-0.9.0.tar.gz 818721 SHA256 407144394f6f90e818c7ce992a691c4e99983defbe9de63f6a0adaa93a36ae03 SHA512 375dc747414af7e8971a9112fa6a4583dd543f6f4b3a84b2c16f45ee2487363929c2eed3c1837687b802161c630443885e6da20ac738017d219e9a608b4d700c WHIRLPOOL 60c726e918e3684fe9dc45eacbfb2aa264f7ea1fd71e46eacc2020252e5cf6b333345c000eb8efafba65965fe184ff1ad4cbc87886a623831476f18c052953d9 diff --git a/sys-apps/nca/files/ncad.initd b/sys-apps/nca/files/ncad.initd new file mode 100644 index 000000000000..5e7fff2fed87 --- /dev/null +++ b/sys-apps/nca/files/ncad.initd @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet --exec /sbin/ncad + eend ${?} +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --retry 5 --quiet --exec /sbin/ncad + eend ${?} +} diff --git a/sys-apps/nca/metadata.xml b/sys-apps/nca/metadata.xml new file mode 100644 index 000000000000..b09d87bd4291 --- /dev/null +++ b/sys-apps/nca/metadata.xml @@ -0,0 +1,16 @@ + + + + + maintainer-needed@gentoo.org + + + nca connects a pseudo terminal to the console's virtual terminals + (/dev/tty0...n) that are normally only accessible to someone with + local keyboard access. It is particularly useful in conjunction with + ncad since it then provides remote console access via SSH; with some + appropriate system start up scripts, ncad can be started immediately + the root filesystem has been mounted read-only, providing a cheap, + and only marginally inferior alternative to a serial console. + + diff --git a/sys-apps/nca/nca-0.9.0.ebuild b/sys-apps/nca/nca-0.9.0.ebuild new file mode 100644 index 000000000000..0c7bc45b2a05 --- /dev/null +++ b/sys-apps/nca/nca-0.9.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Network Console on Acid" +HOMEPAGE="http://www.xenoclast.org/nca/" +SRC_URI="http://www.xenoclast.org/nca/download/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/openssl + sys-libs/zlib" + +DEPEND="dev-lang/perl + ${RDEPEND}" + +src_prepare() { + sed -i -e "s:^\([[:space:]]\+\$(MAKE) install\):\1 DESTDIR=\$(DESTDIR):g" \ + -e "s:=\(\$(CFLAGS)\):=\"\1\":g" -e "s:=\(\$(CC)\):=\"\1\":g" Makefile + + sed -i -e "s:-s sshd:sshd:g" ncad.patch +} + +src_compile() { + emake -j1 CFLAGS="${CFLAGS}" CC=$(tc-getCC) || die "emake failed" +} + +src_install() { + dodir /sbin + emake BINDIR="${D}sbin" MANDIR="${D}usr/share/man" SYSCONF_DIR="${D}etc" \ + DESTDIR="${D}" install_nca install_ssh install_man + + newinitd "${FILESDIR}/ncad.initd" ncad + dodoc ChangeLog README* rc/ncad.template +} diff --git a/sys-apps/net-tools/Manifest b/sys-apps/net-tools/Manifest new file mode 100644 index 000000000000..b7001214930b --- /dev/null +++ b/sys-apps/net-tools/Manifest @@ -0,0 +1,5 @@ +DIST net-tools-1.60_p20130513023548-patches-1.tar.xz 3352 SHA256 926240c304e20a0ab966c3d278703a6ef8e7833a54aaf636598854450bd01f4e SHA512 6dd3eef6469a18581a98fc91f424b418f3875cd0eff86724d6bdbacca1b83d1229a567a184b82e0187d01a428ea6be933d53090796b5c7d301009b2e211c4531 WHIRLPOOL fb638e122f85e95fda35b77336fbb5d4f6e89c5f5a5b76d759bd08f53eb0741feb9c7221940b836e0e7f5c60bd312d99d823c3af89340d6e254f1be96e34d2ce +DIST net-tools-1.60_p20130513023548-patches-2.tar.xz 14780 SHA256 4eba8545c64db6d2b0eedca45ff7346e4c0b6f1b526ca31b2db6462a0ec0be1b SHA512 6cb4ce7324bae696997839492edd3578e8c9971395de5d499a735ef6421aacc37d24311ada4b94e596c61b55660e2a4babb58f2403ef83da7ac32d2ccbf23201 WHIRLPOOL 200f0a5a88c1e637d183dd098ec1077ee565f0cac1b021b9500a803e2717143184d2c6c597158d73867331b1dc5e474e4858654b6927c314522cd228f660c00a +DIST net-tools-1.60_p20130513023548.tar.xz 196684 SHA256 e4f47c0736c5d73853f3bbfd30bec1922465f7a2b5bce25e5067774bac1d716d SHA512 d01404ac461f93fbd304f6c67a8dcc642b833f3653b97a5c2ecf3774bfef8489d6aa5631dbefe432a6675e2ce20e88ce1b9888a9ec055198076970505afd1f1b WHIRLPOOL 24e5917bb790d683507d9406213e0ee0ca94c36fcca469ff0ab7fa4c30517cb29a4cfafb98fdedf3a4ba94baa3f66da48ae3a2f359e522b9d42e6e1c599772fa +DIST net-tools-1.60_p20141019041918-patches-1.tar.xz 3352 SHA256 12e79c866c532ba75c0367397f664799f90ab8901bc906429b67939e8e6b354f SHA512 139f8c2990e5be44c17c2c5c4a900d2d2a8cdb5c067a8fe822b20b964045a24bc1138f7656291bc4db80ecddaa24e2e2655c018925d7b214651284443df550f9 WHIRLPOOL 3e33a3d5e0209360c7d90e4741a1b2be662e3c9d1c8a1f8a7283bff98642934fd26da296c5ed4a064915fa1a1006ee8f94fedc07d86bda48ed9624fc9946d190 +DIST net-tools-1.60_p20141019041918.tar.xz 197684 SHA256 22d1fb8acfa0b1e92d3c5dd3f544770b107df72f32f5b16232e65045c5efd2d0 SHA512 5fb02e181f3fec0a62a8ec8f1e6b0549d711d70d292491a2721d7f19f1a3b07d41fd0c8f503809435cd1a1b1999bcf5690402acc51f06ac6d626e11fef590e2e WHIRLPOOL c34f0c7363cc445e2457ccbf796947b60f74a063ed299840f755c6c023b8eb2cd46cdf42e1f9ca7530170e0b32dd14477e64ce50ec089e4a8b5d3e6bf65456ec diff --git a/sys-apps/net-tools/metadata.xml b/sys-apps/net-tools/metadata.xml new file mode 100644 index 000000000000..0c72e81d0315 --- /dev/null +++ b/sys-apps/net-tools/metadata.xml @@ -0,0 +1,8 @@ + + + +base-system + + use old ifconfig output style (useful for when new output breaks scripts) + + diff --git a/sys-apps/net-tools/net-tools-1.60_p20130513023548-r1.ebuild b/sys-apps/net-tools/net-tools-1.60_p20130513023548-r1.ebuild new file mode 100644 index 000000000000..c66e8f600e26 --- /dev/null +++ b/sys-apps/net-tools/net-tools-1.60_p20130513023548-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit flag-o-matic toolchain-funcs eutils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools" + inherit git-2 +else + PATCH_VER="2" + SRC_URI="mirror://gentoo/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="Standard Linux networking tools" +HOMEPAGE="http://net-tools.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="nls old-output selinux static" + +RDEPEND="!/dev/null + sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die + tar cf - ${p}/ | xz > ${p}.tar.xz + popd >/dev/null + + local patches="${p}-patches-${PATCH_VER:-1}" + local d="${T}/${patches}" + mkdir "${d}" + git format-patch -o "${d}" master..gentoo > /dev/null + echo "From http://cgit.gentoo.org/proj/net-tools.git" > "${d}"/README + tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz + rm -rf "${d}" + + du -b "${T}"/*.tar.xz +} + +pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } + +set_opt() { + local opt=$1 ans + shift + ans=$("$@" && echo y || echo n) + einfo "Setting option ${opt} to ${ans}" + sed -i \ + -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \ + config.in || die +} + +src_prepare() { + if [[ -n ${PATCH_VER} ]] ; then + use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch" + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER} + fi +} + +src_configure() { + set_opt I18N use nls + set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6' + set_opt HAVE_HWTR has_version '/dev/null + sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die + tar cf - ${p}/ | xz > ${p}.tar.xz + popd >/dev/null + + local patches="${p}-patches-${PATCH_VER:-1}" + local d="${T}/${patches}" + mkdir "${d}" + git format-patch -o "${d}" master..gentoo > /dev/null + echo "From http://cgit.gentoo.org/proj/net-tools.git" > "${d}"/README + tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz + rm -rf "${d}" + + du -b "${T}"/*.tar.xz +} + +pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } + +set_opt() { + local opt=$1 ans + shift + ans=$("$@" && echo y || echo n) + einfo "Setting option ${opt} to ${ans}" + sed -i \ + -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \ + config.in || die +} + +src_prepare() { + if [[ -n ${PATCH_VER} ]] ; then + use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch" + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER} + fi +} + +src_configure() { + set_opt I18N use nls + set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6' + set_opt HAVE_HWTR has_version '/dev/null + sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die + tar cf - ${p}/ | xz > ${p}.tar.xz + popd >/dev/null + + local patches="${p}-patches-${PATCH_VER:-1}" + local d="${T}/${patches}" + mkdir "${d}" + git format-patch -o "${d}" master..gentoo > /dev/null + echo "From http://cgit.gentoo.org/proj/net-tools.git" > "${d}"/README + tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz + rm -rf "${d}" + + du -b "${T}"/*.tar.xz +} + +pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } + +set_opt() { + local opt=$1 ans + shift + ans=$("$@" && echo y || echo n) + einfo "Setting option ${opt} to ${ans}" + sed -i \ + -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \ + config.in || die +} + +src_prepare() { + if [[ -n ${PATCH_VER} ]] ; then + use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch" + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER} + fi +} + +src_configure() { + set_opt I18N use nls + set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6' + set_opt HAVE_HWTR has_version '/dev/null + sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die + tar cf - ${p}/ | xz > ${p}.tar.xz + popd >/dev/null + + local patches="${p}-patches-${PATCH_VER:-1}" + local d="${T}/${patches}" + mkdir "${d}" + git format-patch -o "${d}" master..gentoo > /dev/null + echo "From http://cgit.gentoo.org/proj/net-tools.git" > "${d}"/README + tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz + rm -rf "${d}" + + du -b "${T}"/*.tar.xz +} + +pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } + +set_opt() { + local opt=$1 ans + shift + ans=$("$@" && echo y || echo n) + einfo "Setting option ${opt} to ${ans}" + sed -i \ + -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \ + config.in || die +} + +src_prepare() { + if [[ -n ${PATCH_VER} ]] ; then + use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch" + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER} + fi +} + +src_configure() { + set_opt I18N use nls + set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6' + set_opt HAVE_HWTR has_version '/dev/null + sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die + tar cf - ${p}/ | xz > ${p}.tar.xz + popd >/dev/null + + local patches="${p}-patches-${PATCH_VER:-1}" + local d="${T}/${patches}" + mkdir "${d}" + git format-patch -o "${d}" master..gentoo > /dev/null + echo "From http://cgit.gentoo.org/proj/net-tools.git" > "${d}"/README + tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz + rm -rf "${d}" + + du -b "${T}"/*.tar.xz +} + +pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } + +set_opt() { + local opt=$1 ans + shift + ans=$("$@" && echo y || echo n) + einfo "Setting option ${opt} to ${ans}" + sed -i \ + -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \ + config.in || die +} + +src_prepare() { + if [[ -n ${PATCH_VER} ]] ; then + use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch" + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER} + fi +} + +src_configure() { + set_opt I18N use nls + set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6' + set_opt HAVE_HWTR has_version '/dev/null + sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die + tar cf - ${p}/ | xz > ${p}.tar.xz + popd >/dev/null + + du -b "${T}"/*.tar.xz +} + +pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } + +set_opt() { + local opt=$1 ans + shift + ans=$("$@" && echo y || echo n) + einfo "Setting option ${opt} to ${ans}" + sed -i \ + -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \ + config.in || die +} + +src_configure() { + set_opt I18N use nls + set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6' + set_opt HAVE_HWTR has_version ' + + +base-system + diff --git a/sys-apps/netboot-base/netboot-base-20050110.ebuild b/sys-apps/netboot-base/netboot-base-20050110.ebuild new file mode 100644 index 000000000000..5a3e56379e40 --- /dev/null +++ b/sys-apps/netboot-base/netboot-base-20050110.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit toolchain-funcs + +DESCRIPTION="Baselayout for netboot systems" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="http://dev.gentoo.org/~vapier/${P}.tar.bz2 + mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha arm hppa ~mips ppc sh sparc x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR} + +pkg_setup() { + [[ ${ROOT} = "/" ]] && die "refusing to emerge to /" +} + +src_compile() { + $(tc-getCC) ${CFLAGS} src/consoletype.c -o sbin/consoletype || die + $(tc-getSTRIP) --strip-unneeded sbin/consoletype +} + +src_install() { + rm -r src + cp -r * "${D}"/ || die +} + +pkg_preinst() { + [[ ${ROOT} = "/" ]] && die "refusing to install to /" +} + +pkg_postinst() { + cd "${ROOT}" + mkdir -p bin dev etc lib mnt proc sbin var + mkdir -p var/log + mkdir -p mnt/gentoo + ln -s . usr + ln -s . share +} diff --git a/sys-apps/netkit-base/Manifest b/sys-apps/netkit-base/Manifest new file mode 100644 index 000000000000..568da5e34489 --- /dev/null +++ b/sys-apps/netkit-base/Manifest @@ -0,0 +1 @@ +DIST netkit-base-0.17.tar.gz 56473 SHA256 16dd81625ebfc8f5dcb0dfd2e6bac223aad325a9405d66a556fe349446b3c332 diff --git a/sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch b/sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch new file mode 100644 index 000000000000..266df811fd77 --- /dev/null +++ b/sys-apps/netkit-base/files/003_all_netkit-base-0.17-gcc4.patch @@ -0,0 +1,11 @@ +--- netkit-base-0.17/inetd/servtab.c ++++ netkit-base-0.17/inetd/servtab.c +@@ -771,7 +771,7 @@ + return; + } + +-#define SWAP(type, a, b) {type c=(type)a; (type)a=(type)b; (type)b=(type)c;} ++#define SWAP(type, a, b) {type c=(type)a; a=(type)b; b=(type)c;} + + /* + * sep->se_wait may be holding the pid of a daemon diff --git a/sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch b/sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch new file mode 100644 index 000000000000..9492d715e20f --- /dev/null +++ b/sys-apps/netkit-base/files/004_all_netkit-base-0.17-misc-fixes.patch @@ -0,0 +1,54 @@ +--- netkit-base-0.17/inetd/builtins.c ++++ netkit-base-0.17/inetd/builtins.c +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + + #include "servtab.h" + #include "builtins.h" +--- netkit-base-0.17/inetd/inetd.c ++++ netkit-base-0.17/inetd/inetd.c +@@ -869,8 +869,8 @@ + int on = 1; + + if ((sep->se_fd = socket(sep->se_family, sep->se_socktype, 0)) < 0) { +- syslog(LOG_ERR, "%s: socket: %m", service_name(sep), +- sep->se_service, sep->se_proto); ++ syslog(LOG_ERR, "%s: socket: %m", service_name(sep)); ++/* sep->se_service, sep->se_proto); */ + + if (errno == EMFILE) { + syslog(LOG_ALERT, +@@ -888,8 +888,8 @@ + syslog(LOG_ERR, "setsockopt (SO_REUSEADDR): %m"); + #undef turnon + if (bind(sep->se_fd, &sep->se_ctrladdr, sep->se_ctrladdr_size) < 0) { +- syslog(LOG_ERR, "%s: bind: %m", service_name(sep), +- sep->se_service, sep->se_proto); ++ syslog(LOG_ERR, "%s: bind: %m", service_name(sep)); ++/* sep->se_service, sep->se_proto); */ + (void) close(sep->se_fd); + sep->se_fd = -1; + if (!timingout) { +@@ -938,8 +938,8 @@ + } + m = sizeof(sn); + if (getsockname(sep->se_fd, (struct sockaddr *)&sn, &m) < 0) { +- syslog(LOG_ERR, "%s: getsockname: %m", service_name(sep), +- sep->se_service, sep->se_proto); ++ syslog(LOG_ERR, "%s: getsockname: %m", service_name(sep)); ++/* sep->se_service, sep->se_proto); */ + return; + } + +@@ -1026,7 +1026,7 @@ + if (rl.rlim_cur <= rlim_ofile_cur) { + syslog(LOG_ERR, + "bump_nofile: cannot extend file limit, max = %d", +- rl.rlim_cur); ++ (int)rl.rlim_cur); + return -1; + } + diff --git a/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch b/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch new file mode 100644 index 000000000000..3981b50e76e1 --- /dev/null +++ b/sys-apps/netkit-base/files/005_all_netkit-base-0.17-no-rpc.patch @@ -0,0 +1,26 @@ +the rpc logic here isn't terribly useful, so just punt it + +http://bugs.gentoo.org/371395 + +--- a/inetd/inetd.c ++++ b/inetd/inetd.c +@@ -158,8 +158,8 @@ + #include + #include + #undef __wait +-#endif + #include ++#endif + + #ifndef MIN + #define MIN(a, b) ((a) < (b) ? (a) : (b)) +--- a/inetd/inetd.h ++++ b/inetd/inetd.h +@@ -4,7 +4,6 @@ + + #define RETRYTIME (60*10) /* retry time after bind/server fail */ + +-#define RPC /* Use SunRPC */ + + + /* globals */ diff --git a/sys-apps/netkit-base/files/inetd.rc6 b/sys-apps/netkit-base/files/inetd.rc6 new file mode 100644 index 000000000000..652362507fc3 --- /dev/null +++ b/sys-apps/netkit-base/files/inetd.rc6 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net +} + +start() { + ebegin "Starting inetd" + ( + # workaround for #25754 + unset -f `declare -F | sed 's:declare -f::g'` + start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid --exec /usr/sbin/inetd + ) + eend $? +} + +stop() { + ebegin "Stopping inetd" + start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid + eend $? +} diff --git a/sys-apps/netkit-base/metadata.xml b/sys-apps/netkit-base/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-apps/netkit-base/metadata.xml @@ -0,0 +1,5 @@ + + + +base-system + diff --git a/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild b/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild new file mode 100644 index 000000000000..f40d8f0ce8ea --- /dev/null +++ b/sys-apps/netkit-base/netkit-base-0.17-r9.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Old-style inetd" +HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/*.patch +} + +src_configure() { + tc-export CC + ./configure || die + sed -i \ + -e "/^CFLAGS=/s:=.*:=${CFLAGS} -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline:" \ + -e "/^LDFLAGS=/s:=.*:=${LDFLAGS}:" \ + MCONFIG || die +} + +src_install() { + sed -i \ + -e 's:in\.telnetd$:in.telnetd -L /usr/sbin/telnetlogin:' \ + etc.sample/inetd.conf + + dosbin inetd/inetd + doman inetd/inetd.8 + newinitd "${FILESDIR}"/inetd.rc6 inetd + + dodoc BUGS ChangeLog README + docinto samples + dodoc etc.sample/* +} diff --git a/sys-apps/netloc/Manifest b/sys-apps/netloc/Manifest new file mode 100644 index 000000000000..3d0b16f4d4ef --- /dev/null +++ b/sys-apps/netloc/Manifest @@ -0,0 +1 @@ +DIST netloc-0.5.tar.gz 474646 SHA256 41a8d31097b9aeabff89596b42bd3d4590f6b7552378a0fc80ec7a02823c5d1a SHA512 88600c59302cd8e5ed024373a57b27e54b288288091ed0ab3852bee59c255a8b520d38c59d64f6c1eafe307f0d5e61d64c799a92e9695c42ecc1e33dcc2df6ba WHIRLPOOL d83dbe17bcea2c083ded5c364e344b904799fd6405a38e52318d9d88f041ee47b50383fd038003b2e558b36577544779c118c509de29cc1e2027314cf3b8b8b1 diff --git a/sys-apps/netloc/metadata.xml b/sys-apps/netloc/metadata.xml new file mode 100644 index 000000000000..91d88c8a551c --- /dev/null +++ b/sys-apps/netloc/metadata.xml @@ -0,0 +1,8 @@ + + + +cluster + + The Portable Network Locality (netloc) software package provides network topology discovery tools, and an abstract representation of those networks topologies for a range of network types and configurations. It is provided as a companion to the Portable Hardware Locality (hwloc) package. These two software packages work together to provide a comprehensive view of the HPC system topology, spanning from the processor cores in one server to the cores in another – including the complex network(s) in between. + + diff --git a/sys-apps/netloc/netloc-0.5.ebuild b/sys-apps/netloc/netloc-0.5.ebuild new file mode 100644 index 000000000000..8334b28a948d --- /dev/null +++ b/sys-apps/netloc/netloc-0.5.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib versionator + +MY_PV=v$(get_version_component_range 1-2) + +DESCRIPTION="Portable Network Locality (netloc)" +HOMEPAGE="http://www.open-mpi.org/projects/netloc/" +SRC_URI="http://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=" + dev-libs/jansson + sys-apps/hwloc" +RDEPEND="${DEPEND}" + +src_configure() { + econf \ + --with-jansson="${EPREFIX}/usr" \ + --with-hwloc="${EPREFIX}/usr" +} diff --git a/sys-apps/netplug/Manifest b/sys-apps/netplug/Manifest new file mode 100644 index 000000000000..ebf69a0f3b6f --- /dev/null +++ b/sys-apps/netplug/Manifest @@ -0,0 +1 @@ +DIST netplug-1.2.9.2.tar.bz2 22332 SHA256 5180dfd9a7d3d0633a027b0a04f01b45a6a64623813cd48bd54423b90814864e SHA512 b68a00eb8874ec7dd6aa9f7b7f529a6e1d9ecece4b798c8cee996b7f3534c556656f642de0ac4b2a6d06fbaf18e3bfaab00934a9292b95939a4935e673e9ca8c WHIRLPOOL 51d54d4c7784b82b71b3a8964c9df3f17e8df1b21b11a95250f911c6f0917aabab1bf0fe5117884623b3222b1df0c443ce4416ad74f63c0d761f762e5f39216f diff --git a/sys-apps/netplug/files/netplug-1.2.9-ignore-wireless.patch b/sys-apps/netplug/files/netplug-1.2.9-ignore-wireless.patch new file mode 100644 index 000000000000..de5cba2cb08d --- /dev/null +++ b/sys-apps/netplug/files/netplug-1.2.9-ignore-wireless.patch @@ -0,0 +1,37 @@ +--- netplug-1.2.9/main.c ++++ netplug-1.2.9/main.c +@@ -36,6 +36,10 @@ + + #include "netplug.h" + ++/* Support old kernels without wireless */ ++#ifndef IFLA_WIRELESS ++#define IFLA_WIRELESS (IFLA_MASTER + 1) ++#endif /* IFLA_WIRELESS */ + + int use_syslog; + static char *pid_file; +@@ -63,6 +67,14 @@ + + parse_rtattrs(attrs, IFLA_MAX, IFLA_RTA(info), len); + ++ /* Ignore wireless messages */ ++ if (attrs[IFLA_WIRELESS] != NULL ++ && hdr->nlmsg_type == RTM_NEWLINK ++ && info->ifi_change == 0) { ++ do_log(LOG_DEBUG, "Ignoring wireless netlink message"); ++ return 0; ++ } ++ + if (attrs[IFLA_IFNAME] == NULL) { + do_log(LOG_ERR, "No interface name"); + return -1; +@@ -71,7 +83,7 @@ + char *name = RTA_DATA(attrs[IFLA_IFNAME]); + + if (!if_match(name)) { +- do_log(LOG_INFO, "%s: ignoring event", name); ++ do_log(LOG_DEBUG, "%s: ignoring event", name); + return 0; + } + diff --git a/sys-apps/netplug/files/netplug-1.2.9-remove-nest.patch b/sys-apps/netplug/files/netplug-1.2.9-remove-nest.patch new file mode 100644 index 000000000000..0a3b991a82bf --- /dev/null +++ b/sys-apps/netplug/files/netplug-1.2.9-remove-nest.patch @@ -0,0 +1,187 @@ +This patch replaces the for_each_iface nested funtion with a macro so that we +don't have an executable stack and work correctly on NX capable hardware. +See http://www.gentoo.org/proj/en/hardened/gnu-stack.xml for more information. + +Patch by Diego Pettenò (flameeyes@gentoo.org) + +Index: netplug-1.2.9/if_info.c +=================================================================== +--- netplug-1.2.9.orig/if_info.c ++++ netplug-1.2.9/if_info.c +@@ -29,8 +29,7 @@ + + #include "netplug.h" + +-#define INFOHASHSZ 16 /* must be a power of 2 */ +-static struct if_info *if_info[INFOHASHSZ]; ++struct if_info *if_info[INFOHASHSZ]; + + static const char * + statename(enum ifstate s) +@@ -95,17 +94,6 @@ flags_str(char *buf, unsigned int fl) + return buf; + } + +-void +-for_each_iface(int (*func)(struct if_info *)) +-{ +- for(int i = 0; i < INFOHASHSZ; i++) { +- for(struct if_info *info = if_info[i]; info != NULL; info = info->next) { +- if ((*func)(info)) +- return; +- } +- } +-} +- + /* Reevaluate the state machine based on the current state and flag settings */ + void + ifsm_flagpoll(struct if_info *info) +@@ -284,6 +272,14 @@ ifsm_flagchange(struct if_info *info, un + info->lastchange = time(0); + } + ++int find_pid(struct if_info *i, pid_t pid, struct if_info **info) { ++ if (i->worker == pid) { ++ *info = i; ++ return 1; ++ } ++ return 0; ++} ++ + /* handle a script termination and update the state accordingly */ + void ifsm_scriptdone(pid_t pid, int exitstatus) + { +@@ -291,16 +287,8 @@ void ifsm_scriptdone(pid_t pid, int exit + struct if_info *info; + assert(WIFEXITED(exitstatus) || WIFSIGNALED(exitstatus)); + +- int find_pid(struct if_info *i) { +- if (i->worker == pid) { +- info = i; +- return 1; +- } +- return 0; +- } +- + info = NULL; +- for_each_iface(find_pid); ++ for_each_iface(find_pid, pid, &info); + + if (info == NULL) { + do_log(LOG_INFO, "Unexpected child %d exited with status %d", +Index: netplug-1.2.9/main.c +=================================================================== +--- netplug-1.2.9.orig/main.c ++++ netplug-1.2.9/main.c +@@ -164,6 +164,23 @@ child_handler(int sig, siginfo_t *info, + write(child_handler_pipe[1], &ce, sizeof(ce)); + } + ++int pollflags_state(struct if_info *info, int sockfd) { ++ struct ifreq ifr; ++ ++ if (!if_match(info->name)) ++ return 0; ++ ++ memcpy(ifr.ifr_name, info->name, sizeof(ifr.ifr_name)); ++ if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) ++ do_log(LOG_ERR, "%s: can't get flags: %m", info->name); ++ else { ++ ifsm_flagchange(info, ifr.ifr_flags); ++ ifsm_flagpoll(info); ++ } ++ ++ return 0; ++} ++ + /* Poll the existing interface state, so we can catch any state + changes for which we may not have neen a netlink message. */ + static void +@@ -180,28 +197,20 @@ poll_interfaces(void) + close_on_exec(sockfd); + } + +- int pollflags(struct if_info *info) { +- struct ifreq ifr; +- +- if (!if_match(info->name)) +- return 0; +- +- memcpy(ifr.ifr_name, info->name, sizeof(ifr.ifr_name)); +- if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) +- do_log(LOG_ERR, "%s: can't get flags: %m", info->name); +- else { +- ifsm_flagchange(info, ifr.ifr_flags); +- ifsm_flagpoll(info); +- } +- +- return 0; +- } +- +- for_each_iface(pollflags); ++ for_each_iface(pollflags_state, sockfd); + } + + int debug = 0; + ++/* Run over each of the interfaces we know and care about, and ++ make sure the state machine has done the appropriate thing ++ for their current state. */ ++int poll_flags_check(struct if_info *i) { ++ if (if_match(i->name)) ++ ifsm_flagpoll(i); ++ return 0; ++} ++ + int + main(int argc, char *argv[]) + { +@@ -331,17 +340,7 @@ main(int argc, char *argv[]) + { child_handler_pipe[0], POLLIN, 0 }, + }; + +- { +- /* Run over each of the interfaces we know and care about, and +- make sure the state machine has done the appropriate thing +- for their current state. */ +- int poll_flags(struct if_info *i) { +- if (if_match(i->name)) +- ifsm_flagpoll(i); +- return 0; +- } +- for_each_iface(poll_flags); +- } ++ for_each_iface(poll_flags_check); + + for(;;) { + int ret; +Index: netplug-1.2.9/netplug.h +=================================================================== +--- netplug-1.2.9.orig/netplug.h ++++ netplug-1.2.9/netplug.h +@@ -28,6 +28,9 @@ + + #define NP_SCRIPT NP_SCRIPT_DIR "/netplug" + ++#define INFOHASHSZ 16 /* must be a power of 2 */ ++extern struct if_info *if_info[INFOHASHSZ]; ++ + /* configuration */ + + void read_config(char *filename); +@@ -83,7 +86,14 @@ struct if_info *if_info_update_interface + struct rtattr *attrs[]); + int if_info_save_interface(struct nlmsghdr *hdr, void *arg); + void parse_rtattrs(struct rtattr *tb[], int max, struct rtattr *rta, int len); +-void for_each_iface(int (*func)(struct if_info *)); ++ ++#define for_each_iface(func, ...) \ ++ for(int i = 0; i < INFOHASHSZ; i++) { \ ++ for(struct if_info *each_iface = if_info[i]; each_iface != NULL; each_iface = each_iface->next) { \ ++ if (func (each_iface, ##__VA_ARGS__)) \ ++ break; \ ++ } \ ++ } + + void ifsm_flagpoll(struct if_info *info); + void ifsm_flagchange(struct if_info *info, unsigned int newflags); diff --git a/sys-apps/netplug/files/netplug-2 b/sys-apps/netplug/files/netplug-2 new file mode 100755 index 000000000000..539f1465516a --- /dev/null +++ b/sys-apps/netplug/files/netplug-2 @@ -0,0 +1,43 @@ +#!/bin/sh +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# Gentoo-specific netplug script +# +# This file gets called by netplug when it wants to bring an interface +# up or down. +# + +IFACE="$1" +ACTION="$2" + +EXEC="/etc/init.d/net.${IFACE}" + +case "${ACTION}" in + in) + ARGS="--quiet start" + ;; + out) + ARGS="--quiet stop" + ;; + probe) + # Do nothing as we should already be up + exit 0 + ;; + *) + echo "$0: wrong arguments" >&2 + echo "Call with " >&2 + exit 1 + ;; +esac + +export IN_BACKGROUND=true + +if [ -x "${EXEC}" ] +then + ${EXEC} ${ARGS} + exit 0 +else + logger -t netplug "Error: Couldn't configure ${IFACE}, no ${EXEC} !" + exit 1 +fi diff --git a/sys-apps/netplug/metadata.xml b/sys-apps/netplug/metadata.xml new file mode 100644 index 000000000000..786355e6ed0d --- /dev/null +++ b/sys-apps/netplug/metadata.xml @@ -0,0 +1,11 @@ + + + + + polynomial-c@gentoo.org + Lars Wendler + + + Brings up/down ethernet ports automatically with cable detection + + diff --git a/sys-apps/netplug/netplug-1.2.9.2-r1.ebuild b/sys-apps/netplug/netplug-1.2.9.2-r1.ebuild new file mode 100644 index 000000000000..03d4dada07aa --- /dev/null +++ b/sys-apps/netplug/netplug-1.2.9.2-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Brings up/down ethernet ports automatically with cable detection" +HOMEPAGE="http://www.red-bean.com/~bos/" +SRC_URI="http://www.red-bean.com/~bos/netplug/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~mips ppc sparc x86" +IUSE="debug doc" + +DEPEND="doc? ( app-text/ghostscript-gpl + media-gfx/graphviz )" +RDEPEND="" + +src_prepare() { + # Remove debug flags from CFLAGS + if ! use debug; then + sed -i -e "s/ -ggdb3//" Makefile || die + fi + + # Remove -O3 and -Werror from CFLAGS + sed -i -e "s/ -O3//" -e "s/ -Werror//" Makefile || die + + # Remove nested functions, #116140 + epatch "${FILESDIR}/${PN}-1.2.9-remove-nest.patch" + + # Ignore wireless events + epatch "${FILESDIR}/${PN}-1.2.9-ignore-wireless.patch" +} + +src_compile() { + tc-export CC + emake CC="${CC}" + + if use doc; then + emake -C docs/ + fi +} + +src_install() { + into / + dosbin netplugd + doman man/man8/netplugd.8 + + dodir /etc/netplug.d + exeinto /etc/netplug.d + newexe "${FILESDIR}/netplug-2" netplug + + dodir /etc/netplug + echo "eth*" > "${D}"/etc/netplug/netplugd.conf || die + + dodoc ChangeLog NEWS README TODO + + if use doc; then + dodoc docs/state-machine.ps + fi +} diff --git a/sys-apps/newrelic-sysmond/Manifest b/sys-apps/newrelic-sysmond/Manifest new file mode 100644 index 000000000000..7950ed38dcdc --- /dev/null +++ b/sys-apps/newrelic-sysmond/Manifest @@ -0,0 +1 @@ +DIST newrelic-sysmond-1.1.2.124-linux.tar.gz 2177939 SHA256 b77424b5dd98d38537503cfe49d772e9a8c220f436d87682010f03b5d3950b46 SHA512 beda4b9c3fc089a9cd836790a074f886a65980ee7b471d9e5fb54f56f369ef69172f00661962ae57482f2bffbc84bb27f9484dc01ca7b6a3b5d9a4ad7cf8c4b6 WHIRLPOOL 4ab79112c13f7fd00c28f0237ea6453694cf01d5d1ca9c145d4ffc6d152306febfb5108cb8a692b7a3c0906b0b957fbd115b998ca91adf3140f7a059bd6e9f0a diff --git a/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc new file mode 100644 index 000000000000..20b7d1d6ca15 --- /dev/null +++ b/sys-apps/newrelic-sysmond/files/newrelic-sysmond.rc @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net +} + +start() { + ebegin "Starting NewRelic System Monitor" + start-stop-daemon --start \ + --user newrelic \ + --exec /usr/sbin/nrsysmond -- \ + -c /etc/newrelic/nrsysmond.cfg \ + -p /var/run/newrelic/nrsysmond.pid + eend $? +} + +stop() { + ebegin "Stopping NewRelic System Monitor" + start-stop-daemon --stop --pidfile /var/run/newrelic/nrsysmond.pid + eend $? +} diff --git a/sys-apps/newrelic-sysmond/metadata.xml b/sys-apps/newrelic-sysmond/metadata.xml new file mode 100644 index 000000000000..4b139df1fa91 --- /dev/null +++ b/sys-apps/newrelic-sysmond/metadata.xml @@ -0,0 +1,8 @@ + + + + + maintainer-needed@gentoo.org + + NewRelic System Monitor + diff --git a/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild new file mode 100644 index 000000000000..33d232cdae3b --- /dev/null +++ b/sys-apps/newrelic-sysmond/newrelic-sysmond-1.1.2.124.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit user + +DESCRIPTION="NewRelic System Monitor" +HOMEPAGE="http://www.newrelic.com/" +SRC_URI="http://download.newrelic.com/server_monitor/release/${P}-linux.tar.gz" + +LICENSE="newrelic Apache-2.0 MIT ISC openssl GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +RESTRICT="strip" + +S="${WORKDIR}/${P}-linux" + +pkg_setup() { + enewgroup newrelic + enewuser newrelic -1 -1 -1 newrelic +} + +src_install() { + if [[ "${ARCH}" == "amd64" ]]; then + NR_ARCH="x64" + elif [[ "${ARCH}" == "x86" ]]; then + NR_ARCH="x86" + else + die "Unsupported architecture (${ARCH})" + fi + + dosbin "scripts/nrsysmond-config" + newsbin "daemon/nrsysmond.${NR_ARCH}" "nrsysmond" + newinitd "${FILESDIR}/newrelic-sysmond.rc" "newrelic-sysmond" + + keepdir "/etc/newrelic" + insinto "/etc/newrelic" + doins nrsysmond.cfg + + keepdir "/var/run/newrelic" + fowners newrelic.newrelic "/var/run/newrelic" + fperms 0775 "/var/run/newrelic" + + keepdir "/var/log/newrelic" + fowners newrelic.newrelic "/var/log/newrelic" + fperms 0775 "/var/log/newrelic" + + dodoc INSTALL.txt LICENSE.txt +} + +pkg_postinst() { + elog "Remember to set your license key via:" + elog "$ nrsysmond-config --set license_key=\$YOUR_KEY" +} diff --git a/sys-apps/noexec/Manifest b/sys-apps/noexec/Manifest new file mode 100644 index 000000000000..ad9f29acc96b --- /dev/null +++ b/sys-apps/noexec/Manifest @@ -0,0 +1 @@ +DIST noexec-1.1.0.tar.gz 157097 SHA256 452744d3221cefe15b7d22560526d611923ad13fbfc1796486c3af37d8d09a51 diff --git a/sys-apps/noexec/metadata.xml b/sys-apps/noexec/metadata.xml new file mode 100644 index 000000000000..3c9f4a4bc12b --- /dev/null +++ b/sys-apps/noexec/metadata.xml @@ -0,0 +1,10 @@ + + + + + maintainer-needed@gentoo.org + + + noexec + + diff --git a/sys-apps/noexec/noexec-1.1.0.ebuild b/sys-apps/noexec/noexec-1.1.0.ebuild new file mode 100644 index 000000000000..197fa74336ab --- /dev/null +++ b/sys-apps/noexec/noexec-1.1.0.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="a package for preventing processes from using exec system calls" +HOMEPAGE="http://noexec.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +DEPEND=">=sys-libs/glibc-2.3.2-r9" + +src_install() { + make install DESTDIR=${D} || die "installation failed" + dodoc AUTHORS BUGS ChangeLog NEWS README +} diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest new file mode 100644 index 000000000000..e065e97686a0 --- /dev/null +++ b/sys-apps/openrc/Manifest @@ -0,0 +1,10 @@ +DIST openrc-0.13.11.tar.bz2 150680 SHA256 30edffa8b39d5e68129ddd9e8cd8dfde8ca8cfafc8b470124d7323a32a4a443c SHA512 1dd9d86f5f2f13e196d2724b978c0aaabf7a73c487bf2f8f759d82c856faa754b612d5252dacedb042ba308ff7e9a745dea88b78654a693c39f5d720f0f92ada WHIRLPOOL 2849260c60811e88467b2d0916afa37bc4c7a6e2159abf70a2f5bad2cf97586b801993f45ed86145dfecbc93166298c6302a78602bbfe1957d2f159a3cde11dc +DIST openrc-0.14.tar.bz2 155903 SHA256 fc7144811cd84b7a0d3786120e98cdd8c8ea31040f4665be67dac6da4fb8c6aa SHA512 44ead70f7a254d6f789090d09d03d931beb3ebce8e204feae5054d87921453aa6e8182c8f1f1cac0977ab0723d2a9cc0c09c482136c244d626ce32ea89e0bee4 WHIRLPOOL 4dfd551f4e94f50d1feed5a3157b9de36b4d8a0ab30dd886c864df3e273009f561e2048c8f077c6518caac09b44ac1b963a5b514beaa8a8699724598142b0352 +DIST openrc-0.15.1.tar.bz2 156774 SHA256 b125e0a9b54f7829b19529fe6d90005dfd2c01b4f96da3b03847b34d6dc77cac SHA512 287759e0b0deffb7698bb9e1ad82279504ad1f2d2e5333660a83b66618e2b807c98c2d6289c455f2137f2de09028147722c1c757c6afe12e49cc16ef8d86144f WHIRLPOOL 19d5af87296436a776aeffe8bab09d48bc90f40a1b08412c06a01231608296a11e17ff6bd1c04462d5c8fa405fd4336269d3db2e9678443dac8c67982f61ba94 +DIST openrc-0.15.tar.bz2 156099 SHA256 157c58ce1ff83b79a4063c44958c8070b15c9700fb7454827c8515091c3abeb6 SHA512 938e2688c865b0c0886273eb987a9289e74ef7f0ec93aef0a3ec51111b11e0ddb6afd9c752fba08f6a5e2d089d783e0e6a40d978cd0f104449d6c333dbe79e87 WHIRLPOOL d7872a266570d4ef76a564619e57070a18e1286233417e8cf78e8a7f35f8073bfbd7b85c94f5331f8647fc395d4f32b8256ec934dbe18f1b4642c50a42a342b0 +DIST openrc-0.16.1.tar.bz2 158448 SHA256 0654d88b5789abf0ada04548058edf1fc9ba61f16f063bc061bb720e20d7989a SHA512 4e197d2b6d46a15ebf7bf7ffcd1ec7711fec43a9243ad852d3a3d04f5a978045b8f0e58806b4428fe310be0e069654c13d49713754ff5306c2b4637ae31f2028 WHIRLPOOL 58c455d734ec7562a17571a8e5adeb71d63c58ca932dccafd3474c16551220ed2715dfe1cb481f02e221bc26e206704f081df50562e0e62e0f84007714bffe51 +DIST openrc-0.16.2.tar.bz2 158753 SHA256 77b2c0f435b457a7f40fb607ee5bbf6fccd93362580d07bc96ef692cc7ddac46 SHA512 baf3b00b4fb3e418e2863b09a40dd722cbcc52e3381dc08acc0876984881b2cbeb70a078cc697bffbdaaa8d268d457efd3ce72a4e122be3ec74f3138fec0e936 WHIRLPOOL 708d949cbe99ca6e879c657f884d2b4f2e3455352c7daca3e2a3449b1a2f972fe2e371a4b38bed929471080c59f2715c07d7f1d4ea686051e30b17b6a20699e8 +DIST openrc-0.16.3.tar.bz2 158844 SHA256 6f2d5293f82591183391362fdbcb6b24b6a07c74f9e565db6d0ebf77189e5262 SHA512 1c41edf7e061947895a260dc5a4cf856af5ac62ef41d3b7c6bb1eef09bc5bfb3f9e4d0957cabad635068db18286658843b3ad02e2831b63f5a2957246736e337 WHIRLPOOL ff4c147b566077e55386c1ef386d3659bcc8ce8a2211ba4961468039cf9b4b2088cab606934db4e378eb10a96f46bec35f0a46ec069c942ad42167ceb1776385 +DIST openrc-0.16.4.tar.bz2 158599 SHA256 6771257e208da2e4d20b4ac2e3e7f065eb8873566644ff385e9dbd6bc5221d21 SHA512 8ade50cdb8c2e05e00e917f848e96bfee54bb4ac77bf50af8c5ab66e2e01f8a5c2621123087945feaa9b15ad84a5936e23cc489a2bb7127c2b118a5a0695ee6e WHIRLPOOL 706d7b1101927ff89afb01ad766f491db94ff04f574bc7b69349b6ab0334ed5d2cd5ee2d8041cf5a0ba00f5a6a3596502835fa132c668533772a42737f0e2412 +DIST openrc-0.16.tar.bz2 157924 SHA256 969ce450bb095a406ef14362572633b14c8696b57d67361394c5951704273ce3 SHA512 3ff3958bf480ec6bf97e50c8911c382dc855322a74d57b65da975e98d8b76debda971826d15803be96f2ae9c7fd5ebf4cf0c43013663a042224a9c49377614f8 WHIRLPOOL 5e6bb11b907a2fe3812653354950b0ec4e13571981580d03d2ee9b93dc8a68ce128ee1ec7560557adbc90af44aa881648aae51e15bb0f0990ca338ffb3c6c814 +DIST openrc-0.17.tar.bz2 160533 SHA256 45818d9ef4659e8dd924a1468a091255c305daee5417f94d9515f0e125298b30 SHA512 6e69b036d113f066b0dd0bfe55e019328e0e77cff6c93f0a3e55751aa0a72411aa3b1efe8b4327e156a9612e4155863b0a81c9eda043c12904bb36e861b71399 WHIRLPOOL de45daf6f4aebe632ea9fcb46408e63f0aed6c9b9129fb5510f348f20cf1c62aa42e7dce47a7f19a441696596fa57494642e7334a42c415fdbc865cb80a18eff diff --git a/sys-apps/openrc/files/openrc-0.8.3-ccwgroup.patch b/sys-apps/openrc/files/openrc-0.8.3-ccwgroup.patch new file mode 100644 index 000000000000..14ecd5f837d2 --- /dev/null +++ b/sys-apps/openrc/files/openrc-0.8.3-ccwgroup.patch @@ -0,0 +1,57 @@ +From c427d3c1fec89f6a9281dccdc123bad73af80804 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Tue, 28 Jun 2011 00:02:11 -0400 +Subject: [PATCH] net: ccwgroup: smooth up/down process + +We need to bring the link up ourselves after we've properly configured +the device. The common code tries to bring the link up itself, but it +does so before things are configured, and so it ends up failing. + +When shutting down, we need to wait for the kernel to finish destroying +the interface. Otherwise, when doing a restart, openrc is quick enough +to tell the kernel to destroy things, but then start trying to bring it +back up before the kernel has finished. + +X-Gentoo-Bug: 367467 +X-Gentoo-Bug-URL: http://bugs.gentoo.org/367467 +Signed-off-by: Mike Frysinger +--- + net/ccwgroup.sh | 14 ++++++++++++-- + 1 files changed, 12 insertions(+), 2 deletions(-) + +diff --git a/net/ccwgroup.sh b/net/ccwgroup.sh +index 248b159..60cd25f 100644 +--- a/net/ccwgroup.sh ++++ b/net/ccwgroup.sh +@@ -58,6 +58,11 @@ ccwgroup_pre_start() + echo "${val}" > /sys/devices/${ccw_type}/${first}/${var} + done + eend $? ++ ++ # Now that we've properly configured the device, we can run ++ # bring the interface up. Common code tried to do this already, ++ # but it failed because we didn't setup sysfs yet. ++ _up + } + + ccwgroup_pre_stop() +@@ -88,9 +93,14 @@ ccwgroup_post_stop() + local device="$(service_get_value ccwgroup_device)" + [ -z "${device}" ] && return 0 + local ccw_type="$(service_get_value ccwgroup_type)" ++ local path="/sys/devices/${ccw_type}/${device}" + + einfo "Disabling ccwgroup/${ccw_type} on ${IFACE}" +- echo "0" >/sys/devices/${ccw_type}/"${device}"/online +- echo "1" >/sys/devices/${ccw_type}/"${device}"/ungroup ++ if echo "0" >"${path}"/online && ++ echo "1" >"${path}"/ungroup ; then ++ # The device doesn't disappear right away which breaks ++ # restart, or a quick start up, so wait around. ++ while [ -e "${path}" ] ; do :; done ++ fi + eend $? + } +-- +1.7.5.3 + diff --git a/sys-apps/openrc/files/openrc-0.8.3-deprecation_warning.patch b/sys-apps/openrc/files/openrc-0.8.3-deprecation_warning.patch new file mode 100644 index 000000000000..1aa7315b0b12 --- /dev/null +++ b/sys-apps/openrc/files/openrc-0.8.3-deprecation_warning.patch @@ -0,0 +1,33 @@ +From 24ba7955634dd571a4c34dd712dc8a592eea4d73 Mon Sep 17 00:00:00 2001 +From: Joe Harvell +Date: Mon, 27 Jun 2011 23:20:47 +0200 +Subject: [PATCH] Only print the deprecation warning for --chuid/-c when using it + +The deprecation warning has been printed when using the replecement functions as +well, bug 373243. +--- + src/rc/start-stop-daemon.c | 5 ++--- + 1 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c +index b5c2b6e..3017701 100644 +--- a/src/rc/start-stop-daemon.c ++++ b/src/rc/start-stop-daemon.c +@@ -788,12 +788,11 @@ start_stop_daemon(int argc, char **argv) + background = true; + break; + +- case 'u': /* --user | */ + case 'c': /* --chuid | */ +- { + /* DEPRECATED */ + ewarn("WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead"); +- ++ case 'u': /* --user | */ ++ { + p = optarg; + tmp = strsep(&p, ":"); + changeuser = xstrdup(tmp); +-- +1.7.3.4 + diff --git a/sys-apps/openrc/files/openrc-9999-msg-style.patch b/sys-apps/openrc/files/openrc-9999-msg-style.patch new file mode 100644 index 000000000000..ac325bb79bcf --- /dev/null +++ b/sys-apps/openrc/files/openrc-9999-msg-style.patch @@ -0,0 +1,81 @@ +From 1e307244138c8f650ab37bffa7b3cc3e3b39cd64 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 24 Mar 2008 01:48:19 -0400 +Subject: [PATCH] restore old e* func output + +Gentoo has always used the sytle: + * moo ... [ ok ] +Latest openrc now does: +* moo... [ok] + +Realistically, 4 spaces out of 80 on reduced terminals doesn't make any +sort of realistic difference and it's been just fine for the last 10 +years, so keep the default behavior. +--- + src/libeinfo/libeinfo.c | 15 ++++++--------- + 1 files changed, 6 insertions(+), 9 deletions(-) + +diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c +index 8a7613c..234b1af 100644 +--- a/src/libeinfo/libeinfo.c ++++ b/src/libeinfo/libeinfo.c +@@ -643,7 +643,7 @@ static int EINFO_PRINTF(3, 0) + fprintf(f, "\n"); + if (_eprefix) + fprintf(f, "%s%s%s|", _ecolor(f, color), _eprefix, _ecolor(f, ECOLOR_NORMAL)); +- fprintf(f, "%s*%s ", _ecolor(f, color), _ecolor(f, ECOLOR_NORMAL)); ++ fprintf(f, " %s*%s ", _ecolor(f, color), _ecolor(f, ECOLOR_NORMAL)); + retval += _eindent(f); + va_copy(ap, va); + retval += vfprintf(f, fmt, ap) + 3; +@@ -800,7 +800,7 @@ ebegin(const char *EINFO_RESTRICT fmt, ...) + va_start(ap, fmt); + retval = _einfovn(fmt, ap); + va_end(ap); +- retval += printf("..."); ++ retval += printf(" ..."); + if (colour_terminal(stdout)) + retval += printf("\n"); + LASTCMD("ebegin"); +@@ -817,7 +817,7 @@ _eend(FILE * EINFO_RESTRICT fp, int col, ECOLOR color, const char *msg) + if (!msg) + return; + +- cols = get_term_columns(fp) - (strlen(msg) + 3); ++ cols = get_term_columns(fp) - (strlen(msg) + 5); + + /* cons25 is special - we need to remove one char, otherwise things + * do not align properly at all. */ +@@ -831,18 +831,15 @@ _eend(FILE * EINFO_RESTRICT fp, int col, ECOLOR color, const char *msg) + if (term_is_cons25) + cols--; + +- /* If extra spacing is required around msg, then please change +- * via a runtime knob and leave this default as is as it saves 2 +- * valuable columns when running on 80 column screens. */ + if (cols > 0 && colour_terminal(fp)) { +- fprintf(fp, "%s%s %s[%s%s%s]%s\n", up, tgoto(goto_column, 0, cols), ++ fprintf(fp, "%s%s %s[%s %s %s]%s\n", up, tgoto(goto_column, 0, cols), + ecolor(ECOLOR_BRACKET), ecolor(color), msg, + ecolor(ECOLOR_BRACKET), ecolor(ECOLOR_NORMAL)); + } else { + if (col > 0) + for (i = 0; i < cols - col; i++) + fprintf(fp, " "); +- fprintf(fp, " [%s]\n", msg); ++ fprintf(fp, " [ %s ]\n", msg); + } + } + +@@ -1030,7 +1027,7 @@ ebeginv(const char *EINFO_RESTRICT fmt, ...) + + va_start(ap, fmt); + retval = _einfovn(fmt, ap); +- retval += printf("..."); ++ retval += printf(" ..."); + if (colour_terminal(stdout)) + retval += printf("\n"); + va_end(ap); +-- +1.6.6.rc3 + diff --git a/sys-apps/openrc/files/openrc-9999-pause.patch b/sys-apps/openrc/files/openrc-9999-pause.patch new file mode 100644 index 000000000000..bf2c94f8dbec --- /dev/null +++ b/sys-apps/openrc/files/openrc-9999-pause.patch @@ -0,0 +1,29 @@ +From e82772a6b6d4374e81b7e19a593ffdef16753418 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 21 Dec 2009 09:02:35 -0500 +Subject: [PATCH] restore init.d pause option + +--- + src/rc/runscript.c | 6 ++++++ + 1 files changed, 6 insertions(+), 0 deletions(-) + +diff --git a/src/rc/runscript.c b/src/rc/runscript.c +index 5939dae..7147902 100644 +--- a/src/rc/runscript.c ++++ b/src/rc/runscript.c +@@ -1316,6 +1316,12 @@ runscript(int argc, char **argv) + prefix = NULL; + retval = svc_exec("status", NULL); + } else { ++ if (strcmp(optarg, "pause") == 0) { ++ ewarn("WARNING: 'pause' is deprecated; please use '--nodeps stop'"); ++ deps = false; ++ optarg = "stop"; ++ } ++ + if (strcmp(optarg, "conditionalrestart") == 0 || + strcmp(optarg, "condrestart") == 0) + { +-- +1.6.6.rc3 + diff --git a/sys-apps/openrc/files/openrc.logrotate b/sys-apps/openrc/files/openrc.logrotate new file mode 100644 index 000000000000..5e5e64b9b191 --- /dev/null +++ b/sys-apps/openrc/files/openrc.logrotate @@ -0,0 +1,4 @@ +/var/log/rc.log { + missingok + notifempty +} diff --git a/sys-apps/openrc/files/start-stop-daemon.pam b/sys-apps/openrc/files/start-stop-daemon.pam new file mode 100644 index 000000000000..2127f6a70d57 --- /dev/null +++ b/sys-apps/openrc/files/start-stop-daemon.pam @@ -0,0 +1,2 @@ +account required pam_permit.so +session include system-services diff --git a/sys-apps/openrc/metadata.xml b/sys-apps/openrc/metadata.xml new file mode 100644 index 000000000000..8c3b63ef0966 --- /dev/null +++ b/sys-apps/openrc/metadata.xml @@ -0,0 +1,11 @@ + + + + openrc + + enable support for Linux audit subsystem + enable Gentoo's network stack (net.* scripts) + enable the new network stack (experimental) + build optional tools + + diff --git a/sys-apps/openrc/openrc-0.13.11.ebuild b/sys-apps/openrc/openrc-0.13.11.ebuild new file mode 100644 index 000000000000..699e9b234963 --- /dev/null +++ b/sys-apps/openrc/openrc-0.13.11.ebuild @@ -0,0 +1,332 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic multilib pam toolchain-funcs + +DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" +HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git" + inherit git-r3 +else + SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs + tools unicode kernel_linux kernel_FreeBSD" + +COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) ) + elibc_glibc? ( >=sys-libs/glibc-2.5 ) + ncurses? ( sys-libs/ncurses ) + pam? ( + sys-auth/pambase + virtual/pam + ) + tools? ( dev-lang/perl ) + kernel_linux? ( + sys-process/psmisc + !