]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/setup/setup.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / 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 = 1
9
10 groups = Base Build System/Base
11 url =
12 license = Public Domain
13 summary = A set of system configuration and setup files.
14
15 description
16 The setup package contains a set of important system configuration and
17 setup files, such as passwd, group, and profile.
18 end
19
20 # No tarball.
21 sources =
22
23 build
24 DIR_APP = %{DIR_SOURCE}
25
26 build
27 ./shadowconvert.sh
28 end
29
30 test
31 make check
32 end
33
34 install
35 mkdir -pv %{BUILDROOT}/etc/profile.d %{BUILDROOT}/var/log
36
37 for i in aliases bashrc exports filesystems group gshadow host.conf \
38 hosts hosts.allow hosts.deny inputrc motd passwd printcap \
39 profile securetty shadow shells; do \
40 cp -vf %{DIR_APP}/${i} %{BUILDROOT}/etc || exit 1; \
41 done
42
43 touch %{BUILDROOT}/etc/{environment,fstab} %{BUILDROOT}/var/log/lastlog
44 chmod -v 0400 %{BUILDROOT}/etc/{,g}shadow
45 end
46 end
47
48 packages
49 package %{name}
50 requires = iana-etc
51 end
52 end