]>
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 | |
21b0276e | 8 | release = 8 |
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 | |
52 | install -m 644 %{DIR_APP}/sysctl/swappiness.conf \ | |
53 | %{BUILDROOT}%{sysconfdir}/sysctl.d/swappiness.conf | |
802ea3af MT |
54 | end |
55 | end | |
03bb3da9 | 56 | |
802ea3af MT |
57 | packages |
58 | package %{name} | |
53938620 MT |
59 | conflicts |
60 | filesystem < 002 | |
61 | end | |
62 | ||
c5ceffad MT |
63 | obsoletes |
64 | iana-etc <= 2.30 | |
65 | end | |
66 | ||
67 | provides | |
68 | iana-etc = 2.31 | |
69 | end | |
70 | ||
0d1a903f MT |
71 | configfiles |
72 | /etc/aliases | |
73 | /etc/exports | |
74 | /etc/fstab | |
75 | /etc/group | |
76 | /etc/gshadow | |
77 | /etc/host.conf | |
78 | /etc/hosts | |
79 | /etc/hosts.allow | |
80 | /etc/hosts.deny | |
81 | /etc/motd | |
82 | /etc/passwd | |
83 | /etc/printcap | |
c5ceffad MT |
84 | /etc/protocols |
85 | /etc/services | |
0d1a903f MT |
86 | /etc/shadow |
87 | /etc/shells | |
88 | end | |
802ea3af MT |
89 | end |
90 | end |