]> git.ipfire.org Git - ipfire-3.x.git/blame - setup/setup.nm
setup: Bump release version
[ipfire-3.x.git] / setup / setup.nm
CommitLineData
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
6name = setup
7version = 3.0
de4297d1 8release = 19
03bb3da9 9
802ea3af
MT
10groups = Base Build System/Base
11url =
12license = Public Domain
13summary = A set of system configuration and setup files.
03bb3da9 14
802ea3af 15description
03bb3da9
MT
16 The setup package contains a set of important system configuration and
17 setup files, such as passwd, group, and profile.
802ea3af
MT
18end
19
20# No tarball.
21sources =
22
23build
5cd803df
MT
24 arches = noarch
25
802ea3af 26 DIR_APP = %{DIR_SOURCE}
03bb3da9 27
c5ceffad
MT
28 requires
29 perl
30 end
31
802ea3af 32 build
bf1b2ee1 33 bash ./shadowconvert.sh
802ea3af 34 end
03bb3da9 35
802ea3af
MT
36 test
37 make check
38 end
03bb3da9 39
802ea3af 40 install
5ddd2088 41 # Create missing folders.
802ea3af 42 mkdir -pv %{BUILDROOT}/etc/profile.d %{BUILDROOT}/var/log
03bb3da9 43
5ddd2088
SS
44 # Install our config files.
45 for i in aliases bashrc ethertypes exports filesystems group gshadow \
46 host.conf hosts hosts.allow hosts.deny inputrc motd passwd \
47 printcap profile protocols securetty services shadow shells; do \
802ea3af
MT
48 cp -vf %{DIR_APP}/${i} %{BUILDROOT}/etc || exit 1; \
49 done
03bb3da9 50
5ddd2088
SS
51 # Create envvar overwrite file for bash.
52 echo "#Add any required envvar overrides to this file, \
53 it is sourced from /etc/profile" > %{BUILDROOT}%{sysconfdir}/profile.d/sh.local
54
515b7d86 55 touch %{BUILDROOT}%{sysconfdir}/fstab
21b0276e
MT
56 chmod -v 0400 %{BUILDROOT}%{sysconfdir}/{,g}shadow
57
5ddd2088
SS
58 # Create empty environment config file.
59 touch %{BUILDROOT}%{sysconfdir}/environment
60 chmod 0644 %{BUILDROOT}%{sysconfdir}/environment
61
62 # Create MOTD (message of the day) folder layout.
63 mkdir -p %{BUILDROOT}/etc/motd.d
5ddd2088
SS
64 mkdir -p %{BUILDROOT}/usr/lib/motd.d
65 touch %{BUILDROOT}/usr/lib/motd
66
67 # Create a tmpfiles file, needed for files in /run
68 mkdir -p %{BUILDROOT}%{tmpfilesdir}
69 echo "f /run/motd 0644 root root -" > %{BUILDROOT}%{tmpfilesdir}/%{name}.conf
70 echo "d /run/motd.d 0755 root root -" >> %{BUILDROOT}%{tmpfilesdir}/%{name}.conf
71 chmod 0644 %{BUILDROOT}%{tmpfilesdir}/%{name}.conf
72
21b0276e 73 mkdir -pv %{BUILDROOT}%{sysconfdir}/sysctl.d
594ca851
MT
74 install -m 644 %{DIR_APP}/sysctl/printk.conf \
75 %{BUILDROOT}%{sysconfdir}/sysctl.d/printk.conf
21b0276e
MT
76 install -m 644 %{DIR_APP}/sysctl/swappiness.conf \
77 %{BUILDROOT}%{sysconfdir}/sysctl.d/swappiness.conf
5c62e473
PM
78 install -m 644 %{DIR_APP}/sysctl/kernel-hardening.conf \
79 %{BUILDROOT}%{sysconfdir}/sysctl.d/kernel-hardening.conf
802ea3af
MT
80 end
81end
03bb3da9 82
802ea3af
MT
83packages
84 package %{name}
53938620
MT
85 conflicts
86 filesystem < 002
87 end
88
c5ceffad
MT
89 obsoletes
90 iana-etc <= 2.30
91 end
92
93 provides
94 iana-etc = 2.31
95 end
96
0d1a903f
MT
97 configfiles
98 /etc/aliases
5ddd2088
SS
99 /etc/environment
100 /etc/ethertypes
0d1a903f
MT
101 /etc/exports
102 /etc/fstab
103 /etc/group
104 /etc/gshadow
105 /etc/host.conf
106 /etc/hosts
107 /etc/hosts.allow
108 /etc/hosts.deny
109 /etc/motd
110 /etc/passwd
111 /etc/printcap
c5ceffad
MT
112 /etc/protocols
113 /etc/services
0d1a903f
MT
114 /etc/shadow
115 /etc/shells
116 end
802ea3af
MT
117 end
118end