Skip to contentSkip to conversation

tcpdump: punt duplicate versioned binary

PATCH New Mike Frysinger 2 participants 2 messages Nov 27, 2010 – Nov 29, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcpdump: punt duplicate versioned binary

The tcpdump packag likes to install two binaries into /usr/sbin -- one named "tcpdump" and one named "tcpdump.<ver>". But it does this by installing the file twice rather than using links. Since the alt name is useless to us, just punt it.

---
 package/tcpdump/tcpdump.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/tcpdump/tcpdump.mk +2 -0
index e295e69..a359522 100644
@@ -15,3 +15,5 @@ TCPDUMP_CONF_OPT:=--without-crypto \
 TCPDUMP_DEPENDENCIES:=zlib libpcap
 
 $(eval $(call AUTOTARGETS,package,tcpdump))
+
+TCPDUMP_INSTALL_TARGET_CMDS += && rm -f $(TARGET_DIR)/usr/sbin/tcpdump.$(TCPDUMP_VERSION)
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/1 tcpdump: punt duplicate versioned binary

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Mike" == Mike Frysinger <[email protected]> writes:

Mike> The tcpdump packag likes to install two binaries into /usr/sbin -- Mike> one named "tcpdump" and one named "tcpdump.<ver>". But it does this Mike> by installing the file twice rather than using links. Since the alt Mike> name is useless to us, just punt it.

Committed with a small change to use POST_INSTALL_TARGET_HOOKS instead, thanks.

Signature · 1 line
Bye, Peter Korsgaard