1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 groups = Base Build System/Base
13 license = Public Domain
14 summary = A set of system configuration and setup files.
17 The setup package contains a set of important system configuration and
18 setup files, such as passwd, group, and profile.
25 DIR_APP = %{DIR_SOURCE}
40 mkdir -pv %{BUILDROOT}/etc/profile.d %{BUILDROOT}/var/log
42 for i in aliases bashrc exports filesystems group gshadow host.conf \
43 hosts hosts.allow hosts.deny inputrc motd passwd printcap \
44 profile protocols securetty services shadow shells; do \
45 cp -vf %{DIR_APP}/${i} %{BUILDROOT}/etc || exit 1; \
48 touch %{BUILDROOT}%{sysconfdir}/{environment,fstab}
49 chmod -v 0400 %{BUILDROOT}%{sysconfdir}/{,g}shadow
51 mkdir -pv %{BUILDROOT}%{sysconfdir}/sysctl.d
52 install -m 644 %{DIR_APP}/sysctl/printk.conf \
53 %{BUILDROOT}%{sysconfdir}/sysctl.d/printk.conf
54 install -m 644 %{DIR_APP}/sysctl/swappiness.conf \
55 %{BUILDROOT}%{sysconfdir}/sysctl.d/swappiness.conf
56 install -m 644 %{DIR_APP}/sysctl/kernel-hardening.conf \
57 %{BUILDROOT}%{sysconfdir}/sysctl.d/kernel-hardening.conf