1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/sysutils/tcplist/files/patch-01
David E. O'Brien 0658e2e2d2 Need to use htons() on the port number before calling getservicebyname().
(thanks Christopher!)

Submitted by:	Christopher Masto <chris@chris.netmonger.net>
1997-04-24 17:32:25 +00:00

61 lines
1.1 KiB
Plaintext

--- Makefile.orig Thu Apr 24 09:33:17 1997
+++ Makefile Thu Apr 24 10:02:39 1997
@@ -1,14 +1,16 @@
# Compiler: eg. cc or gcc
CC = cc
+#PREFIX= /local
+
# Directory to install tcplist executable
-BINDIR = /local/bin
+BINDIR = $(PREFIX)/bin
# Directory to install tcplist man page
-MANDIR = /local/man/man1
+MANDIR = $(PREFIX)/man/man1
# Location of NOIDENT file
-NOIDENT = /etc/hosts.noident
+NOIDENT = $(PREFIX)/etc/hosts.noident
# Owner of tcplist executable
OWNER = root
@@ -45,18 +47,18 @@
#
# Solaris 2.x (using LSOF):
#
-LIBRARIES = -lsocket -lnsl
-DEFS = -DLSOF
-MODE = 755
-GROUP = staff
+#LIBRARIES = -lsocket -lnsl
+#DEFS = -DLSOF
+#MODE = 755
+#GROUP = staff
#
# Generic LSOF:
#
-# LIBRARIES =
-# DEFS = -DLSOF
-# MODE = 755
-# GROUP = staff
+ LIBRARIES =
+ DEFS = -DLSOF
+ MODE = 755
+ GROUP = staff
#
# If you're using an old version of lsof, uncomment this:
@@ -76,8 +78,8 @@
RM = /bin/rm -rf
CP = /bin/cp
CHMOD = /bin/chmod
-CHOWN = /bin/chown
-CHGRP = /bin/chgrp
+CHOWN = /usr/sbin/chown
+CHGRP = /usr/bin/chgrp
all:: tcplist