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