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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jan 14 19:55:21 2013 UTC (20 months, 1 week ago) by jer
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha151/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.11.ebuild,v 1.1 2013/01/08 15:38:13 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="http://www.unix-ag.uni-kl.de/~bloch/acng/"
10 LICENSE="BSD-4 ZLIB public-domain"
11 SLOT="0"
12 SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz"
13
14 KEYWORDS="~amd64 ~x86"
15 IUSE="doc fuse lzma tcpd"
16
17 COMMON_DEPEND="
18 app-arch/bzip2
19 sys-libs/zlib
20 "
21 DEPEND="
22 ${COMMON_DEPEND}
23 app-arch/xz-utils
24 dev-util/cmake
25 "
26 RDEPEND="
27 ${COMMON_DEPEND}
28 lzma? ( app-arch/xz-utils )
29 fuse? ( sys-fs/fuse )
30 tcpd? ( sys-apps/tcp-wrappers )
31 dev-lang/perl
32 "
33
34 pkg_setup() {
35 # add new user & group for daemon
36 enewgroup ${PN}
37 enewuser ${PN} -1 -1 -1 ${PN}
38 }
39
40 src_configure(){
41 mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr"
42 if use fuse; then
43 mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}"
44 else
45 mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}"
46 fi
47 if use lzma; then
48 mycmakeargs="-DHAVE_LZMA=yes ${mycmakeargs}"
49 else
50 mycmakeargs="-DHAVE_LZMA=no ${mycmakeargs}"
51 fi
52 if use tcpd; then
53 mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}"
54 else
55 mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}"
56 fi
57
58 cmake-utils_src_configure
59 }
60
61 src_install() {
62 pushd ${CMAKE_BUILD_DIR}
63 dosbin ${PN}
64 if use fuse; then
65 dobin acngfs
66 fi
67 popd
68
69 newinitd "${FILESDIR}"/initd ${PN}
70 newconfd "${FILESDIR}"/confd ${PN}
71
72 insinto /etc/logrotate.d
73 newins "${FILESDIR}"/logrotate ${PN}
74
75 doman doc/man/${PN}*
76 if use fuse; then
77 doman doc/man/acngfs*
78 fi
79
80 # Documentation
81 dodoc README TODO VERSION INSTALL ChangeLog
82 if use doc; then
83 dodoc doc/*.pdf
84 dohtml doc/html/*
85 docinto examples/conf
86 dodoc conf/*
87 fi
88
89 # perl daily cron script
90 dosbin expire-caller.pl
91 exeinto /etc/cron.daily
92 newexe "${FILESDIR}"/cron.daily ${PN}
93
94 # default configuration
95 insinto /etc/${PN}
96 newins conf/acng.conf ${PN}.conf
97 doins $( echo conf/* | sed 's|conf/acng.conf||g' )
98
99 dodir /var/cache/${PN}
100 dodir /var/log/${PN}
101 # Some directories must exists
102 keepdir /var/log/${PN}
103 fowners -R ${PN}:${PN} \
104 /etc/${PN} \
105 /var/log/${PN} \
106 /var/cache/${PN}
107 }

  ViewVC Help
Powered by ViewVC 1.1.20