[package] add an openvpn-devel package, patch from Gert Doering
[openwrt/svn-archive/archive.git] / net / openvpn-devel / Makefile
1 #
2 # Makefile for openvpn-devel
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=openvpn-devel
8 PKG_VERSION:=201026
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=openvpn-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_URL:=ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel/
13 PKG_MD5SUM:=b7a1836d033096c4d70f86581c2fc49d
14
15 PKG_INSTALL:=1
16 PKG_BUILD_DIR:=$(BUILD_DIR)/openvpn-devel
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/openvpn-devel
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+kmod-tun +kmod-ipv6 +libopenssl +liblzo +ip
24 TITLE:=Open source VPN solution using SSL (devel version)
25 URL:=http://openvpn.net
26 SUBMENU:=VPN
27 endef
28
29 define Package/openvpn-devel/conffiles
30 /etc/config/openvpn
31 endef
32
33 define Package/openvpn-devel/description
34 Open source VPN solution using SSL - DEVEL VERSION, Week $(PKG_VERSION)
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --disable-pthread \
40 --disable-debug \
41 --disable-plugins \
42 --enable-management \
43 --disable-socks \
44 --enable-password-save \
45 --enable-iproute2 \
46 --with-iproute-path=/usr/sbin/ip \
47 ,\
48 ac_cv_func_epoll_create=no \
49 )
50 endef
51
52 define Package/openvpn-devel/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/etc/init.d/
56 $(INSTALL_BIN) files/openvpn.init $(1)/etc/init.d/openvpn
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_CONF) files/openvpn.config $(1)/etc/config/openvpn
59 $(INSTALL_DIR) $(1)/etc/openvpn
60 endef
61
62 $(eval $(call BuildPackage,openvpn-devel))