1 |
commit: 1a9a8a242a7350fc5d42d4930523b1d9effc56ab |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 1 09:21:25 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 1 09:22:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a9a8a24 |
7 |
|
8 |
app-admin/apache-tools: Bump to version 2.4.43 |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-admin/apache-tools/Manifest | 1 + |
14 |
app-admin/apache-tools/apache-tools-2.4.43.ebuild | 105 ++++++++++++++++++++++ |
15 |
2 files changed, 106 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/apache-tools/Manifest b/app-admin/apache-tools/Manifest |
18 |
index c926034bb90..71b993d32ad 100644 |
19 |
--- a/app-admin/apache-tools/Manifest |
20 |
+++ b/app-admin/apache-tools/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST httpd-2.4.41.tar.bz2 7072373 BLAKE2B 88a2390736209d5ef04bffcb867bc8d6019302885e6f3cc63d18123336d4d0657252105a3bfebf4e91b8daa02119d4a61f4c0a9702244858a3193ec6cf681c0f SHA512 350cc7dcd2c439e0590338fa6da3f44df44f9bb885c381e91f91b14c2f48597f6f0bbac0ea118a8a67eaa70ae7edbb769beace368643ed73f6daee44c307b335 |
23 |
+DIST httpd-2.4.43.tar.bz2 7155865 BLAKE2B cd85c7e25500f8f1b4bd6ac5f715718a61bf548dfaf36408a970d27bacbfce256e4dda255ba5b62f89e117c335d0568d6207c93e5fb0d2b1ee84dba4ce0d4bd7 SHA512 16cfeecc8f6fab6eca478065a384bdf1872f7ac42206b0bc2bcac6c0d9c576f392c07107201f39e0601dec1bbafcb33d66153544de4d87d79b9a52094d334b64 |
24 |
|
25 |
diff --git a/app-admin/apache-tools/apache-tools-2.4.43.ebuild b/app-admin/apache-tools/apache-tools-2.4.43.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a01851ad496 |
28 |
--- /dev/null |
29 |
+++ b/app-admin/apache-tools/apache-tools-2.4.43.ebuild |
30 |
@@ -0,0 +1,105 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit flag-o-matic eutils multilib toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm" |
38 |
+HOMEPAGE="https://httpd.apache.org/" |
39 |
+SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2" |
40 |
+ |
41 |
+LICENSE="Apache-2.0" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris" |
44 |
+IUSE="libressl ssl" |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+RDEPEND=">=dev-libs/apr-1.5.0:1= |
48 |
+ dev-libs/apr-util:1= |
49 |
+ dev-libs/expat |
50 |
+ dev-libs/libpcre |
51 |
+ kernel_linux? ( sys-apps/util-linux ) |
52 |
+ ssl? ( |
53 |
+ !libressl? ( dev-libs/openssl:0= ) |
54 |
+ libressl? ( dev-libs/libressl:0= ) |
55 |
+ )" |
56 |
+ |
57 |
+DEPEND="${RDEPEND} |
58 |
+ sys-devel/libtool" |
59 |
+ |
60 |
+S="${WORKDIR}/httpd-${PV}" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}/${PN}-2.4.7-Makefile.patch" #459446 |
64 |
+) |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ # This package really should upgrade to using pcre's .pc file. |
70 |
+ cat <<-\EOF >"${T}"/pcre-config |
71 |
+ #!/bin/bash |
72 |
+ flags=() |
73 |
+ for flag; do |
74 |
+ if [[ ${flag} == "--version" ]]; then |
75 |
+ flags+=( --modversion ) |
76 |
+ else |
77 |
+ flags+=( "${flag}" ) |
78 |
+ fi |
79 |
+ done |
80 |
+ exec ${PKG_CONFIG} libpcre "${flags[@]}" |
81 |
+ EOF |
82 |
+ chmod a+x "${T}"/pcre-config || die |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ # Brain dead check. |
87 |
+ tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" |
88 |
+ |
89 |
+ tc-export PKG_CONFIG |
90 |
+ |
91 |
+ local myeconfargs=( |
92 |
+ --libexecdir="${EPREFIX}"/usr/$(get_libdir)/apache2/modules |
93 |
+ --sbindir="${EPREFIX}"/usr/sbin |
94 |
+ --with-perl="${EPREFIX}"/usr/bin/perl |
95 |
+ --with-expat="${EPREFIX}"/usr |
96 |
+ --with-z="${EPREFIX}"/usr |
97 |
+ --with-apr="${SYSROOT}${EPREFIX}"/usr |
98 |
+ --with-apr-util="${SYSROOT}${EPREFIX}"/usr |
99 |
+ --with-pcre="${T}"/pcre-config |
100 |
+ $(use_enable ssl) |
101 |
+ $(usex ssl '--with-ssl="${EPREFIX}"/usr' '') |
102 |
+ ) |
103 |
+ # econf overwrites the stuff from config.layout. |
104 |
+ ac_cv_path_PKGCONFIG=${PKG_CONFIG} \ |
105 |
+ econf "${myeconfargs[@]}" |
106 |
+ sed -i \ |
107 |
+ -e '/^LTFLAGS/s:--silent::' \ |
108 |
+ build/rules.mk build/config_vars.mk || die |
109 |
+} |
110 |
+ |
111 |
+src_compile() { |
112 |
+ emake -C support |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ emake -C support DESTDIR="${D}" install |
117 |
+ dodoc CHANGES |
118 |
+ doman docs/man/{dbmmanage,htdigest,htpasswd,htdbm,ab,logresolve}.1 \ |
119 |
+ docs/man/{htcacheclean,rotatelogs}.8 |
120 |
+ |
121 |
+ # Providing compatiblity symlinks for #177697 (which we'll stop to install |
122 |
+ # at some point). |
123 |
+ pushd "${ED}"/usr/sbin >/dev/null || die |
124 |
+ local i |
125 |
+ for i in *; do |
126 |
+ dosym ${i} /usr/sbin/${i}2 |
127 |
+ done |
128 |
+ popd >/dev/null || die |
129 |
+ |
130 |
+ # Provide a symlink for ab-ssl |
131 |
+ if use ssl ; then |
132 |
+ dosym ab /usr/bin/ab-ssl |
133 |
+ dosym ab /usr/bin/ab2-ssl |
134 |
+ fi |
135 |
+} |