openbsd-ports/sysutils/tcplist/patches/patch-Makefile
sthen 5c54bb26a9 - add upstream patches (missing ntohl, adjust lsof parsing)
- add missing prototype
- unbreak lsof command line
- mark BROKEN on lp64

considering between these problems this port was totally useless, so
presumably nobody actually uses this and is a good candidate for removal.
2012-01-17 17:08:16 +00:00

71 lines
1.4 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2012/01/17 17:08:16 sthen Exp $
--- Makefile.orig Tue Jan 17 16:38:38 2012
+++ Makefile Tue Jan 17 16:38:39 2012
@@ -1,14 +1,16 @@
# Compiler: eg. cc or gcc
-CC = cc
+#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,25 +47,25 @@ MANEXT = 1
#
# 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:
# DEFS = -DLSOF -DOLDLSOF
# CFLAGS = $(DEFS) -DNOIDENT=\"$(NOIDENT)\" -O
-CFLAGS = $(DEFS) -DDEBUG -DNOIDENT=\"$(NOIDENT)\" -g
+CFLAGS += $(DEFS) -DDEBUG -DNOIDENT=\"$(NOIDENT)\"
#
# End of user-configurable options
@@ -76,8 +78,8 @@ OBJS = $(SRCS:.c=.o)
RM = /bin/rm -rf
CP = /bin/cp
CHMOD = /bin/chmod
-CHOWN = /bin/chown
-CHGRP = /bin/chgrp
+CHOWN = /usr/sbin/chown
+CHGRP = /usr/sbin/chgrp
all:: tcplist