summaryrefslogtreecommitdiff
path: root/eclass/flx.eclass
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2013-05-27 22:36:39 +0200
committerBertrand Jacquin <beber@meleeweb.net>2013-05-27 23:01:30 +0200
commit871aa3ec8c59a964940af18d3ec462c797482785 (patch)
tree8492d0e98ede203810dfea6bcfe0ceecedd13bcf /eclass/flx.eclass
parentadd ebuild for a clam client to server support (diff)
downloadportage-871aa3ec8c59a964940af18d3ec462c797482785.tar.xz
Add formilux tools/init-scripts
Diffstat (limited to 'eclass/flx.eclass')
-rw-r--r--eclass/flx.eclass49
1 files changed, 49 insertions, 0 deletions
diff --git a/eclass/flx.eclass b/eclass/flx.eclass
new file mode 100644
index 00000000..36366fc9
--- /dev/null
+++ b/eclass/flx.eclass
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# 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
+}