6916eca685944b135a11ea287d460d761b2443f8
[openwrt/svn-archive/archive.git] / net / pptpd / Makefile
1 #
2 # Copyright (C) 2006-2010 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.4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/poptop
16 PKG_MD5SUM:=b38df9c431041922c997c1148bedf591
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pptpd
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+kmod-ppp +kmod-gre +ppp
26 TITLE:=PopTop pptp server
27 URL:=http://www.poptop.org/
28 SUBMENU:=VPN
29 endef
30
31 CONFIGURE_ARGS += \
32 --enable-bcrelay \
33
34 MAKE_FLAGS += \
35 COPTS="$(TARGET_CFLAGS)" \
36 INSTALL="install" \
37
38 define Package/pptpd/conffiles
39 /etc/pptpd.conf
40 /etc/ppp/options.pptpd
41 endef
42
43 define Package/pptpd/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(CP) \
46 $(PKG_INSTALL_DIR)/usr/sbin/bcrelay \
47 $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \
48 $(PKG_INSTALL_DIR)/usr/sbin/pptpd \
49 $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/usr/lib/pptpd
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
56 $(INSTALL_DIR) $(1)/etc/ppp
57 $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
58 endef
59
60 $(eval $(call BuildPackage,pptpd))