2024-01-05 18:52:19 +01:00
|
|
|
Name: usermin
|
2024-04-28 00:36:31 +02:00
|
|
|
Version: 2.010
|
2024-01-05 18:52:19 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A web-based interface for webmail, password changing, mail filters, fetchmail and much more
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:52:21 +01:00
|
|
|
URL: https://webmin.com/usermin.html
|
2024-01-05 18:52:19 +01:00
|
|
|
Source: http://downloads.sourceforge.net/sourceforge/webadmin/usermin-%{version}.tar.gz
|
2024-01-05 18:52:20 +01:00
|
|
|
Source1: usermin.service
|
2024-01-05 18:52:19 +01:00
|
|
|
Source2: usermin-desktop
|
2024-01-05 18:52:20 +01:00
|
|
|
Patch0: %{name}-1.834-install_noroot.patch
|
2024-01-05 18:52:19 +01:00
|
|
|
Patch1: %{name}-1.400-openmamba.patch
|
|
|
|
License: GPL
|
2024-01-05 18:52:20 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: perl-DBI
|
|
|
|
BuildRequires: perl-Net-LDAP
|
|
|
|
BuildRequires: perl-Net-SSLeay
|
2024-01-05 18:52:19 +01:00
|
|
|
Requires: perl-Authen-PAM
|
|
|
|
Requires: lsof
|
|
|
|
|
|
|
|
%description
|
|
|
|
Usermin is a web-based interface for webmail, password changing, mail filters, fetchmail and much more. It is designed for use by regular non-root users on a Unix system, and limits them to tasks that they would be able to perform if logged in via SSH or at the console. See the standard modules page for a list of all the functions built into Usermin.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 18:52:21 +01:00
|
|
|
%patch 0 -p1
|
2024-01-05 18:52:19 +01:00
|
|
|
#%patch1 -p1
|
|
|
|
|
|
|
|
find . -type f -exec sed -i 's|/usr/local/bin/perl|/usr/bin/perl|g' {} \;
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
%global __provides_exclude_from ^%{_datadir}/usermin.*$
|
|
|
|
%global __requires_exclude_from ^%{_datadir}/usermin.*$
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 18:52:20 +01:00
|
|
|
install -d %{buildroot}{%{_sysconfdir}/usermin,%{_prefix},/var/log/usermin,%{_datadir}/usermin}
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
config_dir=%{buildroot}%{_sysconfdir}/usermin \
|
|
|
|
var_dir=%{buildroot}/var/log/usermin \
|
|
|
|
perl=%{_bindir}/perl \
|
|
|
|
port=20000 \
|
|
|
|
login=admin \
|
|
|
|
password=tmppass \
|
|
|
|
ssl=1 \
|
|
|
|
atboot=0 \
|
|
|
|
nostart=1 \
|
2024-01-05 18:52:20 +01:00
|
|
|
noportcheck=1 \
|
2024-01-05 18:52:19 +01:00
|
|
|
tempdir=. \
|
2024-01-05 18:52:20 +01:00
|
|
|
./setup.sh %{buildroot}%{_datadir}/usermin
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/usermin/uninstall.sh
|
|
|
|
|
|
|
|
# strip buildroot from configuration files
|
|
|
|
find %{buildroot}%{_sysconfdir}/usermin -type f -exec sed -i 's|%{buildroot}||g' {} \;
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
# fix symlinks pointing to buildroot
|
|
|
|
rm -f %{buildroot}%{_datadir}/usermin/authentic-theme/manifest-usermin.json
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
# install systemd service
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/usermin.service
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
# install desktop link
|
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/usermin.desktop
|
|
|
|
|
|
|
|
# install pam file
|
|
|
|
install -D -m 0644 usermin-pam %{buildroot}%{_sysconfdir}/pam.d/usermin
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/var/log/usermin
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
2024-01-05 18:52:20 +01:00
|
|
|
%systemd_post usermin
|
|
|
|
:
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 18:52:20 +01:00
|
|
|
%systemd_preun usermin
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart usermin
|
|
|
|
:
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/usermin
|
|
|
|
%config(noreplace) %{_sysconfdir}/usermin/*
|
2024-01-05 18:52:20 +01:00
|
|
|
%{_sysconfdir}/usermin/.*-install
|
|
|
|
%{_sysconfdir}/usermin/.*-init
|
2024-01-05 18:52:19 +01:00
|
|
|
%{_sysconfdir}/pam.d/usermin
|
2024-01-05 18:52:20 +01:00
|
|
|
%{_unitdir}/usermin.service
|
2024-01-05 18:52:19 +01:00
|
|
|
%{_datadir}/applications/usermin.desktop
|
2024-01-05 18:52:20 +01:00
|
|
|
%dir %{_datadir}/usermin
|
|
|
|
%{_datadir}/usermin/*
|
2024-01-05 18:52:19 +01:00
|
|
|
%dir /var/log/usermin
|
2024-01-05 18:52:20 +01:00
|
|
|
%doc LICENCE
|
2024-01-05 18:52:19 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-04-28 00:36:31 +02:00
|
|
|
* Sat Apr 27 2024 Automatic Build System <autodist@openmamba.org> 2.010-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-18 09:46:01 +01:00
|
|
|
* Wed Jan 17 2024 Automatic Build System <autodist@openmamba.org> 2.005-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:22 +01:00
|
|
|
* Wed Aug 30 2023 Automatic Build System <autodist@mambasoft.it> 2.002-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:21 +01:00
|
|
|
* Tue Aug 08 2023 Automatic Build System <autodist@mambasoft.it> 2.001-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:21 +01:00
|
|
|
* Tue Jan 31 2023 Automatic Build System <autodist@mambasoft.it> 1.861-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
* Sun Aug 28 2022 Automatic Build System <autodist@mambasoft.it> 1.860-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
* Tue Aug 09 2022 Automatic Build System <autodist@mambasoft.it> 1.854-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
* Mon Aug 08 2022 Automatic Build System <autodist@mambasoft.it> 1.853-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
* Tue Jul 19 2022 Automatic Build System <autodist@mambasoft.it> 1.852-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jul 16 2022 Automatic Build System <autodist@mambasoft.it> 1.851-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
* Mon Mar 07 2022 Automatic Build System <autodist@mambasoft.it> 1.840-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:20 +01:00
|
|
|
* Sat Feb 19 2022 Automatic Build System <autodist@mambasoft.it> 1.834-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jun 11 2017 Automatic Build System <autodist@mambasoft.it> 1.701-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:52:19 +01:00
|
|
|
* Tue Sep 09 2014 Automatic Build System <autodist@mambasoft.it> 1.610-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:52:19 +01:00
|
|
|
* Mon May 26 2014 Automatic Build System <autodist@mambasoft.it> 1.600-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 18:52:19 +01:00
|
|
|
* Tue Mar 18 2014 Automatic Build System <autodist@mambasoft.it> 1.590-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Feb 06 2014 Automatic Build System <autodist@mambasoft.it> 1.570-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 20 2013 Automatic Build System <autodist@mambasoft.it> 1.560-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri May 17 2013 Automatic Build System <autodist@mambasoft.it> 1.550-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 25 2013 Automatic Build System <autodist@mambasoft.it> 1.540-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Nov 25 2012 Automatic Build System <autodist@mambasoft.it> 1.530-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 12 2012 Automatic Build System <autodist@mambasoft.it> 1.520-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 1.510-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed May 02 2012 Automatic Build System <autodist@mambasoft.it> 1.500-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 10 2011 Automatic Build System <autodist@mambasoft.it> 1.480-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Apr 15 2011 Automatic Build System <autodist@mambasoft.it> 1.470-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 06 2010 Automatic Build System <autodist@mambasoft.it> 1.460-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 04 2010 Automatic Build System <autodist@mambasoft.it> 1.450-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Apr 09 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.440-1mamba
|
|
|
|
- update to 1.440
|
|
|
|
|
|
|
|
* Tue Dec 08 2009 Automatic Build System <autodist@mambasoft.it> 1.430-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Sep 23 2009 Automatic Build System <autodist@mambasoft.it> 1.420-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 22 2009 Automatic Build System <autodist@mambasoft.it> 1.410-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 30 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.400-1mamba
|
|
|
|
- package created by autospec
|