]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - pkgs/system-release/system-release.nm
avahi: Update to 0.6.30.
[people/pmueller/ipfire-3.x.git] / pkgs / system-release / system-release.nm
CommitLineData
9ad08da3
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
466fab1f
MT
27# Make the configuration of your distribution right here.
28DISTRO_NAME = IPFire
29DISTRO_SNAME = ipfire
30DISTRO_VERSION = 3.0-alpha2
31DISTRO_RELEASE = 3
32DISTRO_SLOGAN = Gluttony
33DISTRO_COLOR = 0;31
34
35PKG_NAME = $(DISTRO_SNAME)-release
9ad08da3 36PKG_VER = $(DISTRO_VERSION)
466fab1f
MT
37PKG_REL = 1
38PKG_EPOCH = 3
f2b16179 39PKG_ARCH = noarch
9ad08da3
MT
40
41PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
b42a752b 42PKG_GROUPS = Base System/Base
9ad08da3
MT
43PKG_URL = http://www.ipfire.org
44PKG_LICENSE =
45PKG_SUMMARY = $(DISTRO_NAME) release files.
46
466fab1f
MT
47# In general to this package is referred as "system-release".
48PKG_PROVIDES += system-release
69be7e73 49PKG_OBSOLETES = system-release
567ff764 50
9ad08da3
MT
51define PKG_DESCRIPTION
52 $(DISTRO_NAME) release files such as pakfire configs and various /etc/ \
466fab1f 53 files that define the release.
9ad08da3
MT
54endef
55
56PKG_TARBALL =
57
69be7e73
MT
58PKG_PACKAGES = $(PKG_NAME)
59
9ad08da3
MT
60STAGE_PREPARE = # Do nothing
61STAGE_BUILD = # Do nothing
62
63define STAGE_INSTALL
64 -mkdir -pv $(BUILDROOT)/etc
65
567ff764 66 echo "$(DISTRO_NAME) v$(DISTRO_VERSION) for $(DISTRO_ARCH) - $(DISTRO_SLOGAN) (\l)" \
9ad08da3
MT
67 > $(BUILDROOT)/etc/issue
68 echo "===============================" >> $(BUILDROOT)/etc/issue
69 echo "\n running on \s \r \m" >> $(BUILDROOT)/etc/issue
70
7ac83f1a 71 echo "$(DISTRO_NAME) release $(DISTRO_VERSION) ($(DISTRO_SLOGAN))" \
9ad08da3
MT
72 > $(BUILDROOT)/etc/$(DISTRO_SNAME)-release
73 ln -svf $(DISTRO_SNAME)-release $(BUILDROOT)/etc/system-release
466fab1f
MT
74
75 # Set a default hostname that is set until the user customizes that.
76 echo "$(DISTRO_SNAME).localdomain" > $(BUILDROOT)/etc/hostname
77
78 # Create /etc/os-release.
79 echo "NAME=\"$(DISTRO_NAME)\"" >> $(BUILDROOT)/etc/os-release
80 echo "VERSION=\"$(DISTRO_VERSION)\"" >> $(BUILDROOT)/etc/os-release
81 echo "ID=$(DISTRO_SNAME)" >> $(BUILDROOT)/etc/os-release
82 echo "VERSION_ID=$(DISTRO_RELEASE)" >> $(BUILDROOT)/etc/os-release
83 echo "PRETTY_NAME=\"$(DISTRO_NAME) $(DISTRO_VERSION) ($(DISTRO_SLOGAN))\"" \
84 >> $(BUILDROOT)/etc/os-release
85 echo "ANSI_COLOR=$(DISTRO_COLOR)" >> $(BUILDROOT)/etc/os-release
9ad08da3 86endef