From e9f05146bafb06cc6d25f7c452cadf800a2ee9b3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 6 Nov 2016 12:40:12 +0000 Subject: lsb_release, done --- .../files/lsb-release-kogaion-version.patch | 12 ------- .../files/lsb-release-redcore-version.patch | 12 +++++++ sys-apps/lsb-release/lsb-release-1.4-r1.ebuild | 38 ++++++++++++++++++++++ sys-apps/lsb-release/lsb-release-1.4.ebuild | 38 ---------------------- sys-apps/lsb-release/metadata.xml | 19 ----------- 5 files changed, 50 insertions(+), 69 deletions(-) delete mode 100644 sys-apps/lsb-release/files/lsb-release-kogaion-version.patch create mode 100644 sys-apps/lsb-release/files/lsb-release-redcore-version.patch create mode 100644 sys-apps/lsb-release/lsb-release-1.4-r1.ebuild delete mode 100644 sys-apps/lsb-release/lsb-release-1.4.ebuild delete mode 100644 sys-apps/lsb-release/metadata.xml diff --git a/sys-apps/lsb-release/files/lsb-release-kogaion-version.patch b/sys-apps/lsb-release/files/lsb-release-kogaion-version.patch deleted file mode 100644 index a28d13a6..00000000 --- a/sys-apps/lsb-release/files/lsb-release-kogaion-version.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nurp lsb-release-1.4.orig/lsb_release lsb-release-1.4/lsb_release ---- lsb-release-1.4.orig/lsb_release 2000-12-15 08:19:16.000000000 +0100 -+++ lsb-release-1.4/lsb_release 2013-02-07 13:57:00.085819790 +0100 -@@ -47,7 +47,7 @@ INFO_LSB_FILE="lsb-release" - INFO_DISTRIB_SUFFIX="release" # - - ALTERNATE_DISTRIB_FILE="/etc/debian_version" # for Debian [based distrib] - ALTERNATE_DISTRIB_NAME="Debian" # " --CHECKFIRST="/etc/redhat-release" # check it before file search -+CHECKFIRST="/etc/kogaion-release" # check it before file search - - # Defines our exit codes - EXIT_STATUS="0" # default = Ok :) diff --git a/sys-apps/lsb-release/files/lsb-release-redcore-version.patch b/sys-apps/lsb-release/files/lsb-release-redcore-version.patch new file mode 100644 index 00000000..a28d13a6 --- /dev/null +++ b/sys-apps/lsb-release/files/lsb-release-redcore-version.patch @@ -0,0 +1,12 @@ +diff -Nurp lsb-release-1.4.orig/lsb_release lsb-release-1.4/lsb_release +--- lsb-release-1.4.orig/lsb_release 2000-12-15 08:19:16.000000000 +0100 ++++ lsb-release-1.4/lsb_release 2013-02-07 13:57:00.085819790 +0100 +@@ -47,7 +47,7 @@ INFO_LSB_FILE="lsb-release" + INFO_DISTRIB_SUFFIX="release" # - + ALTERNATE_DISTRIB_FILE="/etc/debian_version" # for Debian [based distrib] + ALTERNATE_DISTRIB_NAME="Debian" # " +-CHECKFIRST="/etc/redhat-release" # check it before file search ++CHECKFIRST="/etc/kogaion-release" # check it before file search + + # Defines our exit codes + EXIT_STATUS="0" # default = Ok :) diff --git a/sys-apps/lsb-release/lsb-release-1.4-r1.ebuild b/sys-apps/lsb-release/lsb-release-1.4-r1.ebuild new file mode 100644 index 00000000..2bebbea9 --- /dev/null +++ b/sys-apps/lsb-release/lsb-release-1.4-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Sabayon +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="LSB version query program" +HOMEPAGE="http://www.linuxbase.org/" +SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" +IUSE="" + +# Perl isn't needed at runtime, it is just used to generate the man page. +DEPEND="dev-lang/perl" +RDEPEND="" + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}/${PN}-redcore-version.patch" +} + +src_install() { + emake \ + prefix="${D}/usr" \ + mandir="${D}/usr/share/man" \ + install \ + || die "emake install failed" + + mkdir -p "${D}/etc" + cat > "${D}/etc/lsb-release" <<- EOF + DISTRIB_ID="Redcore" + EOF +} diff --git a/sys-apps/lsb-release/lsb-release-1.4.ebuild b/sys-apps/lsb-release/lsb-release-1.4.ebuild deleted file mode 100644 index 7c89bf7c..00000000 --- a/sys-apps/lsb-release/lsb-release-1.4.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2013 Sabayon -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit eutils - -DESCRIPTION="LSB version query program" -HOMEPAGE="http://www.linuxbase.org/" -SRC_URI="mirror://sourceforge/lsb/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" -IUSE="" - -# Perl isn't needed at runtime, it is just used to generate the man page. -DEPEND="dev-lang/perl" -RDEPEND="" - -src_unpack() { - unpack ${A} - - cd "${S}" - epatch "${FILESDIR}/${PN}-kogaion-version.patch" -} - -src_install() { - emake \ - prefix="${D}/usr" \ - mandir="${D}/usr/share/man" \ - install \ - || die "emake install failed" - - mkdir -p "${D}/etc" - cat > "${D}/etc/lsb-release" <<- EOF - DISTRIB_ID="Kogaion" - EOF -} diff --git a/sys-apps/lsb-release/metadata.xml b/sys-apps/lsb-release/metadata.xml deleted file mode 100644 index 6886884e..00000000 --- a/sys-apps/lsb-release/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - jer@gentoo.org - Jeroen Roovers - - - This program forms part of the required functionality of - the LSB (Linux Standard Base) specification. - - The program queries the installed state of the distribution - to display certain properties such as the version of the - LSB against which the distribution claims compliance as - well. It can also attempt to display the name and release - of the distribution along with an identifier of who produces - the distribution. - - -- cgit v1.2.3