From 9742ab1be6739c65ca130661b99c09abd9adaf75 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:45:24 +0100 Subject: [PATCH] update to 1.1.27 [release 1.1.27-1mamba;Thu May 02 2013] --- README.md | 3 + setup-additional-services | 4 + setup.spec | 289 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 296 insertions(+) create mode 100644 setup-additional-services create mode 100644 setup.spec diff --git a/README.md b/README.md index 093592b..1e58be5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # setup +The setup package contains a set of very important system configuration and setup files, such as passwd, group, profile and more. +You should install the setup package because you will find yourself using its many features for system administration. + diff --git a/setup-additional-services b/setup-additional-services new file mode 100644 index 0000000..ea36e57 --- /dev/null +++ b/setup-additional-services @@ -0,0 +1,4 @@ +# +# The remaining port numbers are not allocated by IANA +# +swat 901/tcp diff --git a/setup.spec b/setup.spec new file mode 100644 index 0000000..069676f --- /dev/null +++ b/setup.spec @@ -0,0 +1,289 @@ +%define ianaetcver 2.20 +%define daemon_id 6 + +Name: setup +Version: 1.1.27 +Release: 1mamba +Summary: A set of system configuration and setup files +Group: System/Configuration +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.openmamba.org/packages.html +Source0: setup-%{version}.tar.bz2 +Source1: http://www.sethwklein.net/projects/iana-etc/downloads/iana-etc-%{ianaetcver}.tar.bz2 +Source2: setup-additional-services +License: GPL +BuildArch: noarch +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires(post):sed +Requires(post):glibc +Requires(post):/usr/sbin/useradd +Requires: /bin/hostname +Provides: /etc/profile.d +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The setup package contains a set of very important system configuration and setup files, such as passwd, group, profile and more. +You should install the setup package because you will find yourself using its many features for system administration. + +%prep +%setup -q -a1 + +%build +make -C iana-etc-%{ianaetcver} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +cat %{S:2} >> iana-etc-%{ianaetcver}/services +install -D -m644 iana-etc-%{ianaetcver}/{protocols,services} \ + %{buildroot}%{_sysconfdir}/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%pre +if [ $1 -ge 1 ]; then + [ -e %{_sysconfdir}/modprobe.conf ] && { + [ -e %{_sysconfdir}/modprobe.d ] || mkdir -p %{_sysconfdir}/modprobe.d + mv %{_sysconfdir}/modprobe.conf %{_sysconfdir}/modprobe.d/modprobe.conf + sed -i "/^include.*/d" %{_sysconfdir}/modprobe.d/modprobe.conf + } +fi +: + +%post +if [ $1 -ge 1 ]; then + if [ ! -e /etc/ldap.conf ]; then + [ -e /etc/ldap.conf.rpmsave ] && + cp /etc/ldap.conf.rpmsave /etc/ldap.conf + fi + # fix duplicated daemon entry + sed -i /daemon:x:16:/d /etc/group /etc/passwd + sed -i "s|^daemon:x:6:$|daemon:x:6:root,bin,daemon|" /etc/group + getent passwd daemon &>/dev/null || { + /usr/sbin/useradd daemon -u %{daemon_id} -d /sbin -s /bin/false -g daemon -c daemon + } + touch %{_sysconfdir}/crypttab +fi +: + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/bashrc +%config(noreplace) %{_sysconfdir}/csh.login +%config(noreplace) %{_sysconfdir}/csh.cshrc +%config(noreplace) %{_sysconfdir}/dircolors +%config(noreplace) %{_sysconfdir}/filesystems +%config(noreplace) %{_sysconfdir}/fstab +%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/group +%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts +%config %{_sysconfdir}/inputrc +%config(noreplace) %{_sysconfdir}/host.conf +%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts.allow +%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts.deny +%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/motd +%config(noreplace) %{_sysconfdir}/nsswitch.conf +%config(noreplace) %{_sysconfdir}/passwd +%config(noreplace) %{_sysconfdir}/printcap +%config %{_sysconfdir}/profile +%config(noreplace) %{_sysconfdir}/resolv.conf +%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/shells +%attr(0600,root,root) %config(missingok,noreplace) %{_sysconfdir}/securetty +%dir %{_sysconfdir}/profile.d +%config(noreplace) %{_sysconfdir}/profile.d/*.csh +%config(noreplace) %{_sysconfdir}/profile.d/*.sh +%config %{_sysconfdir}/protocols +%config %{_sysconfdir}/services +%doc AUTHORS ChangeLog + +%changelog +* Thu May 02 2013 Silvan Calarco 1.1.27-1mamba +- update to 1.1.27 + +* Wed Apr 24 2013 Silvan Calarco 1.1.26-1mamba +- update to 1.1.26 + +* Wed Nov 21 2012 Silvan Calarco 1.1.25-1mamba +- update to 1.1.25 + +* Mon Sep 03 2012 Silvan Calarco 1.1.24-3mamba +- touch /etc/crypttab file to fix a missing file error by udisks2 + +* Thu Jul 26 2012 Silvan Calarco 1.1.24-2mamba +- add explicit provide for /etc/profile.d to fix smart weirdness about removing lsb-core + +* Wed Jul 25 2012 Silvan Calarco 1.1.24-1mamba +- update to 1.1.24 + +* Sun Oct 30 2011 Silvan Calarco 1.1.23-1mamba +- update to 1.1.23 + +* Wed Oct 26 2011 Silvan Calarco 1.1.22-2mamba +- added requirement for /bin/hostname + +* Fri Oct 21 2011 Silvan Calarco 1.1.22-1mamba +- update to 1.1.22 + +* Tue Jun 07 2011 Silvan Calarco 1.1.21-1mamba +- update to 1.1.21 + +* Wed May 04 2011 Silvan Calarco 1.1.20-2mamba +- added post requirements for sed, glibc and /usr/sbin/useradd + +* Mon Jun 14 2010 Silvan Calarco 1.1.20-1mamba +- update to 1.1.20 + +* Fri Oct 23 2009 Silvan Calarco 1.1.19-1mamba +- update to 1.1.19 + +* Mon Aug 10 2009 Silvan Calarco 1.1.18-1mamba +- update to 1.1.18 +- pre script: move deprecated /etc/modprobe.conf to /etc/modprobe.d/modprobe.conf + +* Fri Jun 05 2009 Silvan Calarco 1.1.17-1mamba +- update to 1.1.17 + +* Mon Jun 23 2008 Silvan Calarco 1.1.16-2mamba +- fixed daemon group creation + +* Sun Jun 22 2008 Silvan Calarco 1.1.16-1mamba +- update to 1.1.16 + +* Tue Jan 15 2008 Silvan Calarco 1.1.15-1mamba +- update to 1.1.15 + +* Wed Jan 02 2008 Aleph0 1.1.14-1mamba +- update to 1.1.14 +- add the file AUTHORS + +* Mon Sep 24 2007 Silvan Calarco 1.1.13-2mamba +- add setup-additional-services source file and append to /etc/services +- add swat service to setup-additional-services + +* Mon May 14 2007 Aleph0 1.1.13-1mamba +- update to 1.1.13 + +* Wed Apr 18 2007 Davide Madrisan 1.1.12-1mamba +- update to version 1.1.12 by autospec + +* Thu Apr 05 2007 Davide Madrisan 1.1.11-1mamba +- update to version 1.1.11 by autospec + +* Sun Mar 25 2007 Davide Madrisan 1.1.10-1qilnx +- update to version 1.1.10 by autospec +- change permissions for /etc/securetty (0600 instead of 0644) + +* Fri Mar 23 2007 Davide Madrisan 1.1.9-1qilnx +- update to version 1.1.9 by autospec + +* Tue Jan 30 2007 Davide Madrisan 1.1.8-1qilnx +- update to version 1.1.8 by autospec +- automatically build /etc/protocols and /etc/services files + +* Tue Feb 14 2006 Silvan Calarco 1.1.7-1qilnx +- update to version 1.1.7 by autospec +- removed old modules.conf file + +* Tue Feb 14 2006 Silvan Calarco 1.1.6-1qilnx +- update to version 1.1.6 by autospec +- added sysadmin group + +* Mon Jan 30 2006 Silvan Calarco 1.1.5-1qilnx +- update to version 1.1.5 by autospec +- added default empty fstab file + +* Mon Dec 19 2005 Silvan Calarco 1.1.4-2qilnx +- add /etc/ldap.conf as ghost file (not to rename it to ldap.conf.rpmsave) + +* Thu Dec 15 2005 Silvan Calarco 1.1.4-1qilnx +- /etc/ldap.conf moved to libnss_ldap + +* Thu Sep 29 2005 Stefano Cotta Ramusino 1.1.3-2qilnx +- architecture changed to noarch + +* Wed Aug 17 2005 Silvan Calarco 1.1.3-1qilnx +- remove old YUM exported variables +- /etc/profile: use dircolor to load ls color settings on boot + +* Thu Mar 03 2005 Silvan Calarco 1.1.2-1qilnx +- removed files /etc/exports and /etc/shadow + +* Thu Feb 17 2005 Silvan Calarco 1.1.1-3qilnx +- fixed an error in previous fix + +* Thu Feb 17 2005 Silvan Calarco 1.1.1-2qilnx +- modified permissions of /etc/exports + +* Wed Feb 16 2005 Silvan Calarco 1.1.1-1qilnx +- added default group "filesharing" +- added /etc/shadow empty file with read-allowed group "shadow" + +* Wed Aug 18 2004 Silvan Calarco 1.1-1qilnx +- changed version number for QiLinux 1.1 +- added modprobe.conf for Kernel 2.6 with autoloading for sr_mod for cdroms + +* Mon Aug 09 2004 Silvan Calarco 1.0.1-19qilnx +- /etc/localtime link creation removed (will by set by boot time configuration tool) +- added default user group called "users" + +* Thu Jul 22 2004 Silvan Calarco 1.0.1-18qilnx +- added /etc/profile support for release file (load YUM variables) + +* Tue Apr 27 2004 Silvan Calarco 1.0.1-17qilnx +- /etc/profile modified for proxy configuration +- mtab symlink removed + +* Fri Mar 05 2004 Davide Madrisan 1.0.1-16qilnx +- added interactive aliases for `rm' and `mv' in `profile.d/aliases.h' +- added missing symbolic lynk `mtab' + +* Thu Feb 05 2004 Silvan Calarco 1.0.1-15qilnx +- added a needed empty line at the end of /etc/resolv.conf + +* Mon Nov 24 2003 Silvan Calarco 1.0.1-14qilnx +- enabled ldap.conf option pam_password exop + +* Tue Oct 14 2003 Silvan Calarco 1.0.1-13qilnx +- cdwriter group renamed to cdrecording (k3b's default group name) + +* Mon Jul 23 2003 Silvan Calarco 1.0.1-12qilnx +- added LANG variable export in /etc/profile + +* Mon Jul 07 2003 Silvan Calarco 1.0.1-11qilnx +- added ldap.conf file (removed from pam_ldap library package) + +* Mon Jun 30 2003 Silvan Calarco 1.0.1-10qilnx +- added ldap support in nsswitch.conf file + +* Mon Jun 23 2003 Silvan Calarco 1.0.1-9qilnx +- added /etc/profile.d/env.sh (sets environment variables) +- removed /etc/fstab + +* Tue May 20 2003 Silvan Calarco 1.0.1-8qilnx +- changed default namserver from localhost to 127.0.0.1 (Squid problem) + +* Fri May 16 2003 Silvan Calarco 1.0.1-7qilnx +- added /etc/resolv.conf with nameserver localhost (named) + +* Fri May 16 2003 Silvan Calarco 1.0.1-6qilnx +- added /etc/nsswitch.conf + +* Tue May 06 2003 Silvan Calarco 1.0.1-5qilnx +- added localtime symlink + +* Thu Apr 29 2003 Silvan Calarco 1.0.0-4qilnx +- added profile.d/alias.sh with system aliases + +* Thu Apr 29 2003 Silvan Calarco 1.0.0-3qilnx +- added file modules.conf +- little changes in files + +* Thu Apr 23 2003 Silvan Calarco 1.0.0-2qilnx +- added files /etc/hosts and /etc/fstab + +* Thu Apr 15 2003 Silvan Calarco 1.0.0-1qilnx +- first build based on Mandrake setup 2.3.0