# sysvinit specific functions # automatical inherit sysvinit.minc # this will provide the service management functions INHERITS+=" sysvinit" DEPEND="${DEPEND} >= virtual/sysvinit" sminclude mtools # installs initscripts # minstallrc /path/to/rc-script {destfilename} minstallrc() { local rcscript local file [[ -z "$1" ]] && die "No initscript given" # if no fullpath given use file from sourcedir if [[ -z $(dirname $1) ]] || [[ $(dirname $1) = . ]] then file="${SOURCEDIR}/$(mpname)/$1" else file="$1" fi if [[ -n "$2" ]] then rcscript="$2" else rcscript="$(basename ${file})" fi # needed directory minstalldir /etc/rc.d/init.d || die # install our initscript minstallexec ${file} /etc/rc.d/init.d/${rcscript} || die }