Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.597 kb
INPUT_FILES = ${wildcard init.d/*.in}
INIT_FILES = ${INPUT_FILES:.in=}
CONF_FILES = ${wildcard conf.d/*}
PREFIX ?= /usr/local
SYSCONFDIR ?= ${PREFIX}/etc
SBINDIR ?= ${PREFIX}/sbin
INITDIR = ${DESTDIR}/${SYSCONFDIR}/init.d
CONFDIR = ${DESTDIR}/${SYSCONFDIR}/conf.d
RUNSCRIPT ?= runscript
all: ${INIT_FILES} ${CONF_FILES}
%: %.in
sed -e 's:@SBINDIR@:${SBINDIR}:g' $< > $@
sed -e 's:@RUNSCRIPT@:${SBINDIR}/${RUNSCRIPT}:g' $< > $@
install: ${INIT_FILES}
install -d "${INITDIR}" "${CONFDIR}"
install -m 755 -t "${INITDIR}" ${INIT_FILES}
install -m 644 -t "${CONFDIR}" ${CONF_FILES}
Jump to Line
Something went wrong with that request. Please try again.