diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-apps | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
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 <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-apps')
1746 files changed, 84152 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ssuominen@gentoo.org</email> + <name>Samuli Suominen</name> + </maintainer> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>gnome</herd> + <use> + <flag name="systemd">Use <pkg>sys-apps/systemd</pkg> instead of + <pkg>sys-auth/consolekit</pkg> for session tracking</flag> + </use> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <upstream> + <remote-id type="cpan">ack</remote-id> + </upstream> +</pkgmetadata> 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 <vapier@gentoo.org> +Date: Fri, 8 Jan 2010 21:28:31 -0500 +Subject: [PATCH] quote: pull in string.h for strchr prototype + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + 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 <stdio.h> + #include <stdlib.h> + #include <ctype.h> ++#include <string.h> + #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 <vapier@gentoo.org> +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 <vapier@gentoo.org> +--- + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<use> + <flag name='nfs'> + add support for NFS acls + </flag> +</use> +<upstream> + <remote-id type="cpe">cpe:/a:xfs:acl</remote-id> +</upstream> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ppc</herd> +<longdescription>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. +</longdescription> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>prefix</herd> +<maintainer> + <email>haubi@gentoo.org</email> +</maintainer> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-needed@gentoo.org</email></maintainer> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>hardened</herd> + <maintainer> + <email>kensington@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="launchpad">apparmor</remote-id> + </upstream> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>hardened</herd> + <maintainer> + <email>kensington@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="launchpad">apparmor</remote-id> + </upstream> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> + + <upstream> + <maintainer status="active"> + <email>michael@orlitzky.com</email> + <name>Michael Orlitzky</name> + </maintainer> + </upstream> +</pkgmetadata> 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 <linux/compiler.h> +- #include <unistd.h>]]) +- +-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 <linux/compiler.h>]]) +- + # 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 <linux/blkdev.h> ++#include <linux/slab.h> ++#include <linux/proc_fs.h> ++#include <linux/timer.h> ++#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 <asm/types.h>*/ ++#if 0 ++#include <linux/blkdev.h> ++#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 <getopt.h> + #include <errno.h> + +-#include <linux/compiler.h> + #include <linux/cciss_ioctl.h> + +-#include <ida_ioctl.h> ++#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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> +</maintainer> +</pkgmetadata> 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 <config.h> ++#ifdef ENABLE_GETTEXT ++# include <libintl.h> ++# define _(x) gettext(x) ++#else ++# define _(x) (x) ++# define textdomain(d) do { } while (0) ++# define bindtextdomain(d,dir) do { } while (0) ++#endif ++#include <locale.h> +--- attr/attr.c ++++ attr/attr.c +@@ -26,6 +26,7 @@ + #include <errno.h> + #include <string.h> + #include <locale.h> ++#include "gettext.h" + + #include <attr/attributes.h> + #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 <sys/types.h> +--- 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 <sys/types.h> +--- 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 <regex.h> + #include <ftw.h> + #include <locale.h> ++#include "gettext.h" + + #include <attr/xattr.h> + #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 <getopt.h> + #include <locale.h> + #include <ctype.h> ++#include "gettext.h" + + #include <attr/xattr.h> + #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 <vapier@gentoo.org> +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 <vapier@gentoo.org> +--- + 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 <errno.h> + #include <unistd.h> ++#include <sys/syscall.h> + +-#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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> 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 <signal.h> + #include <syslog.h> + #include <regex.h> +-#if defined(__GLIBC__) ++#if defined(__GLIBC__) && !defined(__UCLIBC__) + #include <execinfo.h> + #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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>angelos@gentoo.org</email> + <name>Christoph Mende</name> +</maintainer> +<longdescription>Audio-entropyd generates entropy-data for the /dev/random device.</longdescription> +</pkgmetadata> 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-extra/gnome-utils-3.4 +" +# ${PN} was part of gnome-utils before 3.4 +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.40 + >=sys-devel/gettext-0.17 + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + ITSTOOL=$(type -P true) \ + XMLLINT=$(type -P true) \ + VALAC=$(type -P true) \ + VAPIGEN=$(type -P true) +} diff --git a/sys-apps/baobab/baobab-3.16.1.ebuild b/sys-apps/baobab/baobab-3.16.1.ebuild new file mode 100644 index 000000000000..dd274a04f9e0 --- /dev/null +++ b/sys-apps/baobab/baobab-3.16.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-extra/gnome-utils-3.4 +" +# ${PN} was part of gnome-utils before 3.4 +DEPEND="${COMMON_DEPEND} + dev-libs/libxml2 + >=dev-util/intltool-0.40 + >=sys-devel/gettext-0.17 + virtual/pkgconfig +" + +src_configure() { + gnome2_src_configure \ + ITSTOOL=$(type -P true) \ + VALAC=$(type -P true) \ + VAPIGEN=$(type -P true) +} diff --git a/sys-apps/baobab/metadata.xml b/sys-apps/baobab/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/sys-apps/baobab/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>shell-tools</herd> + <upstream> + <remote-id type="sourceforge">clpbar</remote-id> + </upstream> +</pkgmetadata> 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="!<dev-java/java-config-2.2" + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} diff --git a/sys-apps/baselayout-java/metadata.xml b/sys-apps/baselayout-java/metadata.xml new file mode 100644 index 000000000000..8335e2c18589 --- /dev/null +++ b/sys-apps/baselayout-java/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> 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 <sys/pstat.h> + #endif + ++#if defined(OSaix) ++#include <sys/procfs.h> ++#endif ++ + #include <errno.h> + #include <stdio.h> + #include <stdlib.h> +@@ -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 <sys/types.h> + + #include <err.h> +-#include <kvm.h> + #include <limits.h> + #endif + ++#if defined(OSOpenBSD) || defined(OSFreeBSD) || defined(OSNetBSD) ++#include <kvm.h> ++#endif ++ ++ + #if defined(OShpux) + #include <sys/param.h> + #include <sys/pstat.h> 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." |