Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/http-replicator/
Date: Sun, 01 Jan 2017 14:11:01
Message-Id: 1483279848.13cfe82d6a1d387a042da3b9ec6a0e7a2733cf3d.kensington@gentoo
1 commit: 13cfe82d6a1d387a042da3b9ec6a0e7a2733cf3d
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 1 14:08:22 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 1 14:10:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13cfe82d
7
8 net-proxy/http-replicator: remove old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../http-replicator/http-replicator-3.0-r4.ebuild | 68 -----------------
13 .../http-replicator/http-replicator-3.0-r6.ebuild | 85 ----------------------
14 2 files changed, 153 deletions(-)
15
16 diff --git a/net-proxy/http-replicator/http-replicator-3.0-r4.ebuild b/net-proxy/http-replicator/http-replicator-3.0-r4.ebuild
17 deleted file mode 100644
18 index 554ffdd..00000000
19 --- a/net-proxy/http-replicator/http-replicator-3.0-r4.ebuild
20 +++ /dev/null
21 @@ -1,68 +0,0 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=4
27 -PYTHON_DEPEND="2:2.7:2.7" # not 2.6 bug #33907, not 3.0 bug #411083
28 -inherit eutils python systemd
29 -
30 -MY_P="${PN}_${PV}"
31 -
32 -DESCRIPTION="Proxy cache for Gentoo packages"
33 -HOMEPAGE="https://sourceforge.net/projects/http-replicator"
34 -SRC_URI="mirror://sourceforge/http-replicator/${MY_P}.tar.gz"
35 -S="${WORKDIR}/${MY_P}"
36 -
37 -LICENSE="GPL-2"
38 -SLOT="0"
39 -KEYWORDS="~alpha amd64 hppa ppc ~sparc x86"
40 -IUSE=""
41 -
42 -DEPEND=""
43 -RDEPEND="${DEPEND}"
44 -
45 -src_compile() {
46 - epatch "${FILESDIR}/http-replicator-3.0-sighup.patch"
47 - einfo "No compilation necessary"
48 -}
49 -
50 -src_install(){
51 - # Daemon and repcacheman into /usr/bin
52 - dobin http-replicator
53 - newexe "${FILESDIR}/http-replicator-3.0-callrepcacheman-0.1" repcacheman
54 - newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.44-r2" repcacheman.py
55 -
56 - # init.d scripts
57 - newinitd "${FILESDIR}/http-replicator-3.0.init" http-replicator
58 - newconfd "${FILESDIR}/http-replicator-3.0.conf" http-replicator
59 -
60 - systemd_dounit "${FILESDIR}"/http-replicator.service
61 - systemd_install_serviced "${FILESDIR}"/http-replicator.service.conf
62 -
63 - # not 2.6 bug #33907, not 3.0 bug #411083
64 - python_convert_shebangs -r 2.7 "${ED}"
65 -
66 - # Docs
67 - dodoc README debian/changelog
68 -
69 - # Man Page - Not Gentooified yet
70 - doman http-replicator.1
71 -
72 - insinto /etc/logrotate.d
73 - newins debian/logrotate http-replicator
74 -}
75 -
76 -pkg_postinst() {
77 - einfo
78 - einfo "Before starting http-replicator, please follow the next few steps:"
79 - einfo "- modify /etc/conf.d/http-replicator if required"
80 - einfo "- run /usr/bin/repcacheman to set up the cache"
81 - einfo "- add http_proxy=\"http://serveraddress:8080\" to make.conf on"
82 - einfo " the server as well as on the client machines"
83 - einfo "- make sure GENTOO_MIRRORS in /etc/make.conf starts with several"
84 - einfo " good http mirrors"
85 - einfo
86 - einfo "For more information please refer to the following forum thread:"
87 - einfo " https://forums.gentoo.org/viewtopic-t-173226.html"
88 - einfo
89 -}
90
91 diff --git a/net-proxy/http-replicator/http-replicator-3.0-r6.ebuild b/net-proxy/http-replicator/http-replicator-3.0-r6.ebuild
92 deleted file mode 100644
93 index 770647b..00000000
94 --- a/net-proxy/http-replicator/http-replicator-3.0-r6.ebuild
95 +++ /dev/null
96 @@ -1,85 +0,0 @@
97 -# Copyright 1999-2016 Gentoo Foundation
98 -# Distributed under the terms of the GNU General Public License v2
99 -# $Id$
100 -
101 -EAPI=6
102 -PYTHON_COMPAT=( python2_7 ) # not 2.6 bug #33907, not 3.0 bug #411083
103 -inherit eutils python-single-r1 systemd
104 -
105 -MY_P="${PN}_${PV}"
106 -
107 -DESCRIPTION="Proxy cache for Gentoo packages"
108 -HOMEPAGE="https://sourceforge.net/projects/http-replicator"
109 -SRC_URI="mirror://sourceforge/http-replicator/${MY_P}.tar.gz"
110 -S="${WORKDIR}/${MY_P}"
111 -
112 -LICENSE="GPL-2"
113 -SLOT="0"
114 -KEYWORDS="~alpha amd64 hppa ~ppc ~sparc ~x86"
115 -
116 -PATCHES=(
117 - "${FILESDIR}/http-replicator-3.0-sighup.patch"
118 - "${FILESDIR}/http-replicator-3-unique-cache-name.patch"
119 - "${FILESDIR}/http-replicator-3-missing-directory.patch"
120 -)
121 -
122 -src_install(){
123 - python-single-r1_pkg_setup
124 -
125 - # Daemon and repcacheman into /usr/bin
126 - python_scriptinto /usr/bin
127 - python_doexe http-replicator
128 - python_newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.44-r2" repcacheman.py
129 -
130 - exeinto /usr/bin
131 - newexe "${FILESDIR}/http-replicator-3.0-callrepcacheman-0.1" repcacheman
132 -
133 - # init.d scripts
134 - newinitd "${FILESDIR}/http-replicator-3.0.init" http-replicator
135 - newconfd "${FILESDIR}/http-replicator-3.0.conf" http-replicator
136 -
137 - systemd_dounit "${FILESDIR}"/http-replicator.service
138 - systemd_install_serviced "${FILESDIR}"/http-replicator.service.conf
139 -
140 - # Docs
141 - dodoc README debian/changelog
142 -
143 - # Man Page - Not Gentooified yet
144 - doman http-replicator.1
145 -
146 - insinto /etc/logrotate.d
147 - newins debian/logrotate http-replicator
148 -}
149 -
150 -pkg_postinst() {
151 - elog
152 - ewarn "Before starting http-replicator, please follow the next few steps:"
153 - elog "- Modify /etc/conf.d/http-replicator if required."
154 - ewarn "- Run /usr/bin/repcacheman to set up the cache."
155 - elog "- Add http_proxy=\"http://serveraddress:8080\" to make.conf on"
156 - elog " the server as well as on the client machines."
157 - elog "- Make sure FETCHCOMMAND adds the X-unique-cache-name header to"
158 - elog " HTTP requests in make.conf (or maybe portage will add it to"
159 - elog " the default make.globals someday). Example:"
160 - elog ' FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" --header=\"X-unique-cache-name: \${FILE}\" \"\${URI}\""'
161 - elog ' RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" --header=\"X-unique-cache-name: \${FILE}\" \"\${URI}\""'
162 - elog "- Arrange to periodically run repcacheman on this server,"
163 - elog " to clean up the local /usr/portage/distfiles directory."
164 - elog "- Arrange to periodically run something like the following"
165 - elog " on this server. 'eclean' is in app-portage/gentoolkit."
166 - elog " ( export DISTDIR=/var/cache/http-replicator/"
167 - elog " eclean -i distfiles )"
168 - elog "- Even with FETCHCOMMAND fixing most cases, occasionally"
169 - elog " an older invalid version of a file may end up in the cache,"
170 - elog " causing checksum failures when portage tries to fetch"
171 - elog " it. To recover, either use eclean (above), manually delete"
172 - elog " the relevant file from the cache, or temporarily comment"
173 - elog " out the http_proxy setting. Commenting only requires"
174 - elog " access to client config, not server cache."
175 - elog "- Make sure GENTOO_MIRRORS in /etc/portage/make.conf starts"
176 - elog " with several good http mirrors."
177 - elog
178 - elog "For more information please refer to the following forum thread:"
179 - elog " http://forums.gentoo.org/viewtopic-t-173226.html"
180 - elog
181 -}