2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67
16 PKG_SOURCE_URL:=@SF/poptop
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
28 DEPENDS:=+kmod-ppp +kmod-gre
29 TITLE:=PopTop pptp server
32 define Build/Configure
33 $(call Build/Configure/Default, --with-bcrelay)
37 $(call Build/Compile/Default, \
38 COPTS="\$$$$(EXTRA_CFLAGS)" \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
45 define Package/pptpd/install
46 install -d -m0755 $(1)/usr/sbin
47 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(1)/usr/sbin/
48 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(1)/usr/sbin/
49 install -d -m0755 $(1)/usr/lib/pptpd
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd
51 install -d -m0755 $(1)/etc
52 install -m0644 ./files/pptpd.conf $(1)/etc/
53 install -d -m0755 $(1)/etc/init.d
54 install -m0755 ./files/pptpd.init $(1)/etc/init.d/pptpd
55 install -d -m0755 $(1)/etc/ppp
56 install -m0644 ./files/options.pptpd $(1)/etc/ppp/
59 $(eval $(call BuildPackage,pptpd))