summaryrefslogtreecommitdiff
path: root/dev-perl/PortageXS/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
commit1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch)
treee48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-perl/PortageXS/files
parentd87262dd706fec50cd150aab3e93883b6337466d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/PortageXS/files')
-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
3 files changed, 0 insertions, 421 deletions
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
deleted file mode 100644
index df1881118c9a..000000000000
--- a/dev-perl/PortageXS/files/0.02.12/PortageXS-0.02.12-prefix.patch
+++ /dev/null
@@ -1,198 +0,0 @@
- 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
deleted file mode 100644
index a9968cd7e79e..000000000000
--- a/dev-perl/PortageXS/files/PortageXS-0.02.10-portage_path_fix.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-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
deleted file mode 100644
index 755bb13bb503..000000000000
--- a/dev-perl/PortageXS/files/PortageXS-0.02.10-prefix.patch
+++ /dev/null
@@ -1,137 +0,0 @@
-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);