]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - system-release/system-release.nm
Move all packages to root.
[people/ms/ipfire-3.x.git] / system-release / system-release.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 # Make the configuration of your distribution right here.
7 DISTRO_NAME = IPFire
8 DISTRO_SNAME = ipfire
9 DISTRO_VERSION = 3.0-alpha2
10 DISTRO_RELEASE = 3
11 DISTRO_SLOGAN = Gluttony
12 DISTRO_COLOR = 0;31
13
14 name = %{DISTRO_SNAME}-release
15 version = %{DISTRO_VERSION}
16 release = 1
17 epoch = 3
18 arch = noarch
19
20 maintainer = Michael Tremer <michael.tremer@ipfire.org>
21 groups = Base Build System/Base
22 url = http://www.ipfire.org
23 license =
24 summary = %{DISTRO_NAME} release files.
25
26 description
27 %{DISTRO_NAME} release files such as pakfire configs and various /etc/ \
28 files that define the release.
29 end
30
31 # No tarball.
32 sources =
33
34 build
35 prepare = # Do nothing
36 build = # Do nothing
37
38 install
39 mkdir -pv %{BUILDROOT}/etc
40
41 echo "%{DISTRO_NAME} v%{DISTRO_VERSION} for %{DISTRO_ARCH} - %{DISTRO_SLOGAN} (\l)" \
42 > %{BUILDROOT}/etc/issue
43 echo "===============================" >> %{BUILDROOT}/etc/issue
44 echo "\n running on \s \r \m" >> %{BUILDROOT}/etc/issue
45
46 echo "%{DISTRO_NAME} release %{DISTRO_VERSION} (%{DISTRO_SLOGAN})" \
47 > %{BUILDROOT}/etc/%{DISTRO_SNAME}-release
48 ln -svf %{DISTRO_SNAME}-release %{BUILDROOT}/etc/system-release
49
50 # Set a default hostname that is set until the user customizes that.
51 echo "%{DISTRO_SNAME}.localdomain" > %{BUILDROOT}/etc/hostname
52
53 # Create /etc/os-release.
54 echo "NAME=\"%{DISTRO_NAME}\"" >> %{BUILDROOT}/etc/os-release
55 echo "VERSION=\"%{DISTRO_VERSION}\"" >> %{BUILDROOT}/etc/os-release
56 echo "ID=%{DISTRO_SNAME}" >> %{BUILDROOT}/etc/os-release
57 echo "VERSION_ID=%{DISTRO_RELEASE}" >> %{BUILDROOT}/etc/os-release
58 echo "PRETTY_NAME=\"%{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_SLOGAN})\"" \
59 >> %{BUILDROOT}/etc/os-release
60 echo "ANSI_COLOR=%{DISTRO_COLOR}" >> %{BUILDROOT}/etc/os-release
61 end
62 end
63
64 packages
65 package %{name}
66 provides = system-release
67 obsoletes = system-release
68 end
69 end