Commit da269ba4 authored by Mikhail Efremov's avatar Mikhail Efremov

Added os-release file.

For systemd. See specification: http://www.freedesktop.org/software/systemd/man/os-release.html Also added CODENAME config variable.
parent 9ff14a22
...@@ -232,7 +232,7 @@ Menu for Simply Linux ...@@ -232,7 +232,7 @@ Menu for Simply Linux
%build %build
autoconf autoconf
THEME=%theme NAME='%Name' STATUS=%status VERSION=%version ./configure THEME=%theme NAME='%Name' STATUS=%status VERSION=%version CODENAME=%codename ./configure
make make
%install %install
...@@ -267,6 +267,7 @@ echo "%Name %version %status (%codename)" >%buildroot%_sysconfdir/altlinux-relea ...@@ -267,6 +267,7 @@ echo "%Name %version %status (%codename)" >%buildroot%_sysconfdir/altlinux-relea
for n in fedora redhat system; do for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir/$n-release ln -s altlinux-release %buildroot%_sysconfdir/$n-release
done done
install -pD -m644 components/systemd/os-release %buildroot%_sysconfdir/os-release
#notes #notes
pushd notes pushd notes
...@@ -370,7 +371,7 @@ subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf ...@@ -370,7 +371,7 @@ subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
%_datadir/plymouth/themes/%theme/* %_datadir/plymouth/themes/%theme/*
%files release %files release
%_sysconfdir/*-* %_sysconfdir/*-release
%_sysconfdir/buildreqs/packages/ignore.d/* %_sysconfdir/buildreqs/packages/ignore.d/*
%files notes %files notes
......
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/"
...@@ -16,6 +16,7 @@ AC_SUBST(THEME) ...@@ -16,6 +16,7 @@ AC_SUBST(THEME)
AC_SUBST(NAME) AC_SUBST(NAME)
AC_SUBST(STATUS) AC_SUBST(STATUS)
AC_SUBST(VERSION) AC_SUBST(VERSION)
AC_SUBST(CODENAME)
AC_SUBST(DOCDIR) AC_SUBST(DOCDIR)
AC_SUBST(PROGRESS_COLOR) AC_SUBST(PROGRESS_COLOR)
AC_SUBST(LIGHT_COLOR_HEX) AC_SUBST(LIGHT_COLOR_HEX)
...@@ -39,5 +40,6 @@ AC_CONFIG_FILES([ ...@@ -39,5 +40,6 @@ AC_CONFIG_FILES([
components/indexhtml/indexhtml.desktop components/indexhtml/indexhtml.desktop
components/indexhtml/index-ru.html components/indexhtml/index-ru.html
components/indexhtml/index-en.html components/indexhtml/index-en.html
components/systemd/os-release
]) ])
AC_OUTPUT AC_OUTPUT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment