summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flx-init-scripts.eclass (renamed from eclass/flx.eclass)30
1 files changed, 17 insertions, 13 deletions
diff --git a/eclass/flx.eclass b/eclass/flx-init-scripts.eclass
index 55aa9c10..04b6713d 100644
--- a/eclass/flx.eclass
+++ b/eclass/flx-init-scripts.eclass
@@ -1,24 +1,29 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#
-# Original Author: root
-# Purpose: Formilux stuff
-#
+# @ECLASS: flx-init-scripts.eclass
+# @MAINTAINER:
+# Bertrand Jacquin <bertrand@jacquin.bzh>
+# @BLURB: Eclass for Formilux init scripts
+# @DESCRIPTION:
+# Formilux init scripts helper
-EXPORT_FUNCTIONS src_prepare src_install
+inherit git-r3
+
+SVCNAME="${PN//init-}"
-DESCRIPTION="Formilux Tools"
+DESCRIPTION="Formilux init script for ${SVCNAME}"
+HOMEPAGE="http://master.formilux.org/git/dist/pkg/${SVCNAME}.git"
+EGIT_REPO_URI="http://master.formilux.org/git/dist/pkg/${SVCNAME}.git"
LICENSE="public-domain"
SLOT="0"
+IUSE=""
-SVCNAME=${PN//init-}
-SDIR="dist"
+EXPORT_FUNCTIONS src_prepare src_install
-flx_src_prepare ()
-{
+flx-init-scripts_src_prepare() {
[ -d addons -a ! -e add-ons ] \
&& mv addons add-ons
@@ -38,8 +43,7 @@ flx_src_prepare ()
&& mv ${fINIT} add-ons/${SVCNAME}
}
-flx_src_install ()
-{
+flx-init-scripts_src_install() {
cd ${S}
exeinto /sbin/init.d