/[gentoo-x86]/net-misc/apt-proxy/apt-proxy-1.3.0.ebuild
Gentoo

Contents of /net-misc/apt-proxy/apt-proxy-1.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Oct 25 19:22:34 2012 UTC (7 years, 1 month ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +28 -27 lines
EAPI4, inherit user, use more , add ~amd64

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/apt-proxy/apt-proxy-1.3.0.ebuild,v 1.7 2010/10/28 10:41:42 ssuominen Exp $
4
5 EAPI=4
6
7 inherit eutils user
8
9 DESCRIPTION="Caching proxy for the Debian package system"
10 HOMEPAGE="http://sourceforge.net/projects/apt-proxy/"
11 SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 DEPEND=""
19 RDEPEND="sys-apps/xinetd"
20
21 pkg_setup () {
22 enewgroup ${PN}
23 enewuser ${PN} -1 -1 /dev/null ${PN}
24 }
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${P}-sh.patch
28 }
29
30 src_install() {
31 dosbin ${PN}
32
33 insinto /etc/${PN}
34 doins ${PN}.conf
35
36 insinto /etc/xinetd.d
37 doins "${FILESDIR}"/${PN}
38
39 dodoc README INSTALL HISTORY
40 doman ${PN}.{8,conf.5}
41
42 # Create the log file with the proper permissions
43 dodir /var/log
44 touch "${D}"/var/log/${PN}.log
45 fowners ${PN}:${PN} /var/log/${PN}.log
46
47 # Create the cache directories and set the proper permissions
48 dodir /var/cache/${PN}
49 keepdir /var/cache/${PN}
50 fowners ${PN}:${PN} /var/cache/${PN}
51 }
52
53 pkg_postinst() {
54 einfo ""
55 einfo "Don't forget to modify the /etc/${PN}/${PN}.conf"
56 einfo "file to fit your needs..."
57 einfo ""
58 einfo "Also note that ${PN} is called from running xinetd"
59 einfo "and you have to enable it first (/etc/xinetd.d/${PN})..."
60 einfo ""
61 }
62
63 pkg_postrm() {
64 einfo ""
65 einfo "You have to remove the ${PN} cache by hand. It's located"
66 einfo "in the \"/var/cache/${PN}\" dir..."
67 einfo ""
68 einfo "You can also remove the ${PN} user and group..."
69 einfo ""
70 }

  ViewVC Help
Powered by ViewVC 1.1.20