/[gentoo-x86]/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.22.ebuild
Gentoo

Contents of /net-misc/apt-cacher-ng/apt-cacher-ng-0.7.22.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 5 22:57:43 2014 UTC (5 years, 11 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.7.22.ebuild,v 1.2 2013/12/10 10:52:49 jer Exp $
4
5 EAPI=5
6 inherit cmake-utils user
7
8 DESCRIPTION="Yet another implementation of an HTTP proxy for Debian/Ubuntu software packages written in C++"
9 HOMEPAGE="
10 http://www.unix-ag.uni-kl.de/~bloch/acng/
11 http://packages.qa.debian.org/a/apt-cacher-ng.html
12 "
13 LICENSE="BSD-4 ZLIB public-domain"
14 SLOT="0"
15 SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz"
16
17 KEYWORDS="~amd64 ~x86"
18 IUSE="doc fuse lzma tcpd"
19
20 COMMON_DEPEND="
21 app-arch/bzip2
22 sys-libs/zlib
23 "
24 DEPEND="
25 ${COMMON_DEPEND}
26 app-arch/xz-utils
27 dev-util/cmake
28 "
29 RDEPEND="
30 ${COMMON_DEPEND}
31 lzma? ( app-arch/xz-utils )
32 fuse? ( sys-fs/fuse )
33 tcpd? ( sys-apps/tcp-wrappers )
34 dev-lang/perl
35 "
36
37 pkg_setup() {
38 # add new user & group for daemon
39 enewgroup ${PN}
40 enewuser ${PN} -1 -1 -1 ${PN}
41 }
42
43 src_configure(){
44 mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr"
45 if use fuse; then
46 mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}"
47 else
48 mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}"
49 fi
50 if use lzma; then
51 mycmakeargs="-DHAVE_LZMA=yes ${mycmakeargs}"
52 else
53 mycmakeargs="-DHAVE_LZMA=no ${mycmakeargs}"
54 fi
55 if use tcpd; then
56 mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}"
57 else
58 mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}"
59 fi
60
61 cmake-utils_src_configure
62 }
63
64 src_install() {
65 pushd ${CMAKE_BUILD_DIR}
66 dosbin ${PN}
67 if use fuse; then
68 dobin acngfs
69 fi
70 popd
71
72 newinitd "${FILESDIR}"/initd ${PN}
73 newconfd "${FILESDIR}"/confd ${PN}
74
75 insinto /etc/logrotate.d
76 newins "${FILESDIR}"/logrotate ${PN}
77
78 doman doc/man/${PN}*
79 if use fuse; then
80 doman doc/man/acngfs*
81 fi
82
83 # Documentation
84 dodoc README TODO VERSION INSTALL ChangeLog
85 if use doc; then
86 dodoc doc/*.pdf
87 dohtml doc/html/*
88 docinto examples/conf
89 dodoc conf/*
90 fi
91
92 # perl daily cron script
93 dosbin expire-caller.pl
94 exeinto /etc/cron.daily
95 newexe "${FILESDIR}"/cron.daily ${PN}
96
97 # default configuration
98 insinto /etc/${PN}
99 newins conf/acng.conf ${PN}.conf
100 doins $( echo conf/* | sed 's|conf/acng.conf||g' )
101
102 dodir /var/cache/${PN}
103 dodir /var/log/${PN}
104 # Some directories must exists
105 keepdir /var/log/${PN}
106 fowners -R ${PN}:${PN} \
107 /etc/${PN} \
108 /var/log/${PN} \
109 /var/cache/${PN}
110 }

  ViewVC Help
Powered by ViewVC 1.1.20