From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/apt-cacher-ng: ChangeLog apt-cacher-ng-0.8.0_pre2.ebuild |
Date: | Tue, 02 Sep 2014 09:57:57 |
Message-Id: | 20140902095349.896814816@oystercatcher.gentoo.org |
1 | jer 14/09/02 09:53:49 |
2 | |
3 | Modified: ChangeLog |
4 | Added: apt-cacher-ng-0.8.0_pre2.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
9 | |
10 | Revision Changes Path |
11 | 1.43 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.43&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog?rev=1.43&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog?r1=1.42&r2=1.43 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v |
20 | retrieving revision 1.42 |
21 | retrieving revision 1.43 |
22 | diff -u -r1.42 -r1.43 |
23 | --- ChangeLog 18 Jul 2014 14:24:39 -0000 1.42 |
24 | +++ ChangeLog 2 Sep 2014 09:53:49 -0000 1.43 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for net-misc/apt-cacher-ng |
27 | # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.42 2014/07/18 14:24:39 jer Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.43 2014/09/02 09:53:49 jer Exp $ |
30 | + |
31 | +*apt-cacher-ng-0.8.0_pre2 (02 Sep 2014) |
32 | + |
33 | + 02 Sep 2014; Jeroen Roovers <jer@g.o> |
34 | + +apt-cacher-ng-0.8.0_pre2.ebuild: |
35 | + Version bump. |
36 | |
37 | *apt-cacher-ng-0.8.0_pre1 (18 Jul 2014) |
38 | *apt-cacher-ng-0.7.27 (18 Jul 2014) |
39 | |
40 | |
41 | |
42 | 1.1 net-misc/apt-cacher-ng/apt-cacher-ng-0.8.0_pre2.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.8.0_pre2.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.8.0_pre2.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: apt-cacher-ng-0.8.0_pre2.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2014 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.8.0_pre2.ebuild,v 1.1 2014/09/02 09:53:49 jer Exp $ |
52 | |
53 | EAPI=5 |
54 | inherit cmake-utils eutils user |
55 | |
56 | DESCRIPTION="Yet another implementation of an HTTP proxy for Debian/Ubuntu software packages written in C++" |
57 | HOMEPAGE=" |
58 | http://www.unix-ag.uni-kl.de/~bloch/acng/ |
59 | http://packages.qa.debian.org/a/apt-cacher-ng.html |
60 | " |
61 | LICENSE="BSD-4 ZLIB public-domain" |
62 | SLOT="0" |
63 | SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV/_/~}.orig.tar.xz" |
64 | |
65 | KEYWORDS="" |
66 | IUSE="doc fuse tcpd" |
67 | |
68 | COMMON_DEPEND=" |
69 | app-arch/bzip2 |
70 | app-arch/xz-utils |
71 | sys-libs/zlib |
72 | " |
73 | DEPEND=" |
74 | ${COMMON_DEPEND} |
75 | dev-util/cmake |
76 | " |
77 | RDEPEND=" |
78 | ${COMMON_DEPEND} |
79 | dev-lang/perl |
80 | fuse? ( sys-fs/fuse ) |
81 | tcpd? ( sys-apps/tcp-wrappers ) |
82 | " |
83 | |
84 | S=${WORKDIR}/${P/_} |
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_configure(){ |
93 | mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr" |
94 | if use fuse; then |
95 | mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}" |
96 | else |
97 | mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}" |
98 | fi |
99 | if use tcpd; then |
100 | mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}" |
101 | else |
102 | mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}" |
103 | fi |
104 | |
105 | cmake-utils_src_configure |
106 | } |
107 | |
108 | src_install() { |
109 | pushd ${CMAKE_BUILD_DIR} |
110 | dosbin ${PN} |
111 | if use fuse; then |
112 | dobin acngfs |
113 | fi |
114 | popd |
115 | |
116 | newinitd "${FILESDIR}"/initd ${PN} |
117 | newconfd "${FILESDIR}"/confd ${PN} |
118 | |
119 | insinto /etc/logrotate.d |
120 | newins "${FILESDIR}"/logrotate ${PN} |
121 | |
122 | doman doc/man/${PN}* |
123 | if use fuse; then |
124 | doman doc/man/acngfs* |
125 | fi |
126 | |
127 | # Documentation |
128 | dodoc README TODO VERSION INSTALL ChangeLog |
129 | if use doc; then |
130 | dodoc doc/*.pdf |
131 | dohtml doc/html/* |
132 | docinto examples/conf |
133 | dodoc conf/* |
134 | fi |
135 | |
136 | # perl daily cron script |
137 | dosbin scripts/expire-caller.pl |
138 | exeinto /etc/cron.daily |
139 | newexe "${FILESDIR}"/cron.daily ${PN} |
140 | |
141 | # default configuration |
142 | insinto /etc/${PN} |
143 | newins conf/acng.conf ${PN}.conf |
144 | doins $( echo conf/* | sed 's|conf/acng.conf||g' ) |
145 | |
146 | dodir /var/cache/${PN} |
147 | dodir /var/log/${PN} |
148 | # Some directories must exists |
149 | keepdir /var/log/${PN} |
150 | fowners -R ${PN}:${PN} \ |
151 | /etc/${PN} \ |
152 | /var/log/${PN} \ |
153 | /var/cache/${PN} |
154 | } |