| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
inherit cmake tmpfiles
|
| 7 |
|
|
| 8 |
|
MY_PV="${PV/_p/-}"
|
| 9 |
|
MY_P="${PN}-debian-${MY_PV}"
|
|
6 |
inherit cmake git-r3 tmpfiles
|
| 10 |
7 |
|
| 11 |
8 |
DESCRIPTION="Yet another caching HTTP proxy for Debian/Ubuntu software packages"
|
| 12 |
9 |
HOMEPAGE="https://www.unix-ag.uni-kl.de/~bloch/acng/
|
| 13 |
10 |
https://packages.qa.debian.org/a/apt-cacher-ng.html"
|
| 14 |
|
SRC_URI="https://salsa.debian.org/blade/${PN}/-/archive/debian/${MY_PV}/${MY_P}.tar.gz"
|
|
11 |
EGIT_REPO_URI="https://salsa.debian.org/blade/apt-cacher-ng.git"
|
|
12 |
EGIT_BRANCH="upstream/sid"
|
| 15 |
13 |
|
| 16 |
14 |
LICENSE="BSD-4 ZLIB public-domain"
|
| 17 |
15 |
SLOT="0"
|
| 18 |
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
| 19 |
16 |
IUSE="doc fuse systemd tcpd"
|
| 20 |
17 |
|
| 21 |
18 |
DEPEND="acct-user/apt-cacher-ng
|
| ... | ... | |
| 23 |
20 |
app-arch/bzip2
|
| 24 |
21 |
dev-libs/libevent:=[threads(+)]
|
| 25 |
22 |
dev-libs/openssl:0=
|
| 26 |
|
net-dns/c-ares:=
|
| 27 |
23 |
sys-libs/zlib
|
| 28 |
24 |
fuse? ( sys-fs/fuse:0 )
|
| 29 |
25 |
systemd? ( sys-apps/systemd )
|
| ... | ... | |
| 35 |
31 |
PATCHES=(
|
| 36 |
32 |
"${FILESDIR}/${PN}-3.3.1-flags.patch"
|
| 37 |
33 |
"${FILESDIR}/${PN}-3.5-perl-syntax.patch"
|
| 38 |
|
"${FILESDIR}/${PN}-3.6-optional-systemd.patch"
|
| 39 |
|
"${FILESDIR}/${PN}-3.7.4-strlcpy-glibc-2.38.patch"
|
| 40 |
|
"${FILESDIR}/${PN}-3.7.4-musl.patch"
|
| 41 |
|
"${FILESDIR}/${PN}-3.7.4-gcc14.patch"
|
| 42 |
34 |
)
|
| 43 |
35 |
|
| 44 |
|
S="${WORKDIR}/${MY_P}"
|
|
36 |
S="${WORKDIR}/${P/_*}"
|
| 45 |
37 |
|
| 46 |
38 |
src_prepare() {
|
| 47 |
39 |
# Fixup systemd/CMakeLists.txt cmake version requirement
|
| ... | ... | |
| 51 |
43 |
# switching from mostly custom src_install to relying on build system
|
| 52 |
44 |
# installation
|
| 53 |
45 |
sed -e "/install/s/LIBDIR/CFGDIR/" \
|
| 54 |
|
-e "/install.*acng\.conf/s/)$/ RENAME ${PN}.conf)/" \
|
| 55 |
|
-e "/file/s/)$/ \"*hooks\" \"backends_debian\")/" -i conf/CMakeLists.txt || die
|
| 56 |
|
sed -ie "/INSTALL.*acngtool/s/LIBDIR/CMAKE_INSTALL_SBINDIR/" src/CMakeLists.txt || die
|
|
46 |
-e '/install.*acng\.conf/s/)$/ RENAME '"${PN}"'.conf)/' \
|
|
47 |
-e '/file/s/)$/ "*hooks" "backends_debian")/' -i conf/CMakeLists.txt || die
|
|
48 |
sed -ie "/INSTALL.*acngtool/s/LIBDIR/CMAKE_INSTALL_SBINDIR/" source/CMakeLists.txt || die
|
| 57 |
49 |
|
| 58 |
50 |
cmake_src_prepare
|
| 59 |
51 |
}
|