Summary: A web-based administration interface for Unix systems. Name: webmin Version: 0.88 Release: 5 Requires: /usr/bin/perl License: IBM_ILA Group: Applications/System Source: ftp://ftp.webmin.com/%{name}-%{version}.tar.gz Source1: http://webmin.com/webmin/updates/useradmin-%{version}-1.wbm.gz Source2: IBM_ILA Patch0: %{name}-%{version}-aix.patch URL: http://www.webmin.com Packager: Pat Laffey (plaffey@us.ibm.com) BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Prefix: %{_prefix} %description A web-based administration interface for Unix systems. Using Webmin you can configure DNS, Samba, NFS, local/remote filesystems and more using your web browser. After installation, enter the URL http://localhost:10000/ into your browser and login as root with your root password. %prep %setup -q -a 1 %patch0 -p1 # Add license info cat $RPM_SOURCE_DIR/IBM_ILA LICENCE > LICENSE %build (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl - rm -f mount/freebsd-mounts-* rm -f mount/openbsd-mounts-* #chmod -R og-rxw . %install DESTDIR=$RPM_BUILD_ROOT mkdir -p $DESTDIR mkdir -p %{buildroot}%{prefix}/libexec/webmin mkdir -p %{buildroot}/etc/sysconfig/daemons mkdir -p %{buildroot}/etc/rc.d/init.d mkdir -p %{buildroot}/etc/rc.d/rc2.d mkdir -p %{buildroot}/etc/rc.d/rc3.d mkdir -p %{buildroot}/etc/rc.d/rc5.d cp -rp * %{buildroot}%{prefix}/libexec/webmin cp webmin-daemon %{buildroot}/etc/sysconfig/daemons/webmin cp webmin-init %{buildroot}/etc/rc.d/init.d/webmin ln -s ../init.d/webmin %{buildroot}/etc/rc.d/rc2.d/S99webmin ln -s ../init.d/webmin %{buildroot}/etc/rc.d/rc3.d/S99webmin ln -s ../init.d/webmin %{buildroot}/etc/rc.d/rc5.d/S99webmin echo rpm >%{buildroot}%{prefix}/libexec/webmin/install-type %clean DESTDIR=$RPM_BUILD_ROOT rm -rf $DESTDIR %files %defattr(-,root,root) %doc LICENSE %{prefix}/libexec/webmin /etc/sysconfig/daemons/webmin /etc/rc.d/init.d/webmin /etc/rc.d/rc2.d/S99webmin /etc/rc.d/rc3.d/S99webmin /etc/rc.d/rc5.d/S99webmin %pre perl >/tmp/$$.check </dev/null 2>&1 fi cd %{prefix}/libexec/webmin config_dir=/etc/webmin var_dir=/var/webmin perl=/usr/bin/perl autoos=1 port=10000 login=root crypt=`grep -p "^root:" /etc/security/passwd | head -2 | tail -1 | cut -f 3 -d" "` host=`hostname` ssl=0 atboot=0 nochown=1 autothird=1 noperlpath=1 nouninstall=1 nostart=1 perl >/tmp/$$.check2 <&1 | perl -ne 'print " $1.$2.$3.0/255.255.255.0" if (/inet addr:([0-9]+).([0-9]+).([0-9]+)/)'` #allow="127.0.0.1$allow" export config_dir var_dir perl autoos port login crypt host ssl nochown autothird noperlpath nouninstall nostart allow os_type os_version real_os_type real_os_version ./setup.sh >/tmp/webmin-setup.out 2>&1 rm -f /var/lock/subsys/webmin ## Commented out because this is causing the script to never finish. ## Thus if installing webmin from a script, the install hangs. ## ##/etc/rc.d/init.d/webmin start >/dev/null 2>&1 & ##echo "Webmin install complete. You can now login to http://$host:10000/" ##echo "as root with your root password." %preun ##echo "Preuninstall : $1" if [ "$1" = 0 ]; then grep root=/opt/freeware/libexec/webmin /etc/webmin/miniserv.conf >/dev/null 2>&1 if [ "$?" = 0 ]; then # RPM is being removed, and no new version of webmin # has taken it's place. Stop the server /etc/rc.d/init.d/webmin stop >/dev/null 2>&1 fi fi %postun ##echo "Postuninstall : $1" if [ "$1" = 0 ]; then grep root=/opt/freeware/libexec/webmin /etc/webmin/miniserv.conf >/dev/null 2>&1 if [ "$?" = 0 ]; then # RPM is being removed, and no new version of webmin # has taken it's place. Delete the config files rm -rf /etc/webmin /var/webmin fi fi %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Thu Sep 12 2002 David Clissold - 0.88-4: Automatic start of webmin in %post is leaving the rpm install - process open. * Thu Aug 22 2002 David Clissold - 0.88-3: What, no changelog??? OK, I'll make one. This is not the first - build of the package, though. I'm just updating the %post script - so that it will recognize AIX 5.2.