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