Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/webmin: ChangeLog webmin-1.470.ebuild
Date: Thu, 23 Apr 2009 16:53:37
Message-Id: E1Lx2B4-0000ST-4y@stork.gentoo.org
1 patrick 09/04/23 16:53:34
2
3 Modified: ChangeLog
4 Added: webmin-1.470.ebuild
5 Log:
6 Bump to 1.470, fixes half of #264086
7 (Portage version: 2.2_rc31/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.177 app-admin/webmin/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/webmin/ChangeLog?rev=1.177&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/webmin/ChangeLog?rev=1.177&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/webmin/ChangeLog?r1=1.176&r2=1.177
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v
19 retrieving revision 1.176
20 retrieving revision 1.177
21 diff -u -r1.176 -r1.177
22 --- ChangeLog 23 Dec 2008 05:21:35 -0000 1.176
23 +++ ChangeLog 23 Apr 2009 16:53:34 -0000 1.177
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-admin/webmin
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.176 2008/12/23 05:21:35 darkside Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.177 2009/04/23 16:53:34 patrick Exp $
30 +
31 +*webmin-1.470 (23 Apr 2009)
32 +
33 + 23 Apr 2009; Patrick Lauer <patrick@g.o> +webmin-1.470.ebuild:
34 + Bump to 1.470, fixes half of #264086
35
36 23 Dec 2008; Jeremy Olexa <darkside@g.o> webmin-1.441.ebuild:
37 (non maintainer commit) User suggestion for postinst() by philip howells
38
39
40
41 1.1 app-admin/webmin/webmin-1.470.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/webmin/webmin-1.470.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/webmin/webmin-1.470.ebuild?rev=1.1&content-type=text/plain
45
46 Index: webmin-1.470.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.470.ebuild,v 1.1 2009/04/23 16:53:34 patrick Exp $
51
52 inherit eutils pam
53
54 DESCRIPTION="Webmin, a web-based system administration interface"
55 HOMEPAGE="http://www.webmin.com/"
56 SRC_URI="minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz )
57 !minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz )"
58
59 LICENSE="BSD"
60 SLOT="0"
61 # ~mips removed because of broken deps. Bug #86085
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
63 IUSE="apache2 mysql pam postgres ssl minimal"
64
65 DEPEND="dev-lang/perl"
66 RDEPEND="${DEPEND}
67 ssl? ( dev-perl/Net-SSLeay )
68 mysql? ( dev-perl/DBD-mysql )
69 postgres? ( dev-perl/DBD-Pg )
70 pam? ( dev-perl/Authen-PAM )
71 dev-perl/XML-Generator
72 virtual/logger"
73
74 src_unpack() {
75 unpack ${A}
76
77 cd "${S}"
78
79 epatch "${FILESDIR}"/${PN}-1.170-setup-nocheck.patch
80 }
81
82 src_install() {
83 # Bug #97212
84 addpredict /var/lib/rpm
85
86 rm -f mount/freebsd-mounts*
87 rm -f mount/netbsd-mounts*
88 rm -f mount/openbsd-mounts*
89 rm -f mount/macos-mounts*
90
91 (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
92 dodir /usr/libexec/webmin
93 dodir /var
94
95 cp -rp * "${D}"/usr/libexec/webmin
96
97 # in webmin-minimal openslp is not present
98 if [ ! -f "${D}/usr/libexec/webmin/openslp/config-gentoo-linux" ] ; then
99 cp "${D}"/usr/libexec/webmin/openslp/config \
100 "${D}"/usr/libexec/webmin/openslp/config-gentoo-linux
101 fi
102
103 newinitd "${FILESDIR}"/init.d.webmin webmin
104
105 newpamd "${FILESDIR}"/webmin-pam webmin
106 echo gentoo > "${D}"/usr/libexec/webmin/install-type
107
108 # Fix ownership
109 chown -R root:0 "${D}"
110
111 dodir /etc/webmin
112 dodir /var/log/webmin
113
114 config_dir="${D}"/etc/webmin
115 var_dir="${D}"/var/log/webmin
116 perl=/usr/bin/perl
117 autoos=1
118 port=10000
119 login=root
120 crypt="XXX"
121 host=`hostname`
122 use ssl && ssl=1 || ssl=0
123 atboot=0
124 nostart=1
125 nochown=1
126 autothird=1
127 nouninstall=1
128 noperlpath=1
129 tempdir="${T}"
130 export config_dir var_dir perl autoos port login crypt host ssl atboot nostart nochown autothird nouninstall noperlpath tempdir
131 "${D}"/usr/libexec/webmin/setup.sh > "${T}"/webmin-setup.out 2>&1 || die "Failed to create initial webmin configuration."
132
133 # Fixup the config files to use their real locations
134 sed -i -e "s:^pidfile=.*$:pidfile=/var/run/webmin.pid:" "${D}"/etc/webmin/miniserv.conf
135 find "${D}"/etc/webmin -type f | xargs sed -i -e "s:${D}:/:g"
136
137 # Cleanup from the config script
138 rm -rf "${D}"/var/log/webmin
139 keepdir /var/log/webmin/
140
141 # Get rid of this crap...
142 rm -rf "${D}"/usr/libexec/webmin/acl/Authen-SolarisRBAC-0.1
143 rm -f "${D}"/usr/libexec/webmin/acl/Authen-SolarisRBAC-0.1.tar.gz
144 }
145
146 pkg_postinst() {
147 local crypt=$(grep "^root:" "${ROOT}"/etc/shadow | cut -f 2 -d :)
148 crypt=${crypt//\\/\\\\}
149 crypt=${crypt//\//\\\/}
150 sed -i -e "s/root:XXX/root:${crypt}/" "${ROOT}/etc/webmin/miniserv.users"
151
152 einfo "To make webmin start at boot time, run: 'rc-update add webmin default'."
153 use ssl && einfo "Point your web browser to https://localhost:10000 to use webmin."
154 use ssl || einfo "Point your web browser to http://localhost:10000 to use webmin."
155
156 einfo "NOTE: virtual-server has been removed from this ebuild."
157 elog "To create a login account for webmin named \"admin\", execute the "
158 elog "following command:"
159 elog "/usr/libexec/webmin/changepass.pl /etc/webmin admin <new_password>"
160 }