Annotation of /branches/R11-stable/core/mage-release/mage-release-R11-r2.smage2
Parent Directory | Revision Log
Revision 19734 -
(hide annotations)
(download)
Wed Oct 16 08:25:44 2013 UTC (10 years, 11 months ago) by niro
File size: 1530 byte(s)
Wed Oct 16 08:25:44 2013 UTC (10 years, 11 months ago) by niro
File size: 1530 byte(s)
-release branches/R11-stable
1 | niro | 19651 | # $Id$ |
2 | |||
3 | PNAME="mage-release" | ||
4 | PVER="R11" | ||
5 | PBUILD="r2" | ||
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 "PRETTY_NAME=\"Magellan Linux ${PVER} (${distri})\"" | ||
54 | maddconfig 'ANSI_COLOR="1;34"' | ||
55 | # see: http://cpe.mitre.org/specification/diagram.html | ||
56 | maddconfig "CPE_NAME=\"cpe:/o:magellan-linux:magellan:${PVER}\"" | ||
57 | maddconfig 'HOME_URL="http://www.magellan-linux.de/"' | ||
58 | maddconfig 'SUPPORT_URL="http://wiki.magellan-linux.de/"' | ||
59 | maddconfig 'BUG_REPORT_URL="http://bugs.magellan-linux.de/"' | ||
60 | } |