]> git.ipfire.org Git - ipfire-3.x.git/blob - setup/setup.nm
sysctl.conf: Turn on hard- and symlink protection
[ipfire-3.x.git] / setup / setup.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = setup
7 version = 3.0
8 release = 15
9 arch = noarch
10
11 groups = Base Build System/Base
12 url =
13 license = Public Domain
14 summary = A set of system configuration and setup files.
15
16 description
17 The setup package contains a set of important system configuration and
18 setup files, such as passwd, group, and profile.
19 end
20
21 # No tarball.
22 sources =
23
24 build
25 DIR_APP = %{DIR_SOURCE}
26
27 requires
28 perl
29 end
30
31 build
32 ./shadowconvert.sh
33 end
34
35 test
36 make check
37 end
38
39 install
40 mkdir -pv %{BUILDROOT}/etc/profile.d %{BUILDROOT}/var/log
41
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; \
46 done
47
48 touch %{BUILDROOT}%{sysconfdir}/fstab
49 chmod -v 0400 %{BUILDROOT}%{sysconfdir}/{,g}shadow
50
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
58 end
59 end
60
61 packages
62 package %{name}
63 conflicts
64 filesystem < 002
65 end
66
67 obsoletes
68 iana-etc <= 2.30
69 end
70
71 provides
72 iana-etc = 2.31
73 end
74
75 configfiles
76 /etc/aliases
77 /etc/exports
78 /etc/fstab
79 /etc/group
80 /etc/gshadow
81 /etc/host.conf
82 /etc/hosts
83 /etc/hosts.allow
84 /etc/hosts.deny
85 /etc/motd
86 /etc/passwd
87 /etc/printcap
88 /etc/protocols
89 /etc/services
90 /etc/shadow
91 /etc/shells
92 end
93 end
94 end