Added os-release file.

For systemd.
See specification:
http://www.freedesktop.org/software/systemd/man/os-release.html
Also added CODENAME config variable.
This commit is contained in:
Mikhail Efremov 2013-02-28 19:01:19 +04:00
parent 9ff14a22f7
commit da269ba449
3 changed files with 14 additions and 2 deletions

View File

@ -232,7 +232,7 @@ Menu for Simply Linux
%build
autoconf
THEME=%theme NAME='%Name' STATUS=%status VERSION=%version ./configure
THEME=%theme NAME='%Name' STATUS=%status VERSION=%version CODENAME=%codename ./configure
make
%install
@ -267,6 +267,7 @@ echo "%Name %version %status (%codename)" >%buildroot%_sysconfdir/altlinux-relea
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir/$n-release
done
install -pD -m644 components/systemd/os-release %buildroot%_sysconfdir/os-release
#notes
pushd notes
@ -370,7 +371,7 @@ subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
%_datadir/plymouth/themes/%theme/*
%files release
%_sysconfdir/*-*
%_sysconfdir/*-release
%_sysconfdir/buildreqs/packages/ignore.d/*
%files notes

View File

@ -0,0 +1,9 @@
NAME="@NAME@"
VERSION="@VERSION@@STATUS@ (@CODENAME@)"
ID=altlinux
VERSION_ID=@VERSION@
PRETTY_NAME="@NAME@ @VERSION@@STATUS@ (@CODENAME@)"
ANSI_COLOR="1;36"
CPE_NAME="cpe:/o:alt linux:slinux:@VERSION@"
HOME_URL="http://simplylinux.ru/"
BUG_REPORT_URL="https://bugs.altlinux.org/"

View File

@ -16,6 +16,7 @@ AC_SUBST(THEME)
AC_SUBST(NAME)
AC_SUBST(STATUS)
AC_SUBST(VERSION)
AC_SUBST(CODENAME)
AC_SUBST(DOCDIR)
AC_SUBST(PROGRESS_COLOR)
AC_SUBST(LIGHT_COLOR_HEX)
@ -39,5 +40,6 @@ AC_CONFIG_FILES([
components/indexhtml/indexhtml.desktop
components/indexhtml/index-ru.html
components/indexhtml/index-en.html
components/systemd/os-release
])
AC_OUTPUT