summaryrefslogtreecommitdiff
path: root/init.d.misc
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.misc')
-rw-r--r--init.d.misc/Makefile9
-rw-r--r--init.d.misc/openvpn.in2
2 files changed, 5 insertions, 6 deletions
diff --git a/init.d.misc/Makefile b/init.d.misc/Makefile
index 693f913..a2be547 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 721ad23..49cafe5 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}