From e0bfffdd4221965fa847cc164d15b28f0e55abcd Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Tue, 6 Sep 2016 23:14:12 +0100 Subject: eclass: Rename flx.eclass to flx-init-scripts.eclass Define DESCRIPTION, HOMEPAGE, EGIT_REPO_URI, SLOT, IUSE and DEPEND --- eclass/flx-init-scripts.eclass | 53 ++++++++++++++++++++++++++++++++++++++++++ eclass/flx.eclass | 49 -------------------------------------- 2 files changed, 53 insertions(+), 49 deletions(-) create mode 100644 eclass/flx-init-scripts.eclass delete mode 100644 eclass/flx.eclass (limited to 'eclass') diff --git a/eclass/flx-init-scripts.eclass b/eclass/flx-init-scripts.eclass new file mode 100644 index 00000000..04b6713d --- /dev/null +++ b/eclass/flx-init-scripts.eclass @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# @ECLASS: flx-init-scripts.eclass +# @MAINTAINER: +# Bertrand Jacquin +# @BLURB: Eclass for Formilux init scripts +# @DESCRIPTION: +# Formilux init scripts helper + +inherit git-r3 + +SVCNAME="${PN//init-}" + +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="" + +EXPORT_FUNCTIONS src_prepare src_install + +flx-init-scripts_src_prepare() { + [ -d addons -a ! -e add-ons ] \ + && mv addons add-ons + + local _f + for _f in \ + add-ons/initscript \ + add-ons/init.d/${SVCNAME} \ + add-ons/${SVCNAME}.init + do + if [ -e $_f ] ; then + fINIT=$_f + break + fi + done + + [ -n "${fINIT}" ] \ + && mv ${fINIT} add-ons/${SVCNAME} +} + +flx-init-scripts_src_install() { + cd ${S} + + exeinto /sbin/init.d + doexe add-ons/${SVCNAME} + + [ -e ChangeLog ] && dodoc ChangeLog +} diff --git a/eclass/flx.eclass b/eclass/flx.eclass deleted file mode 100644 index 55aa9c10..00000000 --- a/eclass/flx.eclass +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# -# Original Author: root -# Purpose: Formilux stuff -# - -EXPORT_FUNCTIONS src_prepare src_install - -DESCRIPTION="Formilux Tools" - -LICENSE="public-domain" -SLOT="0" - -SVCNAME=${PN//init-} -SDIR="dist" - -flx_src_prepare () -{ - [ -d addons -a ! -e add-ons ] \ - && mv addons add-ons - - local _f - for _f in \ - add-ons/initscript \ - add-ons/init.d/${SVCNAME} \ - add-ons/${SVCNAME}.init - do - if [ -e $_f ] ; then - fINIT=$_f - break - fi - done - - [ -n "${fINIT}" ] \ - && mv ${fINIT} add-ons/${SVCNAME} -} - -flx_src_install () -{ - cd ${S} - - exeinto /sbin/init.d - doexe add-ons/${SVCNAME} - - [ -e ChangeLog ] && dodoc ChangeLog -} -- cgit v1.2.3