2017-02-15 15:49:13 +01:00
|
|
|
#
|
|
|
|
# spec file for package system-users
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: system-users
|
|
|
|
Version: 20161020
|
|
|
|
Release: 0
|
|
|
|
Summary: Provide system accounts
|
2017-02-20 09:56:24 +01:00
|
|
|
License: MIT
|
2017-02-15 15:49:13 +01:00
|
|
|
Group: System/Fhs
|
|
|
|
Source1: system-user-uucp.conf
|
|
|
|
Source2: system-user-games.conf
|
|
|
|
Source3: system-user-bin.conf
|
|
|
|
Source4: system-user-daemon.conf
|
|
|
|
Source5: system-user-man.conf
|
|
|
|
Source6: system-user-news.conf
|
|
|
|
Source7: system-group-trusted.conf
|
|
|
|
Source8: system-group-obsolete.conf
|
2017-03-11 09:35:23 +01:00
|
|
|
Source9: system-group-hardware.conf
|
|
|
|
Source10: system-group-wheel.conf
|
2017-03-15 20:52:50 +01:00
|
|
|
Source11: system-user-wwwrun.conf
|
|
|
|
Source12: system-user-mail.conf
|
|
|
|
Source13: system-user-ftp.conf
|
2017-03-16 15:25:57 +01:00
|
|
|
Source14: system-user-lp.conf
|
|
|
|
Source15: system-user-nobody.conf
|
2017-02-15 15:49:13 +01:00
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: sysuser-tools
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides various system users and their directories
|
|
|
|
|
|
|
|
%package -n system-user-bin
|
|
|
|
Summary: System user and group 'bin'
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-04-01 10:46:39 +02:00
|
|
|
#!BuildIgnore: user(daemon)
|
2017-02-15 15:49:13 +01:00
|
|
|
Requires(pre): user(daemon)
|
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-bin
|
|
|
|
This package provides the system account and group 'bin'
|
|
|
|
and their corresponding directories.
|
|
|
|
|
|
|
|
%package -n system-user-daemon
|
|
|
|
Summary: System user and group 'daemon'
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-daemon
|
|
|
|
This package provides the system account and group 'daemon'
|
|
|
|
and their corresponding directories.
|
|
|
|
|
|
|
|
%package -n system-user-man
|
|
|
|
Summary: System user and group 'man'
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-man
|
|
|
|
This package provides the system account and group 'man'
|
|
|
|
and their corresponding directories.
|
|
|
|
|
|
|
|
%package -n system-user-news
|
|
|
|
Summary: System user and group 'news'
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-news
|
|
|
|
This package provides the system account and group 'news'
|
|
|
|
and their corresponding directories.
|
|
|
|
|
|
|
|
%package -n system-user-uucp
|
|
|
|
Summary: System user and group uucp
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-uucp
|
|
|
|
This package provides the system account and group 'uucp'
|
|
|
|
and their corresponding directories.
|
|
|
|
|
|
|
|
%package -n system-user-games
|
|
|
|
Summary: System user and group games
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-games
|
|
|
|
This package provides the system account and group 'games'.
|
|
|
|
|
|
|
|
%package -n system-group-trusted
|
|
|
|
Summary: System group 'trusted'
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-group-trusted
|
|
|
|
This package provides the system group 'trusted'.
|
|
|
|
|
|
|
|
%package -n system-group-obsolete
|
|
|
|
Summary: Obsolete system groups
|
2017-02-20 09:56:24 +01:00
|
|
|
Group: System/Fhs
|
2017-02-15 15:49:13 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-group-obsolete
|
|
|
|
This package provides some obsolete system groups.
|
|
|
|
|
2017-03-11 09:35:23 +01:00
|
|
|
%package -n system-group-hardware
|
|
|
|
Summary: Hardware related system groups
|
|
|
|
Group: System/Fhs
|
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-group-hardware
|
|
|
|
This package provides some hardware related system groups.
|
|
|
|
|
|
|
|
%package -n system-group-wheel
|
|
|
|
Summary: System group 'wheel'
|
|
|
|
Group: System/Fhs
|
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-group-wheel
|
|
|
|
This package provides the system group 'wheel'.
|
|
|
|
|
2017-03-15 20:52:50 +01:00
|
|
|
%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'.
|
2017-03-11 09:35:23 +01:00
|
|
|
|
2017-03-16 15:25:57 +01:00
|
|
|
%package -n system-user-lp
|
|
|
|
Summary: System user and group lp
|
|
|
|
Group: System/Fhs
|
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-lp
|
|
|
|
This package provides the system account and group 'lp'.
|
|
|
|
|
|
|
|
%package -n system-user-nobody
|
|
|
|
Summary: System user and group nobody
|
|
|
|
Group: System/Fhs
|
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description -n system-user-nobody
|
|
|
|
This package provides the system account and group 'nobody'.
|
|
|
|
|
|
|
|
|
2017-02-15 15:49:13 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
|
|
|
|
%build
|
|
|
|
%sysusers_generate_pre %{SOURCE1} uucp
|
|
|
|
%sysusers_generate_pre %{SOURCE2} games
|
|
|
|
%sysusers_generate_pre %{SOURCE3} bin
|
|
|
|
%sysusers_generate_pre %{SOURCE4} daemon
|
|
|
|
%sysusers_generate_pre %{SOURCE5} man
|
|
|
|
%sysusers_generate_pre %{SOURCE6} news
|
|
|
|
%sysusers_generate_pre %{SOURCE7} trusted
|
|
|
|
%sysusers_generate_pre %{SOURCE8} obsolete
|
2017-03-11 09:35:23 +01:00
|
|
|
%sysusers_generate_pre %{SOURCE9} hardware
|
|
|
|
%sysusers_generate_pre %{SOURCE10} wheel
|
2017-03-15 20:52:50 +01:00
|
|
|
%sysusers_generate_pre %{SOURCE11} wwwrun
|
|
|
|
%sysusers_generate_pre %{SOURCE12} mail
|
|
|
|
%sysusers_generate_pre %{SOURCE13} ftp
|
2017-03-16 15:25:57 +01:00
|
|
|
%sysusers_generate_pre %{SOURCE14} lp
|
|
|
|
%sysusers_generate_pre %{SOURCE15} nobody
|
2017-02-15 15:49:13 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/uucp
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/news
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/games
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/man
|
2017-03-15 20:52:50 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/wwwrun
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/spool/clientmqueue
|
2017-03-16 15:25:57 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/spool/lpd
|
2017-03-15 20:52:50 +01:00
|
|
|
mkdir -p %{buildroot}/srv/ftp
|
2017-03-16 15:25:57 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/nobody
|
2017-02-15 15:49:13 +01:00
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf
|
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_sysusersdir}/system-user-daemon.conf
|
|
|
|
install -m 644 %{SOURCE5} %{buildroot}%{_sysusersdir}/system-user-man.conf
|
|
|
|
install -m 644 %{SOURCE6} %{buildroot}%{_sysusersdir}/system-user-news.conf
|
|
|
|
install -m 644 %{SOURCE7} %{buildroot}%{_sysusersdir}/system-group-trusted.conf
|
|
|
|
install -m 644 %{SOURCE8} %{buildroot}%{_sysusersdir}/system-group-obsolete.conf
|
2017-03-11 09:35:23 +01:00
|
|
|
install -m 644 %{SOURCE9} %{buildroot}%{_sysusersdir}/system-group-hardware.conf
|
|
|
|
install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf
|
2017-03-15 20:52:50 +01:00
|
|
|
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
|
2017-03-16 15:25:57 +01:00
|
|
|
install -m 644 %{SOURCE14} %{buildroot}%{_sysusersdir}/system-user-lp.conf
|
|
|
|
install -m 644 %{SOURCE15} %{buildroot}%{_sysusersdir}/system-user-nobody.conf
|
2017-02-15 15:49:13 +01:00
|
|
|
|
|
|
|
%pre -n system-user-uucp -f uucp.pre
|
|
|
|
%pre -n system-user-games -f games.pre
|
|
|
|
%pre -n system-user-bin -f bin.pre
|
|
|
|
%pre -n system-user-daemon -f daemon.pre
|
|
|
|
%pre -n system-user-man -f man.pre
|
|
|
|
%pre -n system-user-news -f news.pre
|
|
|
|
%pre -n system-group-trusted -f trusted.pre
|
|
|
|
%pre -n system-group-obsolete -f obsolete.pre
|
2017-03-11 09:35:23 +01:00
|
|
|
%pre -n system-group-hardware -f hardware.pre
|
|
|
|
%pre -n system-group-wheel -f wheel.pre
|
2017-03-15 20:52:50 +01:00
|
|
|
%pre -n system-user-wwwrun -f wwwrun.pre
|
|
|
|
%pre -n system-user-mail -f mail.pre
|
|
|
|
%pre -n system-user-ftp -f ftp.pre
|
2017-03-16 15:25:57 +01:00
|
|
|
%pre -n system-user-lp -f lp.pre
|
|
|
|
%pre -n system-user-nobody -f nobody.pre
|
2017-02-15 15:49:13 +01:00
|
|
|
|
|
|
|
%files -n system-user-uucp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(0750,uucp,uucp) %{_sysconfdir}/uucp
|
|
|
|
%{_sysusersdir}/system-user-uucp.conf
|
|
|
|
|
|
|
|
%files -n system-user-games
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(0755,root,root) %{_localstatedir}/games
|
|
|
|
%{_sysusersdir}/system-user-games.conf
|
|
|
|
|
|
|
|
%files -n system-user-bin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysusersdir}/system-user-bin.conf
|
|
|
|
|
|
|
|
%files -n system-user-daemon
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysusersdir}/system-user-daemon.conf
|
|
|
|
|
|
|
|
%files -n system-user-man
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(0755,man,root) %{_localstatedir}/cache/man
|
|
|
|
%{_sysusersdir}/system-user-man.conf
|
|
|
|
|
|
|
|
%files -n system-user-news
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(0750,news,news) %{_sysconfdir}/news
|
|
|
|
%{_sysusersdir}/system-user-news.conf
|
|
|
|
|
|
|
|
%files -n system-group-trusted
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysusersdir}/system-group-trusted.conf
|
|
|
|
|
|
|
|
%files -n system-group-obsolete
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysusersdir}/system-group-obsolete.conf
|
|
|
|
|
2017-03-11 09:35:23 +01:00
|
|
|
%files -n system-group-hardware
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysusersdir}/system-group-hardware.conf
|
|
|
|
|
|
|
|
%files -n system-group-wheel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysusersdir}/system-group-wheel.conf
|
|
|
|
|
2017-03-15 20:52:50 +01:00
|
|
|
%files -n system-user-wwwrun
|
|
|
|
%defattr(-,root,root)
|
2017-03-17 10:37:11 +01:00
|
|
|
%dir %attr(0755,wwwrun,root) %{_localstatedir}/lib/wwwrun
|
2017-03-15 20:52:50 +01:00
|
|
|
%{_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
|
|
|
|
|
2017-03-16 15:25:57 +01:00
|
|
|
%files -n system-user-lp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(0755,lp,lp) %{_localstatedir}/spool/lpd
|
|
|
|
%{_sysusersdir}/system-user-lp.conf
|
|
|
|
|
|
|
|
%files -n system-user-nobody
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(0755,nobody,root) %{_localstatedir}/lib/nobody
|
|
|
|
%{_sysusersdir}/system-user-nobody.conf
|
|
|
|
|
2017-02-15 15:49:13 +01:00
|
|
|
%changelog
|