summaryrefslogblamecommitdiff
path: root/eclass/flx.eclass
blob: 55aa9c10c02bfcfbf88683992aad9ff9ed1672a6 (plain) (tree)
1
2
3
                                       
                                                                  
      













































                                           
# 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
}