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

Contents of /net-misc/apt-cacher-ng/apt-cacher-ng-0.8.0_pre2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 22 10:25:19 2014 UTC (5 years, 2 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.13/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.8.0_pre2.ebuild,v 1.1 2014/09/02 09:53:49 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=""
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 S=${WORKDIR}/${P/_}
37
38 pkg_setup() {
39 # add new user & group for daemon
40 enewgroup ${PN}
41 enewuser ${PN} -1 -1 -1 ${PN}
42 }
43
44 src_configure(){
45 mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr"
46 if use fuse; then
47 mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}"
48 else
49 mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}"
50 fi
51 if use tcpd; then
52 mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}"
53 else
54 mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}"
55 fi
56
57 cmake-utils_src_configure
58 }
59
60 src_install() {
61 pushd ${CMAKE_BUILD_DIR}
62 dosbin ${PN}
63 if use fuse; then
64 dobin acngfs
65 fi
66 popd
67
68 newinitd "${FILESDIR}"/initd ${PN}
69 newconfd "${FILESDIR}"/confd ${PN}
70
71 insinto /etc/logrotate.d
72 newins "${FILESDIR}"/logrotate ${PN}
73
74 doman doc/man/${PN}*
75 if use fuse; then
76 doman doc/man/acngfs*
77 fi
78
79 # Documentation
80 dodoc README TODO VERSION INSTALL ChangeLog
81 if use doc; then
82 dodoc doc/*.pdf
83 dohtml doc/html/*
84 docinto examples/conf
85 dodoc conf/*
86 fi
87
88 # perl daily cron script
89 dosbin scripts/expire-caller.pl
90 exeinto /etc/cron.daily
91 newexe "${FILESDIR}"/cron.daily ${PN}
92
93 # default configuration
94 insinto /etc/${PN}
95 newins conf/acng.conf ${PN}.conf
96 doins $( echo conf/* | sed 's|conf/acng.conf||g' )
97
98 dodir /var/cache/${PN}
99 dodir /var/log/${PN}
100 # Some directories must exists
101 keepdir /var/log/${PN}
102 fowners -R ${PN}:${PN} \
103 /etc/${PN} \
104 /var/log/${PN} \
105 /var/cache/${PN}
106 }

  ViewVC Help
Powered by ViewVC 1.1.20