1 |
robbat2 13/12/05 02:45:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: apt-cacher-ng-0.7.20-r1.ebuild |
5 |
Log: |
6 |
Add in Gentoo mirror support to apt-cacher-ng, patch submitted to upstream as well. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.31 net-misc/apt-cacher-ng/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog?rev=1.31&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog?rev=1.31&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog?r1=1.30&r2=1.31 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v |
20 |
retrieving revision 1.30 |
21 |
retrieving revision 1.31 |
22 |
diff -p -w -b -B -u -u -r1.30 -r1.31 |
23 |
--- ChangeLog 24 Nov 2013 15:17:04 -0000 1.30 |
24 |
+++ ChangeLog 5 Dec 2013 02:45:24 -0000 1.31 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-misc/apt-cacher-ng |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.30 2013/11/24 15:17:04 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.31 2013/12/05 02:45:24 robbat2 Exp $ |
30 |
+ |
31 |
+*apt-cacher-ng-0.7.20-r1 (05 Dec 2013) |
32 |
+ |
33 |
+ 05 Dec 2013; Robin H. Johnson <robbat2@g.o> |
34 |
+ +apt-cacher-ng-0.7.20-r1.ebuild, +files/apt-cacher-ng-0.7.19-gentoo.diff: |
35 |
+ Add in Gentoo mirror support to apt-cacher-ng, patch submitted to upstream as |
36 |
+ well. |
37 |
|
38 |
*apt-cacher-ng-0.7.20 (24 Nov 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-misc/apt-cacher-ng/apt-cacher-ng-0.7.20-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.20-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.20-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: apt-cacher-ng-0.7.20-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.20-r1.ebuild,v 1.1 2013/12/05 02:45:24 robbat2 Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
inherit cmake-utils user eutils |
56 |
|
57 |
DESCRIPTION="Yet another implementation of an HTTP proxy for Debian/Ubuntu software packages written in C++" |
58 |
HOMEPAGE=" |
59 |
http://www.unix-ag.uni-kl.de/~bloch/acng/ |
60 |
http://packages.qa.debian.org/a/apt-cacher-ng.html |
61 |
" |
62 |
LICENSE="BSD-4 ZLIB public-domain" |
63 |
SLOT="0" |
64 |
SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz" |
65 |
|
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="doc fuse lzma tcpd" |
68 |
|
69 |
COMMON_DEPEND=" |
70 |
app-arch/bzip2 |
71 |
sys-libs/zlib |
72 |
" |
73 |
DEPEND=" |
74 |
${COMMON_DEPEND} |
75 |
app-arch/xz-utils |
76 |
dev-util/cmake |
77 |
" |
78 |
RDEPEND=" |
79 |
${COMMON_DEPEND} |
80 |
lzma? ( app-arch/xz-utils ) |
81 |
fuse? ( sys-fs/fuse ) |
82 |
tcpd? ( sys-apps/tcp-wrappers ) |
83 |
dev-lang/perl |
84 |
" |
85 |
|
86 |
pkg_setup() { |
87 |
# add new user & group for daemon |
88 |
enewgroup ${PN} |
89 |
enewuser ${PN} -1 -1 -1 ${PN} |
90 |
} |
91 |
|
92 |
src_prepare() { |
93 |
epatch "${FILESDIR}"/apt-cacher-ng-0.7.19-gentoo.diff |
94 |
} |
95 |
|
96 |
src_configure(){ |
97 |
mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr" |
98 |
if use fuse; then |
99 |
mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}" |
100 |
else |
101 |
mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}" |
102 |
fi |
103 |
if use lzma; then |
104 |
mycmakeargs="-DHAVE_LZMA=yes ${mycmakeargs}" |
105 |
else |
106 |
mycmakeargs="-DHAVE_LZMA=no ${mycmakeargs}" |
107 |
fi |
108 |
if use tcpd; then |
109 |
mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}" |
110 |
else |
111 |
mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}" |
112 |
fi |
113 |
|
114 |
cmake-utils_src_configure |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
pushd ${CMAKE_BUILD_DIR} |
119 |
dosbin ${PN} |
120 |
if use fuse; then |
121 |
dobin acngfs |
122 |
fi |
123 |
popd |
124 |
|
125 |
newinitd "${FILESDIR}"/initd ${PN} |
126 |
newconfd "${FILESDIR}"/confd ${PN} |
127 |
|
128 |
insinto /etc/logrotate.d |
129 |
newins "${FILESDIR}"/logrotate ${PN} |
130 |
|
131 |
doman doc/man/${PN}* |
132 |
if use fuse; then |
133 |
doman doc/man/acngfs* |
134 |
fi |
135 |
|
136 |
# Documentation |
137 |
dodoc README TODO VERSION INSTALL ChangeLog |
138 |
if use doc; then |
139 |
dodoc doc/*.pdf |
140 |
dohtml doc/html/* |
141 |
docinto examples/conf |
142 |
dodoc conf/* |
143 |
fi |
144 |
|
145 |
# perl daily cron script |
146 |
dosbin expire-caller.pl |
147 |
exeinto /etc/cron.daily |
148 |
newexe "${FILESDIR}"/cron.daily ${PN} |
149 |
|
150 |
# default configuration |
151 |
insinto /etc/${PN} |
152 |
newins conf/acng.conf ${PN}.conf |
153 |
doins $( echo conf/* | sed 's|conf/acng.conf||g' ) |
154 |
|
155 |
dodir /var/cache/${PN} |
156 |
dodir /var/log/${PN} |
157 |
# Some directories must exists |
158 |
keepdir /var/log/${PN} |
159 |
fowners -R ${PN}:${PN} \ |
160 |
/etc/${PN} \ |
161 |
/var/log/${PN} \ |
162 |
/var/cache/${PN} |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
einfo "Gentoo mirroring support has been added to ${PN}" |
167 |
einfo "To use it, you should run /etc/apt-cacher-ng/gentoo_mirrors.sh at least once" |
168 |
} |