compile: $(patsubst %,%-compile,$(package-y) $(package-m))
install: $(patsubst %,%-install,$(package-y))
+ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
+openvpn-compile: lzo-compile
+endif
+
nocatsplash-compile: glib-compile
arpwatch-compile: libpcap-compile
tcpdump-compile: libpcap-compile
default m
select BR2_PACKAGE_KMOD_TUN
select BR2_PACKAGE_OPENSSL
- select BR2_PACKAGE_LZO
help
Open Source VPN solution using SSL
http://openvpn.net/
+
+config BR2_PACKAGE_OPENVPN_SERVER
+ bool "Enable server support"
+ default y
+ depends BR2_PACKAGE_OPENVPN
+
+config BR2_PACKAGE_OPENVPN_LZO
+ bool "Enable transparent compression (lzo)"
+ default y
+ depends BR2_PACKAGE_OPENVPN
+ select BR2_PACKAGE_LZO
PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
+ifneq ($(BR2_PACKAGE_OPENVPN_LZO),y)
+DISABLE_LZO:=--disable-lzo
+endif
+
+ifneq ($(BR2_PACKAGE_OPENVPN_SERVER),y)
+DISABLE_SERVER:=--disable-server
+endif
+
$(DL_DIR)/$(PKG_SOURCE):
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
--disable-management \
--disable-socks \
--disable-http \
+ $(DISABLE_LZO) \
+ $(DISABLE_SERVER) \
);
touch $(PKG_BUILD_DIR)/.configured
#!/usr/bin/perl
my %change = (
'BUSYBOX' => 'make -C package busybox-clean',
+ 'OPENVPN_' => 'make -C package openvpn-clean',
'' => 'make target_clean'
);