Gentoo Archives: gentoo-commits

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