diff options
author | 2011-06-24 04:18:22 +0000 | |
---|---|---|
committer | 2011-06-24 04:18:22 +0000 | |
commit | 6dabefbfaf650f0f4d70a808a10d30882707c138 (patch) | |
tree | d2694f2cc61e30c23f39016ec6cff1861ce43223 /net-misc/apt-cacher-ng | |
parent | Add support for prefix, tested on amd64-linux (ubuntu). (diff) | |
download | gentoo-2-6dabefbfaf650f0f4d70a808a10d30882707c138.tar.gz gentoo-2-6dabefbfaf650f0f4d70a808a10d30882707c138.tar.bz2 gentoo-2-6dabefbfaf650f0f4d70a808a10d30882707c138.zip |
Version bump.
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/apt-cacher-ng')
-rw-r--r-- | net-misc/apt-cacher-ng/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/apt-cacher-ng/apt-cacher-ng-0.6.3.ebuild | 105 |
2 files changed, 111 insertions, 1 deletions
diff --git a/net-misc/apt-cacher-ng/ChangeLog b/net-misc/apt-cacher-ng/ChangeLog index 06da8d7f9d4f..45d1314b9c1b 100644 --- a/net-misc/apt-cacher-ng/ChangeLog +++ b/net-misc/apt-cacher-ng/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/apt-cacher-ng # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.1 2011/05/24 21:48:33 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/ChangeLog,v 1.2 2011/06/24 04:18:22 jer Exp $ + +*apt-cacher-ng-0.6.3 (24 Jun 2011) + + 24 Jun 2011; Jeroen Roovers <jer@gentoo.org> +apt-cacher-ng-0.6.3.ebuild: + Version bump. *apt-cacher-ng-0.6.2 (24 May 2011) diff --git a/net-misc/apt-cacher-ng/apt-cacher-ng-0.6.3.ebuild b/net-misc/apt-cacher-ng/apt-cacher-ng-0.6.3.ebuild new file mode 100644 index 000000000000..4edfff381dc5 --- /dev/null +++ b/net-misc/apt-cacher-ng/apt-cacher-ng-0.6.3.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/apt-cacher-ng/apt-cacher-ng-0.6.3.ebuild,v 1.1 2011/06/24 04:18:22 jer Exp $ + +EAPI="3" + +inherit eutils cmake-utils + +DESCRIPTION="Yet another implementation of an HTTP proxy for Debian/Ubuntu software packages written in C++" +HOMEPAGE="http://www.unix-ag.uni-kl.de/~bloch/acng/" +LICENSE="as-is" +SLOT="0" +SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.gz" + +KEYWORDS="~amd64 ~x86" +IUSE="doc fuse" + +COMMON_DEPEND=" + app-arch/bzip2 + sys-libs/zlib +" +DEPEND=" + ${COMMON_DEPEND} + dev-util/cmake +" +RDEPEND=" + ${COMMON_DEPEND} + dev-lang/perl + fuse? ( sys-fs/fuse ) +" + +pkg_setup() { + # add new user & group for daemon + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_configure(){ + mycmakeargs="-DCMAKE_INSTALL_PREFIX=/usr" + if use fuse; then + mycmakeargs="-DHAVE_FUSE_26=yes ${mycmakeargs}" + else + mycmakeargs="-DHAVE_FUSE_26=no ${mycmakeargs}" + fi + + cmake-utils_src_configure +} + +src_install() { + pushd ${CMAKE_BUILD_DIR} + dosbin ${PN} || die + if use fuse + then dobin acngfs || die + fi + popd + + newinitd "${FILESDIR}"/initd ${PN} || die "Can't add new init.d ${PN}" + newconfd "${FILESDIR}"/confd ${PN} || die "Can't add new conf.d ${PN}" + + insinto /etc/logrotate.d + newins "${FILESDIR}"/logrotate ${PN} || die "Can't install new file ${PN} into '/etc/logrotate.d'" + + doman doc/man/${PN}* || die "Can't install mans" + if use fuse; then doman doc/man/acngfs* || die "Can't install man pages for fusefs"; fi + + # Documentation + dodoc README TODO VERSION INSTALL ChangeLog || die "Can't install common docs" + if use doc; then + dodoc doc/*.pdf || die "Can't install docs" + dohtml doc/html/* || die "Can't install html docs" + docinto examples/conf + dodoc conf/* || die "Can't install config examples" + fi + + # perl daily cron script + dosbin expire-caller.pl || die + exeinto /etc/cron.daily + newexe "${FILESDIR}"/cron.daily ${PN} || die + + # default configuration + insinto /etc/${PN} + newins conf/acng.conf ${PN}.conf || die + newins conf/report.html report.html || die + newins conf/deb_mirrors.gz deb_mirrors.gz || die + newins conf/debvol_mirrors.gz debvol_mirrors.gz || die + newins conf/ubuntu_mirrors ubuntu_mirrors || die + newins conf/archlx_mirrors archlx_mirrors || die + newins conf/sfnet_mirrors sfnet_mirrors || die + newins conf/cygwin_mirrors cygwin_mirrors || die + newins conf/security.conf security.conf || die + newins conf/maint.html maint.html || die + newins conf/userinfo.html userinfo.html || die + newins conf/style.css style.css || die + + dodir /var/cache/${PN} || die + dodir /var/log/${PN} || die + # Some directories must exists + keepdir /var/log/${PN} + keepdir /var/run/${PN} + fowners -R ${PN}:${PN} \ + /etc/${PN} \ + /var/log/${PN} \ + /var/cache/${PN} \ + /var/run/${PN} || die +} |