%define daemon_id 6 Name: setup Version: 1.2.1 Release: 1mamba Summary: A set of system configuration and setup files Group: System/Configuration Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://git.openmamba.org/openmamba/setup Source0: http://gitlab.mambasoft.it/openmamba/setup.git/v%{version}/setup-%{version}.tar.bz2 License: GPL BuildArch: noarch ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: coreutils Requires(post):sed Requires(post):glibc Requires(post):/usr/sbin/useradd Requires: filesystem >= 2.3 Requires: /bin/hostname Requires: iana-etc 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 %build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall dircolors -p > %{buildroot}%{_sysconfdir}/dircolors %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 : %posttrans if [ ! -e /etc/resolv.conf -a -e /etc/resolv.conf.rpmsave ]; then mv /etc/resolv.conf{.rpmsave,} fi : %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/bashrc %config(noreplace) %{_sysconfdir}/csh.login %config(noreplace) %{_sysconfdir}/csh.cshrc %config %{_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) %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 %doc AUTHORS ChangeLog %changelog * Tue Apr 20 2021 Silvan Calarco 1.2.1-1mamba - update to 1.2.1 * Mon Mar 08 2021 Silvan Calarco 1.2.0-2mamba - still require /bin/hostname instead of /usr/bin/hostname * Sun Mar 07 2021 Silvan Calarco 1.2.0-1mamba - update to 1.2.0 (remove /bin from PATH) - require filesystem >= 2.3 * Sat Dec 26 2020 Silvan Calarco 1.1.29-2mamba - use dircolors -p to create /etc/dircolors * Fri Oct 11 2019 Silvan Calarco 1.1.29-1mamba - update to 1.1.29 * Fri Mar 13 2015 Silvan Calarco 1.1.28-2mamba - move in a separate package and require iana-etc * Sun Jun 29 2014 Silvan Calarco 1.1.28-1mamba - update to 1.1.28 * 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) * Wed 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 * Tue Apr 29 2003 Silvan Calarco 1.0.0-4qilnx - added profile.d/alias.sh with system aliases * Tue Apr 29 2003 Silvan Calarco 1.0.0-3qilnx - added file modules.conf - little changes in files * Wed Apr 23 2003 Silvan Calarco 1.0.0-2qilnx - added files /etc/hosts and /etc/fstab * Tue Apr 15 2003 Silvan Calarco 1.0.0-1qilnx - first build based on Mandrake setup 2.3.0