]>
Commit | Line | Data |
---|---|---|
03bb3da9 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
03bb3da9 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = setup |
7 | version = 3.0 | |
5c62e473 | 8 | release = 11 |
08dba517 | 9 | arch = noarch |
03bb3da9 | 10 | |
802ea3af MT |
11 | groups = Base Build System/Base |
12 | url = | |
13 | license = Public Domain | |
14 | summary = A set of system configuration and setup files. | |
03bb3da9 | 15 | |
802ea3af | 16 | description |
03bb3da9 MT |
17 | The setup package contains a set of important system configuration and |
18 | setup files, such as passwd, group, and profile. | |
802ea3af MT |
19 | end |
20 | ||
21 | # No tarball. | |
22 | sources = | |
23 | ||
24 | build | |
25 | DIR_APP = %{DIR_SOURCE} | |
03bb3da9 | 26 | |
c5ceffad MT |
27 | requires |
28 | perl | |
29 | end | |
30 | ||
802ea3af MT |
31 | build |
32 | ./shadowconvert.sh | |
33 | end | |
03bb3da9 | 34 | |
802ea3af MT |
35 | test |
36 | make check | |
37 | end | |
03bb3da9 | 38 | |
802ea3af MT |
39 | install |
40 | mkdir -pv %{BUILDROOT}/etc/profile.d %{BUILDROOT}/var/log | |
03bb3da9 | 41 | |
802ea3af MT |
42 | for i in aliases bashrc exports filesystems group gshadow host.conf \ |
43 | hosts hosts.allow hosts.deny inputrc motd passwd printcap \ | |
c5ceffad | 44 | profile protocols securetty services shadow shells; do \ |
802ea3af MT |
45 | cp -vf %{DIR_APP}/${i} %{BUILDROOT}/etc || exit 1; \ |
46 | done | |
03bb3da9 | 47 | |
21b0276e MT |
48 | touch %{BUILDROOT}%{sysconfdir}/{environment,fstab} |
49 | chmod -v 0400 %{BUILDROOT}%{sysconfdir}/{,g}shadow | |
50 | ||
51 | mkdir -pv %{BUILDROOT}%{sysconfdir}/sysctl.d | |
594ca851 MT |
52 | install -m 644 %{DIR_APP}/sysctl/printk.conf \ |
53 | %{BUILDROOT}%{sysconfdir}/sysctl.d/printk.conf | |
21b0276e MT |
54 | install -m 644 %{DIR_APP}/sysctl/swappiness.conf \ |
55 | %{BUILDROOT}%{sysconfdir}/sysctl.d/swappiness.conf | |
5c62e473 PM |
56 | install -m 644 %{DIR_APP}/sysctl/kernel-hardening.conf \ |
57 | %{BUILDROOT}%{sysconfdir}/sysctl.d/kernel-hardening.conf | |
802ea3af MT |
58 | end |
59 | end | |
03bb3da9 | 60 | |
802ea3af MT |
61 | packages |
62 | package %{name} | |
53938620 MT |
63 | conflicts |
64 | filesystem < 002 | |
65 | end | |
66 | ||
c5ceffad MT |
67 | obsoletes |
68 | iana-etc <= 2.30 | |
69 | end | |
70 | ||
71 | provides | |
72 | iana-etc = 2.31 | |
73 | end | |
74 | ||
0d1a903f MT |
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 | |
c5ceffad MT |
88 | /etc/protocols |
89 | /etc/services | |
0d1a903f MT |
90 | /etc/shadow |
91 | /etc/shells | |
92 | end | |
802ea3af MT |
93 | end |
94 | end |