]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - setup/setup.nm
kernel: update to 4.12.10
[people/arne_f/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 = 9
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}/{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/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 end
57 end
58
59 packages
60 package %{name}
61 conflicts
62 filesystem < 002
63 end
64
65 obsoletes
66 iana-etc <= 2.30
67 end
68
69 provides
70 iana-etc = 2.31
71 end
72
73 configfiles
74 /etc/aliases
75 /etc/exports
76 /etc/fstab
77 /etc/group
78 /etc/gshadow
79 /etc/host.conf
80 /etc/hosts
81 /etc/hosts.allow
82 /etc/hosts.deny
83 /etc/motd
84 /etc/passwd
85 /etc/printcap
86 /etc/protocols
87 /etc/services
88 /etc/shadow
89 /etc/shells
90 end
91 end
92 end