openvpn: refactoring INSTALL_DIR command call during install
authorFlorian Eckert <redacted>
Wed, 4 Mar 2026 10:08:46 +0000 (11:08 +0100)
committerFlorian Eckert <redacted>
Thu, 5 Mar 2026 06:54:01 +0000 (07:54 +0100)
Move the 'INSTALL_DIR' creation in the make install target to the location
where the files are also installed. This prevents directories that are no
longer needed from being forgotten during refactoring.

Signed-off-by: Florian Eckert <redacted>
net/openvpn/Makefile

index dd60e700f21ce874848f8268f37fd8c4801fa7c5..447d42872b0cdf42d1fb42e92b97bd4d14d94322 100644 (file)
@@ -92,34 +92,32 @@ endef
 
 define Package/openvpn-$(BUILD_VARIANT)/install
        $(INSTALL_DIR) \
-               $(1)/usr/sbin \
-               $(1)/usr/share/openvpn \
                $(1)/etc/init.d \
                $(1)/etc/config \
                $(1)/etc/openvpn \
-               $(1)/etc/uci-defaults \
                $(1)/lib/functions \
-               $(1)/lib/netifd/proto \
-               $(1)/lib/upgrade/keep.d \
                $(1)/usr/libexec \
                $(1)/etc/hotplug.d/openvpn
 
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) \
                $(PKG_INSTALL_DIR)/usr/sbin/openvpn \
                $(1)/usr/sbin/
 
+       $(INSTALL_DIR) $(1)/lib/netifd/proto
        $(INSTALL_BIN) \
                files/lib/netifd/proto/openvpn.sh \
                $(1)/lib/netifd/proto/
 
+       $(INSTALL_DIR) $(1)/etc/uci-defaults
        $(INSTALL_BIN) \
                files/etc/uci-defaults/60_openvpn_migrate.sh \
                $(1)/etc/uci-defaults/
 
+       $(INSTALL_DIR) $(1)/usr/share/openvpn
        $(INSTALL_DATA) \
                files/openvpn.options \
                $(1)/usr/share/openvpn/openvpn.options
-
        $(INSTALL_BIN) \
                files/up.uc files/down.uc files/route-pre-down.uc files/route-up.uc \
                files/ipchange.uc \
@@ -127,6 +125,7 @@ define Package/openvpn-$(BUILD_VARIANT)/install
                files/auth-user-pass-verify.uc files/tls-verify.uc \
                $(1)/usr/share/openvpn/
 
+       $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
        $(INSTALL_DATA) \
                files/openvpn.sysupgrade \
                $(1)/lib/upgrade/keep.d/openvpn
git clone https://git.99rst.org/PROJECT