Move these VPN servers in with the rest of the VPN servers in the
[packages.git] / net / pptpd / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pptpd
12 PKG_VERSION:=1.3.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/poptop
17 PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/pptpd
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+kmod-ppp +kmod-gre
28   TITLE:=PopTop pptp server
29   URL:=http://www.poptop.org/
30   SUBMENU:=vpn
31 endef
32
33 define Build/Configure
34         $(call Build/Configure/Default, \
35                 --with-bcrelay \
36         )
37 endef
38
39 define Build/Compile
40         $(call Build/Compile/Default, \
41                 COPTS="$(TARGET_CFLAGS)" \
42                 DESTDIR="$(PKG_INSTALL_DIR)" \
43                 INSTALL="install" \
44                 all install \
45         )
46 endef
47
48 define Package/pptpd/install
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(1)/usr/sbin/
51         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(1)/usr/sbin/
52         $(INSTALL_DIR) $(1)/usr/lib/pptpd
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd
54         $(INSTALL_DIR) $(1)/etc
55         $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
56         $(INSTALL_DIR) $(1)/etc/init.d
57         $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
58         $(INSTALL_DIR) $(1)/etc/ppp
59         $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
60 endef
61
62 $(eval $(call BuildPackage,pptpd))