summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2007-12-23 17:14:33 +0000
committerRaúl Porcel <armin76@gentoo.org>2007-12-23 17:14:33 +0000
commit5c813fa087b61d1da58b1ffabe19b0e84e03df8c (patch)
tree2bc9fe4372228fe221d421080a09ca11dcabc4ea /app-admin/webmin
parentVersion bump. (diff)
downloadgentoo-2-5c813fa087b61d1da58b1ffabe19b0e84e03df8c.tar.gz
gentoo-2-5c813fa087b61d1da58b1ffabe19b0e84e03df8c.tar.bz2
gentoo-2-5c813fa087b61d1da58b1ffabe19b0e84e03df8c.zip
Version bump wrt #199131 and fix bug #172048
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'app-admin/webmin')
-rw-r--r--app-admin/webmin/ChangeLog8
-rw-r--r--app-admin/webmin/files/1.390-iptables-gentoo.patch11
-rw-r--r--app-admin/webmin/files/digest-webmin-1.3909
-rw-r--r--app-admin/webmin/webmin-1.390.ebuild132
4 files changed, 159 insertions, 1 deletions
diff --git a/app-admin/webmin/ChangeLog b/app-admin/webmin/ChangeLog
index 25d19c83e2eb..f2d8bcaad3eb 100644
--- a/app-admin/webmin/ChangeLog
+++ b/app-admin/webmin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/webmin
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.157 2007/10/30 10:36:06 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.158 2007/12/23 17:14:32 armin76 Exp $
+
+*webmin-1.390 (23 Dec 2007)
+
+ 23 Dec 2007; Raúl Porcel <armin76@gentoo.org>
+ +files/1.390-iptables-gentoo.patch, +webmin-1.390.ebuild:
+ Version bump wrt #199131 and fix bug #172048
*webmin-1.370-r1 (30 Oct 2007)
diff --git a/app-admin/webmin/files/1.390-iptables-gentoo.patch b/app-admin/webmin/files/1.390-iptables-gentoo.patch
new file mode 100644
index 000000000000..59590afa8ed9
--- /dev/null
+++ b/app-admin/webmin/files/1.390-iptables-gentoo.patch
@@ -0,0 +1,11 @@
+--- firewall/gentoo-linux-lib.pl.orig 2007-12-23 13:27:20.000000000 +0100
++++ firewall/gentoo-linux-lib.pl 2007-12-23 13:27:28.000000000 +0100
+@@ -19,7 +19,7 @@
+ # Applies the current iptables configuration from the save file
+ sub apply_iptables
+ {
+-local $out = &backquote_logged("cd / ; /etc/init.d/iptables restart 2>&1");
++local $out = &backquote_logged("cd / ; /etc/init.d/iptables reload 2>&1");
+ return $? ? "<pre>$out</pre>" : undef;
+ }
+
diff --git a/app-admin/webmin/files/digest-webmin-1.390 b/app-admin/webmin/files/digest-webmin-1.390
new file mode 100644
index 000000000000..685f472e3086
--- /dev/null
+++ b/app-admin/webmin/files/digest-webmin-1.390
@@ -0,0 +1,9 @@
+MD5 f74d252d7fa9c736895fb3a257dd3edc virtual-server-3.23.gpl.wbm.gz 379417
+RMD160 912ba4ff66b7644f05e7e5b52286b5a41cf7163d virtual-server-3.23.gpl.wbm.gz 379417
+SHA256 c5631f73921058df40a08b0d248bad1acf1dd5b7ded451c7c6f9fff1d923a360 virtual-server-3.23.gpl.wbm.gz 379417
+MD5 83de0bed8cd63105d82ec0233bec8f50 webmin-1.390-minimal.tar.gz 1559762
+RMD160 627ba81d645f0133202c0b6daa582f081b57df5a webmin-1.390-minimal.tar.gz 1559762
+SHA256 530219aa97774a4d91322cc82277cb728cbdfb1d825ee9fc3de77440d31f0ca1 webmin-1.390-minimal.tar.gz 1559762
+MD5 16178a46cbf67e983d183d3074e246b1 webmin-1.390.tar.gz 13398897
+RMD160 84bbed54b9fd6368a7e8f1c8448e3210cb11ce19 webmin-1.390.tar.gz 13398897
+SHA256 ab0b6cd9ab90b258b383233dc1e07d67bfbfec191e2f8a9d6625eccc1709e1be webmin-1.390.tar.gz 13398897
diff --git a/app-admin/webmin/webmin-1.390.ebuild b/app-admin/webmin/webmin-1.390.ebuild
new file mode 100644
index 000000000000..116e638d62ba
--- /dev/null
+++ b/app-admin/webmin/webmin-1.390.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.390.ebuild,v 1.1 2007/12/23 17:14:32 armin76 Exp $
+
+inherit eutils pam
+
+VM_V="3.23"
+
+DESCRIPTION="Webmin, a web-based system administration interface"
+HOMEPAGE="http://www.webmin.com/"
+SRC_URI="webmin-minimal? ( mirror://sourceforge/webadmin/${P}-minimal.tar.gz )
+ !webmin-minimal? ( mirror://sourceforge/webadmin/${P}.tar.gz
+ http://www.webmin.com/download/virtualmin/virtual-server-${VM_V}.gpl.wbm.gz )"
+
+LICENSE="BSD"
+SLOT="0"
+# ~mips removed because of broken deps. Bug #86085
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="apache2 pam postgres ssl webmin-minimal"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ ssl? ( dev-perl/Net-SSLeay )
+ postgres? ( dev-perl/DBD-Pg )
+ pam? ( dev-perl/Authen-PAM )
+ dev-perl/XML-Generator
+ virtual/logger"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ # in webmin-minimal apache2 are not present
+ if ! use webmin-minimal ; then
+ # Bug #50810, #51943
+ if use apache2; then
+ epatch "${FILESDIR}"/${PN}-1.140-apache2.patch
+ fi
+
+ # Correct ldapness
+ epatch "${FILESDIR}"/${PN}-1.270-ldap-useradmin.patch
+
+ mv ${WORKDIR}/virtual-server-${VM_V}.gpl.wbm ${T}/vs.tar
+ tar -xf ${T}/vs.tar
+
+ # Don't create ${HOME}/cgi-bin on new accounts
+ epatch "${FILESDIR}"/virtual-server-3.23-nocgibin.patch
+
+ # Verify Postgres usernames
+ epatch "${FILESDIR}"/virtual-server-3.23-pgsql.patch
+
+ # Fix iptables, bug #172048
+ epatch "${FILESDIR}"/1.390-iptables-gentoo.patch
+ fi
+
+ epatch "${FILESDIR}"/${PN}-1.170-setup-nocheck.patch
+}
+
+src_install() {
+ # Bug #97212
+ addpredict /var/lib/rpm
+
+ rm -f mount/freebsd-mounts*
+ rm -f mount/openbsd-mounts*
+ rm -f mount/macos-mounts*
+
+ (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
+ dodir /usr/libexec/webmin
+ dodir /var
+
+ cp -rp * ${D}/usr/libexec/webmin
+
+ # in webmin-minimal openslp is not present
+ if [ ! -f "${D}/usr/libexec/webmin/openslp/config-gentoo-linux" ] ; then
+ cp ${D}/usr/libexec/webmin/openslp/config \
+ ${D}/usr/libexec/webmin/openslp/config-gentoo-linux
+ fi
+
+ newinitd "${FILESDIR}"/init.d.webmin webmin
+
+ newpamd "${FILESDIR}"/webmin-pam webmin
+ echo gentoo > ${D}/usr/libexec/webmin/install-type
+
+ # Fix ownership
+ chown -R root:0 ${D}
+
+ dodir /etc/webmin
+ dodir /var/log/webmin
+
+ config_dir=${D}/etc/webmin
+ var_dir=${D}/var/log/webmin
+ perl=/usr/bin/perl
+ autoos=1
+ port=10000
+ login=root
+ crypt="XXX"
+ host=`hostname`
+ use ssl && ssl=1 || ssl=0
+ atboot=0
+ nostart=1
+ nochown=1
+ autothird=1
+ nouninstall=1
+ noperlpath=1
+ tempdir="${T}"
+ export config_dir var_dir perl autoos port login crypt host ssl atboot nostart nochown autothird nouninstall noperlpath tempdir
+ ${D}/usr/libexec/webmin/setup.sh > ${T}/webmin-setup.out 2>&1 || die "Failed to create initial webmin configuration."
+
+ # Fixup the config files to use their real locations
+ sed -i -e "s:^pidfile=.*$:pidfile=/var/run/webmin.pid:" ${D}/etc/webmin/miniserv.conf
+ find ${D}/etc/webmin -type f | xargs sed -i -e "s:${D}:/:g"
+
+ # Cleanup from the config script
+ rm -rf ${D}/var/log/webmin
+ keepdir /var/log/webmin/
+
+ # Get rid of this crap...
+ rm -rf ${D}/usr/libexec/webmin/acl/Authen-SolarisRBAC-0.1
+ rm -f ${D}/usr/libexec/webmin/acl/Authen-SolarisRBAC-0.1.tar.gz
+}
+
+pkg_postinst() {
+ local crypt=$(grep "^root:" ${ROOT}/etc/shadow | cut -f 2 -d :)
+ crypt=${crypt//\\/\\\\}
+ crypt=${crypt//\//\\\/}
+ sed -i -e "s/root:XXX/root:${crypt}/" "${ROOT}/etc/webmin/miniserv.users"
+
+ einfo "To make webmin start at boot time, run: 'rc-update add webmin default'."
+ use ssl && einfo "Point your web browser to https://localhost:10000 to use webmin."
+ use ssl || einfo "Point your web browser to http://localhost:10000 to use webmin."
+}