1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
6 # Make the configuration of your distribution right here.
9 DISTRO_VERSION = 3.0-alpha2
11 DISTRO_SLOGAN = Gluttony
14 name = %{DISTRO_SNAME}-release
15 version = %{DISTRO_VERSION}
20 maintainer = Michael Tremer <michael.tremer@ipfire.org>
21 groups = Base Build System/Base
22 url = http://www.ipfire.org
24 summary = %{DISTRO_NAME} release files.
27 %{DISTRO_NAME} release files such as pakfire configs and various /etc/ \
28 files that define the release.
35 prepare = # Do nothing
39 mkdir -pv %{BUILDROOT}/etc
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
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
50 # Set a default hostname that is set until the user customizes that.
51 echo "%{DISTRO_SNAME}.localdomain" > %{BUILDROOT}/etc/hostname
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
66 provides = system-release