Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/apt-cacher-ng/, net-misc/apt-cacher-ng/files/
Date: Wed, 13 Nov 2019 10:08:33
Message-Id: 1573639706.d0e515d3cb5c375b6068029d621c2fa4f2cf55ba.jer@gentoo
1 commit: d0e515d3cb5c375b6068029d621c2fa4f2cf55ba
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 13 10:05:02 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 13 10:08:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0e515d3
7
8 net-misc/apt-cacher-ng: Old
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.18
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-misc/apt-cacher-ng/apt-cacher-ng-3.2.ebuild | 118 ------------------------
14 net-misc/apt-cacher-ng/files/initd | 32 -------
15 2 files changed, 150 deletions(-)
16
17 diff --git a/net-misc/apt-cacher-ng/apt-cacher-ng-3.2.ebuild b/net-misc/apt-cacher-ng/apt-cacher-ng-3.2.ebuild
18 deleted file mode 100644
19 index d04cec3cc61..00000000000
20 --- a/net-misc/apt-cacher-ng/apt-cacher-ng-3.2.ebuild
21 +++ /dev/null
22 @@ -1,118 +0,0 @@
23 -# Copyright 1999-2019 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -inherit cmake-utils toolchain-funcs user
28 -
29 -DESCRIPTION="Yet another caching HTTP proxy for Debian/Ubuntu software packages"
30 -HOMEPAGE="
31 - https://www.unix-ag.uni-kl.de/~bloch/acng/
32 - https://packages.qa.debian.org/a/apt-cacher-ng.html
33 -"
34 -LICENSE="BSD-4 ZLIB public-domain"
35 -SLOT="0"
36 -SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz"
37 -
38 -KEYWORDS="~amd64 ~x86"
39 -IUSE="doc fuse systemd tcpd"
40 -
41 -COMMON_DEPEND="
42 - app-arch/bzip2
43 - app-arch/xz-utils
44 - dev-libs/openssl:0=
45 - sys-libs/zlib
46 - systemd? (
47 - sys-apps/systemd
48 - )
49 -"
50 -DEPEND="
51 - ${COMMON_DEPEND}
52 - dev-util/cmake
53 - >sys-devel/gcc-4.8
54 - virtual/pkgconfig
55 -"
56 -RDEPEND="
57 - ${COMMON_DEPEND}
58 - dev-lang/perl
59 - fuse? ( sys-fs/fuse )
60 - tcpd? ( sys-apps/tcp-wrappers )
61 -"
62 -
63 -S=${WORKDIR}/${P/_}
64 -
65 -pkg_pretend() {
66 - if [[ $(gcc-major-version) -lt 4 ]]; then
67 - die "GCC 4.8 or greater is required but you have $(gcc-major-version).$(gcc-minor-version)"
68 - elif [[ $(gcc-major-version) = 4 ]] && [[ $(gcc-minor-version) -lt 8 ]]; then
69 - die "GCC 4.8 or greater is required but you have $(gcc-major-version).$(gcc-minor-version)"
70 - fi
71 -}
72 -
73 -pkg_setup() {
74 - # add new user & group for daemon
75 - enewgroup ${PN}
76 - enewuser ${PN} -1 -1 -1 ${PN}
77 -}
78 -
79 -src_configure(){
80 - mycmakeargs=( "-DCMAKE_INSTALL_PREFIX=/usr" )
81 - if use fuse; then
82 - mycmakeargs+=( "-DHAVE_FUSE_25=yes" )
83 - else
84 - mycmakeargs+=( "-DHAVE_FUSE_25=no" )
85 - fi
86 - if use tcpd; then
87 - mycmakeargs=( "-DHAVE_LIBWRAP=yes" )
88 - else
89 - mycmakeargs=( "-DHAVE_LIBWRAP=no" )
90 - fi
91 -
92 - cmake-utils_src_configure
93 -}
94 -
95 -src_install() {
96 - pushd ${CMAKE_BUILD_DIR}
97 - dosbin ${PN}
98 - if use fuse; then
99 - dobin acngfs
100 - fi
101 - popd
102 -
103 - newinitd "${FILESDIR}"/initd-r1 ${PN}
104 - newconfd "${FILESDIR}"/confd ${PN}
105 -
106 - insinto /etc/logrotate.d
107 - newins "${FILESDIR}"/logrotate ${PN}
108 -
109 - doman doc/man/${PN}*
110 - if use fuse; then
111 - doman doc/man/acngfs*
112 - fi
113 -
114 - # Documentation
115 - dodoc doc/README TODO VERSION INSTALL ChangeLog
116 - if use doc; then
117 - dodoc doc/*.pdf
118 - docinto html
119 - dodoc doc/html/*
120 - docinto examples/conf
121 - dodoc conf/*
122 - fi
123 -
124 - # perl daily cron script
125 - dosbin scripts/expire-caller.pl
126 - exeinto /etc/cron.daily
127 - newexe "${FILESDIR}"/cron.daily ${PN}
128 -
129 - # default configuration
130 - insinto /etc/${PN}
131 - newins "${CMAKE_BUILD_DIR}"/conf/acng.conf ${PN}.conf
132 - doins $( echo conf/* | sed 's|conf/acng.conf.in||g' )
133 -
134 - keepdir /var/log/${PN}
135 - # Some directories must exists
136 - keepdir /var/log/${PN}
137 - fowners -R ${PN}:${PN} \
138 - /etc/${PN} \
139 - /var/log/${PN}
140 -}
141
142 diff --git a/net-misc/apt-cacher-ng/files/initd b/net-misc/apt-cacher-ng/files/initd
143 deleted file mode 100644
144 index d054b4de76b..00000000000
145 --- a/net-misc/apt-cacher-ng/files/initd
146 +++ /dev/null
147 @@ -1,32 +0,0 @@
148 -#!/sbin/openrc-run
149 -# Copyright 1999-2012 Gentoo Foundation
150 -# Distributed under the terms of the GNU General Public License v2
151 -
152 -NAME="apt-cacher-ng"
153 -DAEMON="/usr/sbin/$NAME"
154 -RUNDIR="/var/run/$NAME"
155 -PIDFILE="$RUNDIR/$NAME.pid"
156 -SOCKETFILE="$RUNDIR/$NAME.socket"
157 -DAEMON_OPTS="$DAEMON_OPTS pidfile=$PIDFILE SocketPath=$SOCKETFILE foreground=0"
158 -
159 -depend() {
160 - use net
161 -}
162 -
163 -start() {
164 - ebegin "Starting $NAME"
165 - checkpath -d -m 0755 -o ${NAME}:${NAME} ${RUNDIR}
166 - start-stop-daemon --start --exec $DAEMON \
167 - --user $NAME --group $NAME \
168 - --pidfile $PIDFILE \
169 - -- $DAEMON_OPTS
170 - eend $?
171 -}
172 -
173 -stop() {
174 - ebegin "Stopping $NAME"
175 - start-stop-daemon --stop --retry 15 --exec $DAEMON \
176 - --pidfile $PIDFILE
177 - rm -f $PIDFILE
178 - eend $?
179 -}