Fix build on Darwin and SunOS.
This commit is contained in:
parent
3cefcaf660
commit
170f84da07
3 changed files with 20 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.17 2016/07/09 06:38:41 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.18 2017/06/14 09:30:20 jperkin Exp $
|
||||
|
||||
DISTNAME= dnstracer-1.10
|
||||
PKGREVISION= 2
|
||||
|
@ -17,6 +17,8 @@ WRKSRC= ${WRKDIR}/${PKGBASE}
|
|||
AUTO_MKDIRS= yes
|
||||
USE_TOOLS+= gzip tar perl:run pod2man
|
||||
|
||||
CFLAGS.SunOS+= -Du_int16_t=uint16_t -Du_int32_t=uint32_t
|
||||
LDFLAGS.Darwin+= -lresolv
|
||||
LDFLAGS.SunOS+= -lresolv -lsocket -lnsl
|
||||
|
||||
# filename is .tar.bz2, but it seems .tar.gz format
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.7 2015/11/04 00:34:58 agc Exp $
|
||||
$NetBSD: distinfo,v 1.8 2017/06/14 09:30:20 jperkin Exp $
|
||||
|
||||
SHA1 (dnstracer-1.10.tar.bz2) = b08c3b5d90226610931e49144b3e7fdf2d567d8a
|
||||
RMD160 (dnstracer-1.10.tar.bz2) = e5ab05ac6464e5aae4f3d7ce460ab7f4a9fbecf0
|
||||
SHA512 (dnstracer-1.10.tar.bz2) = 8174f92c5c1b300c1011a24f0cf2f16dc2b52a082729e52d1033a047e20d132d6005b89618ecbbd25cbdc1c95cdc0748cf666bdc56b769b240d8885469bc6e05
|
||||
Size (dnstracer-1.10.tar.bz2) = 19169 bytes
|
||||
SHA1 (patch-Makefile) = 30ee38e87cdeb7bb1f9ee73714a3d8305f229baa
|
||||
SHA1 (patch-dnstracer.c) = a21dbd54c3fd742c8650b95fcb4fd84c6540f537
|
||||
|
|
15
net/dnstracer/patches/patch-Makefile
Normal file
15
net/dnstracer/patches/patch-Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
$NetBSD: patch-Makefile,v 1.1 2017/06/14 09:30:20 jperkin Exp $
|
||||
|
||||
Use pkgsrc flags.
|
||||
|
||||
--- Makefile.orig 2008-06-11 12:51:35.000000000 +0000
|
||||
+++ Makefile
|
||||
@@ -18,7 +18,7 @@ clean:
|
||||
-rm dnstracer.o dnstracer dnstracer.8 dnstracer.core
|
||||
|
||||
dnstracer: dnstracer.c dnstracer-missing.h
|
||||
- $(CC) -Wall -o dnstracer -DVERSION="${VERSION}" dnstracer.c
|
||||
+ $(CC) $(CFLAGS) -o dnstracer $(LDFLAGS) -DVERSION="${VERSION}" dnstracer.c
|
||||
|
||||
dnstracer.8: dnstracer.pod
|
||||
pod2man --release="${MANDATE}" --date="${MANDATE}" \
|
Loading…
Reference in a new issue