2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/poptop
16 PKG_HASH
:=8fcd8b8a42de2af59e9fe8cbaa9f894045c977f4d038bbd6346a8522bb7f06c0
21 PKG_MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+kmod-ppp
+kmod-gre
+kmod-mppe
+ppp
29 TITLE
:=PopTop pptp server
30 URL
:=http
://poptop.sourceforge.net
/
38 ac_cv_header_libintl_h
=no \
41 COPTS
="$(TARGET_CFLAGS)" \
44 define Package
/pptpd
/conffiles
46 /etc
/ppp
/options.pptpd
50 define Package
/pptpd
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(PKG_INSTALL_DIR
)/usr
/sbin
/bcrelay \
54 $(PKG_INSTALL_DIR
)/usr
/sbin
/pptpctrl \
55 $(PKG_INSTALL_DIR
)/usr
/sbin
/pptpd \
57 $(INSTALL_DIR
) $(1)/usr
/lib
/pptpd
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pptpd
/* $(1)/usr
/lib
/pptpd
/
59 $(INSTALL_DIR
) $(1)/etc
60 $(INSTALL_DATA
) .
/files
/pptpd.conf
$(1)/etc
/
61 $(INSTALL_DIR
) $(1)/etc
/init.d
62 $(INSTALL_BIN
) .
/files
/pptpd.init
$(1)/etc
/init.d
/pptpd
63 $(INSTALL_DIR
) $(1)/etc
/ppp
64 $(INSTALL_DATA
) .
/files
/options.pptpd
$(1)/etc
/ppp
/
65 $(INSTALL_DIR
) $(1)/etc
/config
66 $(INSTALL_DATA
) .
/files
/pptpd.config
$(1)/etc
/config
/pptpd
69 $(eval
$(call BuildPackage
,pptpd
))