You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
7.1 KiB
194 lines
7.1 KiB
# Maintainer: Amish <contact at via dot aur>
|
|
# Contributor: Daniel Milde <daniel at milde dot cz>
|
|
# Contributor: Felix Schindler <ftschindler at aur dot archlinux>
|
|
|
|
pkgname=webmin
|
|
pkgver=1.970
|
|
pkgrel=1
|
|
pkgdesc="A web-based administration interface for Unix systems"
|
|
arch=(any)
|
|
license=('custom:webmin')
|
|
url="http://www.webmin.com/"
|
|
depends=('perl' 'perl-net-ssleay' 'perl-authen-pam' 'perl-encode-detect' 'openssl')
|
|
optdepends=('perl-socket6: For IPv6 support')
|
|
backup=('etc/webmin/miniserv.conf' 'etc/webmin/miniserv.users' \
|
|
'etc/webmin/config' 'etc/webmin/webmin.acl' \
|
|
'etc/webmin/acl/config' \
|
|
'etc/webmin/adsl-client/config' \
|
|
'etc/webmin/ajaxterm/config' \
|
|
'etc/webmin/apache/config' \
|
|
'etc/webmin/at/config' \
|
|
'etc/webmin/backup-config/config' \
|
|
'etc/webmin/bacula-backup/config' \
|
|
'etc/webmin/bandwidth/config' \
|
|
'etc/webmin/bind8/config' \
|
|
'etc/webmin/change-user/config' \
|
|
'etc/webmin/cluster-copy/config' \
|
|
'etc/webmin/cluster-cron/config' \
|
|
'etc/webmin/cluster-passwd/config' \
|
|
'etc/webmin/cluster-shell/config' \
|
|
'etc/webmin/cluster-software/config' \
|
|
'etc/webmin/cluster-useradmin/config' \
|
|
'etc/webmin/cluster-usermin/config' \
|
|
'etc/webmin/cluster-webmin/config' \
|
|
'etc/webmin/cron/config' \
|
|
'etc/webmin/custom/config' \
|
|
'etc/webmin/dhcpd/config' \
|
|
'etc/webmin/dovecot/config' \
|
|
'etc/webmin/exim/config' \
|
|
'etc/webmin/exports/config' \
|
|
'etc/webmin/fail2ban/config' \
|
|
'etc/webmin/fdisk/config' \
|
|
'etc/webmin/fetchmail/config' \
|
|
'etc/webmin/filemin/config' \
|
|
'etc/webmin/filter/config' \
|
|
'etc/webmin/firewall/config' \
|
|
'etc/webmin/firewall6/config' \
|
|
'etc/webmin/firewalld/config' \
|
|
'etc/webmin/fsdump/config' \
|
|
'etc/webmin/heartbeat/config' \
|
|
'etc/webmin/htaccess-htpasswd/config' \
|
|
'etc/webmin/idmapd/config' \
|
|
'etc/webmin/init/config' \
|
|
'etc/webmin/inittab/config' \
|
|
'etc/webmin/ipsec/config' \
|
|
'etc/webmin/iscsi-client/config' \
|
|
'etc/webmin/iscsi-server/config' \
|
|
'etc/webmin/iscsi-target/config' \
|
|
'etc/webmin/iscsi-tgtd/config' \
|
|
'etc/webmin/jabber/config' \
|
|
'etc/webmin/krb5/config' \
|
|
'etc/webmin/ldap-client/config' \
|
|
'etc/webmin/ldap-server/config' \
|
|
'etc/webmin/ldap-useradmin/config' \
|
|
'etc/webmin/logrotate/config' \
|
|
'etc/webmin/lpadmin/config' \
|
|
'etc/webmin/lvm/config' \
|
|
'etc/webmin/mailboxes/config' \
|
|
'etc/webmin/mailcap/config' \
|
|
'etc/webmin/man/config' \
|
|
'etc/webmin/mon/config' \
|
|
'etc/webmin/mount/config' \
|
|
'etc/webmin/mysql/config' \
|
|
'etc/webmin/net/config' \
|
|
'etc/webmin/nis/config' \
|
|
'etc/webmin/openslp/config' \
|
|
'etc/webmin/pam/config' \
|
|
'etc/webmin/pap/config' \
|
|
'etc/webmin/passwd/config' \
|
|
'etc/webmin/phpini/config' \
|
|
'etc/webmin/postfix/config' \
|
|
'etc/webmin/postgresql/config' \
|
|
'etc/webmin/ppp-client/config' \
|
|
'etc/webmin/pptp-client/config' \
|
|
'etc/webmin/pptp-server/config' \
|
|
'etc/webmin/proc/config' \
|
|
'etc/webmin/procmail/config' \
|
|
'etc/webmin/proftpd/config' \
|
|
'etc/webmin/qmailadmin/config' \
|
|
'etc/webmin/quota/config' \
|
|
'etc/webmin/raid/config' \
|
|
'etc/webmin/samba/config' \
|
|
'etc/webmin/sarg/config' \
|
|
'etc/webmin/sendmail/config' \
|
|
'etc/webmin/servers/config' \
|
|
'etc/webmin/shell/config' \
|
|
'etc/webmin/shorewall/config' \
|
|
'etc/webmin/shorewall6/config' \
|
|
'etc/webmin/smart-status/config' \
|
|
'etc/webmin/spam/config' \
|
|
'etc/webmin/squid/config' \
|
|
'etc/webmin/sshd/config' \
|
|
'etc/webmin/status/config' \
|
|
'etc/webmin/stunnel/config' \
|
|
'etc/webmin/syslog/config' \
|
|
'etc/webmin/system-status/config' \
|
|
'etc/webmin/tcpwrappers/config' \
|
|
'etc/webmin/telnet/config' \
|
|
'etc/webmin/time/config' \
|
|
'etc/webmin/tunnel/config' \
|
|
'etc/webmin/updown/config' \
|
|
'etc/webmin/useradmin/config' \
|
|
'etc/webmin/usermin/config' \
|
|
'etc/webmin/vgetty/config' \
|
|
'etc/webmin/webalizer/config' \
|
|
'etc/webmin/webmin/config' \
|
|
'etc/webmin/webmincron/config' \
|
|
'etc/webmin/webminlog/config' \
|
|
'etc/webmin/wuftpd/config' \
|
|
'etc/webmin/xinetd/config' \
|
|
'etc/logrotate.d/webmin' \
|
|
'etc/pam.d/webmin' )
|
|
source=("http://downloads.sourceforge.net/sourceforge/webadmin/$pkgname-$pkgver.tar.gz"
|
|
setup-pre.sh
|
|
setup-post.sh
|
|
webmin-config.tar.bz2
|
|
webmin.pam
|
|
webmin.logrotate
|
|
webmin.tmpfiles)
|
|
# webmin.service) <- get rid of systemd installation
|
|
options=(!strip !zipman)
|
|
|
|
prepare() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
|
|
# remove modules that we do not support and stuff that is not needed
|
|
rm -r {bsdexports,bsdfdisk,cpan,dfsadmin,format,grub,hpuxexports,inetd,ipfilter,ipfw,package-updates,rbac,sgiexports,smf,software,syslog-ng,zones}
|
|
rm mount/freebsd-mounts* mount/netbsd-mounts* mount/openbsd-mounts* mount/macos-mounts*
|
|
rm webmin-gentoo-init webmin-init webmin-daemon
|
|
|
|
# dont allow webmin to update itself, must update via pacman
|
|
rm {webmin,usermin}/{update.cgi,update.pl,update_sched.cgi,upgrade.cgi,edit_upgrade.cgi,install_mod.cgi,delete_mod.cgi,install_theme.cgi}
|
|
|
|
# remove config files for other distros, make Arch linux related additions
|
|
find . ! -name 'config-generic-linux' ! -name 'config-ALL-linux' ! -name 'config-lib.pl' -name 'config-*' -exec rm '{}' \+
|
|
echo 'Archlinux Any version generic-linux * -d "/etc/pacman.d"' > os_list.txt
|
|
cp -rp "$srcdir"/webmin-config/* "$srcdir"/$pkgname-$pkgver/
|
|
install -m 700 "$srcdir"/setup-{pre,post}.sh "$srcdir"/$pkgname-$pkgver/
|
|
}
|
|
|
|
package() {
|
|
# create basic directories
|
|
mkdir -p "$pkgdir"/{etc,opt,var/log}
|
|
|
|
export archpkgdir="$pkgdir"
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
|
|
# new version of iptables do not allow to run as non-root user
|
|
# so is_installed() check fails, so we avoid it in setup.sh
|
|
mv firewall/install_check{,.tmp}.pl
|
|
mv firewall6/install_check{,.tmp}.pl
|
|
"$srcdir"/$pkgname-$pkgver/setup.sh "$pkgdir"/opt/webmin
|
|
|
|
# move the files back in place
|
|
mv "$pkgdir"/opt/webmin/firewall/install_check{.tmp,}.pl
|
|
mv "$pkgdir"/opt/webmin/firewall6/install_check{.tmp,}.pl
|
|
mv firewall/install_check{.tmp,}.pl
|
|
mv firewall6/install_check{.tmp,}.pl
|
|
|
|
# fix the config files to use their real locations
|
|
find "$pkgdir"/etc/webmin -type f -exec sed -i -e "s:$pkgdir::g" {} \+
|
|
|
|
# install sources
|
|
# install -D -m 644 "$srcdir"/webmin.service "$pkgdir"/usr/lib/systemd/system/webmin.service <- get rid of systemd installation
|
|
install -D -m 644 "$srcdir"/webmin.pam "$pkgdir"/etc/pam.d/webmin
|
|
install -D -m 644 "$srcdir"/webmin.logrotate "$pkgdir"/etc/logrotate.d/webmin
|
|
install -D -m 644 "$srcdir"/webmin.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/webmin.conf
|
|
install -D -m 644 "$srcdir"/$pkgname-$pkgver/LICENCE "$pkgdir"/usr/share/licenses/webmin/LICENCE
|
|
install -D -m 644 "$srcdir"/systemctl "${pkgdir}"/usr/bin/systemctl
|
|
|
|
# delete directories not to be packaged
|
|
rm -r "$pkgdir"/{tmp,var}
|
|
|
|
}
|
|
|
|
|
|
sha256sums=('6798027c7230be1adf6cf2fd27a74185718abcb0e1ff8b674a518b41e885651e'
|
|
'3c27a52679607c73cdaa00c0735bea04cf66cf92ca4af6a7ac906eaed537b910'
|
|
'21b24cbbf88593f9da727e8f36dea283c8765002a378b3d4e55e6332387c43c6'
|
|
'd326da95233341ed0a6d51c6c28d9b47b5bbe8c1ae8e03e2578c24191dd14383'
|
|
'a979e236681c6a06906937cf0f012e976347af5d6d7e7ae04a11acb01cc2689d'
|
|
'9babd7f1e7e24ba4aeb5587a3cb46aa1e92904226cad84a4cbee5f9aaa408802'
|
|
'075c8156471d0fb4825a51b6411636102d2cf61d4eb5c7c097330e53cd9323b0')
|
|
# '4757a44a07a4bcb6f919274f35b8ab27a34936b5f8d6aee9cdbcbde49e73fb7d') <- get rid of systemd installation
|