aboutsummaryrefslogtreecommitdiffstats
path: root/package/pptp/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-05 16:56:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-05 16:56:28 +0000
commit3225530e1eaf8b974a0ba70597c80117e50514dc (patch)
treea5a98e214fcb81548eff307542e64b34d9dcdf5a /package/pptp/Makefile
parentb76a1b49aa2b1d801d55b1681b5723b96eca1162 (diff)
downloadupstream-3225530e1eaf8b974a0ba70597c80117e50514dc.tar.gz
upstream-3225530e1eaf8b974a0ba70597c80117e50514dc.tar.bz2
upstream-3225530e1eaf8b974a0ba70597c80117e50514dc.zip
pptp: add netifd support
SVN-Revision: 31605
Diffstat (limited to 'package/pptp/Makefile')
-rw-r--r--package/pptp/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/package/pptp/Makefile b/package/pptp/Makefile
index 3772adb064..e44806bdd2 100644
--- a/package/pptp/Makefile
+++ b/package/pptp/Makefile
@@ -36,13 +36,24 @@ endef
MAKE_FLAGS += OPTIMIZE="$(TARGET_CFLAGS)"
-define Package/pptp/install
+ifneq ($(CONFIG_PACKAGE_netifd),)
+ define Package/pptp/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/ppp
$(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
$(INSTALL_DIR) $(1)/lib/network
$(INSTALL_BIN) ./files/pptp.sh $(1)/lib/network/
-endef
+ endef
+else
+ define Package/pptp/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/etc/ppp
+ $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
+ $(INSTALL_DIR) $(1)/lib/network
+ $(INSTALL_DATA) ./files.old/pptp.sh $(1)/lib/network/
+ endef
+endif
$(eval $(call BuildPackage,pptp))