]>
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 | ||
27 | PKG_NAME = system-release | |
28 | PKG_VER = $(DISTRO_VERSION) | |
d0ed853a | 29 | PKG_REL = 2 |
567ff764 | 30 | PKG_EPOCH = 1 |
f2b16179 | 31 | PKG_ARCH = noarch |
9ad08da3 MT |
32 | |
33 | PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org> | |
b42a752b | 34 | PKG_GROUPS = Base System/Base |
9ad08da3 MT |
35 | PKG_URL = http://www.ipfire.org |
36 | PKG_LICENSE = | |
37 | PKG_SUMMARY = $(DISTRO_NAME) release files. | |
38 | ||
567ff764 MT |
39 | PKG_PROVIDES += $(DISTRO_SNAME)-release |
40 | ||
9ad08da3 MT |
41 | define PKG_DESCRIPTION |
42 | $(DISTRO_NAME) release files such as pakfire configs and various /etc/ \ | |
43 | files that define the release. | |
44 | endef | |
45 | ||
46 | PKG_TARBALL = | |
47 | ||
9ad08da3 MT |
48 | STAGE_PREPARE = # Do nothing |
49 | STAGE_BUILD = # Do nothing | |
50 | ||
51 | define STAGE_INSTALL | |
52 | -mkdir -pv $(BUILDROOT)/etc | |
53 | ||
567ff764 | 54 | echo "$(DISTRO_NAME) v$(DISTRO_VERSION) for $(DISTRO_ARCH) - $(DISTRO_SLOGAN) (\l)" \ |
9ad08da3 MT |
55 | > $(BUILDROOT)/etc/issue |
56 | echo "===============================" >> $(BUILDROOT)/etc/issue | |
57 | echo "\n running on \s \r \m" >> $(BUILDROOT)/etc/issue | |
58 | ||
7ac83f1a | 59 | echo "$(DISTRO_NAME) release $(DISTRO_VERSION) ($(DISTRO_SLOGAN))" \ |
9ad08da3 MT |
60 | > $(BUILDROOT)/etc/$(DISTRO_SNAME)-release |
61 | ln -svf $(DISTRO_SNAME)-release $(BUILDROOT)/etc/system-release | |
62 | endef |