From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5F27B59CA5 for ; Sat, 19 Mar 2016 07:03:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B922921C03B; Sat, 19 Mar 2016 07:03:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 37AE921C063 for ; Sat, 19 Mar 2016 07:03:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 348DE340C08 for ; Sat, 19 Mar 2016 07:03:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C1F3867 for ; Sat, 19 Mar 2016 07:03:00 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1458370949.28a0a79891f0db92650d20955c3e714affae6808.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/apt-cacher-ng/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/apt-cacher-ng/Manifest net-misc/apt-cacher-ng/apt-cacher-ng-0.9.1.ebuild X-VCS-Directories: net-misc/apt-cacher-ng/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 28a0a79891f0db92650d20955c3e714affae6808 X-VCS-Branch: master Date: Sat, 19 Mar 2016 07:03:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2a923f14-e67b-4d5d-9b63-cfd1df7f7b2e X-Archives-Hash: 4b24d26138e993ee929e1d26c8b54089 commit: 28a0a79891f0db92650d20955c3e714affae6808 Author: Jeroen Roovers gentoo org> AuthorDate: Sat Mar 19 06:48:06 2016 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sat Mar 19 07:02:29 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28a0a798 net-misc/apt-cacher-ng: Version bump. Package-Manager: portage-2.2.28 net-misc/apt-cacher-ng/Manifest | 1 + net-misc/apt-cacher-ng/apt-cacher-ng-0.9.1.ebuild | 117 ++++++++++++++++++++++ 2 files changed, 118 insertions(+) diff --git a/net-misc/apt-cacher-ng/Manifest b/net-misc/apt-cacher-ng/Manifest index 480e41a..2a42ae8 100644 --- a/net-misc/apt-cacher-ng/Manifest +++ b/net-misc/apt-cacher-ng/Manifest @@ -1,3 +1,4 @@ DIST apt-cacher-ng_0.8.8.orig.tar.xz 298276 SHA256 7847f970ed9b3b3b65fe9c302107ede9cd0c5de57e3ddb497a409e8720f1fe58 SHA512 a31b09594b842d4be23938dfbd0d06ad403f7e1ba58518d7eb0e3496c30125664ca8d3b832bd14933aaa7e115f3bb3793e0bb593a330bff162cddd129cbc0537 WHIRLPOOL f8f661543fb58b96bcc5057ff2e9b29c7a7679d1ef7eb29d18530023b647b78ff339a9658b4ebf2fbec04994828fbf88182cb12153a8b25c673612785f6ef084 DIST apt-cacher-ng_0.8.9.orig.tar.xz 299108 SHA256 a68233811d85063f4981654f9572b65e6b7cd44d23cc76319dd1198b3c53f397 SHA512 e24a1fd0a4463154d81a86670e14de39ef2b7b436759dab32b2b60b2d33123ce88a63b7b0b61be3cd65fe71fd77adc9e1503c7b5cd475d4d7e19635aa5ab4942 WHIRLPOOL 6cab8f4dc482bdcceddc89d5c969fd430db707c29da44374ba0e635dbe16e410f347f46ead5004fd41203c4d68d7feb509f400ff825d39363c91b48eede7a053 DIST apt-cacher-ng_0.9.0.orig.tar.xz 299412 SHA256 db1557b615dc4dfd13cbe24cbcd474b5a6839f181785624b590551562edd7817 SHA512 3d8f05637fa15a89389a30e7bc9710085da65baa35138448990c078df1f9fc35ecca9d6c944d0c797dd8ef267ad1c98bf55dbfaa938105cf8cb58e7602b9f4eb WHIRLPOOL 5fe33ab86947bc1c4c27ccee05c3e87aa3ab0c6d2df00bda30f9108620ed998c7c303ce4cf31661dce9bf9f4dae10536e6523cd6844b6d4b9eaafeadf5ae97ff +DIST apt-cacher-ng_0.9.1.orig.tar.xz 301440 SHA256 24994beac6ce1c51f97ce66f49ea68cac9e30a0162c5c0ae8a36bcb8ed34c8b4 SHA512 719b7ddb96fbcf0148554b0e6df61e35f7dcc7340e1269499f2055f9c7ee5000d9a27eab8dec823291f4cb7e8336ad1ff6aca97aca88adaff732c7429362a148 WHIRLPOOL 34fc54dc99353b331138cda08545bca95e9b06aed784fbf7337b16bf15178d019d5d7157499978e28e75a24a0fee869439ac43c781ba65557114ffffb05914e3 diff --git a/net-misc/apt-cacher-ng/apt-cacher-ng-0.9.1.ebuild b/net-misc/apt-cacher-ng/apt-cacher-ng-0.9.1.ebuild new file mode 100644 index 0000000..9a99ab8 --- /dev/null +++ b/net-misc/apt-cacher-ng/apt-cacher-ng-0.9.1.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils eutils toolchain-funcs user + +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/ + http://packages.qa.debian.org/a/apt-cacher-ng.html +" +LICENSE="BSD-4 ZLIB public-domain" +SLOT="0" +SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz" + +KEYWORDS="~amd64 ~x86" +IUSE="doc fuse systemd tcpd" + +COMMON_DEPEND=" + app-arch/bzip2 + app-arch/xz-utils + sys-libs/zlib + systemd? ( + sys-apps/systemd + ) +" +DEPEND=" + ${COMMON_DEPEND} + dev-util/cmake + >sys-devel/gcc-4.8 + virtual/pkgconfig +" +RDEPEND=" + ${COMMON_DEPEND} + dev-lang/perl + fuse? ( sys-fs/fuse ) + tcpd? ( sys-apps/tcp-wrappers ) +" + +S=${WORKDIR}/${P/_} + +pkg_pretend() { + if [[ $(gcc-major-version) -lt 4 ]]; then + die "GCC 4.8 or greater is required but you have $(gcc-major-version).$(gcc-minor-version)" + elif [[ $(gcc-major-version) = 4 ]] && [[ $(gcc-minor-version) -lt 8 ]]; then + die "GCC 4.8 or greater is required but you have $(gcc-major-version).$(gcc-minor-version)" + fi +} + +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_25=yes ${mycmakeargs}" + else + mycmakeargs="-DHAVE_FUSE_25=no ${mycmakeargs}" + fi + if use tcpd; then + mycmakeargs="-DHAVE_LIBWRAP=yes ${mycmakeargs}" + else + mycmakeargs="-DHAVE_LIBWRAP=no ${mycmakeargs}" + fi + + cmake-utils_src_configure +} + +src_install() { + pushd ${CMAKE_BUILD_DIR} + dosbin ${PN} + if use fuse; then + dobin acngfs + fi + popd + + newinitd "${FILESDIR}"/initd-r1 ${PN} + newconfd "${FILESDIR}"/confd ${PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/logrotate ${PN} + + doman doc/man/${PN}* + if use fuse; then + doman doc/man/acngfs* + fi + + # Documentation + dodoc README TODO VERSION INSTALL ChangeLog + if use doc; then + dodoc doc/*.pdf + dohtml doc/html/* + docinto examples/conf + dodoc conf/* + fi + + # perl daily cron script + dosbin scripts/expire-caller.pl + exeinto /etc/cron.daily + newexe "${FILESDIR}"/cron.daily ${PN} + + # default configuration + insinto /etc/${PN} + newins "${CMAKE_BUILD_DIR}"/conf/acng.conf ${PN}.conf + doins $( echo conf/* | sed 's|conf/acng.conf.in||g' ) + + keepdir /var/log/${PN} + # Some directories must exists + keepdir /var/log/${PN} + fowners -R ${PN}:${PN} \ + /etc/${PN} \ + /var/log/${PN} +}