compress option logic updated
- no compression is set by default
- get_client_config is able to process 'comp_lzo' uci option
- get_client_config generates config with '' or 'compress '
proposed patch for turris-os-packages
diff --git a/cznic/foris/foris-controller-openvpn-module/Makefile b/cznic/foris/foris-controller-openvpn-module/Makefile
index 8283ebdee..48b2eb5af 100644
--- a/cznic/foris/foris-controller-openvpn-module/Makefile
+++ b/cznic/foris/foris-controller-openvpn-module/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=foris-controller-openvpn-module
-PKG_VERSION:=0.5.1
+PKG_VERSION:=0.6
PKG_RELEASE:=1
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_SOURCE_PROTO:=git
@@ -40,6 +40,22 @@ define Build/Compile
$(call Build/Compile/Py3Mod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef
+
+define Package/${PKG_NAME}/postinst
+#!/bin/sh
+set -x
+[ -n "$$IPKG_INSTROOT" ] || {
+ if uci -q get openvpn.server_turris.comp_lzo > /dev/null ; then
+ uci del openvpn.server_turris.comp_lzo
+ if uci -q get openvpn.server_turris.compress > /dev/null ; then
+ :
+ else
+ uci set openvpn.server_turris.compress=lzo
+ fi
+ fi
+}
+endef
+
#
# Package install definition
$(eval $(call ForisControllerModule,$(PKG_NAME)))
Closes #5 (closed) and #6 (closed)
Edited by Vojtech Myslivec