source: packages/net/openvpn/Makefile @ 23018

Last change on this file since 23018 was 23018, checked in by florian, 6 years ago

[package] build openvpn with the small option (saves about 12K in the ipk on brcm47xx, #7788)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=openvpn
11PKG_VERSION:=2.1.1
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://openvpn.net/release @SF/openvpn
16PKG_MD5SUM:=b273ed2b5ec8616fb9834cde8634bce7
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/openvpn
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+kmod-tun +libopenssl +liblzo
26  TITLE:=Open source VPN solution using SSL
27  URL:=http://openvpn.net
28  SUBMENU:=VPN
29endef
30
31define Package/openvpn/conffiles
32/etc/config/openvpn
33endef
34
35define Package/openvpn/description
36         Open source VPN solution using SSL
37endef
38
39define Package/openvpn-easy-rsa
40  $(call Package/openvpn)
41  DEPENDS:=openvpn +openssl-util
42  TITLE:=Simple shell scripts to manage a Certificate Authority
43endef
44
45define Package/openvpn-easy-rsa/conffiles
46/etc/easy-rsa/keys/serial
47/etc/easy-rsa/keys/index.txt
48/etc/easy-rsa/vars
49endef
50
51CONFIGURE_ARGS+= \
52        --disable-pthread \
53        --disable-debug \
54        --disable-plugins \
55        --enable-management \
56        --disable-socks \
57        --enable-password-save \
58        --enable-small
59
60define Build/Configure
61        $(call Build/Configure/Default, \
62                $(CONFIGURE_ARGS) \
63                ,\
64                ac_cv_func_epoll_create=no \
65        )
66endef
67
68define Package/openvpn/install
69        $(INSTALL_DIR) $(1)/usr/sbin
70        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(1)/usr/sbin/
71        $(INSTALL_DIR) $(1)/etc/init.d/
72        $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
73        $(INSTALL_DIR) $(1)/etc/config
74        $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
75        $(INSTALL_DIR) $(1)/etc/openvpn
76endef
77
78define Package/openvpn-easy-rsa/install
79        $(INSTALL_DIR) $(1)/usr/sbin
80        $(CP) $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} $(1)/usr/sbin/
81        $(INSTALL_DIR) $(1)/etc/easy-rsa
82        $(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/openssl.cnf $(1)/etc/easy-rsa/openssl.cnf
83        $(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/vars $(1)/etc/easy-rsa/vars
84        $(INSTALL_DIR) $(1)/etc/easy-rsa/keys
85        $(INSTALL_DATA) files/easy-rsa.index $(1)/etc/easy-rsa/keys/index.txt
86        $(INSTALL_DATA) files/easy-rsa.serial $(1)/etc/easy-rsa/keys/serial
87endef
88
89$(eval $(call BuildPackage,openvpn))
90$(eval $(call BuildPackage,openvpn-easy-rsa))
Note: See TracBrowser for help on using the repository browser.