openbsd-ports/net/ngrep/patches/patch-Makefile_in
sthen 2870e043fe - drop privs to a new _ngrep user rather than nobody,
- chroot to /var/empty,
- support pppoe,
- autoconf surgery (functional rather than pretty) to use a version
of pcre from the century of the fruitbat,
- fix license marker, regen plist

reads good to jasper@
2009-03-30 21:19:02 +00:00

50 lines
1.3 KiB
Plaintext

--- Makefile.in.orig Tue Nov 28 13:35:37 2006
+++ Makefile.in Thu Mar 26 22:14:15 2009
@@ -11,7 +11,7 @@ CFLAGS=@CFLAGS@ -D@OS@ @DEFS@ @EXTRA_DEFINES@
INCLUDES=-I@srcdir@ @PCAP_INCLUDE@ @EXTRA_INCLUDES@
LDFLAGS=@LDFLAGS@ @PCAP_LINK@
-LIBS=-lpcap @EXTRA_LIBS@
+LIBS=@LIBS@ @EXTRA_LIBS@
STRIPFLAG=@STRIPFLAG@
@@ -25,14 +25,14 @@ exec_prefix = @exec_prefix@
bindir = $(prefix)/bin
datadir = $(prefix)/share
-mandir = $(datadir)/man
+mandir = $(prefix)/man
-BINDIR_INSTALL = $(prefix)/bin
+BINDIR_INSTALL = $(prefix)/sbin
MANDIR_INSTALL = $(mandir)/man8
INSTALL = ./install-sh
-REGEX_DIR=@REGEX_DIR@
+#REGEX_DIR=@REGEX_DIR@
REGEX_OBJS=@REGEX_OBJS@
@@ -55,15 +55,15 @@ install: $(TARGET)
$(CC) $(CFLAGS) $(INCLUDES) -g -c $<
clean:
- make -C $(REGEX_DIR) clean
+ #make -C $(REGEX_DIR) clean
rm -f *~ $(OBJS) $(REGEX_OBJS) $(TARGET) $(TARGET).static
distclean: clean
- make -C $(REGEX_DIR) distclean
+ #make -C $(REGEX_DIR) distclean
rm -f config.status config.cache config.log config.h Makefile
-$(REGEX_OBJS): $(REGEX_OBJS:.o=.c) $(REGEX_DIR)/*.h
- $(MAKE) $(MAKEFLAGS) -C $(REGEX_DIR) $(notdir $(REGEX_OBJS))
+#$(REGEX_OBJS): $(REGEX_OBJS:.o=.c) $(REGEX_DIR)/*.h
+# $(MAKE) $(MAKEFLAGS) -C $(REGEX_DIR) $(notdir $(REGEX_OBJS))
$(OBJS): Makefile ngrep.c ngrep.h