[Lunar-commits] <moonbase> lsb-release: Initial import

Stefan Wold ratler at lunar-linux.org
Mon Dec 1 13:23:12 CET 2008


commit c3e11b0dcdb0fdb2b55e16c40d83694ee00313d5
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Mon Dec 1 13:23:12 2008 +0100

    lsb-release: Initial import
---
 utils/lsb-release/BUILD        |    6 ++++++
 utils/lsb-release/DETAILS      |   13 +++++++++++++
 utils/lsb-release/POST_INSTALL |   13 +++++++++++++
 3 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/utils/lsb-release/BUILD b/utils/lsb-release/BUILD
new file mode 100644
index 0000000..76fa437
--- /dev/null
+++ b/utils/lsb-release/BUILD
@@ -0,0 +1,6 @@
+(
+
+  prepare_install &&
+  make prefix=/usr mandir=/usr/share/man install
+
+) > $C_FIFO 2>&1
diff --git a/utils/lsb-release/DETAILS b/utils/lsb-release/DETAILS
new file mode 100644
index 0000000..c7ba4de
--- /dev/null
+++ b/utils/lsb-release/DETAILS
@@ -0,0 +1,13 @@
+          MODULE=lsb-release
+         VERSION=1.4
+          SOURCE=${MODULE}-${VERSION}.tar.gz
+      SOURCE_URL=$SFORGE_URL/lsb/
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+      SOURCE_VFY=sha1:ecf883ada9bf4e1feca3f2e1494bd798792aee18
+        WEB_SITE="http://www.linuxbase.org/"
+         ENTERED=20081201
+         UPDATED=20081201
+           SHORT="Show distribution version"
+cat <<EOF
+A Linux Standard Base application to query version
+EOF
diff --git a/utils/lsb-release/POST_INSTALL b/utils/lsb-release/POST_INSTALL
new file mode 100644
index 0000000..2a6c175
--- /dev/null
+++ b/utils/lsb-release/POST_INSTALL
@@ -0,0 +1,13 @@
+
+# Try to generate a lsb-release file unless one exists
+if [ ! -f /etc/lsb-release ]; then
+  DRELEASE=$(awk '{ print $3 }' /etc/lunar.release | sed -r 's;\-(i.86|x86_64)$;;')
+  DCNAME=$(sed 's;.*(\(.*\) -.*;\1;' /etc/lunar.release)
+  DDESC=$(cat /etc/lunar.release)
+cat >/etc/lsb-release<<EOF
+DISTRIB_ID="Lunar Linux"
+DISTRIB_RELEASE="$DRELEASE"
+DISTRIB_CODENAME="$DCNAME"
+DISTRIB_DESCRIPTION="$DDESC"
+EOF
+fi


More information about the Lunar-commits mailing list