1 |
commit: b9a967b37fe626f9c357af2d232d68ed9a6f2a54 |
2 |
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 03:16:51 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 03:17:55 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9a967b3 |
7 |
|
8 |
app-admin/webmin: rm version 1.730, request by maintainer from bug #557506 |
9 |
|
10 |
Package-Manager: portage-2.2.20 |
11 |
|
12 |
app-admin/webmin/Manifest | 2 - |
13 |
app-admin/webmin/webmin-1.730.ebuild | 304 ----------------------------------- |
14 |
2 files changed, 306 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/webmin/Manifest b/app-admin/webmin/Manifest |
17 |
index 1d50ec5..8832186 100644 |
18 |
--- a/app-admin/webmin/Manifest |
19 |
+++ b/app-admin/webmin/Manifest |
20 |
@@ -1,4 +1,2 @@ |
21 |
-DIST webmin-1.730-minimal.tar.gz 2616032 SHA256 9e101e5cbd728f43474222dd3948aa8d4a006620e9b4b7074af60db8b22cd117 SHA512 62f5067a1dc122c037a08d3dddb6a6de7ea88203ca9f8d99c3d349e2bf20c138aa56a0cd62fd5b65d520b38b8df655a9177ffb412fea2f880bdb410b2817dd43 WHIRLPOOL 6eed741e901fe96843801d060e9ffaf3e80130ec532953144e6f2b33244fb4de2111e59800d6ef2113b788a67d81ee5b529cca8252d8ca7011afc56a356f94ea |
22 |
-DIST webmin-1.730.tar.gz 22469783 SHA256 91ec24951c5df041da9a299d280fcfcd83df7406b60ffa6ff816cb7a63d3a9cc SHA512 060fe881e6e8588bc46c01769de913aa56f004fdab6144baefa705c66086624cbb621be5c65bee6814c6dee340b7f93434843b34def00a83acbd259056b21529 WHIRLPOOL ea86d251cf551a3661619c46101b30c28ab01aeb75ac4b5e8de6354c0ede6af8b3602410ca8eed876c876681233d8e5763aaa6b4f8a93d3c4c8ed14366521b4f |
23 |
DIST webmin-1.760-minimal.tar.gz 2601515 SHA256 1a9faf4d765f7356a2db39bee22f7030daa95be1f2f06d1de40a9dbbeecc4d9c SHA512 c6e1b5fae3921a368b9341d21285e0b3c2366331250849846d1ebb221958b809bce83d96f0506972cc9b2f474fd4059ecb935b80b6593d09a65947cdc47950d4 WHIRLPOOL d4c0c1215419b700fad742904fdd55918955bfe0447d8b7c2278303abbd54d20e4bd22af726ed6645639ef81dcaef2c4ccd8aa7f3f1bafccbee8f36022da3ff5 |
24 |
DIST webmin-1.760.tar.gz 26885420 SHA256 6e7adefe2a8349487484a15b94914ab7e540404b43f97dc49b21a618c9b1776e SHA512 8d7ce0b88dd561e91ba36dc97d4f0ab6da616726cefd6b53d642641eb82a906bddd9f0a5b8b5e3875336ac9f6a70bda9595e74d062952d653e72dae226db6e8f WHIRLPOOL b1fc7e4719b384ee5f1b3c6e023bc9d5790b0e30320c726942bcd5b72c4afbaf380526dfee05eb515a5a3280fea35143f5ed2be50621c7e7977dc01f91700a7e |
25 |
|
26 |
diff --git a/app-admin/webmin/webmin-1.730.ebuild b/app-admin/webmin/webmin-1.730.ebuild |
27 |
deleted file mode 100644 |
28 |
index 54f23b1..0000000 |
29 |
--- a/app-admin/webmin/webmin-1.730.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,304 +0,0 @@ |
32 |
-# Copyright 1999-2015 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Id$ |
35 |
- |
36 |
-EAPI="5" |
37 |
- |
38 |
-inherit eutils pam ssl-cert systemd |
39 |
- |
40 |
-DESCRIPTION="A web-based Unix systems administration interface" |
41 |
-HOMEPAGE="http://www.webmin.com/" |
42 |
-SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz ) |
43 |
- !minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )" |
44 |
- |
45 |
-LICENSE="BSD GPL-2" |
46 |
-SLOT="0" |
47 |
- |
48 |
-KEYWORDS="~amd64 ~x86" |
49 |
- |
50 |
-# NOTE: The ssl flag auto added by ssl-cert eclass is not used actually |
51 |
-# because openssl is forced by dev-perl/Net-SSLeay |
52 |
-IUSE="minimal +ssl mysql postgres ldap" |
53 |
- |
54 |
-# All the required perl modules can be found easily using (in Webmin's root src dir): |
55 |
-# find . -name cpan_modules.pl -exec grep "::" {} \; |
56 |
-# NOTE: If Webmin doesn't find the required perl modules, it offers(runtime) the user |
57 |
-# to install them using the in-built cpan module, and this will mess up perl on the system |
58 |
-# That's why some modules are forced without a use flag |
59 |
-# NOTE: pam, ssl and dnssec-tools deps are forced for security and Gentoo compliance installation reasons |
60 |
-DEPEND="virtual/perl-MIME-Base64 |
61 |
- virtual/perl-Socket |
62 |
- virtual/perl-Sys-Syslog |
63 |
- virtual/perl-Time-HiRes |
64 |
- virtual/perl-Time-Local |
65 |
- dev-perl/Authen-Libwrap |
66 |
- dev-perl/IO-Tty |
67 |
- dev-perl/MD5 |
68 |
- dev-perl/Net-SSLeay |
69 |
- dev-perl/Authen-PAM |
70 |
- dev-perl/Sys-Hostname-Long |
71 |
- >=net-dns/dnssec-tools-1.13 |
72 |
- !minimal? ( |
73 |
- mysql? ( dev-perl/DBD-mysql ) |
74 |
- postgres? ( dev-perl/DBD-Pg ) |
75 |
- ldap? ( dev-perl/perl-ldap ) |
76 |
- dev-perl/XML-Generator |
77 |
- dev-perl/XML-Parser |
78 |
- )" |
79 |
-RDEPEND="${DEPEND}" |
80 |
- |
81 |
-src_prepare() { |
82 |
- local perl="$( which perl )" |
83 |
- |
84 |
- # Remove the unnecessary and incompatible files |
85 |
- rm -rf acl/Authen-SolarisRBAC-0.1* |
86 |
- if ! use minimal ; then |
87 |
- rm -rf {format,{bsd,hpux,sgi}exports,zones,rbac} |
88 |
- rm -f mount/{free,net,open}bsd-mounts* |
89 |
- rm -f mount/macos-mounts* |
90 |
- fi |
91 |
- |
92 |
- # For security reasons remove the SSL certificate that comes with Webmin |
93 |
- # We will create our own later |
94 |
- rm -f miniserv.pem |
95 |
- |
96 |
- # Remove the Webmin setup scripts to avoid Webmin in runtime to mess up config |
97 |
- # We will use our own later |
98 |
- rm -f setup.{sh,pl} |
99 |
- |
100 |
- # Set the installation type/mode to Gentoo |
101 |
- echo "gentoo" > install-type |
102 |
- |
103 |
- # Fix the permissions of the install files |
104 |
- chmod -R og-w "${S}" |
105 |
- |
106 |
- # Since we should not modify any files after install |
107 |
- # we set the perl path in all cgi and pl files here using Webmin's routines |
108 |
- # The pl file is Prefix safe and works only on provided input, no other filesystem files |
109 |
- ebegin "Fixing perl path in source files" |
110 |
- (find "${S}" -name '*.cgi' -print ; find "${S}" -name '*.pl' -print) | $perl "${S}"/perlpath.pl $perl - |
111 |
- eend $? |
112 |
-} |
113 |
- |
114 |
-src_install() { |
115 |
- # Create config dir and keep |
116 |
- diropts -m0755 |
117 |
- dodir /etc/webmin |
118 |
- keepdir /etc/webmin |
119 |
- |
120 |
- # Create install dir |
121 |
- # Third party modules installed through Webmin go here too, so keep |
122 |
- dodir /usr/libexec/webmin |
123 |
- keepdir /usr/libexec/webmin |
124 |
- |
125 |
- # Copy our own setup script to installation folder |
126 |
- insinto /usr/libexec/webmin |
127 |
- newins "${FILESDIR}"/gentoo-setup gentoo-setup.sh |
128 |
- fperms 0744 /usr/libexec/webmin/gentoo-setup.sh |
129 |
- |
130 |
- # This is here if we ever want in future ebuilds to add some specific |
131 |
- # config values in the /etc/webmin/miniserv.conf |
132 |
- # The format of this file should be the same as the one of miniserv.conf: |
133 |
- # var=value |
134 |
- # |
135 |
- # Uncomment it if you use such file. Before that check if upstream |
136 |
- # has this file in root dir too. |
137 |
- #newins "${FILESDIR}/miniserv-conf" miniserv-conf |
138 |
- |
139 |
- # Create the log dir and keep |
140 |
- diropts -m0700 |
141 |
- dodir /var/log/webmin |
142 |
- keepdir /var/log/webmin |
143 |
- |
144 |
- # Create the init.d file and put the neccessary variables there |
145 |
- newinitd "${FILESDIR}"/init.d.webmin webmin |
146 |
- sed -i \ |
147 |
- -e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \ |
148 |
- -e "s:%pid%:${EROOT}var/run/webmin.pid:" \ |
149 |
- -e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \ |
150 |
- -e "s:%config%:${EROOT}etc/webmin/config:" \ |
151 |
- -e "s:%perllib%:${EROOT}usr/libexec/webmin:" \ |
152 |
- "${ED}etc/init.d/webmin" \ |
153 |
- || die "Failed to patch the webmin init file" |
154 |
- |
155 |
- # Create the systemd service file and put the neccessary variables there |
156 |
- systemd_newunit "${FILESDIR}"/webmin.service webmin.service |
157 |
- sed -i \ |
158 |
- -e "s:%exe%:${EROOT}usr/libexec/webmin/miniserv.pl:" \ |
159 |
- -e "s:%pid%:${EROOT}var/run/webmin.pid:" \ |
160 |
- -e "s:%conf%:${EROOT}etc/webmin/miniserv.conf:" \ |
161 |
- -e "s:%config%:${EROOT}etc/webmin/config:" \ |
162 |
- -e "s:%perllib%:${EROOT}usr/libexec/webmin:" \ |
163 |
- "${ED}$(_systemd_get_unitdir)/webmin.service" \ |
164 |
- || die "Failed to patch the webmin systemd service file" |
165 |
- |
166 |
- # Setup pam |
167 |
- pamd_mimic system-auth webmin auth account session |
168 |
- |
169 |
- # Copy files to installation folder |
170 |
- ebegin "Copying install files to destination" |
171 |
- cp -pPR "${S}"/* "${ED}usr/libexec/webmin" |
172 |
- eend $? |
173 |
-} |
174 |
- |
175 |
-pkg_preinst() { |
176 |
- # First stop service if running so Webmin to not messup our config |
177 |
- ebegin "Stopping any running Webmin instance prior merging" |
178 |
- if systemd_is_booted ; then |
179 |
- systemctl stop webmin.service 2>/dev/null |
180 |
- else |
181 |
- rc-service --ifexists -- webmin --ifstarted stop |
182 |
- fi |
183 |
- eend $? |
184 |
-} |
185 |
- |
186 |
-pkg_postinst() { |
187 |
- # Run pkg_config phase first - non interactively |
188 |
- export INTERACTIVE="no" |
189 |
- pkg_config |
190 |
- # Every next time pkg_config should be interactive |
191 |
- INTERACTIVE="yes" |
192 |
- |
193 |
- ewarn |
194 |
- ewarn "Bare in mind that not all Webmin modules are Gentoo tweaked and may have some issues." |
195 |
- ewarn "Always be careful when using modules that modify init entries, do update of webmin, install CPAN modules etc." |
196 |
- ewarn "To avoid problems, please before using any module, look at its configuration options first." |
197 |
- ewarn "(Usually there is a link at top in the right pane of Webmin for configuring the module.)" |
198 |
- ewarn |
199 |
- if systemd_is_booted ; then |
200 |
- elog "- To make Webmin start at boot time, run: 'systemctl enable webmin.service'" |
201 |
- else |
202 |
- elog "- To make Webmin start at boot time, run: 'rc-update add webmin default'" |
203 |
- fi |
204 |
- elog "- The default URL to connect to Webmin is: https://localhost:10000" |
205 |
- elog "- The default user that can login is: root" |
206 |
- elog "- To reconfigure Webmin in case of problems run 'emerge --config app-admin/webmin'" |
207 |
-} |
208 |
- |
209 |
-pkg_prerm() { |
210 |
- # First stop service if running - we do not want Webmin to mess up config |
211 |
- ebegin "Stopping any running Webmin instance prior unmerging" |
212 |
- if systemd_is_booted ; then |
213 |
- systemctl stop webmin.service 2>/dev/null |
214 |
- else |
215 |
- rc-service --ifexists -- webmin --ifstarted stop |
216 |
- fi |
217 |
- eend $? |
218 |
-} |
219 |
- |
220 |
-pkg_postrm() { |
221 |
- # If removing webmin completely, remind the user for the Webmin's own cron jobs. |
222 |
- if [[ ! ${REPLACED_BY_VERSION} ]]; then |
223 |
- ewarn |
224 |
- ewarn "You have uninstalled Webmin, so have in mind that all cron jobs scheduled" |
225 |
- ewarn "by Webmin for its own modules, are left active and they will fail when Webmin is missing." |
226 |
- ewarn "To fix this just disable them if you intend to use Webmin again," |
227 |
- ewarn "OR delete them if not." |
228 |
- ewarn |
229 |
- fi |
230 |
-} |
231 |
- |
232 |
-pkg_config(){ |
233 |
- # First stop service if running |
234 |
- ebegin "Stopping any running Webmin instance" |
235 |
- if systemd_is_booted ; then |
236 |
- systemctl stop webmin.service 2>/dev/null |
237 |
- else |
238 |
- rc-service --ifexists -- webmin --ifstarted stop |
239 |
- fi |
240 |
- eend $? |
241 |
- |
242 |
- # Next set the default reset variable to 'none' |
243 |
- # reset/_reset can be: |
244 |
- # 'none' - does not reset anything, just upgrades if a conf is present |
245 |
- # OR installs new conf if a conf is missing |
246 |
- # 'soft' - deletes only $config_dir/config file and thus resetting most |
247 |
- # conf values to their defaults. Keeps the specific Webmin cron jobs |
248 |
- # 'hard' - deletes all files in $config_dir (keeping the .keep_* Gentoo file) |
249 |
- # and thus resetting all Webmin. Deletes the specific Webmin cron jobs too. |
250 |
- local _reset="none" |
251 |
- |
252 |
- # If in interactive mode ask user what should we do |
253 |
- if [[ "${INTERACTIVE}" = "yes" ]]; then |
254 |
- einfo |
255 |
- einfo "Please enter the number of the action you would like to perform?" |
256 |
- einfo |
257 |
- einfo "1. Update configuration" |
258 |
- einfo " (keeps old config options and adds the new ones)" |
259 |
- einfo "2. Soft reset configuration" |
260 |
- einfo " (keeps some old config options, the other options are set to default)" |
261 |
- ewarn " All Webmin users will be reset" |
262 |
- einfo "3. Hard reset configuration" |
263 |
- einfo " (all options including module options are set to default)" |
264 |
- ewarn " You will lose all Webmin configuration options you have done till now" |
265 |
- einfo "4. Exit this configuration utility (default)" |
266 |
- while [ "$correct" != "true" ] ; do |
267 |
- read answer |
268 |
- if [[ "$answer" = "1" ]] ; then |
269 |
- _reset="none" |
270 |
- correct="true" |
271 |
- elif [[ "$answer" = "2" ]] ; then |
272 |
- _reset="soft" |
273 |
- correct="true" |
274 |
- elif [[ "$answer" = "3" ]] ; then |
275 |
- _reset="hard" |
276 |
- correct="true" |
277 |
- elif [ "$answer" = "4" -o "$answer" = "" ] ; then |
278 |
- die "User aborted configuration." |
279 |
- else |
280 |
- echo "Answer not recognized. Enter a number from 1 to 4" |
281 |
- fi |
282 |
- done |
283 |
- |
284 |
- if [[ "$_reset" = "hard" ]]; then |
285 |
- while [ "$sure" != "true" ] ; do |
286 |
- ewarn "You will lose all Webmin configuration options you have done till now." |
287 |
- ewarn "Are you sure you want to do this? (y/n)" |
288 |
- read answer |
289 |
- if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then |
290 |
- sure="true" |
291 |
- elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then |
292 |
- die "User aborted configuration." |
293 |
- else |
294 |
- echo "Answer not recognized. Enter 'y' or 'n'" |
295 |
- fi |
296 |
- done |
297 |
- fi |
298 |
- fi |
299 |
- |
300 |
- export reset=$_reset |
301 |
- |
302 |
- # Create ssl certificate for Webmin if there is not one in the proper place |
303 |
- if [[ ! -e "${EROOT}etc/ssl/webmin/server.pem" ]]; then |
304 |
- SSL_ORGANIZATION="${SSL_ORGANIZATION:-Webmin Server}" |
305 |
- SSL_COMMONNAME="${SSL_COMMONNAME:-*}" |
306 |
- install_cert "${EROOT}/etc/ssl/webmin/server" |
307 |
- fi |
308 |
- |
309 |
- # Ensure all paths passed to the setup script use EROOT |
310 |
- export wadir="${EROOT}usr/libexec/webmin" |
311 |
- export config_dir="${EROOT}etc/webmin" |
312 |
- export var_dir="${EROOT}var/log/webmin" |
313 |
- export tempdir="${T}" |
314 |
- export pidfile="${EROOT}var/run/webmin.pid" |
315 |
- export perl="$( which perl )" |
316 |
- export os_type='gentoo-linux' |
317 |
- export os_version='*' |
318 |
- export real_os_type='Gentoo Linux' |
319 |
- export real_os_version='Any version' |
320 |
- # Forcing 'ssl', 'no_ssl2', 'no_ssl3', 'ssl_redirect' and 'no_sslcompression' for tightening security |
321 |
- export ssl=1 |
322 |
- export no_ssl2=1 |
323 |
- export no_ssl3=1 |
324 |
- export ssl_redirect=1 |
325 |
- export no_sslcompression=1 |
326 |
- export keyfile="${EROOT}etc/ssl/webmin/server.pem" |
327 |
- export port=10000 |
328 |
- |
329 |
- export atboot=0 |
330 |
- |
331 |
- einfo "Executing Webmin's configure script" |
332 |
- $wadir/gentoo-setup.sh |
333 |
- |
334 |
- einfo "Configuration of Webmin done" |
335 |
-} |