[Buildroot] [git commit] package/smcroute: prune old smcroute compat script
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Sat Sep 11 14:29:20 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=f9985c5d5bfe5ac7864aeb96ff59ac8a9c40e012
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Long ago, before SMCRoute had yet become a proper daemon and standalone
control tool, it was both. After the metamorphosis commands and options
had changed, a compat script was added to provide a smooth transition.
The compat script is still shipped in the tarball, and installed, but
only Debian still relies on it, so we prune it here to keep confusion
to a minimum, hopefully.
Signed-off-by: Joachim Wiberg <troglobit at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
package/smcroute/smcroute.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/smcroute/smcroute.mk b/package/smcroute/smcroute.mk
index 9cce0acbbc..e8fc54bb42 100644
--- a/package/smcroute/smcroute.mk
+++ b/package/smcroute/smcroute.mk
@@ -24,4 +24,10 @@ define SMCROUTE_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S41smcroute
endef
+define SMCROUTE_PRUNE_COMPAT_SCRIPT
+ rm -f $(TARGET_DIR)/usr/sbin/smcroute
+endef
+
+SMCROUTE_POST_INSTALL_TARGET_HOOKS += SMCROUTE_PRUNE_COMPAT_SCRIPT
+
$(eval $(autotools-package))
More information about the buildroot
mailing list