pygtk requires python 2.5
[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 # $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 include $(INCLUDE_DIR)/package.mk
20
21 define Package/pptpd
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+kmod-ppp +kmod-gre
25 TITLE:=PopTop pptp server
26 URL:=http://www.poptop.org/
27 SUBMENU:=VPN
28 endef
29
30 define Build/Configure
31 $(call Build/Configure/Default, \
32 --with-bcrelay \
33 )
34 endef
35
36 define Build/Compile
37 $(call Build/Compile/Default, \
38 COPTS="$(TARGET_CFLAGS)" \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 INSTALL="install" \
41 all install \
42 )
43 endef
44
45 define Package/pptpd/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(1)/usr/sbin/
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/usr/lib/pptpd
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
55 $(INSTALL_DIR) $(1)/etc/ppp
56 $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
57 endef
58
59 $(eval $(call BuildPackage,pptpd))