openbsd-ports/net/ngrep/patches/patch-configure_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

73 lines
1.3 KiB
Plaintext

--- configure.in.orig Wed Nov 15 03:43:56 2006
+++ configure.in Thu Mar 26 22:07:10 2009
@@ -111,47 +111,12 @@ else
fi
-dnl
-dnl Configure the regular expression library.
-dnl
+AC_CHECK_LIB(pcre, pcre_compile,,echo need pcre lib; exit)
+REGEX_OBJS=''
+USE_PCRE="1"
-AC_ARG_ENABLE(pcre,
-[ --enable-pcre use PCRE instead of GNU regex],
-[
- use_pcre="$enableval"
-],
-[
- use_pcre="no"
-])
-
-if test $use_pcre = yes; then
-
- echo
- echo 'Configuring Perl-Compatible Regular Expression (PCRE) library ...'
- echo
-
- REGEX_DIR='pcre-5.0'
- REGEX_OBJS="$REGEX_DIR/pcre.o $REGEX_DIR/study.o"
- USE_PCRE="1"
-
-else
-
- echo
- echo 'Configuring GNU Regular Expression library ...'
- echo
-
- REGEX_DIR='regex-0.12'
- REGEX_OBJS="$REGEX_DIR/regex.o"
- USE_PCRE="0"
-
-fi
-
-( cd $REGEX_DIR && ./configure )
-
-AC_SUBST(REGEX_DIR)
AC_SUBST(REGEX_OBJS)
-
echo
echo 'Configuring Network Grep (ngrep) ...'
echo
@@ -193,18 +158,6 @@ unsigned short bar = foo.source;
*bsd*)
AC_SUBST(OS, BSD)
-
- if test "$USE_PCAP_RESTART" = "0"; then
-
- AC_MSG_WARN(
-Your OS ($target_os) may have an old libpcap installation.
-If the resulting ngrep binary segfaults when a BPF filter is specified
-without an ngrep match string then you should reconfigure ngrep with
-the option ``--disable-pcap-restart''.
-)
- sleep 3
-
- fi
;;