6793972c4d23f526342771d7b2ce73e06e38c575
[openwrt/svn-archive/archive.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pptpd
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/poptop
16 PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/pptpd
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+kmod-ppp +kmod-gre
24 TITLE:=PopTop pptp server
25 URL:=http://www.poptop.org/
26 SUBMENU:=VPN
27 endef
28
29 define Build/Configure
30 $(call Build/Configure/Default, \
31 --with-bcrelay \
32 )
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/Default, \
37 COPTS="$(TARGET_CFLAGS)" \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 INSTALL="install" \
40 all install \
41 )
42 endef
43
44 define Package/pptpd/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(1)/usr/sbin/
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/usr/lib/pptpd
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd
50 $(INSTALL_DIR) $(1)/etc
51 $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
54 $(INSTALL_DIR) $(1)/etc/ppp
55 $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
56 endef
57
58 $(eval $(call BuildPackage,pptpd))