Permalink
Browse files

net-misc/apt-cacher-ng: Remove deprecated ebuild

  • Loading branch information...
1 parent b9502bb commit 62de6be0de35b80a84df222b89da41b335259a0b @bruceg committed Jan 14, 2012
@@ -1,6 +0,0 @@
-AUX confd 90 RMD160 d29e3c43d1b7856a5ac6a2e47249955b4aa0e467 SHA1 e60450e1261082df039aad6fe8367e22ee1846c6 SHA256 cabcc9da711514913e5136c82842c750bab8a9658aeeb88da5a266e0d69b29a1
-AUX cron.daily 459 RMD160 774e42915dc408831f088b87f8f5de9b15423e44 SHA1 09bae26f2752cb12d4f7fa9eff492b3bb24a360e SHA256 6ec7ceeead17ef5a84d5ec5472d38810d9e1478213643da5f3fd9863dde40094
-AUX initd 780 RMD160 740c4bd2eb8db1b6937ae912dfc8661b30553718 SHA1 87d529e43bff172aaeb48a9794310046faad633d SHA256 dbdbd14df1d3a83a887eb8f7d0d014efbad78e01ad6722627ca7c43fbe4025d5
-AUX logrotate 377 RMD160 ef3824ff3484b00195fad7153332ce33f702d937 SHA1 d5606fceb5f3296aff7a7111ffadb440761286f2 SHA256 6f1624d655383452a6d56d69327d41b80379cc667ad2d481ca94f8ea78f7a65b
-DIST apt-cacher-ng_0.6.10.orig.tar.xz 250264 RMD160 93e56317c5f5f151141704c0fd177380015c4912 SHA1 f6568778e8dd8d8680d963b98359ed40614d4ae3 SHA256 dfa1a55ac846eb00ee04f650c50140c43b9020a20e507fc50ec9389ef9fa6fd5
-EBUILD apt-cacher-ng-0.6.10-r1.ebuild 2891 RMD160 456fbe8ccad3b36bb7ccaaa684c52a07ec9bbce7 SHA1 14c0382187cc94e66e079b06d005b9ca13bf91c4 SHA256 95ae2b9321ec4f6c5517c6c8637a5797b69da23a6023582f614339cd88ab96f2
@@ -1,99 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils
-
-DESCRIPTION="Yet another implementation of a HTTP proxy for Debian/Ubuntu software packages written in C++"
-HOMEPAGE="http://www.unix-ag.uni-kl.de/~bloch/acng/"
-SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.gz"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="doc fuse"
-
-DEPEND="app-arch/bzip2
- sys-libs/zlib"
-RDEPEND="${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_unpack() {
- unpack ${A}
- cd "${S}" && epatch "${FILESDIR}/${PN}-0.3.8-respect-portage-qa-build-unstripped.patch" # Respect portage
-}
-
-src_compile() {
- local build="acng"
- use fuse && build="${build} acngfs"
- # -j1 fix race noted in bug #265840 comment #5
- emake -j1 CURDIR="${S}" ${build} || die "make '${build}' failed!"
-}
-
-src_install() {
- # There is no any install target :(
- # So we do all stuff here
-
- dosbin apt-cacher-ng || die "Can't install apt-cacher-ng"
- if use fuse; then dobin acngfs || die "Can't install acngfs"; fi
-
- newinitd "${FILESDIR}"/initd ${PN} || die "Can't add new init.d ${PN}"
- newconfd "${FILESDIR}"/confd ${PN} || die "Can't add new conf.d ${PN}"
-
- # for logrotate
- 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 "Can't install cache cleaner perl script"
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/cron.daily ${PN} || die "Can't install new daily cron script"
-
- # default configuration
- insinto /etc/${PN}
- newins conf/acng.conf ${PN}.conf || die "Can't install ${PN} configuration file"
- newins conf/report.html acng-report.html || die "Can't install ${PN} report page"
-
- # Some directories must exists
- keepdir /var/log/${PN}
- keepdir /var/run/${PN}
- fowners ${PN}:${PN} \
- /etc/${PN} \
- /etc/${PN}/${PN}.conf \
- /etc/${PN}/acng-report.html \
- /var/log/${PN} \
- /var/run/${PN} || die "Can't change owners"
-}
-
-pkg_postinst() {
- elog "Do not forget about edit configuration file and read manuals!"
- elog " Default file : /etc/${PN}/${PN}.conf"
- elog " Manual page : man 8 apt-cache-ng"
- elog " Documentation: /usr/share/doc/${PF}"
- if use fuse; then
- elog "You have choose to build fuse httpfs named 'acngfs'."
- elog "It's can be used to mount apt cache on server to client"
- elog "filesystem."
- elog " Manual page : man 8 acngfs"
- fi
- elog "Please note: this ebuild installs /etc/cron.daily/${PN} cron job."
-}
@@ -1,124 +0,0 @@
-# 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.10.ebuild,v 1.1 2011/12/06 07:08:08 jer Exp $
-
-EAPI="4"
-
-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.xz"
-
-KEYWORDS="~amd64 ~x86"
-IUSE="doc fuse lzma tcpd"
-
-COMMON_DEPEND="
- app-arch/bzip2
- sys-libs/zlib
-"
-DEPEND="
- ${COMMON_DEPEND}
- app-arch/xz-utils
- dev-util/cmake
-"
-RDEPEND="
- ${COMMON_DEPEND}
- lzma? ( app-arch/xz-utils )
- fuse? ( sys-fs/fuse )
- tcpd? ( sys-apps/tcp-wrappers )
- dev-lang/perl
-"
-
-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
- if use lzma; then
- mycmakeargs="-DHAVE_LZMA=yes ${mycmakeargs}"
- else
- mycmakeargs="-DHAVE_LZMA=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 ${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 expire-caller.pl
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/cron.daily ${PN}
-
- # default configuration
- insinto /etc/${PN}
- newins conf/acng.conf ${PN}.conf
- newins conf/archlx_mirrors archlx_mirrors
- newins conf/cygwin_mirrors cygwin_mirrors
- newins conf/deb_mirrors.gz deb_mirrors.gz
- newins conf/debvol_mirrors.gz debvol_mirrors.gz
- newins conf/delconfirm.html delconfirm.html
- newins conf/epel_mirrors epel_mirrors
- newins conf/fedora_mirrors fedora_mirrors
- newins conf/maint.html maint.html
- newins conf/report.html report.html
- newins conf/security.conf security.conf
- newins conf/sfnet_mirrors sfnet_mirrors
- newins conf/sl_mirrors sl_mirrors
- newins conf/style.css style.css
- newins conf/ubuntu_mirrors ubuntu_mirrors
- newins conf/userinfo.html userinfo.html
-
- dodir /var/cache/${PN}
- dodir /var/log/${PN}
- # 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}
-}
@@ -1,2 +0,0 @@
-# Additional options that are passed to the Daemon.
-DAEMON_OPTS=" -c /etc/apt-cacher-ng "
@@ -1,15 +0,0 @@
-#!/bin/sh
-# Run the expire function of apt-cacher-ng non-interactively (unless errors
-# are detected).
-
-# optional, specify hostname to appear in error messages and links
-# HOSTNAME=externallyVisibleHostName
-# export HOSTNAME
-
-# optional, specify IP address to connect to
-# ACNGIP=10.0.1.3
-# export ACNGIP
-
-if test -r /usr/sbin/expire-caller.pl ; then
- perl /usr/sbin/expire-caller.pl || echo Check error messages in /var/log/apt-cacher-ng/maint_*.log
-fi
@@ -1,32 +0,0 @@
-#!/sbin/runscript
-# 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/files/initd,v 1.1 2011/05/24 21:48:33 jer Exp $
-
-NAME="apt-cacher-ng"
-DAEMON="/usr/sbin/$NAME"
-RUNDIR="/var/run/$NAME"
-PIDFILE="$RUNDIR/$NAME.pid"
-SOCKETFILE="$RUNDIR/$NAME.socket"
-DAEMON_OPTS="$DAEMON_OPTS pidfile=$PIDFILE SocketPath=$SOCKETFILE foreground=0"
-
-depend() {
- use net
-}
-
-start() {
- ebegin "Starting $NAME"
- start-stop-daemon --start --exec $DAEMON \
- --chuid $NAME --group $NAME \
- --pidfile $PIDFILE \
- -- $DAEMON_OPTS
- eend $?
-}
-
-stop() {
- ebegin "Stopping $NAME"
- start-stop-daemon --stop --retry 15 --exec $DAEMON \
- --pidfile $PIDFILE
- rm -f $PIDFILE
- eend $?
-}
@@ -1,15 +0,0 @@
-/var/log/apt-cacher-ng/*.log {
- size 10M
- missingok
- rotate 12
- compress
- delaycompress
- notifempty
- create
- postrotate
- if [ -s /var/run/apt-cacher-ng/apt-cacher-ng.pid ] ; then
- kill -s USR1 "$(cat /var/run/apt-cacher-ng/apt-cacher-ng.pid)"
- fi
- endscript
-}
-

0 comments on commit 62de6be

Please sign in to comment.