1 |
commit: e1e7598335f12aa5cfd328de0c09da3e2b6a3417 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 17:12:01 2016 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 17:12:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/dilfridge.git/commit/?id=e1e75983 |
7 |
|
8 |
www-apache/mod_perl: Start simplifying |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
www-apache/mod_perl/Manifest | 1 - |
13 |
.../mod_perl/mod_perl-2.0.10_pre201601-r1.ebuild | 127 +++++++++++++++++++++ |
14 |
2 files changed, 127 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/www-apache/mod_perl/Manifest b/www-apache/mod_perl/Manifest |
17 |
index 3c73173..9d6f756 100644 |
18 |
--- a/www-apache/mod_perl/Manifest |
19 |
+++ b/www-apache/mod_perl/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
DIST mod_perl-2.0.10_pre201601.tar.gz 3854229 SHA256 a89c23b66b21c600b74a48125c02c91159c07b08cc07fb4f55015e8e07713697 SHA512 04e57e79031374f3ec432e950fb9f79d1202da9dfc0d86a5137b7346c18f313a4e58ecfffed51efd7e6494baec86b22a42d6712ce5f7824f9f479c05bac00659 WHIRLPOOL 5d37b067aa945cafc0cc7a1f1b27257d8409f6804f22880ae7fd6c21424bbd2c07bace483d95590d255678725f67d081741978cff24cfc91716c08294547e622 |
22 |
-DIST mod_perl-2.0.8.tar.gz 3790026 SHA256 35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6 SHA512 d5090651699c4436fe8d0a525226543c971aa05db337dc1b1e89023183df1c7dd8b8775f3a0f7d3b9ec40e8c058ac23bd24141cf15a5fe5806226d634dfb4c87 WHIRLPOOL d22e1c353339b08ad752e9f9c7fc0ec4d6a173c4cd3004380b14098e1028737e0eb69d2f56dbe0da3cbfb01b31232c5073d7edb28bf4fed6b2ccd67b09ad7080 |
23 |
|
24 |
diff --git a/www-apache/mod_perl/mod_perl-2.0.10_pre201601-r1.ebuild b/www-apache/mod_perl/mod_perl-2.0.10_pre201601-r1.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..1fac22f |
27 |
--- /dev/null |
28 |
+++ b/www-apache/mod_perl/mod_perl-2.0.10_pre201601-r1.ebuild |
29 |
@@ -0,0 +1,127 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit depend.apache apache-module perl-module eutils |
37 |
+ |
38 |
+DESCRIPTION="An embedded Perl interpreter for Apache2" |
39 |
+HOMEPAGE="https://perl.apache.org/" |
40 |
+#SRC_URI="mirror://apache/perl/${P}.tar.gz" |
41 |
+SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="1" |
45 |
+#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
46 |
+IUSE="debug" |
47 |
+ |
48 |
+# The "solutions" for the following bugs have been removed here to simplify |
49 |
+# the ebuild. Needs checking if the problem still occurs. |
50 |
+# |
51 |
+# bug 373943: precise threading conditions |
52 |
+ |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ >=dev-perl/Apache-Reload-0.11 |
56 |
+ >=dev-perl/Apache-SizeLimit-0.95 |
57 |
+ >=dev-perl/Apache-Test-1.360 |
58 |
+ >=dev-perl/CGI-3.08 |
59 |
+ dev-lang/perl[ithreads] |
60 |
+ www-servers/apache |
61 |
+" |
62 |
+RDEPEND="${DEPEND} |
63 |
+" |
64 |
+ |
65 |
+APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so" |
66 |
+APACHE2_MOD_CONF="2.0.3/75_${PN}" |
67 |
+APACHE2_MOD_DEFINE="PERL" |
68 |
+ |
69 |
+need_apache2 |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ perl-module_src_prepare |
73 |
+ |
74 |
+ # rendhalver - this got redone for 2.0.1 and seems to fix the make test problems |
75 |
+ epatch "${FILESDIR}"/${PN}-2.0.1-sneak-tmpdir.patch |
76 |
+ epatch "${FILESDIR}"/${PN}-2.0.4-inline.patch #550244 |
77 |
+ |
78 |
+ # bug 352724 |
79 |
+ epatch "${FILESDIR}/${P}-bundled-Apache-Test.patch" |
80 |
+ rm -rf Apache-{Test,Reload,SizeLimit}/ lib/Bundle/ |
81 |
+ |
82 |
+ # 410453 |
83 |
+ epatch "${FILESDIR}/use-client_ip-client_add-instead-of-remote_ip-remote.patch" |
84 |
+ epatch "${FILESDIR}/use-log.level-instead-of-loglevel.patch" |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local debug=$(usex debug 1 0) |
89 |
+ perl Makefile.PL \ |
90 |
+ PREFIX="${EPREFIX}"/usr \ |
91 |
+ INSTALLDIRS=vendor \ |
92 |
+ MP_USE_DSO=1 \ |
93 |
+ MP_APXS=${APXS} \ |
94 |
+ MP_APR_CONFIG=/usr/bin/apr-1-config \ |
95 |
+ MP_TRACE=${debug} \ |
96 |
+ MP_DEBUG=${debug} \ |
97 |
+ || die |
98 |
+} |
99 |
+ |
100 |
+src_test() { |
101 |
+ # make test notes whether it is running as root, and drops |
102 |
+ # privileges all the way to "nobody" if so, so we must adjust |
103 |
+ # write permissions accordingly in this case. |
104 |
+ |
105 |
+ # IF YOU SUDO TO EMERGE AND HAVE !env_reset set testing will fail! |
106 |
+ if [[ "$(id -u)" == "0" ]]; then |
107 |
+ chown nobody:nobody "${WORKDIR}" "${T}" |
108 |
+ fi |
109 |
+ |
110 |
+ # this does not || die because of bug 21325. kudos to smark for |
111 |
+ # the idea of setting HOME. |
112 |
+ TMPDIR="${T}" HOME="${T}/" perl-module_src_test |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ apache-module_src_install |
117 |
+ |
118 |
+ default |
119 |
+#emake DESTDIR="${D}" install || die |
120 |
+ |
121 |
+ # TODO: add some stuff from docs/ back? |
122 |
+ |
123 |
+ # rendhalver - fix the perllocal.pod that gets installed |
124 |
+ # it seems to me that this has been getting installed for ages |
125 |
+ perl_delete_localpod |
126 |
+ # Remove empty .bs files as well |
127 |
+ perl_delete_packlist |
128 |
+ |
129 |
+ insinto "${APACHE_MODULES_CONFDIR}" |
130 |
+ doins "${FILESDIR}"/2.0.3/apache2-mod_perl-startup.pl |
131 |
+ |
132 |
+ # this is an attempt to get @INC in line with /usr/bin/perl. |
133 |
+ # there is blib garbage in the mainstream one that can only be |
134 |
+ # useful during internal testing, so we wait until here and then |
135 |
+ # just go with a clean slate. should be much easier to see what's |
136 |
+ # happening and revert if problematic. |
137 |
+ |
138 |
+ # Sorry for this evil hack... |
139 |
+ perl_set_version # just to be sure... |
140 |
+ sed -i \ |
141 |
+ -e "s,-I${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \ |
142 |
+ -e "s,-typemap[[:space:]]${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \ |
143 |
+ -e "s,${S}\(/[^[:space:]\"\']\+\)\?,/,g" \ |
144 |
+ "${D}/${VENDOR_ARCH}/Apache2/BuildConfig.pm" || die |
145 |
+ |
146 |
+ for fname in $(find "${D}" -type f -not -name '*.so'); do |
147 |
+ grep -q "\(${D}\|${S}\)" "${fname}" && ewarn "QA: File contains a temporary path ${fname}" |
148 |
+ sed -i -e "s:\(${D}\|${S}\):/:g" ${fname} |
149 |
+ done |
150 |
+ # All the rest |
151 |
+ perl_remove_temppath |
152 |
+} |
153 |
+ |
154 |
+pkg_postinst() { |
155 |
+ apache-module_pkg_postinst |
156 |
+} |