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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 20 14:59:37 2014 UTC (5 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Old.

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

1 # Copyright 1999-2014 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.25.ebuild,v 1.1 2014/01/05 22:57:43 jer Exp $
4
5 EAPI=5
6 inherit cmake-utils eutils 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 tcpd"
19
20 COMMON_DEPEND="
21 app-arch/bzip2
22 app-arch/xz-utils
23 sys-libs/zlib
24 "
25 DEPEND="
26 ${COMMON_DEPEND}
27 dev-util/cmake
28 "
29 RDEPEND="
30 ${COMMON_DEPEND}
31 dev-lang/perl
32 fuse? ( sys-fs/fuse )
33 tcpd? ( sys-apps/tcp-wrappers )
34 "
35
36 pkg_setup() {
37 # add new user & group for daemon
38 enewgroup ${PN}
39 enewuser ${PN} -1 -1 -1 ${PN}
40 }
41
42 src_configure(){
43 mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr"
44 if use fuse; then
45 mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}"
46 else
47 mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}"
48 fi
49 if use tcpd; then
50 mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}"
51 else
52 mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}"
53 fi
54
55 cmake-utils_src_configure
56 }
57
58 src_install() {
59 pushd ${CMAKE_BUILD_DIR}
60 dosbin ${PN}
61 if use fuse; then
62 dobin acngfs
63 fi
64 popd
65
66 newinitd "${FILESDIR}"/initd ${PN}
67 newconfd "${FILESDIR}"/confd ${PN}
68
69 insinto /etc/logrotate.d
70 newins "${FILESDIR}"/logrotate ${PN}
71
72 doman doc/man/${PN}*
73 if use fuse; then
74 doman doc/man/acngfs*
75 fi
76
77 # Documentation
78 dodoc README TODO VERSION INSTALL ChangeLog
79 if use doc; then
80 dodoc doc/*.pdf
81 dohtml doc/html/*
82 docinto examples/conf
83 dodoc conf/*
84 fi
85
86 # perl daily cron script
87 dosbin expire-caller.pl
88 exeinto /etc/cron.daily
89 newexe "${FILESDIR}"/cron.daily ${PN}
90
91 # default configuration
92 insinto /etc/${PN}
93 newins conf/acng.conf ${PN}.conf
94 doins $( echo conf/* | sed 's|conf/acng.conf||g' )
95
96 dodir /var/cache/${PN}
97 dodir /var/log/${PN}
98 # Some directories must exists
99 keepdir /var/log/${PN}
100 fowners -R ${PN}:${PN} \
101 /etc/${PN} \
102 /var/log/${PN} \
103 /var/cache/${PN}
104 }

  ViewVC Help
Powered by ViewVC 1.1.20