1 |
commit: 4d46cbec6d02ae40773352abd6f48e302ee5dea5 |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 21:07:59 2022 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 21:08:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d46cbec |
7 |
|
8 |
net-misc/apt-cacher-ng: add 3.7.4_p1 |
9 |
|
10 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
11 |
|
12 |
net-misc/apt-cacher-ng/Manifest | 1 + |
13 |
.../apt-cacher-ng/apt-cacher-ng-3.7.4_p1.ebuild | 104 +++++++++++++++++++++ |
14 |
2 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/apt-cacher-ng/Manifest b/net-misc/apt-cacher-ng/Manifest |
17 |
index f208121fab43..14a5618b82d6 100644 |
18 |
--- a/net-misc/apt-cacher-ng/Manifest |
19 |
+++ b/net-misc/apt-cacher-ng/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST apt-cacher-ng-debian-3.7.4-1.tar.gz 524480 BLAKE2B ebb450af29439910fe35a558ae6f7ea02337bfbbe5a8efcb20a803e779deedd7901358a71b69745a53036fb8db9db3c9112fc09b47055f07dfe225f3df95202d SHA512 a2aa3218d8cf216cef7177f30bfb90b9961460add2a90823e15952e38d19b0dd527e3cecd029bbf1f10abcfcfd11d406bc9019919d1efccf0d9d69bb7cc1a173 |
22 |
DIST apt-cacher-ng_3.6.3.orig.tar.xz 334620 BLAKE2B 7e77edb966f0732f392a3fb243cda547dca7d4f878e44c6c000491ccb0a3115ad58a553706ef02834d25366b09d24ee6af2dafad76f97cd1978dc5a4d35f3380 SHA512 57d991c71f6d0bb9d43b4645ee7be2fb38ccbf73581206e01b6ca389bd8591d5e9f425350e3aff053527125c95caefe9ab1217dedff812162cf6bd4cdfdef792 |
23 |
|
24 |
diff --git a/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1.ebuild b/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..a80672c370a3 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/apt-cacher-ng/apt-cacher-ng-3.7.4_p1.ebuild |
29 |
@@ -0,0 +1,104 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit cmake tmpfiles |
36 |
+ |
37 |
+MY_PV="${PV/_p/-}" |
38 |
+MY_P="${PN}-debian-${MY_PV}" |
39 |
+ |
40 |
+DESCRIPTION="Yet another caching HTTP proxy for Debian/Ubuntu software packages" |
41 |
+HOMEPAGE="https://www.unix-ag.uni-kl.de/~bloch/acng/ |
42 |
+ https://packages.qa.debian.org/a/apt-cacher-ng.html" |
43 |
+SRC_URI="https://salsa.debian.org/blade/${PN}/-/archive/debian/${MY_PV}/${MY_P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD-4 ZLIB public-domain" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc fuse systemd tcpd" |
49 |
+ |
50 |
+DEPEND="acct-user/apt-cacher-ng |
51 |
+ acct-group/apt-cacher-ng |
52 |
+ app-arch/bzip2 |
53 |
+ dev-libs/libevent:=[threads] |
54 |
+ dev-libs/openssl:0= |
55 |
+ sys-libs/zlib |
56 |
+ fuse? ( sys-fs/fuse:0 ) |
57 |
+ systemd? ( sys-apps/systemd ) |
58 |
+ tcpd? ( sys-apps/tcp-wrappers )" |
59 |
+BDEPEND="virtual/pkgconfig" |
60 |
+RDEPEND="${DEPEND} |
61 |
+ dev-lang/perl" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/${PN}-3.3.1-flags.patch" |
65 |
+ "${FILESDIR}/${PN}-3.5-perl-syntax.patch" |
66 |
+ "${FILESDIR}/${PN}-3.6-optional-systemd.patch" |
67 |
+) |
68 |
+ |
69 |
+S="${WORKDIR}/${MY_P}" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # Fixup systemd/CMakeLists.txt cmake version requirement |
73 |
+ sed -ie "s/2.6/3.1/" systemd/CMakeLists.txt || die |
74 |
+ |
75 |
+ # Make sure we install everything the same way it used to be after |
76 |
+ # switching from mostly custom src_install to relying on build system |
77 |
+ # installation |
78 |
+ sed -e "/install/s/LIBDIR/CFGDIR/" \ |
79 |
+ -e "/install.*acng\.conf/s/)$/ RENAME ${PN}.conf)/" \ |
80 |
+ -e "/file/s/)$/ \"*hooks\" \"backends_debian\")/" -i conf/CMakeLists.txt || die |
81 |
+ sed -ie "/INSTALL.*acngtool/s/LIBDIR/CMAKE_INSTALL_SBINDIR/" src/CMakeLists.txt || die |
82 |
+ |
83 |
+ cmake_src_prepare |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ "-DHAVE_FUSE_25=$(usex fuse)" |
89 |
+ "-DHAVE_LIBWRAP=$(usex tcpd)" |
90 |
+ "-DSDINSTALL=$(usex systemd)" |
91 |
+ ) |
92 |
+ |
93 |
+ cmake_src_configure |
94 |
+ |
95 |
+ sed -ie '/LogDir/s|/var/tmp|/var/log/'"${PN}"'|g' "${BUILD_DIR}"/conf/acng.conf || die |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ # README is a symlink to doc/README and README automatically gets |
100 |
+ # installed, leading to a broken symlink installed. Fix this by removing |
101 |
+ # the symlink then installing the actual README. https://bugs.gentoo.org/770046 |
102 |
+ rm README || die |
103 |
+ dodoc doc/README |
104 |
+ |
105 |
+ newinitd "${FILESDIR}/initd-r3" "${PN}" |
106 |
+ newconfd "${FILESDIR}/confd-r2" "${PN}" |
107 |
+ |
108 |
+ insinto /etc/logrotate.d |
109 |
+ newins "${FILESDIR}/logrotate" "${PN}" |
110 |
+ |
111 |
+ insinto /etc/cron.daily |
112 |
+ newins "${FILESDIR}/cron.daily" "${PN}" |
113 |
+ |
114 |
+ # USE=fuse installs acngfs, don't install manpage without the bin |
115 |
+ if use !fuse; then |
116 |
+ rm doc/man/acngfs.8 || die |
117 |
+ fi |
118 |
+ |
119 |
+ if use !doc; then |
120 |
+ rm -r doc/html || die |
121 |
+ fi |
122 |
+ |
123 |
+ dosbin scripts/expire-caller.pl |
124 |
+ |
125 |
+ keepdir "/var/log/${PN}" |
126 |
+ fowners -R ${PN}:${PN} "/var/log/${PN}" |
127 |
+ |
128 |
+ cmake_src_install |
129 |
+} |
130 |
+ |
131 |
+pkg_postinst() { |
132 |
+ tmpfiles_process "${PN}.conf" |
133 |
+} |