diff options
Diffstat (limited to 'abs/extra/webmin/PKGBUILD')
-rw-r--r-- | abs/extra/webmin/PKGBUILD | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/abs/extra/webmin/PKGBUILD b/abs/extra/webmin/PKGBUILD index 713451c..24834e1 100644 --- a/abs/extra/webmin/PKGBUILD +++ b/abs/extra/webmin/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 89523 2010-09-01 14:17:33Z tpowa $ +# $Id$ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgname=webmin -pkgver=1.520 -pkgrel=2 +pkgver=1.550 +pkgrel=1 pkgdesc="a web-based interface for system administration" arch=(i686 x86_64) license=('custom:webmin') @@ -86,7 +86,9 @@ install=webmin.install source=(http://downloads.sourceforge.net/sourceforge/webadmin/$pkgname-$pkgver.tar.gz ftp://ftp.archlinux.org/other/webmin/webmin-config.tar.bz2 ftp://ftp.archlinux.org/other/webmin/webmin-pacman.tar.bz2 - webmin.rc) + webmin.rc + run) +options=(!strip) build() { # NOTE: USE --asroot build option to avoid fakeroot error! @@ -192,9 +194,16 @@ build() { sed -i 's:^pidfile=.*$:pidfile=/var/run/webmin.pid:' $startdir/pkg/etc/webmin/miniserv.conf find $startdir/pkg/etc/webmin -type f -exec sed -i "s:$startdir/pkg::g" {} \; - # make it only accessible by localhost - echo 'allow=127.0.0.1' >> $startdir/pkg/etc/webmin/miniserv.conf + # make it only accessible by localhost and private networks + echo 'allow=127.0.0.1 192.168. 172.16. 10.' >> $startdir/pkg/etc/webmin/miniserv.conf + + # Let's not fork this bad boy. We need to control it w/ runit. + echo 'nofork=1' >> $startdir/pkg/etc/webmin/miniserv.conf + # runit + mkdir -p $startdir/pkg/etc/sv/webmin/supervise + install -D -m 755 $startdir/src/run $startdir/pkg/etc/sv/webmin + # install pacman menu cd $startdir/src/webmin-pacman/config cp -rfp * $startdir/pkg/etc/webmin/pacman @@ -209,11 +218,9 @@ build() { # install license install -m 644 -D $startdir/src/$pkgname-$pkgver/LICENCE $startdir/pkg/usr/share/licenses/webmin/LICENCE } -md5sums=('4b87fcc5e3881a8aa825ea531e60d8c1' - 'da6bea412a5be8cf82a813078fec5847' - '4cf1139093ea59044be42a4f173fb8aa' - '0673e51af0e81418b4a6c1e205f7e5cd') -md5sums=('4b87fcc5e3881a8aa825ea531e60d8c1' + +md5sums=('d892599a6e3e6f102a8261d2804fb1b5' 'da6bea412a5be8cf82a813078fec5847' 'bfebb75bb94029b48c46b7f1ba1aa811' - '0673e51af0e81418b4a6c1e205f7e5cd') + '0673e51af0e81418b4a6c1e205f7e5cd' + 'bc578b249e2090deb84119a626c53c48') |