Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
F
foris-controller-openvpn-module
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Turris
  • Foris Controller
  • foris-controller-openvpn-module
  • Merge Requests
  • !1

Merged
Opened Feb 11, 2019 by Štěpán Henek@shenek🐻Maintainer

compress option logic updated

  • Overview 6
  • Commits 1
  • Pipelines 1
  • Changes 2
  • 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 Feb 11, 2019 by Vojtech Myslivec
Assignee
Assign to
Reviewer
Request review from
Turris OS 3.11.3
Milestone
Turris OS 3.11.3 (Past due)
Assign milestone
Time tracking
Reference: turris/foris-controller/foris-controller-openvpn-module!1
Source branch: compress-logic-updates

Revert this commit

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.