summaryrefslogtreecommitdiff
path: root/libre/webmin
diff options
context:
space:
mode:
Diffstat (limited to 'libre/webmin')
-rw-r--r--libre/webmin/PKGBUILD216
-rw-r--r--libre/webmin/webmin.install35
-rw-r--r--libre/webmin/webmin.service11
3 files changed, 0 insertions, 262 deletions
diff --git a/libre/webmin/PKGBUILD b/libre/webmin/PKGBUILD
deleted file mode 100644
index 17d02e437..000000000
--- a/libre/webmin/PKGBUILD
+++ /dev/null
@@ -1,216 +0,0 @@
-# $Id: PKGBUILD 195997 2013-10-07 10:38:56Z tpowa $
-# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
-pkgname=webmin
-pkgver=1.660
-pkgrel=1
-pkgdesc="a web-based interface for system administration (Parabola rebranded)"
-arch=(i686 x86_64 mips64el)
-license=('custom:webmin')
-url="http://www.webmin.com/"
-depends=('perl' 'perl-perl4-corelibs')
-makedepends=('perl-net-ssleay')
-backup=('etc/webmin/miniserv.conf' 'etc/webmin/miniserv.users' 'etc/webmin/config' 'etc/webmin/webmin.cats' \
-'etc/webmin/pacman/config' \
-'etc/webmin/at/config' \
-'etc/webmin/acl/config' \
-'etc/webmin/lvm/config' \
-'etc/webmin/net/config' \
-'etc/webmin/nis/config' \
-'etc/webmin/pam/config' \
-'etc/webmin/cron/config' \
-'etc/webmin/file/config' \
-'etc/webmin/grub/config' \
-'etc/webmin/init/config' \
-'etc/webmin/ipfw/config' \
-'etc/webmin/lilo/config' \
-'etc/webmin/proc/config' \
-'etc/webmin/raid/config' \
-'etc/webmin/spam/config' \
-'etc/webmin/sshd/config' \
-'etc/webmin/time/config' \
-'etc/webmin/cluster-passwd/config' \
-'etc/webmin/software/config' \
-'etc/webmin/webminlog/config' \
-'etc/webmin/cluster-webmin/config' \
-'etc/webmin/bind8/config' \
-'etc/webmin/dhcpd/config' \
-'etc/webmin/fdisk/config' \
-'etc/webmin/mount/config' \
-'etc/webmin/mysql/config' \
-'etc/webmin/quota/config' \
-'etc/webmin/samba/config' \
-'etc/webmin/shell/config' \
-'etc/webmin/squid/config' \
-'etc/webmin/adsl-client/config' \
-'etc/webmin/servers/config' \
-'etc/webmin/cluster-shell/config' \
-'etc/webmin/bandwidth/config' \
-'etc/webmin/ppp-client/config' \
-'etc/webmin/lpadmin/config' \
-'etc/webmin/apache/config' \
-'etc/webmin/firewall/config' \
-'etc/webmin/stunnel/config' \
-'etc/webmin/burner/config' \
-'etc/webmin/exports/config' \
-'etc/webmin/backup-config/config' \
-'etc/webmin/custom/config' \
-'etc/webmin/htaccess-htpasswd/config' \
-'etc/webmin/logrotate/config' \
-'etc/webmin/format/config' \
-'etc/webmin/fsdump/config' \
-'etc/webmin/passwd/config' \
-'etc/webmin/cluster-useradmin/config' \
-'etc/webmin/cluster-software/config' \
-'etc/webmin/cluster-copy/config' \
-'etc/webmin/cluster-cron/config' \
-'etc/webmin/telnet/config' \
-'etc/webmin/status/config' \
-'etc/webmin/syslog/config' \
-'etc/webmin/updown/config' \
-'etc/webmin/usermin/config' \
-'etc/webmin/webmin/config' \
-'etc/webmin/xinetd/config' \
-'etc/webmin/openslp/config' \
-'etc/webmin/procmail/config' \
-'etc/webmin/fetchmail/config' \
-'etc/webmin/postgresql/config' \
-'etc/webmin/useradmin/config' \
-'etc/webmin/mailboxes/config' \
-'etc/webmin/inittab/config' \
-'etc/webmin/change-user/config' \
-'etc/webmin/postfix/config' \
-'etc/webmin/proftpd/config' \
-'etc/webmin/pserver/config' \
-'etc/webmin/dnsadmin/config' )
-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.service)
-options=(!strip)
-
-package() {
- # NOTE: USE --asroot build option to avoid fakeroot error!
- cd "$srcdir"/$pkgname-$pkgver
- # add patches from webmin.com
- #for i in ../*.wbm
- #do tar xvf $i
- #done
- #for i in ../*.wbt
- #do tar xvf $i
- #done
- # delete stuff that's not needed
- rm -f mount/freebsd-mounts*
- rm -f mount/openbsd-mounts*
- rm -f mount/macos-mounts*
-
- # remove modules we do not support
- rm -rf {bacula-backup,ldap-useradmin,mon,sentry,frox,jabber,majordomo,qmail,sendmail,sarg,wuftpd,webalizer,inetd,ipsec,pap,pptp-client,pptp-server,shorewall,smart-status,vgetty,heartbeat,cfengine,cpan,sgiexports,hpuxexports,qmailadmin,bsdexports,dfsadmin}
-
- #remove config files from other distros
- rm -f $(find . ! -name 'config-generic-linux' ! -name 'config-\*-linux' ! -name 'config-lib.pl' -name 'config-*')
-
- # remove caldera theme
- rm -rf caldera
-
- # remove init-scripts from other distros
- rm webmin-gentoo-init
- rm webmin-init
- rm webmin-caldera-init
- rm webmin-daemon
-
- # remove update stuff to avoid problems with updating webmin,modules and themes without pacman
- rm -f webmin/{update.cgi,update.pl,update_sched.cgi,upgrade.cgi,edit_upgrade.cgi,install_mod.cgi,delete_mod.cgi,install_theme.cgi}
- rm -f usermin/{upgrade.cgi,update.cgi,update.pl,edit_upgrade.cgi,install_mod.cgi,delete_mod.cgi,install_theme.cgi}
-
- # remove modules add because we don't want files installed without pacman control
- rm -f webmin/{install_mod.cgi,delete_mod.cgi}
-
- # setting perl path
- (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
-
- # create dirs
- mkdir -p "$pkgdir"/opt/webmin
- mkdir -p "$pkgdir"/var/log/webmin
- mkdir -p "$pkgdir"/etc/webmin
-
- # install pam stuff
- install -D -m 644 webmin-pam "$pkgdir"/etc/pam.d/webmin
-
- # remove other distros and add only Parabola GNU/Linux-libre don't change next line else it will not work!
- rm os_list.txt
- echo 'Parabola GNU/linux-libre Any version generic-linux * -d "/etc/pacman.d"' >> os_list.txt
-
- # Add rc.conf support to boot and shutdown menu and lock editing of this module
- cd init/
- sed -i -e 's:^local_down=.*:local_down=Parabola GNU/Linux-libre RC.CONF,3,None:g' $(find . ! -name 'config.info.pl' -name 'config.info*')
- sed -i -e 's:^local_script=.*:local_script=Parabola GNU/Linux-libre RC.LOCAL,3,None:g' $(find . ! -name 'config.info.pl' -name 'config.info*')
- sed -i -e 's:^index_downscript=.*:index_downscript=Parabola GNU/Linux-libre RC.CONF:g' lang/*
- sed -i -e 's:^index_script=.*:index_script=Parabola GNU/Linux-libre RC.LOCAL:g' lang/*
- sed -i -e 's:^noconfig=0:noconfig=1:g' defaultacl
-
- # Add pacman menu
- cd "$srcdir"/$pkgname-$pkgver
- cp -rf custom/ pacman
- cp -rf mscstyle3/custom mscstyle3/pacman
- sed -i -e 's:^noconfig=0:noconfig=1:g' -e 's:^edit=1:edit=0:g' pacman/defaultacl
- sed -i -e '/desc/d' -e '/longdesc/d' pacman/module.info
- sed -i -e 's:^name=Custom:name=Pacman:g' pacman/module.info
- echo 'category=system' >> pacman/module.info
- echo 'desc=Pacman' >> pacman/module.info
- sed -i -e 's:^index_title=.*:index_title=Pacman:g' pacman/lang/*
-
- # copy stuff to right dirs
- cd "$srcdir"/$pkgname-$pkgver
- cp -rp * "$pkgdir"/opt/webmin
- cd "$srcdir"/webmin-config
- cp -rfp * "$pkgdir"/opt/webmin
-
- # define parameters for setup.sh
- config_dir="$pkgdir"/etc/webmin
- var_dir="$pkgdir"/var/log/webmin
- perl=/usr/bin/perl
- autoos=1
- port=10000
- login=root
- crypt="XXX"
- ssl=1
- atboot=0
- nostart=1
- nochown=1
- autothird=1
- nouninstall=1
- noperlpath=1
- atbootyn=n
- tempdir="$pkgdir"/tmp
- export config_dir var_dir perl autoos port tempdir login crypt ssl nochown autothird nouninstall nostart noperlpath atbootyn
-
- # Fix setup.sh
- sed -i -e 's:read atbootyn::g' -e 's:exit 13::g' "$pkgdir"/opt/webmin/setup.sh
- "$pkgdir"/opt/webmin/setup.sh
-
- # Fixup the config files to use their real locations
- sed -i 's:^pidfile=.*$:pidfile=/var/run/webmin.pid:' "$pkgdir"/etc/webmin/miniserv.conf
- find "$pkgdir"/etc/webmin -type f -exec sed -i "s:$pkgdir::g" {} \;
-
- # make it only accessible by localhost
- echo 'allow=127.0.0.1' >> "$pkgdir"/etc/webmin/miniserv.conf
-
- # install pacman menu
- cd "$srcdir"/webmin-pacman/config
- cp -rfp * "$pkgdir"/etc/webmin/pacman
-
- # install systemd files
- install -D -m 644 $srcdir/webmin.service $pkgdir/usr/lib/systemd/system/webmin.service
-
- # delete temp dir
- rm -r "$pkgdir"/tmp
- # change sticky bit
- chmod 0644 $pkgdir/opt/webmin/man/config-generic-linux
- # install license
- install -m 644 -D "$srcdir"/$pkgname-$pkgver/LICENCE "$pkgdir"/usr/share/licenses/webmin/LICENCE
-}
-md5sums=('56a685a665b864470eeb7ce6b97961d8'
- 'b0b3e3fb231a12e60165b6b4d604dcfa'
- 'c86518037449e0fc0c60fc24537ea038'
- 'fc29ecb6a5cd8c278abe054e60381095')
diff --git a/libre/webmin/webmin.install b/libre/webmin/webmin.install
deleted file mode 100644
index efdd9291d..000000000
--- a/libre/webmin/webmin.install
+++ /dev/null
@@ -1,35 +0,0 @@
-# arg 1: the new package version
-post_install() {
- local crypt=$(grep "^root:" ${ROOT}/etc/shadow | cut -f 2 -d :)
- crypt=${crypt//\\/\\\\}
- crypt=${crypt//\//\\\/}
- sed -i "s/root:XXX/root:${crypt}/" /etc/webmin/miniserv.users
-
-cat << EOF
-Note:
-==> It is not allowed to install 3rd party modules, or delete existing modules.
-==> Please write your own PKGBUILDS for 3rd party modules and additional themes.
-Setup:
-==> To make webmin start at boot time, add webmin to rc.conf daemons
-==> Point your web browser to http://localhost:10000 to use webmin.
-==> The access is restricted to localhost, if you want to connect from other locations
-==> change /etc/webmin/miniserv.conf to something like that: allow=127.0.0.1 <your-ip>
-==> If you want to have ssl encryption please install 'perl-net-ssleay' additional.
-EOF
-# fix man module
- cd /opt/webmin/man
- for i in $(find . -name '*.gz'); do
- gzip -df $i
- done
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- # uninstall unzipped files
- rm -r /opt/webmin/man
-}
diff --git a/libre/webmin/webmin.service b/libre/webmin/webmin.service
deleted file mode 100644
index a8a384a8c..000000000
--- a/libre/webmin/webmin.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Webmin
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/etc/webmin/start
-ExecStop=/etc/webmin/stop
-
-[Install]
-WantedBy=multi-user.target