update sqlite2 to new upstream release (v2.8.17),
[openwrt.git] / package / openvpn / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=openvpn
6 PKG_VERSION:=2.0.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4bd7a42991c93db23842a0992debe53b
9
10 PKG_SOURCE_URL:=http://openvpn.net/release @SF/openvpn
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 PKG_DEPEND:="libopenssl, kmod-tun"
22 ifneq ($(BR2_COMPILE_OPENVPN_WITH_LZO),y)
23 DISABLE_LZO:=--disable-lzo
24 else
25 PKG_DEPEND+=", liblzo"
26 endif
27
28 ifneq ($(BR2_COMPILE_OPENVPN_WITH_SERVER),y)
29 DISABLE_SERVER:=--disable-server
30 endif
31 ifneq ($(BR2_COMPILE_OPENVPN_WITH_HTTP),y)
32 DISABLE_HTTP:=--disable-http
33 endif
34
35 $(PKG_BUILD_DIR)/.configured:
36 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
37 $(TARGET_CONFIGURE_OPTS) \
38 CFLAGS="$(strip $(TARGET_CFLAGS))" \
39 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
41 ./configure \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
45 --program-prefix="" \
46 --program-suffix="" \
47 --prefix=/usr \
48 --exec-prefix=/usr \
49 --bindir=/usr/bin \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
53 --libdir=/usr/lib \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
57 --sbindir=/usr/sbin \
58 --sysconfdir=/etc \
59 $(DISABLE_LARGEFILE) \
60 $(DISABLE_NLS) \
61 --enable-shared \
62 --disable-static \
63 --disable-pthread \
64 --disable-debug \
65 --disable-plugins \
66 --disable-management \
67 --disable-socks \
68 $(DISABLE_LZO) \
69 $(DISABLE_SERVER) \
70 $(DISABLE_HTTP) \
71 );
72 touch $(PKG_BUILD_DIR)/.configured
73
74 $(PKG_BUILD_DIR)/.built:
75 $(MAKE) -C $(PKG_BUILD_DIR)
76 mkdir -p $(PKG_INSTALL_DIR)
77 $(MAKE) -C $(PKG_BUILD_DIR) \
78 DESTDIR="$(PKG_INSTALL_DIR)" \
79 install
80 touch $(PKG_BUILD_DIR)/.built
81
82 $(IPKG_OPENVPN):
83 install -d -m0755 $(IDIR_OPENVPN)/usr/sbin
84 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
85 $(RSTRIP) $(IDIR_OPENVPN)
86 echo "Depends: $(PKG_DEPEND)" >> $(IDIR_OPENVPN)/CONTROL/control
87 $(IPKG_BUILD) $(IDIR_OPENVPN) $(PACKAGE_DIR)
88
This page took 0.049039 seconds and 5 git commands to generate.