webmin configurations are installed in src_install. Closes bug #75895.
authorJeremy Huddleston <eradicator@gentoo.org>
Fri, 31 Dec 2004 22:14:12 +0000 (22:14 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Fri, 31 Dec 2004 22:14:12 +0000 (22:14 +0000)
app-admin/webmin/ChangeLog
app-admin/webmin/Manifest
app-admin/webmin/files/digest-webmin-1.170-r2 [moved from app-admin/webmin/files/digest-webmin-1.170-r1 with 100% similarity]
app-admin/webmin/webmin-1.170-r2.ebuild [moved from app-admin/webmin/webmin-1.170-r1.ebuild with 79% similarity]

index a9ff265c24e723434dd39fd10ba4b65f6474e9bb..dffd291479e60fac9cf9c6a817703afddd146b40 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-admin/webmin
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.67 2004/12/28 17:12:32 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/ChangeLog,v 1.68 2004/12/31 22:14:12 eradicator Exp $
+
+*webmin-1.170-r2 (31 Dec 2004)
+
+  31 Dec 2004; Jeremy Huddleston <eradicator@gentoo.org>
+  -webmin-1.170-r1.ebuild, +webmin-1.170-r2.ebuild:
+  webmin configurations are installed in src_install.  Closes bug #75895.
 
   28 Dec 2004; Jeremy Huddleston <eradicator@gentoo.org>
   webmin-1.170-r1.ebuild:
index 00ae4ac27c5f9e15273b394e6650c77b3c9b799a..1a9f7a62897216f3ea4f9189129c36bc2efe20d6 100644 (file)
@@ -1,16 +1,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 3839d0a2d8f0766ec8768b3b8b020168 ChangeLog 9837
+MD5 a06857a8166961d24e80b24e7964bfcf ChangeLog 10053
 MD5 3923b6ae9bc25fc124e24e7747c8a802 metadata.xml 226
 MD5 14973a6b696c3410874c04a2210b20ba webmin-1.170.ebuild 2697
-MD5 cdc1550d2c88752af9f7047fa573d306 webmin-1.170-r1.ebuild 3455
 MD5 a21a0a8a415d1e5a1764199b0b4eeed2 webmin-1.160.ebuild 2685
+MD5 f20b667a910be66e50c96847a310fc4b webmin-1.170-r2.ebuild 3759
 MD5 7d80c86adbd36eeb8f220b9efdd30819 files/webmin-pam 101
 MD5 54dc8937e05bd76ad86a6c5f5ae6a333 files/init.d.webmin 859
 MD5 58f9530c780e652271313555858ad909 files/digest-webmin-1.170 138
-MD5 6d9dfc76f788500ff3c85cbb42667487 files/digest-webmin-1.170-r1 209
 MD5 17e9cccc95647ba080bd69785db85ac1 files/digest-webmin-1.160 137
+MD5 6d9dfc76f788500ff3c85cbb42667487 files/digest-webmin-1.170-r2 209
 MD5 bc8eb1c9de103599fc00b140b0ed1f9f files/uninstall.sh 260
 MD5 bb2acab90ada721c723d91a5a97c193c files/webmin-1.130-webalizer.patch 615
 MD5 a01d77a867d5469c7211685bfd04f6f6 files/webmin-1.140-apache2.patch 1227
@@ -23,7 +23,7 @@ MD5 cc16dcb159f84c912365504002444a08 files/virtual-server-2.31-namevirtual.patch
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFB0ZQKArHZZzCEUG0RAlzqAJ42khi3dalgTuHvC0rbAC9f7TNUJwCdGD3U
-zvWH580XmUb9pA0girEEuxM=
-=a0Sz
+iD8DBQFB1c8/ArHZZzCEUG0RAlOYAJ4rrRSu51yPqg1cjxwZUEJWMXSUowCeMo2s
+miF0wKD6Q9ZtkRV3AZeNolI=
+=4GjQ
 -----END PGP SIGNATURE-----
similarity index 79%
rename from app-admin/webmin/webmin-1.170-r1.ebuild
rename to app-admin/webmin/webmin-1.170-r2.ebuild
index 402713ac675f2d3a77d049ea879f494e95f6a12b..1865946a9919a1425654debbf85d5b8cfe87a8fe 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.170-r1.ebuild,v 1.4 2004/12/28 17:12:32 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/webmin-1.170-r2.ebuild,v 1.1 2004/12/31 22:14:12 eradicator Exp $
 
 IUSE="ssl apache2 webmin-minimal"
 
@@ -80,16 +80,14 @@ src_install() {
        newins ${FILESDIR}/webmin-pam webmin
        echo gentoo > ${D}/usr/libexec/webmin/install-type
 
-       exeinto /etc/webmin
-       doexe ${FILESDIR}/uninstall.sh
-}
+       # Fix ownership
+       chown -R root:root ${D}
 
-pkg_postinst() {
-       ${ROOT}/etc/init.d/webmin stop >/dev/null 2>&1
-       stopstatus=$?
-       cd ${ROOT}/usr/libexec/webmin
-       config_dir=${ROOT}/etc/webmin
-       var_dir=${ROOT}/var/log/webmin
+       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
@@ -103,18 +101,31 @@ pkg_postinst() {
        autothird=1
        nouninstall=1
        noperlpath=1
-       export config_dir var_dir perl autoos port login crypt host ssl nochown autothird nouninstall nostart noperlpath
-       perl ${ROOT}/usr/libexec/webmin/maketemp.pl
-       ./setup.sh > ${ROOT}/tmp/.webmin/webmin-setup.out 2>&1
+       tempdir="${T}"
+       export config_dir var_dir perl autoos port login crypt host ssl nochown autothird nouninstall nostart 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 's:^pidfile=.*$:pidfile=/var/run/webmin.pid:' ${D}/etc/webmin/miniserv.conf
+       find ${D}/etc/webmin -type f -exec sed -i "s:${D}:${ROOT}:g" {} \;
+
+       # Cleanup from the config script
+       rm -rf ${D}/var/log/webmin
+       keepdir /var/log/webmin/
 
+       exeinto /etc/webmin
+       doexe ${FILESDIR}/uninstall.sh
+}
+
+pkg_postinst() {
+       ${ROOT}/etc/init.d/webmin stop >/dev/null 2>&1
+       stopstatus=$?
        if [ "$stopstatus" = "0" ]; then
                # Start if it was running before
                ${ROOT}/etc/init.d/webmin start
        fi
 
-       sed -i 's:^pidfile=.*$:pidfile=/var/run/webmin.pid:' ${ROOT}/etc/webmin/miniserv.conf
-
-       einfo "Add webmin to your boot-time services with 'rc-update add webmin'."
+       einfo "To make webmin start at boot time, run: 'rc-update add webmin default'."
        einfo "Point your web browser to http://localhost:10000 to use webmin."
 }