diff options
Diffstat (limited to 'init.d.misc')
-rw-r--r-- | init.d.misc/Makefile | 9 | ||||
-rw-r--r-- | init.d.misc/openvpn.in | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/init.d.misc/Makefile b/init.d.misc/Makefile index 693f9134..a2be5470 100644 --- a/init.d.misc/Makefile +++ b/init.d.misc/Makefile @@ -14,12 +14,11 @@ VARBASE?= /var all: ${OBJS} .in: - sed -e s':@PREFIX@:${PREFIX}:' -e 's:@VARBASE@:${VARBASE}:' $< > $@ + sed -e 's:@PREFIX@:${PREFIX}:' -e 's:@VARBASE@:${VARBASE}:' $< > $@ -install: all - for x in ${OBJS}; do \ - ${INSTALL} work/$$x ${DESTDIR}${DIR}; \ - done +install: all + ${INSTALL} -d ${DESTDIR}${DIR} + ${INSTALL} ${OBJS} ${DESTDIR}${DIR} clean: rm -f ${OBJS} diff --git a/init.d.misc/openvpn.in b/init.d.misc/openvpn.in index 721ad23c..49cafe5c 100644 --- a/init.d.misc/openvpn.in +++ b/init.d.misc/openvpn.in @@ -5,7 +5,7 @@ vpn=${SVCNAME#*.} name="OpenVPN" [ "${vpn}" != "openvpn" ] && name="${name} (${vpn})" -command=@PREFIX/sbin/openvpn +command=@PREFIX@/sbin/openvpn pidfile=@VARBASE@/run/"${SVCNAME}".pid openvpn_dir=${openvpn_dir:-@PREFIX@/etc/openvpn} |