From: Alec Warner Date: Sat, 2 Dec 2006 01:28:41 +0000 (+0000) Subject: bump for 142293, fix webmin-pam X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2dd9495ded551c74b38a332b8bfacebbe0e16a9;p=gentoo.git bump for 142293, fix webmin-pam Package-Manager: portage-2.1.2_pre3-r9 --- diff --git a/app-admin/webmin/ChangeLog b/app-admin/webmin/ChangeLog index 7b40d957680d..14e1f7207c67 100644 --- a/app-admin/webmin/ChangeLog +++ b/app-admin/webmin/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-admin/webmin # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.134 2006/10/24 10:47:58 tcort Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.135 2006/12/02 01:28:41 antarus Exp $ + +*webmin-1.300-r1 (02 Dec 2006) +*webmin-1.290-r1 (02 Dec 2006) + + 02 Dec 2006; Alec Warner files/webmin-pam, + +webmin-1.290-r1.ebuild, +webmin-1.300-r1.ebuild: + bump for 142293, fix webmin-pam 24 Oct 2006; Thomas Cort webmin-1.300.ebuild: Stable on alpha wrt security Bug #145829. diff --git a/app-admin/webmin/Manifest b/app-admin/webmin/Manifest index 2e79d3dfdbc8..3978aa06f461 100644 --- a/app-admin/webmin/Manifest +++ b/app-admin/webmin/Manifest @@ -58,28 +58,36 @@ AUX webmin-gentoo-init 864 RMD160 6e584eb9bb77b014e688cc13bdce99f315fec41b SHA1 MD5 6a55026b21c4da9284b31236deeceda7 files/webmin-gentoo-init 864 RMD160 6e584eb9bb77b014e688cc13bdce99f315fec41b files/webmin-gentoo-init 864 SHA256 f27fb9f944f32994858a3d27aa78d03742618c53267f31bca85d9f65da1c757b files/webmin-gentoo-init 864 -AUX webmin-pam 101 RMD160 f2e1f98eae4cfb1dc485675e60cd73aba6e6ca47 SHA1 107b2737ca72a359a023cbe79339690620002cfe SHA256 93df67451eae9866fcbc23453c18c4fe23a7b5c8dd879de16c09b476d1db597f -MD5 7d80c86adbd36eeb8f220b9efdd30819 files/webmin-pam 101 -RMD160 f2e1f98eae4cfb1dc485675e60cd73aba6e6ca47 files/webmin-pam 101 -SHA256 93df67451eae9866fcbc23453c18c4fe23a7b5c8dd879de16c09b476d1db597f files/webmin-pam 101 +AUX webmin-pam 128 RMD160 ee4f2cd70ed2bcaa7e4865fae26ac5c14c36c620 SHA1 91b34c1424bf69a1f8e292193e1a5e2add814a97 SHA256 fcb5cc28ad0db83e96652241621b27782fa71aeea5576cb67f2c7f5ccfaed4af +MD5 ac22e9c651b33980d0305a6765953a70 files/webmin-pam 128 +RMD160 ee4f2cd70ed2bcaa7e4865fae26ac5c14c36c620 files/webmin-pam 128 +SHA256 fcb5cc28ad0db83e96652241621b27782fa71aeea5576cb67f2c7f5ccfaed4af files/webmin-pam 128 DIST virtual-server-2.611.wbm.gz 283217 RMD160 bbcee33f9398a78d7e8a68168316f011d2cf391d SHA1 eb40437cb6774317bca20581644879bb95ef4558 SHA256 f7579da94a6b356ce4548a0ed8fcc366e1d8e7e7199e5337e8d703bf4f92090a DIST virtual-server-3.23.gpl.wbm.gz 379417 RMD160 912ba4ff66b7644f05e7e5b52286b5a41cf7163d SHA1 1b032a1463547ecf3f792ec051c93c5a79458086 SHA256 c5631f73921058df40a08b0d248bad1acf1dd5b7ded451c7c6f9fff1d923a360 DIST webmin-1.290-minimal.tar.gz 1397131 RMD160 87d043f5a4aadd00066e6f9bb8d300732e340a4f SHA1 00297b11f19d368260306727ffffcb4eac379755 SHA256 e9f7afdc67ab3f96ac9fe8cdeed986e98c25de7c9d55c6b90b8617e90a078614 DIST webmin-1.290.tar.gz 10324511 RMD160 ecf80a2abf295ad9b3f05034da47a500202ee0e0 SHA1 4b1b1ab1da5d3a696c0ee0af9a9f858536ca1417 SHA256 98a547d1a1aeeca4fb71a529b55514e7a8b35471de884e169c549df65923d321 DIST webmin-1.300-minimal.tar.gz 1404945 RMD160 cb5bab5a5f34b9bc256d7ed91677441018ef6d6a SHA1 d52acdc3ea67d6b15754dceb82fe99b8ac8c0e3e SHA256 29cc112d99995acc74a2dc69aaa6cf0eb2b1169307b0485d70661b7c03a40c98 DIST webmin-1.300.tar.gz 10782513 RMD160 1259e16725ea7f2491dd91d2d6eef8e80f1240d8 SHA1 c510fce1bee04729bfa84a1fca975aa0a789f3bb SHA256 d5ce8bb7ef0c3e0d38ebd43e962aba984276dc6f23f8f913f712aaac2f17b1a4 +EBUILD webmin-1.290-r1.ebuild 4117 RMD160 c80ea688dcc84b7897296bb61a8db86ff0d879e7 SHA1 9bc1e2d65e2652b216fc62d4142fe2c592694630 SHA256 44b4b39cbd85d7d4224fe5bf44be6fee4bd440dfbe5475bf81a701b0228be0f1 +MD5 22de7cc6c0f873778430134e4b8b52ce webmin-1.290-r1.ebuild 4117 +RMD160 c80ea688dcc84b7897296bb61a8db86ff0d879e7 webmin-1.290-r1.ebuild 4117 +SHA256 44b4b39cbd85d7d4224fe5bf44be6fee4bd440dfbe5475bf81a701b0228be0f1 webmin-1.290-r1.ebuild 4117 EBUILD webmin-1.290.ebuild 4114 RMD160 2ae200cbd7c96883c930575142e0af2aa1b019c5 SHA1 df55958641b884258a131c4b33b1a2ab19e9abc8 SHA256 e13b0d34026ff06c1928ae8f9d76123b15f3b14e3383f9a063255563c2f7c1b3 MD5 c72372741ca9cfc5d9e6cdb55da1e916 webmin-1.290.ebuild 4114 RMD160 2ae200cbd7c96883c930575142e0af2aa1b019c5 webmin-1.290.ebuild 4114 SHA256 e13b0d34026ff06c1928ae8f9d76123b15f3b14e3383f9a063255563c2f7c1b3 webmin-1.290.ebuild 4114 +EBUILD webmin-1.300-r1.ebuild 3919 RMD160 d31d666bd06a5a8ed9ce51c52922dc182d8a02f5 SHA1 7bd49418ed3496e6857ed44fedf8835136f59f3a SHA256 859f4f3891aad0d7ad3ebc9819ba651d59c84ebd1e0ace46dccf33efcb1a8102 +MD5 c2392cf35c79269b561b9855af26cc2c webmin-1.300-r1.ebuild 3919 +RMD160 d31d666bd06a5a8ed9ce51c52922dc182d8a02f5 webmin-1.300-r1.ebuild 3919 +SHA256 859f4f3891aad0d7ad3ebc9819ba651d59c84ebd1e0ace46dccf33efcb1a8102 webmin-1.300-r1.ebuild 3919 EBUILD webmin-1.300.ebuild 3914 RMD160 baa9978ad0d91f0b0db1a9d7301fbe00c2d7655e SHA1 efa576219566cbd12ab7396f4845ca891d77eef9 SHA256 d57ddd1a7eb5c477246af6e4b4873154c4e796a7612ad60aecd190ab8e8cf98f MD5 a638b413ae5179cfd1952d19739fbe02 webmin-1.300.ebuild 3914 RMD160 baa9978ad0d91f0b0db1a9d7301fbe00c2d7655e webmin-1.300.ebuild 3914 SHA256 d57ddd1a7eb5c477246af6e4b4873154c4e796a7612ad60aecd190ab8e8cf98f webmin-1.300.ebuild 3914 -MISC ChangeLog 18713 RMD160 91b16d18cc25ddaaeb724265cb08a0bb98f615e1 SHA1 82a8b8744e5a64baee090e3982b8d87ac2828796 SHA256 4094ca9a20d9dca54ddfdb0a65d76e41a2df9cb1ec9df31dee6d352b248238f7 -MD5 592beee91f5c0c9bba91fcaf1416e0bc ChangeLog 18713 -RMD160 91b16d18cc25ddaaeb724265cb08a0bb98f615e1 ChangeLog 18713 -SHA256 4094ca9a20d9dca54ddfdb0a65d76e41a2df9cb1ec9df31dee6d352b248238f7 ChangeLog 18713 +MISC ChangeLog 18931 RMD160 f2b536eea16298e94737fca25397ccff1ad84f90 SHA1 d71201c79fe0b69d7eed74f98155b4d2b4bb2da0 SHA256 be1d5c4398c406c46d9643a5f4e78b0b058fab6be7f572dfb86e8b8a57977e8e +MD5 17da25564ede21dda6634d7f53b568f4 ChangeLog 18931 +RMD160 f2b536eea16298e94737fca25397ccff1ad84f90 ChangeLog 18931 +SHA256 be1d5c4398c406c46d9643a5f4e78b0b058fab6be7f572dfb86e8b8a57977e8e ChangeLog 18931 MISC metadata.xml 226 RMD160 5ae23077f29775d25714161f12bee0773317ea90 SHA1 e128d6143915f277d78c38141025f8b781354b0a SHA256 2dedab96a5432a22169e538ec05751e1631088c658b557056de4d6ab4b89013f MD5 3923b6ae9bc25fc124e24e7747c8a802 metadata.xml 226 RMD160 5ae23077f29775d25714161f12bee0773317ea90 metadata.xml 226 @@ -87,6 +95,12 @@ SHA256 2dedab96a5432a22169e538ec05751e1631088c658b557056de4d6ab4b89013f metadata MD5 4ae5c41e6e43ad3cee543b6188d747f4 files/digest-webmin-1.290 771 RMD160 067a6ea1ff4f629bb40dbd3d84f3c50f638a6ca2 files/digest-webmin-1.290 771 SHA256 729f06a31c4c42e2f0d7c39244df0b0bbba2117c2f5661ff562018535ddd4eb7 files/digest-webmin-1.290 771 +MD5 4ae5c41e6e43ad3cee543b6188d747f4 files/digest-webmin-1.290-r1 771 +RMD160 067a6ea1ff4f629bb40dbd3d84f3c50f638a6ca2 files/digest-webmin-1.290-r1 771 +SHA256 729f06a31c4c42e2f0d7c39244df0b0bbba2117c2f5661ff562018535ddd4eb7 files/digest-webmin-1.290-r1 771 MD5 8e53e5db8ddeba481c2e756abd1894b9 files/digest-webmin-1.300 780 RMD160 cd43f9975c8658e11059ab77ba1303c5201579be files/digest-webmin-1.300 780 SHA256 9e1e25b807367456f797f4d6c2ec9e232ae5f33dc614c141c4c816caf4a23a10 files/digest-webmin-1.300 780 +MD5 8e53e5db8ddeba481c2e756abd1894b9 files/digest-webmin-1.300-r1 780 +RMD160 cd43f9975c8658e11059ab77ba1303c5201579be files/digest-webmin-1.300-r1 780 +SHA256 9e1e25b807367456f797f4d6c2ec9e232ae5f33dc614c141c4c816caf4a23a10 files/digest-webmin-1.300-r1 780 diff --git a/app-admin/webmin/files/digest-webmin-1.290-r1 b/app-admin/webmin/files/digest-webmin-1.290-r1 new file mode 100644 index 000000000000..7109d2ac3c80 --- /dev/null +++ b/app-admin/webmin/files/digest-webmin-1.290-r1 @@ -0,0 +1,9 @@ +MD5 aa7274ebecc8d0df6704546ed13709d6 virtual-server-2.611.wbm.gz 283217 +RMD160 bbcee33f9398a78d7e8a68168316f011d2cf391d virtual-server-2.611.wbm.gz 283217 +SHA256 f7579da94a6b356ce4548a0ed8fcc366e1d8e7e7199e5337e8d703bf4f92090a virtual-server-2.611.wbm.gz 283217 +MD5 668883b2dd72cb0935c4191d59d8c439 webmin-1.290-minimal.tar.gz 1397131 +RMD160 87d043f5a4aadd00066e6f9bb8d300732e340a4f webmin-1.290-minimal.tar.gz 1397131 +SHA256 e9f7afdc67ab3f96ac9fe8cdeed986e98c25de7c9d55c6b90b8617e90a078614 webmin-1.290-minimal.tar.gz 1397131 +MD5 2e15ce21f6d459f16d21595225a7d4ee webmin-1.290.tar.gz 10324511 +RMD160 ecf80a2abf295ad9b3f05034da47a500202ee0e0 webmin-1.290.tar.gz 10324511 +SHA256 98a547d1a1aeeca4fb71a529b55514e7a8b35471de884e169c549df65923d321 webmin-1.290.tar.gz 10324511 diff --git a/app-admin/webmin/files/digest-webmin-1.300-r1 b/app-admin/webmin/files/digest-webmin-1.300-r1 new file mode 100644 index 000000000000..bd5a7c8ef3f1 --- /dev/null +++ b/app-admin/webmin/files/digest-webmin-1.300-r1 @@ -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 5d232a887529aa0376fe281d9027f9a5 webmin-1.300-minimal.tar.gz 1404945 +RMD160 cb5bab5a5f34b9bc256d7ed91677441018ef6d6a webmin-1.300-minimal.tar.gz 1404945 +SHA256 29cc112d99995acc74a2dc69aaa6cf0eb2b1169307b0485d70661b7c03a40c98 webmin-1.300-minimal.tar.gz 1404945 +MD5 b1c170a8e62705ba7a376a8bff90c422 webmin-1.300.tar.gz 10782513 +RMD160 1259e16725ea7f2491dd91d2d6eef8e80f1240d8 webmin-1.300.tar.gz 10782513 +SHA256 d5ce8bb7ef0c3e0d38ebd43e962aba984276dc6f23f8f913f712aaac2f17b1a4 webmin-1.300.tar.gz 10782513 diff --git a/app-admin/webmin/files/webmin-pam b/app-admin/webmin/files/webmin-pam index 4bb7cb8a5721..c9a20b05f6e4 100644 --- a/app-admin/webmin/files/webmin-pam +++ b/app-admin/webmin/files/webmin-pam @@ -1,4 +1,5 @@ #%PAM-1.0 +auth include system-auth auth required pam_unix.so nullok account required pam_unix.so session required pam_unix.so diff --git a/app-admin/webmin/webmin-1.290-r1.ebuild b/app-admin/webmin/webmin-1.290-r1.ebuild new file mode 100644 index 000000000000..3cee2c9b978f --- /dev/null +++ b/app-admin/webmin/webmin-1.290-r1.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.290-r1.ebuild,v 1.1 2006/12/02 01:28:41 antarus Exp $ + +inherit eutils pam + +VM_V="2.611" + +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}.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" + +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 + + # Postfix should modify the last entry of the maps file + epatch "${FILESDIR}"/${PN}-1.170-postfix.patch + + mv ${WORKDIR}/virtual-server-${VM_V}.wbm ${T}/vs.tar + tar -xf ${T}/vs.tar + + # Don't create ${HOME}/cgi-bin on new accounts + epatch "${FILESDIR}"/virtual-server-2.60-nocgibin.patch + + # Check if a newly added IP is already active + epatch "${FILESDIR}"/virtual-server-2.610-checkip.patch + + # Verify Postgres usernames + epatch "${FILESDIR}"/virtual-server-2.31-pgsql.patch + + # Fix some all name virtual items + epatch "${FILESDIR}"/virtual-server-2.31-namevirtual.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=${ROOT}/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=${ROOT}/var/run/webmin.pid:" ${D}/etc/webmin/miniserv.conf + find ${D}/etc/webmin -type f | xargs sed -i -e "s:${D}:${ROOT}: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}/" /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." +} + +pkg_prerm() { + "${ROOT}"/etc/init.d/webmin stop >& /dev/null +} diff --git a/app-admin/webmin/webmin-1.300-r1.ebuild b/app-admin/webmin/webmin-1.300-r1.ebuild new file mode 100644 index 000000000000..d11b8acb7671 --- /dev/null +++ b/app-admin/webmin/webmin-1.300-r1.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.300-r1.ebuild,v 1.1 2006/12/02 01:28:41 antarus 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" + +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 + + # Postfix should modify the last entry of the maps file + epatch "${FILESDIR}"/${PN}-1.300-postfix.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 + 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=${ROOT}/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=${ROOT}/var/run/webmin.pid:" ${D}/etc/webmin/miniserv.conf + find ${D}/etc/webmin -type f | xargs sed -i -e "s:${D}:${ROOT}: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}/" /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." +} + +pkg_prerm() { + "${ROOT}"/etc/init.d/webmin stop >& /dev/null +}