summaryrefslogtreecommitdiff
path: root/dev-perl/PortageXS
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/PortageXS
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/PortageXS')
-rw-r--r--dev-perl/PortageXS/Manifest9
-rw-r--r--dev-perl/PortageXS/PortageXS-0.02.10-r4.ebuild54
-rw-r--r--dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild60
-rw-r--r--dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild63
-rw-r--r--dev-perl/PortageXS/files/0.02.12/PortageXS-0.02.12-prefix.patch198
-rw-r--r--dev-perl/PortageXS/files/PortageXS-0.02.10-portage_path_fix.patch86
-rw-r--r--dev-perl/PortageXS/files/PortageXS-0.02.10-prefix.patch137
-rw-r--r--dev-perl/PortageXS/metadata.xml21
8 files changed, 628 insertions, 0 deletions
diff --git a/dev-perl/PortageXS/Manifest b/dev-perl/PortageXS/Manifest
new file mode 100644
index 000000000000..22a99bbb96e7
--- /dev/null
+++ b/dev-perl/PortageXS/Manifest
@@ -0,0 +1,9 @@
+AUX 0.02.12/PortageXS-0.02.12-prefix.patch 8739 BLAKE2B fd7617b4e68c15948abce7d7fe54af7c0aa89bb23059b3af8929cd23870dda0338f0598990837075b08eb596c31ee392d6f967edaac550ec062756a757c901bb SHA512 8c1626cd107963c287ed0f24e7508ec28effbdcf3cde4695c9c294c7924f9c987593ff73b5719bb59b8e4cf6f7e790209d2aee97038fba7080f3ccd296074197
+AUX PortageXS-0.02.10-portage_path_fix.patch 4165 BLAKE2B 9a648a0f08ebd69d214b2728194235472132debdc2a3e78916f196d2c1f95e6d9a8d0f66b697045e559e542fb5505b74acf4140ad971c871a22e89d0ec8b4a12 SHA512 4e99f0db05dae2ca0b08c1750ba7f3218eacdf2e6cf4a01c08de53f4f7c81cf261a902b8fc5429a8349effeb2f1c2f6e3a0a8bee07257c48cf6fc7010f971695
+AUX PortageXS-0.02.10-prefix.patch 6463 BLAKE2B a18061842464c7c0544ec0f949b282498ddd0bc43e0eaa2309c7127528381d171a0a2925c325bc71cc76bb8433ec34b87857ab92bae52c5386e8f423b2fe31d1 SHA512 1225da7ef7911f8a3ada93f2d23ffd23e78bec735152403b809db75cda99fc576bc34fbbcd8487af16b3fadd946bc4c48497db9a4e9f9bf27705b91793d5ea37
+DIST PortageXS-0.02.10.tar.gz 28890 BLAKE2B 66686516b975ff0da641c75dec63c3c6afe9d5bf7762ffb1f4a81c31550e601601f6190fdb992fce0a6e694bed46d4c95f599cf7a20bf0c069493a1e07dec499 SHA512 8f5a6cf8fa415e13401fd7901c81fef42e0cee81b7a9c1f276cce9582c705ac7e2004ec213033fce065f965445342ed0140d8b752d2e857dd40c620ed4af6b1b
+DIST PortageXS-0.2.12.tar.gz 41772 BLAKE2B 81583e73189908cd3b1588e74d5b291d1955995ff1d283682c245264feac7ed9eef4cfcd2ef4497c229f3d007ebd0a8b275d7c7c0e64ea3059dda3bc01eb66d7 SHA512 e833c8dab25ed6fcfad999e4b0bb803d69523ff57fbcd86ea0c29c671889a66c81f0081d6242039788a73d090e3245776d12a8286114b77f72d39514dfe425bf
+EBUILD PortageXS-0.02.10-r4.ebuild 1489 BLAKE2B a799f2679787b964bd2c2f96ff32b5d1aa8f55a6f248c4f89af7b6757cc9701ef79889f7adc70de332164b648e328d1e4901a98c359f2c935680d272d7853669 SHA512 517e4e6d80854c49788ef67584336caf4226b1dd0f065cd7099e075a8d3c34841b157f59c0255bde5cc0ecaf20d92d528966be2aa646a122f3a5843b1c0965a1
+EBUILD PortageXS-0.2.10-r5.ebuild 1586 BLAKE2B 2ed18b4dc27ecb887c867882997e2f3070e85296158529a56a7c84a793bc10d1c91e53b795dc8eaa04c240009fa5f53359e39cfaecd1af0978c1dafb68aa9f24 SHA512 af1b467a6ecb5f3e4831d8b4541be3368aeb1672f10c80df12ba754e0a6e1a3da51bd10c934e6cbcd0a03377e1bb09ef857f83028341018699024e68f34a3fd4
+EBUILD PortageXS-0.2.12-r1.ebuild 1545 BLAKE2B 9df1c219a03eb4898e8cf9760a2d282e4c72b8026ea0bc5cceef5b044da55f3209d89e3c42320e23a0784f118a76e0cd8a5b3c28d38574b7e85f54f4d57e83c5 SHA512 1211621893034bba76eeec5c52403d338925aa4781fc931ed12e498d98e75a1399a503dcc1c0a4319da45bddfd5b8d347653f0d031e0c218b4c66de3bdbae510
+MISC metadata.xml 770 BLAKE2B f2158d5a0792e960709ffb7cdf4863df27f4b784769363111b2d943ad55e55f89d436d11b3db1b58115b7cfc9710032a63371f4120fa18871607c48b6caa62f1 SHA512 38e35631664127b9e69049ed1380cc3de3369dbfa2bf771aa09a9088ec8a0c9d2299f1729817d6645037e00e9f370aa10384b242a8d13d3c1ad57a741f7f7053
diff --git a/dev-perl/PortageXS/PortageXS-0.02.10-r4.ebuild b/dev-perl/PortageXS/PortageXS-0.02.10-r4.ebuild
new file mode 100644
index 000000000000..e9fd0de774b4
--- /dev/null
+++ b/dev-perl/PortageXS/PortageXS-0.02.10-r4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module eutils prefix
+
+DESCRIPTION="Portage abstraction layer for perl"
+HOMEPAGE="http://download.mpsna.de/opensource/PortageXS/"
+SRC_URI="http://download.mpsna.de/opensource/PortageXS/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="minimal"
+SRC_TEST="do"
+
+DEPEND="virtual/perl-Term-ANSIColor
+ dev-perl/Shell-EnvImporter
+ !minimal? ( dev-perl/IO-Socket-SSL
+ virtual/perl-Sys-Syslog )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.02.10-portage_path_fix.patch
+ epatch "${FILESDIR}"/${PN}-0.02.10-prefix.patch
+
+ eprefixify \
+ lib/PortageXS/Core.pm \
+ lib/PortageXS.pm \
+ usr/bin/portagexs_client \
+ usr/sbin/portagexsd
+
+ if use minimal ; then
+ rm -r "${S}"/usr || die
+ rm -r "${S}"/etc/init.d || die
+ rm -r "${S}"/etc/pxs/certs || die
+ rm "${S}"/etc/pxs/portagexsd.conf || die
+ rm -r "${S}"/lib/PortageXS/examples || die
+ fi
+}
+
+pkg_preinst() {
+ if use !minimal ; then
+ cp -r "${S}"/usr "${D}${EPREFIX}" || die
+ fi
+ cp -r "${S}"/etc "${D}${EPREFIX}" || die
+}
+
+pkg_postinst() {
+ if [ -d "${EPREFIX}"/etc/portagexs ]; then
+ elog "${EPREFIX}/etc/portagexs has been moved to ${EPREFIX}/etc/pxs for convenience. It is safe"
+ elog "to delete old ${EPREFIX}/etc/portagexs directories."
+ fi
+}
diff --git a/dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild b/dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild
new file mode 100644
index 000000000000..62f8a034944c
--- /dev/null
+++ b/dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MODULE_VERSION=0.02.10
+inherit perl-module eutils prefix
+
+DESCRIPTION="Portage abstraction layer for perl"
+HOMEPAGE="http://download.mpsna.de/opensource/PortageXS/"
+SRC_URI="http://download.mpsna.de/opensource/PortageXS/${PN}-${MODULE_VERSION}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="minimal"
+SRC_TEST="do"
+
+DEPEND="
+ virtual/perl-Term-ANSIColor
+ dev-perl/Shell-EnvImporter
+ !minimal? (
+ dev-perl/IO-Socket-SSL
+ virtual/perl-Sys-Syslog
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.02.10-portage_path_fix.patch
+ epatch "${FILESDIR}"/${PN}-0.02.10-prefix.patch
+
+ eprefixify \
+ lib/PortageXS/Core.pm \
+ lib/PortageXS.pm \
+ usr/bin/portagexs_client \
+ usr/sbin/portagexsd
+
+ if use minimal ; then
+ rm -r "${S}"/usr || die
+ rm -r "${S}"/etc/init.d || die
+ rm -r "${S}"/etc/pxs/certs || die
+ rm "${S}"/etc/pxs/portagexsd.conf || die
+ rm -r "${S}"/lib/PortageXS/examples || die
+ fi
+}
+
+src_install() {
+ perl-module_src_install
+ if use !minimal ; then
+ cp -r "${S}"/usr "${D}${EPREFIX}" || die
+ fi
+ cp -r "${S}"/etc "${D}${EPREFIX}" || die
+}
+
+pkg_postinst() {
+ if [ -d "${EPREFIX}"/etc/portagexs ]; then
+ elog "${EPREFIX}/etc/portagexs has been moved to ${EPREFIX}/etc/pxs for convenience. It is safe"
+ elog "to delete old ${EPREFIX}/etc/portagexs directories."
+ fi
+}
diff --git a/dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild b/dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild
new file mode 100644
index 000000000000..3491c6543bd3
--- /dev/null
+++ b/dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR=KENTNL
+MODULE_VERSION=0.2.12
+inherit perl-module eutils prefix
+
+DESCRIPTION="Portage abstraction layer for perl"
+HOMEPAGE="http://search.cpan.org/~kentnl/PortageXS"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="minimal"
+
+DEPEND="
+ dev-perl/Module-Build
+ virtual/perl-Term-ANSIColor
+ dev-perl/Shell-EnvImporter
+ !minimal? (
+ dev-perl/IO-Socket-SSL
+ virtual/perl-Sys-Syslog
+ )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/0.02.12/${PN}-0.02.12-prefix.patch
+
+ eprefixify \
+ lib/PortageXS/examples/getParamFromFile.pl \
+ lib/PortageXS/Core.pm \
+ lib/PortageXS.pm \
+ usr/bin/portagexs_client \
+ usr/sbin/portagexsd \
+ t/01_Core.t
+
+ if use minimal ; then
+ rm -r "${S}"/usr || die
+ rm -r "${S}"/etc/init.d || die
+ rm -r "${S}"/etc/pxs/certs || die
+ rm "${S}"/etc/pxs/portagexsd.conf || die
+ rm -r "${S}"/lib/PortageXS/examples || die
+ fi
+}
+
+src_install() {
+ perl-module_src_install
+ if use !minimal ; then
+ cp -r "${S}"/usr "${D}${EPREFIX}" || die
+ fi
+ cp -r "${S}"/etc "${D}${EPREFIX}" || die
+}
+
+pkg_postinst() {
+ if [ -d "${EPREFIX}"/etc/portagexs ]; then
+ elog "${EPREFIX}/etc/portagexs has been moved to ${EPREFIX}/etc/pxs for convenience. It is safe"
+ elog "to delete old ${EPREFIX}/etc/portagexs directories."
+ fi
+}
+
+SRC_TEST="do parallel"
diff --git a/dev-perl/PortageXS/files/0.02.12/PortageXS-0.02.12-prefix.patch b/dev-perl/PortageXS/files/0.02.12/PortageXS-0.02.12-prefix.patch
new file mode 100644
index 000000000000..df1881118c9a
--- /dev/null
+++ b/dev-perl/PortageXS/files/0.02.12/PortageXS-0.02.12-prefix.patch
@@ -0,0 +1,198 @@
+ lib/PortageXS.pm | 16 ++++++++--------
+ lib/PortageXS/Core.pm | 8 ++++----
+ lib/PortageXS/examples/getParamFromFile.pl | 2 +-
+ t/01_Core.t | 12 ++++++------
+ usr/bin/portagexs_client | 8 ++++----
+ usr/sbin/portagexsd | 12 ++++++------
+ 6 files changed, 29 insertions(+), 29 deletions(-)
+
+diff --git a/lib/PortageXS.pm b/lib/PortageXS.pm
+index db57a25..6cec46e 100644
+--- a/lib/PortageXS.pm
++++ b/lib/PortageXS.pm
+@@ -71,8 +71,8 @@ sub new {
+ $pxs->{'VERSION'} = $PortageXS::VERSION;
+
+ $pxs->{'PORTDIR'} = $pxs->getPortdir();
+- $pxs->{'PKG_DB_DIR'} = '/var/db/pkg/';
+- $pxs->{'PATH_TO_WORLDFILE'} = '/var/lib/portage/world';
++ $pxs->{'PKG_DB_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg/';
++ $pxs->{'PATH_TO_WORLDFILE'} = '@GENTOO_PORTAGE_EPREFIX@/var/lib/portage/world';
+ $pxs->{'IS_INITIALIZED'} = 1;
+
+ $pxs->{'EXCLUDE_DIRS'}{'.'} = 1;
+@@ -85,17 +85,17 @@ sub new {
+ $pxs->{'EXCLUDE_DIRS'}{'CVS'} = 1;
+ $pxs->{'EXCLUDE_DIRS'}{'.cache'} = 1;
+
+- $pxs->{'PORTAGEXS_ETC_DIR'} = '/etc/pxs/';
+- $pxs->{'ETC_DIR'} = '/etc/';
++ $pxs->{'PORTAGEXS_ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/';
++ $pxs->{'ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/';
+
+ $pxs->{'MAKE_PROFILE_PATHS'} = [
+- '/etc/make.profile',
+- '/etc/portage/make.profile'
++ '@GENTOO_PORTAGE_EPREFIX@/etc/make.profile',
++ '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.profile'
+ ];
+
+ $pxs->{'MAKE_CONF_PATHS'} = [
+- '/etc/make.conf',
+- '/etc/portage/make.conf'
++ '@GENTOO_PORTAGE_EPREFIX@/etc/make.conf',
++ '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'
+ ];
+
+ for my $path ( @{ $pxs->{'MAKE_PROFILE_PATHS'} } ) {
+diff --git a/lib/PortageXS/Core.pm b/lib/PortageXS/Core.pm
+index 5d51023..3dd0b84 100644
+--- a/lib/PortageXS/Core.pm
++++ b/lib/PortageXS/Core.pm
+@@ -122,7 +122,7 @@ sub getPortageMakeParam {
+ my $self = shift;
+ my $param = shift;
+ my @files = ();
+- my @etcfiles = qw(/usr/share/portage/config/make.globals /etc/make.conf);
++ my @etcfiles = qw(@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals @GENTOO_PORTAGE_EPREFIX@/etc/make.conf);
+ my $v = '';
+ my $parent = '';
+ my $curPath;
+@@ -166,7 +166,7 @@ sub getPortageMakeParam {
+
+ # - Defaults >
+ if ($param eq 'PORTDIR' && !$v) {
+- $v='/usr/portage';
++ $v='@GENTOO_PORTAGE_EPREFIX@/usr/portage';
+ }
+
+ return $v;
+@@ -193,7 +193,7 @@ sub getPortdir {
+ return $self->{'PORTDIR'};
+ }
+ else {
+- $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR','lastseen');
++ $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'PORTDIR','lastseen');
+ return $self->{'PORTDIR'};
+ }
+ }
+@@ -210,7 +210,7 @@ sub getPortdirOverlay {
+ my $self = shift;
+ my $forcereload = shift;
+
+- return split(/ /,$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR_OVERLAY','lastseen'));
++ return split(/ /,$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.conf'),'PORTDIR_OVERLAY','lastseen'));
+ }
+
+ # Description:
+diff --git a/lib/PortageXS/examples/getParamFromFile.pl b/lib/PortageXS/examples/getParamFromFile.pl
+index 416b1be..9ea88bb 100755
+--- a/lib/PortageXS/examples/getParamFromFile.pl
++++ b/lib/PortageXS/examples/getParamFromFile.pl
+@@ -8,4 +8,4 @@ use PortageXS;
+
+ my $pxs=PortageXS->new();
+ print "CFLAGS are set to: ";
+-print join(' ',$pxs->getParamFromFile($pxs->getFileContents('/etc/make.globals').$pxs->getFileContents('/etc/make.conf'),'CFLAGS','lastseen'))."\n";
++print join(' ',$pxs->getParamFromFile($pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.globals').$pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.conf'),'CFLAGS','lastseen'))."\n";
+diff --git a/t/01_Core.t b/t/01_Core.t
+index d01dc31..6daba99 100644
+--- a/t/01_Core.t
++++ b/t/01_Core.t
+@@ -14,8 +14,8 @@ ok(-d $pxs->getPortdir(),'getPortdir: '.$pxs->getPortdir());
+
+ # - getFileContents >
+ {
+- my $content = $pxs->getFileContents('/etc/portage/make.conf');
+- ok($content ne '','getFileContents of /etc/portage/make.conf');
++ my $content = $pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf');
++ ok($content ne '','getFileContents of @GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf');
+ }
+
+ # - searchInstalledPackage >
+@@ -26,8 +26,8 @@ ok(-d $pxs->getPortdir(),'getPortdir: '.$pxs->getPortdir());
+
+ # - getParamFromFile >
+ {
+- my $param = $pxs->getParamFromFile($pxs->getFileContents('/etc/portage/make.conf'),'CFLAGS','lastseen');
+- ok($param ne '','getParamFromFile /etc/portage/make.conf - CFLAGS: '.$param);
++ my $param = $pxs->getParamFromFile($pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'CFLAGS','lastseen');
++ ok($param ne '','getParamFromFile @GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf - CFLAGS: '.$param);
+ }
+
+ # - getUseSettingsOfInstalledPackage >
+@@ -65,8 +65,8 @@ ok(-d $pxs->getPortdir(),'getPortdir: '.$pxs->getPortdir());
+
+ # - fileBelongsToPackage >
+ {
+- my @packages = $pxs->fileBelongsToPackage('/etc/gentoo-release');
+- ok($#packages==0,'fileBelongsToPackage - /etc/gentoo-release: '.$packages[0]);
++ my @packages = $pxs->fileBelongsToPackage('@GENTOO_PORTAGE_EPREFIX@/etc/gentoo-release');
++ ok($#packages==0,'fileBelongsToPackage - @GENTOO_PORTAGE_EPREFIX@/etc/gentoo-release: '.$packages[0]);
+ }
+ ok(!$pxs->fileBelongsToPackage('/this/path/most/likely/does/not/exist'),'fileBelongsToPackage bogus test');
+
+diff --git a/usr/bin/portagexs_client b/usr/bin/portagexs_client
+index 598d05a..688cb97 100755
+--- a/usr/bin/portagexs_client
++++ b/usr/bin/portagexs_client
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl
++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl
+
+ # -----------------------------------------------------------------------------
+ #
+@@ -54,9 +54,9 @@ if(!($sock = IO::Socket::SSL->new( PeerAddr => $remote_addr,
+ SSL_use_cert => 1,
+ SSL_verify_mode => 0x01,
+ SSL_passwd_cb => sub { return "" },
+- SSL_key_file => '/etc/pxs/certs/client-key.pem',
+- SSL_cert_file => '/etc/pxs/certs/client-cert.pem',
+- SSL_ca_file => '/etc/pxs/certs/my-ca.pem'
++ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-key.pem',
++ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-cert.pem',
++ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem'
+ ))) {
+ $pxs->print_err("unable to create socket: ".&IO::Socket::SSL::errstr."\n");
+ $pxs->print_err("Server down?\n");
+diff --git a/usr/sbin/portagexsd b/usr/sbin/portagexsd
+index 638f662..e93bdfa 100755
+--- a/usr/sbin/portagexsd
++++ b/usr/sbin/portagexsd
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl -t
++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -t
+
+ # -----------------------------------------------------------------------------
+ #
+@@ -50,7 +50,7 @@ else {
+ sub main {
+ # - Parse config >
+ my %config = ();
+- $config{'cfgfiledata'} = $pxs->getFileContents("/etc/pxs/portagexsd.conf");
++ $config{'cfgfiledata'} = $pxs->getFileContents("@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf");
+ $config{'Port'} = $pxs->getParamFromFile($config{'cfgfiledata'},"Port","lastseen");
+ $config{'SSLpasswd'} = $pxs->getParamFromFile($config{'cfgfiledata'},"SSLpasswd","lastseen");
+ $config{'PidFile'} = $pxs->getParamFromFile($config{'cfgfiledata'},"PidFile","lastseen");
+@@ -60,7 +60,7 @@ sub main {
+ $config{'cfgfiledata'} = undef;
+
+ if (!$config{'I_AM_ROOT_AND_I_KNOW_WHAT_I_AM_DOING'}) {
+- syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (/etc/pxs/portagexsd.conf)');
++ syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf)');
+ exit(0);
+ }
+
+@@ -70,9 +70,9 @@ sub main {
+ Reuse => 1,
+ SSL_verify_mode => 0x01,
+ SSL_passwd_cb => sub {return $config{'SSLpasswd'}},
+- SSL_key_file => '/etc/pxs/certs/server-key.pem',
+- SSL_cert_file => '/etc/pxs/certs/server-cert.pem',
+- SSL_ca_file => '/etc/pxs/certs/my-ca.pem'
++ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-key.pem',
++ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-cert.pem',
++ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem'
+ )) ) {
+ syslog("info", "Unable to create socket: ", &IO::Socket::SSL::errstr);
+ exit(0);
diff --git a/dev-perl/PortageXS/files/PortageXS-0.02.10-portage_path_fix.patch b/dev-perl/PortageXS/files/PortageXS-0.02.10-portage_path_fix.patch
new file mode 100644
index 000000000000..a9968cd7e79e
--- /dev/null
+++ b/dev-perl/PortageXS/files/PortageXS-0.02.10-portage_path_fix.patch
@@ -0,0 +1,86 @@
+diff -ur PortageXS-0.02.10.orig/lib/PortageXS/Core.pm PortageXS-0.02.10/lib/PortageXS/Core.pm
+--- PortageXS-0.02.10.orig/lib/PortageXS/Core.pm 2013-01-03 09:32:10.477597366 +0100
++++ PortageXS-0.02.10/lib/PortageXS/Core.pm 2013-01-03 09:32:12.707534858 +0100
+@@ -94,7 +94,7 @@
+ my $self = shift;
+ my $param = shift;
+ my @files = ();
+- my @etcfiles = qw(/etc/make.globals /etc/make.conf);
++ my @etcfiles = qw(/usr/share/portage/config/make.globals /etc/portage/make.conf);
+ my @profilefiles = ();
+ my $v = '';
+ my $parent = '';
+@@ -166,7 +166,7 @@
+ return $self->{'PORTDIR'};
+ }
+ else {
+- $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/etc/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR','lastseen');
++ $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR','lastseen');
+ return $self->{'PORTDIR'};
+ }
+ }
+@@ -183,7 +183,7 @@
+ my $self = shift;
+ my $forcereload = shift;
+
+- return split(/ /,$self->getParamFromFile($self->getFileContents('/etc/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR_OVERLAY','lastseen'));
++ return split(/ /,$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR_OVERLAY','lastseen'));
+ }
+
+ # Description:
+diff -ur PortageXS-0.02.10.orig/lib/PortageXS/examples/getParamFromFile.pl PortageXS-0.02.10/lib/PortageXS/examples/getParamFromFile.pl
+--- PortageXS-0.02.10.orig/lib/PortageXS/examples/getParamFromFile.pl 2013-01-03 09:32:10.477597366 +0100
++++ PortageXS-0.02.10/lib/PortageXS/examples/getParamFromFile.pl 2013-01-03 09:32:12.707534858 +0100
+@@ -8,4 +8,5 @@
+
+ my $pxs=PortageXS->new();
+ print "CFLAGS are set to: ";
+-print join(' ',$pxs->getParamFromFile($pxs->getFileContents('/etc/make.globals').$pxs->getFileContents('/etc/make.conf'),'CFLAGS','lastseen'))."\n";
++print join('
++',$pxs->getParamFromFile($pxs->getFileContents('/usr/share/portage/config/make.globals').$pxs->getFileContents('/etc/portage/make.conf'),'CFLAGS','lastseen'))."\n";
+diff -ur PortageXS-0.02.10.orig/lib/PortageXS.pm PortageXS-0.02.10/lib/PortageXS.pm
+--- PortageXS-0.02.10.orig/lib/PortageXS.pm 2013-01-03 09:32:10.478597338 +0100
++++ PortageXS-0.02.10/lib/PortageXS.pm 2013-01-03 09:32:29.710057966 +0100
+@@ -77,7 +77,7 @@
+
+ $self->{'PORTAGEXS_ETC_DIR'} = '/etc/pxs/';
+ $self->{'ETC_DIR'} = '/etc/';
+- $self->{'MAKE_PROFILE_PATH'} = '/etc/make.profile';
++ $self->{'MAKE_PROFILE_PATH'} = '/etc/portage/make.profile';
+
+ # - init colors >
+ $self->{'COLORS'}{'YELLOW'} = color('bold yellow');
+@@ -89,7 +89,7 @@
+ $self->{'COLORS'}{'BLUE'} = color('bold blue');
+ $self->{'COLORS'}{'RESET'} = color('reset');
+
+- if (lc($self->getParamFromFile($self->getFileContents('/etc/make.conf'),'NOCOLOR','lastseen')) eq 'true') {
++ if (lc($self->getParamFromFile($self->getFileContents('/etc/portage/make.conf'),'NOCOLOR','lastseen')) eq 'true') {
+ $self->{'COLORS'}{'YELLOW'} = '';
+ $self->{'COLORS'}{'GREEN'} = '';
+ $self->{'COLORS'}{'LIGHTGREEN'} = '';
+diff -ur PortageXS-0.02.10.orig/t/01_Core.t PortageXS-0.02.10/t/01_Core.t
+--- PortageXS-0.02.10.orig/t/01_Core.t 2013-01-03 09:32:10.476597394 +0100
++++ PortageXS-0.02.10/t/01_Core.t 2013-01-03 09:32:12.707534858 +0100
+@@ -14,8 +14,8 @@
+
+ # - getFileContents >
+ {
+- my $content = $pxs->getFileContents('/etc/make.conf');
+- ok($content ne '','getFileContents of /etc/make.conf');
++ my $content = $pxs->getFileContents('/etc/portage/make.conf');
++ ok($content ne '','getFileContents of /etc/portage/make.conf');
+ }
+
+ # - searchInstalledPackage >
+@@ -26,8 +26,8 @@
+
+ # - getParamFromFile >
+ {
+- my $param = $pxs->getParamFromFile($pxs->getFileContents('/etc/make.conf'),'CFLAGS','lastseen');
+- ok($param ne '','getParamFromFile /etc/make.conf - CFLAGS: '.$param);
++ my $param = $pxs->getParamFromFile($pxs->getFileContents('/etc/portage/make.conf'),'CFLAGS','lastseen');
++ ok($param ne '','getParamFromFile /etc/portage/make.conf - CFLAGS: '.$param);
+ }
+
+ # - getUseSettingsOfInstalledPackage >
diff --git a/dev-perl/PortageXS/files/PortageXS-0.02.10-prefix.patch b/dev-perl/PortageXS/files/PortageXS-0.02.10-prefix.patch
new file mode 100644
index 000000000000..755bb13bb503
--- /dev/null
+++ b/dev-perl/PortageXS/files/PortageXS-0.02.10-prefix.patch
@@ -0,0 +1,137 @@
+diff -ur PortageXS-0.02.09.orig/lib/PortageXS/Core.pm PortageXS-0.02.09/lib/PortageXS/Core.pm
+--- PortageXS-0.02.09.orig/lib/PortageXS/Core.pm 2008-12-01 21:30:50 +0100
++++ PortageXS-0.02.09/lib/PortageXS/Core.pm 2009-03-18 20:56:20 +0100
+@@ -94,7 +94,7 @@
+ my $self = shift;
+ my $param = shift;
+ my @files = ();
+- my @etcfiles = qw(/usr/share/portage/config/make.globals /etc/portage/make.conf);
++ my @etcfiles = qw(@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals @GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf);
+ my @profilefiles = ();
+ my $v = '';
+ my $parent = '';
+@@ -139,7 +139,7 @@
+
+ # - Defaults >
+ if ($param eq 'PORTDIR' && !$v) {
+- $v='/usr/portage';
++ $v='@GENTOO_PORTAGE_EPREFIX@/usr/portage';
+ }
+
+ return $v;
+@@ -166,7 +166,7 @@
+ return $self->{'PORTDIR'};
+ }
+ else {
+- $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR','lastseen');
++ $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'PORTDIR','lastseen');
+ return $self->{'PORTDIR'};
+ }
+ }
+@@ -183,7 +183,7 @@
+ my $self = shift;
+ my $forcereload = shift;
+
+- return split(/ /,$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR_OVERLAY','lastseen'));
++ return split(/ /,$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'PORTDIR_OVERLAY','lastseen'));
+ }
+
+ # Description:
+diff -ur PortageXS-0.02.09.orig/lib/PortageXS.pm PortageXS-0.02.09/lib/PortageXS.pm
+--- PortageXS-0.02.09.orig/lib/PortageXS.pm 2008-12-01 21:30:50 +0100
++++ PortageXS-0.02.09/lib/PortageXS.pm 2009-03-18 20:52:29 +0100
+@@ -61,8 +61,8 @@
+ $self->{'VERSION'} = $VERSION;
+
+ $self->{'PORTDIR'} = $self->getPortdir();
+- $self->{'PKG_DB_DIR'} = '/var/db/pkg/';
+- $self->{'PATH_TO_WORLDFILE'} = '/var/lib/portage/world';
++ $self->{'PKG_DB_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg/';
++ $self->{'PATH_TO_WORLDFILE'} = '@GENTOO_PORTAGE_EPREFIX@/var/lib/portage/world';
+ $self->{'IS_INITIALIZED'} = 1;
+
+ $self->{'EXCLUDE_DIRS'}{'.'} = 1;
+@@ -75,9 +75,9 @@
+ $self->{'EXCLUDE_DIRS'}{'CVS'} = 1;
+ $self->{'EXCLUDE_DIRS'}{'.cache'} = 1;
+
+- $self->{'PORTAGEXS_ETC_DIR'} = '/etc/pxs/';
+- $self->{'ETC_DIR'} = '/etc/';
+- $self->{'MAKE_PROFILE_PATH'} = '/etc/portage/make.profile';
++ $self->{'PORTAGEXS_ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/';
++ $self->{'ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/';
++ $self->{'MAKE_PROFILE_PATH'} = '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.profile';
+
+ # - init colors >
+ $self->{'COLORS'}{'YELLOW'} = color('bold yellow');
+@@ -89,7 +89,7 @@
+ $self->{'COLORS'}{'BLUE'} = color('bold blue');
+ $self->{'COLORS'}{'RESET'} = color('reset');
+
+- if (lc($self->getParamFromFile($self->getFileContents('/etc/portage/make.conf'),'NOCOLOR','lastseen')) eq 'true') {
++ if (lc($self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'NOCOLOR','lastseen')) eq 'true') {
+ $self->{'COLORS'}{'YELLOW'} = '';
+ $self->{'COLORS'}{'GREEN'} = '';
+ $self->{'COLORS'}{'LIGHTGREEN'} = '';
+diff -ur PortageXS-0.02.09.orig/usr/bin/portagexs_client PortageXS-0.02.09/usr/bin/portagexs_client
+--- PortageXS-0.02.09.orig/usr/bin/portagexs_client 2008-12-01 21:30:50 +0100
++++ PortageXS-0.02.09/usr/bin/portagexs_client 2009-03-18 20:52:29 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl
++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl
+
+ # -----------------------------------------------------------------------------
+ #
+@@ -54,9 +54,9 @@
+ SSL_use_cert => 1,
+ SSL_verify_mode => 0x01,
+ SSL_passwd_cb => sub { return "" },
+- SSL_key_file => '/etc/pxs/certs/client-key.pem',
+- SSL_cert_file => '/etc/pxs/certs/client-cert.pem',
+- SSL_ca_file => '/etc/pxs/certs/my-ca.pem'
++ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-key.pem',
++ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-cert.pem',
++ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem'
+ ))) {
+ $pxs->print_err("unable to create socket: ".&IO::Socket::SSL::errstr."\n");
+ $pxs->print_err("Server down?\n");
+diff -ur PortageXS-0.02.09.orig/usr/sbin/portagexsd PortageXS-0.02.09/usr/sbin/portagexsd
+--- PortageXS-0.02.09.orig/usr/sbin/portagexsd 2008-12-01 21:30:50 +0100
++++ PortageXS-0.02.09/usr/sbin/portagexsd 2009-03-18 20:52:29 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl -t
++#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -t
+
+ # -----------------------------------------------------------------------------
+ #
+@@ -50,7 +50,7 @@
+ sub main {
+ # - Parse config >
+ my %config = ();
+- $config{'cfgfiledata'} = $pxs->getFileContents("/etc/pxs/portagexsd.conf");
++ $config{'cfgfiledata'} = $pxs->getFileContents("@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf");
+ $config{'Port'} = $pxs->getParamFromFile($config{'cfgfiledata'},"Port","lastseen");
+ $config{'SSLpasswd'} = $pxs->getParamFromFile($config{'cfgfiledata'},"SSLpasswd","lastseen");
+ $config{'PidFile'} = $pxs->getParamFromFile($config{'cfgfiledata'},"PidFile","lastseen");
+@@ -60,7 +60,7 @@
+ $config{'cfgfiledata'} = undef;
+
+ if (!$config{'I_AM_ROOT_AND_I_KNOW_WHAT_I_AM_DOING'}) {
+- syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (/etc/pxs/portagexsd.conf)');
++ syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf)');
+ exit(0);
+ }
+
+@@ -70,9 +71,9 @@
+ Reuse => 1,
+ SSL_verify_mode => 0x01,
+ SSL_passwd_cb => sub {return $config{'SSLpasswd'}},
+- SSL_key_file => '/etc/pxs/certs/server-key.pem',
+- SSL_cert_file => '/etc/pxs/certs/server-cert.pem',
+- SSL_ca_file => '/etc/pxs/certs/my-ca.pem'
++ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-key.pem',
++ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-cert.pem',
++ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem'
+ )) ) {
+ syslog("info", "Unable to create socket: ", &IO::Socket::SSL::errstr);
+ exit(0);
diff --git a/dev-perl/PortageXS/metadata.xml b/dev-perl/PortageXS/metadata.xml
new file mode 100644
index 000000000000..cead4cd5e16b
--- /dev/null
+++ b/dev-perl/PortageXS/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>kentnl@gentoo.org</email>
+ <name>Kent Fredric</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">PortageXS</remote-id>
+ <remote-id type="cpan">PortageXS::Core</remote-id>
+ <remote-id type="cpan">PortageXS::System</remote-id>
+ <remote-id type="cpan">PortageXS::UI::Console</remote-id>
+ <remote-id type="cpan">PortageXS::UI::Spinner</remote-id>
+ <remote-id type="cpan">PortageXS::Useflags</remote-id>
+ <remote-id type="cpan">PortageXS::Version</remote-id>
+ </upstream>
+</pkgmetadata>