pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tcptraceroute tcptraceroute: Find libpcap correctly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc6facec038e
branches:  trunk
changeset: 390050:dc6facec038e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Dec 15 12:15:01 2022 +0000

description:
tcptraceroute: Find libpcap correctly.

diffstat:

 net/tcptraceroute/Makefile         |  11 +----------
 net/tcptraceroute/distinfo         |   4 ++--
 net/tcptraceroute/patches/patch-aa |  17 +++++++++++++----
 3 files changed, 16 insertions(+), 16 deletions(-)

diffs (72 lines):

diff -r 7e6bcac3f0dc -r dc6facec038e net/tcptraceroute/Makefile
--- a/net/tcptraceroute/Makefile        Thu Dec 15 12:14:34 2022 +0000
+++ b/net/tcptraceroute/Makefile        Thu Dec 15 12:15:01 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2020/01/07 10:37:04 kim Exp $
+# $NetBSD: Makefile,v 1.21 2022/12/15 12:15:01 jperkin Exp $
 #
 
 DISTNAME=              tcptraceroute-1.4
@@ -18,14 +18,6 @@
 
 SPECIAL_PERMS+=                sbin/tcptraceroute ${SETUID_ROOT_PERMS}
 
-.include "../../mk/bsd.prefs.mk"
-
-SUBST_CLASSES+=                conf
-SUBST_STAGE.conf=      pre-build
-SUBST_FILES.conf=      Makefile
-SUBST_SED.conf=                -e "s|libnet-config|libnet10-config|g"
-SUBST_MESSAGE.conf=    Fixing configuration script.
-
 INSTALLATION_DIRS=     ${PKGMANDIR}/man8 sbin ${DOCDIR}
 
 do-install:
@@ -35,5 +27,4 @@
 
 .include "../../devel/libnet10/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"
-
 .include "../../mk/bsd.pkg.mk"
diff -r 7e6bcac3f0dc -r dc6facec038e net/tcptraceroute/distinfo
--- a/net/tcptraceroute/distinfo        Thu Dec 15 12:14:34 2022 +0000
+++ b/net/tcptraceroute/distinfo        Thu Dec 15 12:15:01 2022 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 11:07:01 nia Exp $
+$NetBSD: distinfo,v 1.10 2022/12/15 12:15:01 jperkin Exp $
 
 BLAKE2s (tcptraceroute-1.4.tar.gz) = 3f60b21786293a78a4f701e358eca44165921a1fce0cb00c5bff1674fd979faa
 SHA512 (tcptraceroute-1.4.tar.gz) = 6aea6a8bba08a0f0024769155bb7e0d8a3a4741e4e4375f66fde3bec644bff782027b3bd8a657120f259dfff9da0ad8ab83598a15823467efeb31a64cbd43287
 Size (tcptraceroute-1.4.tar.gz) = 31918 bytes
-SHA1 (patch-aa) = 26899ae5898dcdbaa8b12a178ff6c2b362a675c9
+SHA1 (patch-aa) = 0734b9964415871b50414ba037831b2d703db33a
 SHA1 (patch-ab) = 306c6cbae3e08b7db45883eb655646b80278bb92
diff -r 7e6bcac3f0dc -r dc6facec038e net/tcptraceroute/patches/patch-aa
--- a/net/tcptraceroute/patches/patch-aa        Thu Dec 15 12:14:34 2022 +0000
+++ b/net/tcptraceroute/patches/patch-aa        Thu Dec 15 12:15:01 2022 +0000
@@ -1,8 +1,10 @@
-$NetBSD: patch-aa,v 1.1.1.1 2003/07/21 22:26:53 kim Exp $
+$NetBSD: patch-aa,v 1.2 2022/12/15 12:15:01 jperkin Exp $
+
+Find correct libraries.
 
---- Makefile.orig      Sun May 19 21:11:38 2002
-+++ Makefile   Mon Jul 21 16:54:09 2003
-@@ -4,7 +4,7 @@
+--- Makefile.orig      2002-05-20 01:11:38.000000000 +0000
++++ Makefile
+@@ -4,13 +4,13 @@
  # Copyright (c) 2001, 2002 Michael C. Toren <mct%toren.net@localhost>
  
  CC = gcc
@@ -11,3 +13,10 @@
  DESTDIR=/usr/local/bin
  
  tcptraceroute: tcptraceroute.c
+       $(CC) $(CFLAGS) `libnet-config --defines` \
+               -o tcptraceroute tcptraceroute.c \
+-              `libnet-config --libs` -lpcap
++              `libnet10-config --libs` `pcap-config --libs`
+ 
+ static:
+       $(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static"



Home | Main Index | Thread Index | Old Index