diff options
author | pav <pav@FreeBSD.org> | 2007-01-31 14:09:55 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-01-31 14:09:55 +0000 |
commit | ccd12ccd577604add511aad4ea4e71c32b3e2f06 (patch) | |
tree | 25b833c135dd7f2323045f819dc7121e621103fc /net/gspoof | |
parent | e2f15954f8960a944e8d5b2c28982257d8c6e91f (diff) | |
download | FreeBSD-ports-ccd12ccd577604add511aad4ea4e71c32b3e2f06.zip FreeBSD-ports-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.gz |
- Patch net/libnet* to versioned libraries and header files, so they can
coexist
PR: ports/103861
Submitted by: alepulver
Tested by: pointyhat
With hat: portmgr
Diffstat (limited to 'net/gspoof')
-rw-r--r-- | net/gspoof/Makefile | 12 | ||||
-rw-r--r-- | net/gspoof/files/patch-configure | 30 |
2 files changed, 38 insertions, 4 deletions
diff --git a/net/gspoof/Makefile b/net/gspoof/Makefile index d344733..a6c35c3 100644 --- a/net/gspoof/Makefile +++ b/net/gspoof/Makefile @@ -8,7 +8,7 @@ PORTNAME= gspoof PORTVERSION= 3.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,15 +16,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Console/GTK+ TCP/IP Packets Forger -BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet USE_GNOME= gnometarget gtk20 USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-libnet-prefix=${LOCALBASE} + +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config post-patch: - @${REINPLACE_CMD} -e 's|-Wall -O2|$${CFLAGS}|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|-Wall -O2|$${CFLAGS}|g; \ + s|libnet-config|${LIBNET_CONFIG}|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e 's|-Wall -O2|@CFLAGS@|g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|g ; \ s|/usr/share|${X11BASE}/share|g' ${WRKSRC}/gtk.c diff --git a/net/gspoof/files/patch-configure b/net/gspoof/files/patch-configure new file mode 100644 index 0000000..9721ae8 --- /dev/null +++ b/net/gspoof/files/patch-configure @@ -0,0 +1,30 @@ +--- ./configure.orig Tue Dec 23 07:54:42 2003 ++++ ./configure Wed Sep 27 18:23:26 2006 +@@ -2505,24 +2505,12 @@ + as_ac_File=`echo "ac_cv_file_$LIBNET_PREFIX/lib/libnet.a" | $as_tr_sh` + echo "$as_me:$LINENO: checking for $LIBNET_PREFIX/lib/libnet.a" >&5 + echo $ECHO_N "checking for $LIBNET_PREFIX/lib/libnet.a... $ECHO_C" >&6 +-if eval "test \"\${$as_ac_File+set}\" = set"; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- test "$cross_compiling" = yes && +- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} +- { (exit 1); exit 1; }; } +-if test -r "$LIBNET_PREFIX/lib/libnet.a"; then +- eval "$as_ac_File=yes" +-else +- eval "$as_ac_File=no" +-fi +-fi ++eval "$as_ac_File=yes" + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 + echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 + if test `eval echo '${'$as_ac_File'}'` = yes; then +- LDFLAGS="-L$LIBNET_PREFIX/lib" +- CPPFLAGS="-I$LIBNET_PREFIX/include" ++ LDFLAGS="`libnet-config --libs`" ++ CPPFLAGS="`libnet-config --cflags`" + else + { { echo "$as_me:$LINENO: error: + Libnet-1.1.1 Packet Shaping Library is required! |