From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-misc/apt-proxy/Manifest | 1 + net-misc/apt-proxy/apt-proxy-1.3.0.ebuild | 70 +++++++++++++++++++++++ net-misc/apt-proxy/files/apt-proxy | 17 ++++++ net-misc/apt-proxy/files/apt-proxy-1.3.0-sh.patch | 11 ++++ net-misc/apt-proxy/metadata.xml | 10 ++++ 5 files changed, 109 insertions(+) create mode 100644 net-misc/apt-proxy/Manifest create mode 100644 net-misc/apt-proxy/apt-proxy-1.3.0.ebuild create mode 100644 net-misc/apt-proxy/files/apt-proxy create mode 100644 net-misc/apt-proxy/files/apt-proxy-1.3.0-sh.patch create mode 100644 net-misc/apt-proxy/metadata.xml (limited to 'net-misc/apt-proxy') diff --git a/net-misc/apt-proxy/Manifest b/net-misc/apt-proxy/Manifest new file mode 100644 index 000000000000..07bac2357095 --- /dev/null +++ b/net-misc/apt-proxy/Manifest @@ -0,0 +1 @@ +DIST apt-proxy_1.3.0.tar.gz 37951 SHA256 12e5c5361ba3050a715f21c8191a1f52e255d179af10e3d110271651cb739ea9 SHA512 300d4684e726f0ac6ece0cf9dfe5c805f187651d36a38530cdf125f730f6c261dc1edd7ac5c0f54d6396a6aa8e3f007fa70a4c90e96bf672dfe9081c9a5b36d0 WHIRLPOOL 407a76367657baca536e5b753ea5ff01b9571d34f1b1d37d163c4586c09bd6a99168754ab22937994677e445941252374800d50258d61e4e5341a2b5865e67d4 diff --git a/net-misc/apt-proxy/apt-proxy-1.3.0.ebuild b/net-misc/apt-proxy/apt-proxy-1.3.0.ebuild new file mode 100644 index 000000000000..dd454bee1532 --- /dev/null +++ b/net-misc/apt-proxy/apt-proxy-1.3.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils user + +DESCRIPTION="Caching proxy for the Debian package system" +HOMEPAGE="http://sourceforge.net/projects/apt-proxy/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="sys-apps/xinetd" + +pkg_setup () { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-sh.patch +} + +src_install() { + dosbin ${PN} + + insinto /etc/${PN} + doins ${PN}.conf + + insinto /etc/xinetd.d + doins "${FILESDIR}"/${PN} + + dodoc README INSTALL HISTORY + doman ${PN}.{8,conf.5} + + # Create the log file with the proper permissions + dodir /var/log + touch "${D}"/var/log/${PN}.log + fowners ${PN}:${PN} /var/log/${PN}.log + + # Create the cache directories and set the proper permissions + dodir /var/cache/${PN} + keepdir /var/cache/${PN} + fowners ${PN}:${PN} /var/cache/${PN} +} + +pkg_postinst() { + einfo "" + einfo "Don't forget to modify the /etc/${PN}/${PN}.conf" + einfo "file to fit your needs..." + einfo "" + einfo "Also note that ${PN} is called from running xinetd" + einfo "and you have to enable it first (/etc/xinetd.d/${PN})..." + einfo "" +} + +pkg_postrm() { + einfo "" + einfo "You have to remove the ${PN} cache by hand. It's located" + einfo "in the \"/var/cache/${PN}\" dir..." + einfo "" + einfo "You can also remove the ${PN} user and group..." + einfo "" +} diff --git a/net-misc/apt-proxy/files/apt-proxy b/net-misc/apt-proxy/files/apt-proxy new file mode 100644 index 000000000000..40db15ac96e9 --- /dev/null +++ b/net-misc/apt-proxy/files/apt-proxy @@ -0,0 +1,17 @@ +# default: off +# description: this is a proxy for debian packages. +# $Id$ + +service apt-proxy +{ + type = UNLISTED + port = 9999 + protocol = tcp + socket_type = stream + only_from = 0.0.0.0 + wait = no + user = apt-proxy + server = /usr/sbin/apt-proxy + server_args = /var/log/apt-proxy.log + disable = yes +} diff --git a/net-misc/apt-proxy/files/apt-proxy-1.3.0-sh.patch b/net-misc/apt-proxy/files/apt-proxy-1.3.0-sh.patch new file mode 100644 index 000000000000..9f6b97625af3 --- /dev/null +++ b/net-misc/apt-proxy/files/apt-proxy-1.3.0-sh.patch @@ -0,0 +1,11 @@ +--- apt-proxy 2002-04-04 14:30:19.000000000 +0200 ++++ apt-proxy.new 2003-03-13 00:49:48.000000000 +0100 +@@ -1,5 +1,7 @@ +-#!/bin/ash ++#!/bin/sh + # (You may safely change the above to /bin/sh if you do not have ash available) ++### I really modified it (was /bin/ash) ++### Radek Podgorny (for Gentoo) + # + # $Id$ + # Copyright Paul Russell diff --git a/net-misc/apt-proxy/metadata.xml b/net-misc/apt-proxy/metadata.xml new file mode 100644 index 000000000000..f270708b4def --- /dev/null +++ b/net-misc/apt-proxy/metadata.xml @@ -0,0 +1,10 @@ + + + + + maintainer-needed@gentoo.org + + + apt-proxy + + -- cgit v1.2.3-65-gdbad