Skip to content

openvpn: cleanup Makefile#28679

Merged
feckert merged 6 commits into
openwrt:masterfrom
TDT-AG:pr/20260304-openvpn
Mar 5, 2026
Merged

openvpn: cleanup Makefile#28679
feckert merged 6 commits into
openwrt:masterfrom
TDT-AG:pr/20260304-openvpn

Conversation

@feckert

@feckert feckert commented Mar 4, 2026

Copy link
Copy Markdown
Member

📦 Package Details

Maintainer: ?

Description:
cleanup Makefile

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

feckert added 6 commits March 4, 2026 11:40
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 <fe@dev.tdt.de>
This 'INSTALL_DIR' creation are not needed anymore after refactoring.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Each script to be installed is moved to its own line to improve readability.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
By moving the file to a subdirectory, it is easier to track where the file
is located on the target without having to check the Makefile every time.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
By moving the file to a subdirectory, it is easier to track where the file
is located on the target without having to check the Makefile every time.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Increment PKG_RELEASE by one.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
@feckert
feckert merged commit 803e8ae into openwrt:master Mar 5, 2026
12 checks passed
@feckert
feckert deleted the pr/20260304-openvpn branch March 5, 2026 06:54
Comment thread net/openvpn/Makefile
Comment on lines +128 to +129
files/lib/upgrade/keep.d/openvpn \
$(1)/lib/upgrade/keep.d/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Florian, we are having a similar discussion here: #30010 (comment)

Could you please also check if conffiles will work for you? I took a look at the repository, and basically, you are the only one using keep.d in this specific way :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is working as expected.

root@FG2-999991 / # cat /lib/upgrade/keep.d/openvpn
/etc/openvpn/

root@FG2-999991 / # ls -la /etc/openvpn
drwxr-xr-x    1 root     root          3488 Jul 17 08:33 .
drwxr-xr-x    1 root     root          3488 Jul 15 14:18 ..
-rw-r--r--    1 root     root             0 Jul 17 08:33 test1.sh
-rw-r--r--    1 root     root             0 Jul 17 08:32 test2.sh

root@FG2-999991 / # sysupgrade -l | grep openvpn
/etc/config/openvpn
/etc/config/openvpn_recipes
/etc/openvpn/test1.sh
/etc/openvpn/test2.sh

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, now I get what you mean. I need to add that to the "conffiles" target in the Makefile.
Wait, I'll have to take a look at that and run a build first.
I'll get back to you in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants