tcpdump mailing list archives
tcpdump.<VERSION> binary
From: Denis Ovsienko <denis () ovsienko info>
Date: Fri, 6 Sep 2024 15:51:35 +0100
It's me again (hopefully the last point for today).
It has been discussed before, possibly more than once, but I cannot
find the previous thread(s). The matter is, tcpdump Makefile used to
install a binary with an exact version suffix, which is convenient for
local development and cross-testing, but sometimes gets in the way of
packaging.
This is what Debian package does:
--- a/Makefile.in
+++ b/Makefile.in
@@ -426,15 +426,14 @@
[ -d $(DESTDIR)$(bindir) ] || \
(mkdir -p $(DESTDIR)$(bindir); chmod 755
$(DESTDIR)$(bindir)) $(INSTALL_PROGRAM) $(PROG)
$(DESTDIR)$(bindir)/$(PROG)
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)/$(PROG).`cat
${srcdir}/VERSION`
And Haiku:
INSTALL()
{
make install
strip $prefix/bin/tcpdump
rm $prefix/bin/tcpdump.$portVersion
}
And HP-UX:
--- tcpdump-4.99.5.orig/Makefile.in 2024-08-30 21:17:59.000000000
+0100 +++ tcpdump-4.99.5.patched/Makefile.in 2024-09-01
11:57:02.000000000 +0100 @@ -426,7 +426,6 @@
[ -d $(DESTDIR)$(bindir) ] || \
(mkdir -p $(DESTDIR)$(bindir); chmod 755
$(DESTDIR)$(bindir)) $(INSTALL_PROGRAM) $(PROG)
$(DESTDIR)$(bindir)/$(PROG)
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)/$(PROG).`cat
${srcdir}/VERSION` [ -d $(DESTDIR)$(mandir)/man1 ] || \
(mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755
$(DESTDIR)$(mandir)/man1) $(INSTALL_DATA) $(PROG).1
$(DESTDIR)$(mandir)/man1/$(PROG).1
Both Fedora and FreeBSD copy individual files instead of using the
Makefile.
To simplify the use of "make install", would it be a reasonable
trade-off to install the additional binary only when the .devel file
exists?
--
Denis Ovsienko
_______________________________________________
tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org
To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Current thread:
- tcpdump.<VERSION> binary Denis Ovsienko (Sep 06)
- Re: tcpdump.<VERSION> binary Michael Richardson (Sep 06)
- Re: tcpdump.<VERSION> binary Francois-Xavier Le Bail via tcpdump-workers (Sep 07)
