diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-05 16:56:28 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-05 16:56:28 +0000 |
commit | 66823c0d822734217f16c0f9f00236dee06bbe76 (patch) | |
tree | 0598df8efd13fecb41a7ff593a0959d3c98f61b6 /package/pptp/Makefile | |
parent | 2945a6df4befe15a3899ad6c4d6f555edd203a89 (diff) |
pptp: add netifd support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31605 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp/Makefile')
-rw-r--r-- | package/pptp/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/package/pptp/Makefile b/package/pptp/Makefile index 3772adb06..e44806bdd 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)) |