]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
466fab1f MT |
27 | # Make the configuration of your distribution right here. |
28 | DISTRO_NAME = IPFire | |
29 | DISTRO_SNAME = ipfire | |
30 | DISTRO_VERSION = 3.0-alpha2 | |
31 | DISTRO_RELEASE = 3 | |
32 | DISTRO_SLOGAN = Gluttony | |
33 | DISTRO_COLOR = 0;31 | |
34 | ||
35 | PKG_NAME = $(DISTRO_SNAME)-release | |
9ad08da3 | 36 | PKG_VER = $(DISTRO_VERSION) |
466fab1f MT |
37 | PKG_REL = 1 |
38 | PKG_EPOCH = 3 | |
f2b16179 | 39 | PKG_ARCH = noarch |
9ad08da3 MT |
40 | |
41 | PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org> | |
b42a752b | 42 | PKG_GROUPS = Base System/Base |
9ad08da3 MT |
43 | PKG_URL = http://www.ipfire.org |
44 | PKG_LICENSE = | |
45 | PKG_SUMMARY = $(DISTRO_NAME) release files. | |
46 | ||
466fab1f MT |
47 | # In general to this package is referred as "system-release". |
48 | PKG_PROVIDES += system-release | |
69be7e73 | 49 | PKG_OBSOLETES = system-release |
567ff764 | 50 | |
9ad08da3 MT |
51 | define PKG_DESCRIPTION |
52 | $(DISTRO_NAME) release files such as pakfire configs and various /etc/ \ | |
466fab1f | 53 | files that define the release. |
9ad08da3 MT |
54 | endef |
55 | ||
56 | PKG_TARBALL = | |
57 | ||
69be7e73 MT |
58 | PKG_PACKAGES = $(PKG_NAME) |
59 | ||
9ad08da3 MT |
60 | STAGE_PREPARE = # Do nothing |
61 | STAGE_BUILD = # Do nothing | |
62 | ||
63 | define 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 | 86 | endef |