Contents of /branches/R11-unstable/core/mage-release/mage-release-R11-r3.smage2
Parent Directory | Revision Log
Revision 32140 -
(show annotations)
(download)
Mon Apr 29 11:43:34 2019 UTC (5 years, 5 months ago) by niro
File size: 1561 byte(s)
Mon Apr 29 11:43:34 2019 UTC (5 years, 5 months ago) by niro
File size: 1561 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="mage-release" |
4 | PVER="R11" |
5 | PBUILD="r3" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Release version files." |
10 | HOMEPAGE="http://magellan-linux.net/" |
11 | |
12 | DEPEND="" |
13 | |
14 | sminclude mtools |
15 | |
16 | src_install() |
17 | { |
18 | cd ${SRCDIR} |
19 | |
20 | local MCONFIG |
21 | local distri |
22 | |
23 | # CODENAME comes from distribution file of the smagetree |
24 | if [[ ! -z ${CODENAME} ]] |
25 | then |
26 | distri="${CODENAME}" |
27 | else |
28 | distri="dev-${STATE}" |
29 | fi |
30 | |
31 | # always overwrite /etc/mageversion and /etc/system-release |
32 | minstalldir /etc/env.d || die |
33 | MCONFIG="/etc/env.d/01release" |
34 | mclearconfig || die |
35 | maddconfig 'CONFIG_PROTECT_MASK="/etc/mageversion /etc/system-release /etc/os-release"' || die |
36 | |
37 | MCONFIG="/etc/mageversion" |
38 | mclearconfig || die |
39 | maddconfig "${PVER}" || die |
40 | |
41 | MCONFIG="/etc/system-release" |
42 | mclearconfig || die |
43 | maddconfig "Magellan-Linux release ${PVER} (${distri})" || die |
44 | |
45 | # see: http://www.freedesktop.org/software/systemd/man/os-release.html |
46 | # and http://0pointer.de/blog/projects/os-release |
47 | MCONFIG="/etc/os-release" |
48 | mclearconfig |
49 | maddconfig 'NAME="Magellan Linux"' |
50 | maddconfig 'ID=magellan' |
51 | maddconfig "Version=\"${PVER} (${distri})\"" |
52 | maddconfig "Version_ID=\"${PVER}\"" |
53 | maddconfig "VARIANT=standard" |
54 | maddconfig "PRETTY_NAME=\"Magellan Linux ${PVER} (${distri})\"" |
55 | maddconfig 'ANSI_COLOR="1;34"' |
56 | # see: http://cpe.mitre.org/specification/diagram.html |
57 | maddconfig "CPE_NAME=\"cpe:/o:magellan-linux:magellan:${PVER}\"" |
58 | maddconfig 'HOME_URL="http://www.magellan-linux.de/"' |
59 | maddconfig 'SUPPORT_URL="http://wiki.magellan-linux.de/"' |
60 | maddconfig 'BUG_REPORT_URL="http://bugs.magellan-linux.de/"' |
61 | } |