2024-01-05 19:12:56 +01:00
|
|
|
Name: webmin
|
2024-01-05 19:13:01 +01:00
|
|
|
Version: 2.101
|
2024-01-05 19:12:58 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 19:12:56 +01:00
|
|
|
Summary: A web-based interface for system administration for Unix
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 19:13:00 +01:00
|
|
|
URL: https://webmin.com/
|
2024-01-05 19:12:56 +01:00
|
|
|
Source: http://prdownloads.sourceforge.net/webadmin/webmin-%{version}.tar.gz
|
2024-01-05 19:12:57 +01:00
|
|
|
Source1: webmin.service
|
2024-01-05 19:12:56 +01:00
|
|
|
Source2: webmin-desktop
|
2024-01-05 19:12:57 +01:00
|
|
|
Source3: webmin.pam
|
|
|
|
Source4: webmin.logrotate
|
|
|
|
Patch0: %{name}-1.979-install_noroot.patch
|
2024-01-05 19:12:56 +01:00
|
|
|
Patch1: %{name}-1.510-openmamba.patch
|
|
|
|
License: GPL
|
2024-01-05 19:12:57 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libperl
|
2024-01-05 19:12:57 +01:00
|
|
|
BuildRequires: perl(ctime.pl)
|
|
|
|
BuildRequires: perl(timelocal.pl)
|
2024-01-05 19:12:57 +01:00
|
|
|
BuildRequires: perl-Mon
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 19:12:56 +01:00
|
|
|
BuildRequires: perl-Net-SSLeay >= 1.25
|
|
|
|
Requires: perl(Config)
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
Requires: perl(DynaLoader)
|
|
|
|
Requires: perl(English)
|
|
|
|
Requires: perl(Exporter)
|
|
|
|
Requires: perl(Fcntl)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
Requires: perl(Getopt::Std)
|
|
|
|
Requires: perl(IPC::Open2)
|
|
|
|
Requires: perl(Mon::Client)
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
Requires: perl(Socket)
|
|
|
|
Requires: perl(Text::Wrap)
|
|
|
|
Requires: perl(Time::Local)
|
|
|
|
Requires: perl(ctime.pl)
|
|
|
|
Requires: perl(strict)
|
|
|
|
Requires: perl(timelocal.pl)
|
|
|
|
Requires: perl(vars)
|
|
|
|
Requires: perl(warnings)
|
|
|
|
Requires(post):expect
|
|
|
|
#Requires: shorewall
|
2024-01-05 19:12:58 +01:00
|
|
|
#AutoReqProv: off
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 19:12:58 +01:00
|
|
|
|
|
|
|
%global __provides_exclude_from ^%{_datadir}/webmin/.*$
|
|
|
|
%global __requires_exclude_from ^%{_datadir}/webmin/.*$
|
|
|
|
|
2024-01-05 19:13:00 +01:00
|
|
|
#%patch 0 -p1
|
|
|
|
|
|
|
|
# Don't set root permissions during packaging
|
|
|
|
sed -i "s|uid=0|uid=.*|" setup.sh
|
|
|
|
sed -i "s|chown|true|" setup.sh
|
|
|
|
sed -i "s|chgrp|true|" setup.sh
|
|
|
|
sed -i "s|chmod|true|" setup.sh
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
#rm acl/Authen-SolarisRBAC-0.1/blib/arch/auto/Authen/SolarisRBAC/SolarisRBAC.so
|
2024-01-05 19:12:56 +01:00
|
|
|
mkdir tmp
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
# 1.981: fix symlink pointing to buildroot
|
|
|
|
sed -i "s|\$config_directory|/etc/webmin|" authentic-theme/postinstall.pl
|
|
|
|
|
2024-01-05 19:12:56 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 19:12:57 +01:00
|
|
|
install -d %{buildroot}{%{_sysconfdir}/webmin,%{_prefix},/var/log/webmin,%{_datadir}/webmin}
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
export tempdir=%{_builddir}/%{name}-%{version}/tmp
|
|
|
|
|
|
|
|
config_dir=%{buildroot}%{_sysconfdir}/webmin \
|
|
|
|
var_dir=%{buildroot}/var/log/webmin \
|
|
|
|
perl=%{_bindir}/perl \
|
|
|
|
port=10000 \
|
|
|
|
login=admin \
|
|
|
|
password=tmppass \
|
|
|
|
ssl=1 \
|
|
|
|
atboot=0 \
|
|
|
|
nostart=1 \
|
2024-01-05 19:12:57 +01:00
|
|
|
noportcheck=1 \
|
|
|
|
./setup.sh %{buildroot}%{_datadir}/webmin
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/webmin/uninstall.sh
|
|
|
|
|
|
|
|
# strip buildroot from configuration files
|
|
|
|
find %{buildroot}%{_sysconfdir}/webmin -type f -exec sed -i 's|%{buildroot}||g' {} \;
|
|
|
|
|
2024-01-05 19:13:00 +01:00
|
|
|
chmod +x %{buildroot}%{_sysconfdir}/webmin/{.*-init,.post-install,.pre-install}
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
# install systemd service
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/webmin.service
|
2024-01-05 19:12:56 +01:00
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
## install desktop link
|
|
|
|
#install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/webmin.desktop
|
2024-01-05 19:12:56 +01:00
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
# install pam configuration
|
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pam.d/webmin
|
|
|
|
|
|
|
|
# install logrotate configuration
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/webmin
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/var/log/webmin/modules
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
# new install
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
RANDOM_PASSWD=`/usr/bin/mkpasswd -l 10 -s 0`
|
|
|
|
perl -e 'print "$ARGV[0]:",crypt($ARGV[1], "\$1\$XXXXXXXX"),":0\n"' "admin" "$RANDOM_PASSWD" \
|
|
|
|
> %{_sysconfdir}/webmin/miniserv.users
|
|
|
|
echo "# autogenerated admin password: $RANDOM_PASSWD" \
|
|
|
|
> %{_sysconfdir}/webmin/ADMIN_PASSWORD
|
|
|
|
chmod 600 %{_sysconfdir}/webmin/ADMIN_PASSWORD
|
|
|
|
echo "info: see webmin randomly generated password for admin in /etc/webmin/ADMIN_PASSWORD"
|
|
|
|
fi
|
2024-01-05 19:12:57 +01:00
|
|
|
%systemd_post webmin
|
|
|
|
:
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 19:12:58 +01:00
|
|
|
%systemd_preun webmin
|
2024-01-05 19:12:57 +01:00
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart webmin
|
|
|
|
:
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,bin)
|
|
|
|
%dir %{_sysconfdir}/webmin
|
|
|
|
%config(noreplace) %{_sysconfdir}/webmin/*
|
2024-01-05 19:12:58 +01:00
|
|
|
%{_sysconfdir}/webmin/.*-init
|
2024-01-05 19:13:00 +01:00
|
|
|
%{_sysconfdir}/webmin/.post-install
|
|
|
|
%{_sysconfdir}/webmin/.pre-install
|
2024-01-05 19:12:57 +01:00
|
|
|
%{_sysconfdir}/pam.d/webmin
|
|
|
|
%{_sysconfdir}/logrotate.d/webmin
|
|
|
|
#%{_datadir}/applications/webmin.desktop
|
|
|
|
%{_unitdir}/webmin.service
|
|
|
|
%dir %{_datadir}/webmin
|
|
|
|
%{_datadir}/webmin/*
|
|
|
|
%attr(0750,root,bin) %dir /var/log/webmin
|
|
|
|
%attr(0750,root,root) %dir /var/log/webmin/modules
|
|
|
|
%doc LICENCE
|
2024-01-05 19:12:56 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 19:13:01 +01:00
|
|
|
* Thu Aug 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.101-1mamba
|
|
|
|
- update to 2.101
|
|
|
|
|
2024-01-05 19:13:00 +01:00
|
|
|
* Tue Jul 25 2023 Automatic Build System <autodist@mambasoft.it> 2.100-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Sun Jun 26 2022 Automatic Build System <autodist@mambasoft.it> 1.995-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Fri Jun 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.994-2mamba
|
|
|
|
- fix systemd service
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Wed May 25 2022 Automatic Build System <autodist@mambasoft.it> 1.994-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Mon May 23 2022 Automatic Build System <autodist@mambasoft.it> 1.993-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Mon Apr 18 2022 Automatic Build System <autodist@mambasoft.it> 1.991-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Sat Mar 05 2022 Automatic Build System <autodist@mambasoft.it> 1.990-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Sat Feb 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.984-2mamba
|
|
|
|
- fix typo in systemd_preun macro
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Mon Dec 27 2021 Automatic Build System <autodist@mambasoft.it> 1.984-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Fri Dec 03 2021 Automatic Build System <autodist@mambasoft.it> 1.983-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Sat Nov 27 2021 Automatic Build System <autodist@mambasoft.it> 1.982-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:58 +01:00
|
|
|
* Tue Aug 31 2021 Automatic Build System <autodist@mambasoft.it> 1.981-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Sun Aug 08 2021 Automatic Build System <autodist@mambasoft.it> 1.979-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Thu Oct 26 2017 Automatic Build System <autodist@mambasoft.it> 1.830-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Mon Oct 03 2016 Automatic Build System <autodist@mambasoft.it> 1.820-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Mon Aug 08 2016 Automatic Build System <autodist@mambasoft.it> 1.810-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Fri May 27 2016 Automatic Build System <autodist@mambasoft.it> 1.801-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Tue Mar 08 2016 Automatic Build System <autodist@mambasoft.it> 1.791-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Mon Mar 07 2016 Automatic Build System <autodist@mambasoft.it> 1.790-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Thu Dec 31 2015 Automatic Build System <autodist@mambasoft.it> 1.780-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Sun Oct 04 2015 Automatic Build System <autodist@mambasoft.it> 1.770-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Sun Jun 21 2015 Automatic Build System <autodist@mambasoft.it> 1.760-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Tue May 12 2015 Automatic Build System <autodist@mambasoft.it> 1.750-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Mon Apr 27 2015 Automatic Build System <autodist@mambasoft.it> 1.740-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:57 +01:00
|
|
|
* Thu Jan 01 2015 Automatic Build System <autodist@mambasoft.it> 1.730-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:56 +01:00
|
|
|
* Sun Nov 23 2014 Automatic Build System <autodist@mambasoft.it> 1.720-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:56 +01:00
|
|
|
* Mon Nov 03 2014 Automatic Build System <autodist@mambasoft.it> 1.710-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:56 +01:00
|
|
|
* Thu May 22 2014 Automatic Build System <autodist@mambasoft.it> 1.690-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 19:12:56 +01:00
|
|
|
* Thu Mar 13 2014 Automatic Build System <autodist@mambasoft.it> 1.680-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 14 2014 Automatic Build System <autodist@mambasoft.it> 1.670-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 15 2013 Automatic Build System <autodist@mambasoft.it> 1.660-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Aug 18 2013 Automatic Build System <autodist@mambasoft.it> 1.650-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 13 2013 Automatic Build System <autodist@mambasoft.it> 1.640-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed May 15 2013 Automatic Build System <autodist@mambasoft.it> 1.630-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 04 2013 Automatic Build System <autodist@mambasoft.it> 1.620-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Nov 16 2012 Automatic Build System <autodist@mambasoft.it> 1.610-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Sep 21 2012 Automatic Build System <autodist@mambasoft.it> 1.600-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 30 2012 Automatic Build System <autodist@mambasoft.it> 1.590-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jan 22 2012 Automatic Build System <autodist@mambasoft.it> 1.580-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 03 2011 Automatic Build System <autodist@mambasoft.it> 1.570-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Aug 05 2011 Automatic Build System <autodist@mambasoft.it> 1.560-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 27 2011 Automatic Build System <autodist@mambasoft.it> 1.550-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Apr 01 2011 Automatic Build System <autodist@mambasoft.it> 1.540-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Dec 19 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.530-1mamba
|
|
|
|
- update to 1.530
|
|
|
|
|
|
|
|
* Wed Sep 08 2010 Automatic Build System <autodist@mambasoft.it> 1.520-1mamba
|
|
|
|
- automatic update to 1.520 by autodist
|
|
|
|
|
|
|
|
* Fri Apr 09 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.510-2mamba
|
|
|
|
- added openmamba patch for apache
|
|
|
|
|
|
|
|
* Fri Apr 09 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.510-1mamba
|
|
|
|
- update to 1.510
|
|
|
|
|
|
|
|
* Sun Dec 06 2009 Automatic Build System <autodist@mambasoft.it> 1.500-1mamba
|
|
|
|
- automatic update to 1.500 by autodist
|
|
|
|
|
|
|
|
* Thu Sep 17 2009 Automatic Build System <autodist@mambasoft.it> 1.490-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 15 2009 Automatic Build System <autodist@mambasoft.it> 1.480-1mamba
|
|
|
|
- automatic update to 1.480 by autodist
|
|
|
|
|
|
|
|
* Wed Mar 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.470-1mamba
|
|
|
|
- automatic update to 1.470 by autodist
|
|
|
|
|
|
|
|
* Thu Mar 12 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.460-1mamba
|
|
|
|
- automatic update to 1.460 by autodist
|
|
|
|
|
|
|
|
* Mon Jan 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.450-1mamba
|
|
|
|
- automatic update to 1.450 by autodist
|
|
|
|
|
|
|
|
* Tue Oct 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.441-1mamba
|
|
|
|
- automatic update to 1.441 by autodist
|
|
|
|
|
|
|
|
* Sat Oct 25 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.440-1mamba
|
|
|
|
- automatic update to 1.440 by autodist
|
|
|
|
|
|
|
|
* Sun Aug 31 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.430-1mamba
|
|
|
|
- update to 1.430
|
|
|
|
|
|
|
|
* Wed Jun 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.420-1mamba
|
|
|
|
- update to 1.420
|
|
|
|
|
|
|
|
* Thu Feb 14 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.400-1mamba
|
|
|
|
- update to 1.400
|
|
|
|
|
|
|
|
* Thu Aug 09 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.360-1mamba
|
|
|
|
- update to 1.360
|
|
|
|
- dropped openmamba patch (merged upstream)
|
|
|
|
|
|
|
|
* Tue Jul 03 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.350-2mamba
|
|
|
|
- enabled some missing modules with the new patch
|
|
|
|
|
|
|
|
* Fri Jun 29 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.350-1mamba
|
|
|
|
- package created by autospec
|