forked from pool/system-users
Accepting request 479795 from home:kukuk:sysusers
- Add systemusers wwwrun, mail and ftp OBS-URL: https://build.opensuse.org/request/show/479795 OBS-URL: https://build.opensuse.org/package/show/Base:System/system-users?expand=0&rev=7
This commit is contained in:
parent
dff4632ab2
commit
208027cd7e
3
system-user-ftp.conf
Normal file
3
system-user-ftp.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
u ftp - "FTP Account" /srv/ftp
|
||||||
|
g ftp -
|
3
system-user-mail.conf
Normal file
3
system-user-mail.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
u mail - "Mailer daemon" /var/spool/clientmqueue
|
||||||
|
g mail -
|
4
system-user-wwwrun.conf
Normal file
4
system-user-wwwrun.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
g www -
|
||||||
|
u wwwrun - "WWW daemon apache" /var/lib/wwwrun
|
||||||
|
m wwwrun www
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 15 20:47:27 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Add systemusers wwwrun, mail and ftp
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 11 09:29:37 CET 2017 - kukuk@suse.de
|
Sat Mar 11 09:29:37 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
@ -32,6 +32,9 @@ Source7: system-group-trusted.conf
|
|||||||
Source8: system-group-obsolete.conf
|
Source8: system-group-obsolete.conf
|
||||||
Source9: system-group-hardware.conf
|
Source9: system-group-hardware.conf
|
||||||
Source10: system-group-wheel.conf
|
Source10: system-group-wheel.conf
|
||||||
|
Source11: system-user-wwwrun.conf
|
||||||
|
Source12: system-user-mail.conf
|
||||||
|
Source13: system-user-ftp.conf
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -126,6 +129,29 @@ Group: System/Fhs
|
|||||||
%description -n system-group-wheel
|
%description -n system-group-wheel
|
||||||
This package provides the system group 'wheel'.
|
This package provides the system group 'wheel'.
|
||||||
|
|
||||||
|
%package -n system-user-wwwrun
|
||||||
|
Summary: System user wwwrun and group www
|
||||||
|
Group: System/Fhs
|
||||||
|
%{sysusers_requires}
|
||||||
|
|
||||||
|
%description -n system-user-wwwrun
|
||||||
|
This package provides the system account 'wwwrun' and group 'www'.
|
||||||
|
|
||||||
|
%package -n system-user-mail
|
||||||
|
Summary: System user and group mail
|
||||||
|
Group: System/Fhs
|
||||||
|
%{sysusers_requires}
|
||||||
|
|
||||||
|
%description -n system-user-mail
|
||||||
|
This package provides the system account and group 'mail'.
|
||||||
|
|
||||||
|
%package -n system-user-ftp
|
||||||
|
Summary: System user and group ftp
|
||||||
|
Group: System/Fhs
|
||||||
|
%{sysusers_requires}
|
||||||
|
|
||||||
|
%description -n system-user-ftp
|
||||||
|
This package provides the system account and group 'ftp'.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -c -T
|
||||||
@ -141,6 +167,9 @@ This package provides the system group 'wheel'.
|
|||||||
%sysusers_generate_pre %{SOURCE8} obsolete
|
%sysusers_generate_pre %{SOURCE8} obsolete
|
||||||
%sysusers_generate_pre %{SOURCE9} hardware
|
%sysusers_generate_pre %{SOURCE9} hardware
|
||||||
%sysusers_generate_pre %{SOURCE10} wheel
|
%sysusers_generate_pre %{SOURCE10} wheel
|
||||||
|
%sysusers_generate_pre %{SOURCE11} wwwrun
|
||||||
|
%sysusers_generate_pre %{SOURCE12} mail
|
||||||
|
%sysusers_generate_pre %{SOURCE13} ftp
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysusersdir}
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
@ -148,6 +177,9 @@ mkdir -p %{buildroot}%{_sysconfdir}/uucp
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/news
|
mkdir -p %{buildroot}%{_sysconfdir}/news
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/games
|
mkdir -p %{buildroot}%{_localstatedir}/games
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/cache/man
|
mkdir -p %{buildroot}%{_localstatedir}/cache/man
|
||||||
|
mkdir -p %{buildroot}%{_localstatedir}/lib/wwwrun
|
||||||
|
mkdir -p %{buildroot}%{_localstatedir}/spool/clientmqueue
|
||||||
|
mkdir -p %{buildroot}/srv/ftp
|
||||||
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf
|
||||||
install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf
|
||||||
install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf
|
install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf
|
||||||
@ -158,6 +190,9 @@ install -m 644 %{SOURCE7} %{buildroot}%{_sysusersdir}/system-group-trusted.conf
|
|||||||
install -m 644 %{SOURCE8} %{buildroot}%{_sysusersdir}/system-group-obsolete.conf
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysusersdir}/system-group-obsolete.conf
|
||||||
install -m 644 %{SOURCE9} %{buildroot}%{_sysusersdir}/system-group-hardware.conf
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysusersdir}/system-group-hardware.conf
|
||||||
install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf
|
||||||
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysusersdir}/system-user-wwwrun.conf
|
||||||
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/system-user-mail.conf
|
||||||
|
install -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/system-user-ftp.conf
|
||||||
|
|
||||||
%pre -n system-user-uucp -f uucp.pre
|
%pre -n system-user-uucp -f uucp.pre
|
||||||
%pre -n system-user-games -f games.pre
|
%pre -n system-user-games -f games.pre
|
||||||
@ -169,6 +204,9 @@ install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf
|
|||||||
%pre -n system-group-obsolete -f obsolete.pre
|
%pre -n system-group-obsolete -f obsolete.pre
|
||||||
%pre -n system-group-hardware -f hardware.pre
|
%pre -n system-group-hardware -f hardware.pre
|
||||||
%pre -n system-group-wheel -f wheel.pre
|
%pre -n system-group-wheel -f wheel.pre
|
||||||
|
%pre -n system-user-wwwrun -f wwwrun.pre
|
||||||
|
%pre -n system-user-mail -f mail.pre
|
||||||
|
%pre -n system-user-ftp -f ftp.pre
|
||||||
|
|
||||||
%files -n system-user-uucp
|
%files -n system-user-uucp
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -214,4 +252,19 @@ install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sysusersdir}/system-group-wheel.conf
|
%{_sysusersdir}/system-group-wheel.conf
|
||||||
|
|
||||||
|
%files -n system-user-wwwrun
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %attr(0755,wwwrun,wwwrun) %{_localstatedir}/lib/wwwrun
|
||||||
|
%{_sysusersdir}/system-user-wwwrun.conf
|
||||||
|
|
||||||
|
%files -n system-user-mail
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %attr(0770,mail,mail) %{_localstatedir}/spool/clientmqueue
|
||||||
|
%{_sysusersdir}/system-user-mail.conf
|
||||||
|
|
||||||
|
%files -n system-user-ftp
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %attr(0755,root,root) /srv/ftp
|
||||||
|
%{_sysusersdir}/system-user-ftp.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user