From 66823c0d822734217f16c0f9f00236dee06bbe76 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 5 May 2012 16:56:28 +0000 Subject: pptp: add netifd support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31605 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/pptp/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'package/pptp/Makefile') 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)) -- cgit v1.2.3