openvpn: use correct step override method

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2010-09-01 23:53:35 +02:00
parent 56993a5380
commit 138212a104

View File

@ -26,20 +26,18 @@ else
OPENVPN_CONF_OPT += --disable-crypto --disable-ssl OPENVPN_CONF_OPT += --disable-crypto --disable-ssl
endif endif
$(eval $(call AUTOTARGETS,package,openvpn)) define OPENVPN_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 $(@D)/openvpn \
$(OPENVPN_TARGET_INSTALL_TARGET):
$(call MESSAGE,"Installing")
$(INSTALL) -m 755 $(OPENVPN_DIR)/openvpn \
$(TARGET_DIR)/usr/sbin/openvpn $(TARGET_DIR)/usr/sbin/openvpn
if [ ! -f $(TARGET_DIR)/etc/init.d/openvpn ]; then \ if [ ! -f $(TARGET_DIR)/etc/init.d/openvpn ]; then \
$(INSTALL) -m 755 -D package/openvpn/openvpn.init \ $(INSTALL) -m 755 -D package/openvpn/openvpn.init \
$(TARGET_DIR)/etc/init.d/openvpn; \ $(TARGET_DIR)/etc/init.d/openvpn; \
fi fi
touch $@ endef
$(OPENVPN_TARGET_UNINSTALL): define OPENVPN_UNINSTALL_TARGET_CMDS
$(call MESSAGE,"Uninstalling")
rm -f $(TARGET_DIR)/usr/sbin/openvpn rm -f $(TARGET_DIR)/usr/sbin/openvpn
rm -f $(TARGET_DIR)/etc/init.d/openvpn rm -f $(TARGET_DIR)/etc/init.d/openvpn
rm -f $(OPENVPN_TARGET_INSTALL_TARGET) $(OPENVPN_HOOK_POST_INSTALL) endef
$(eval $(call AUTOTARGETS,package,openvpn))