pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ettercap Make this build on NetBSD -current (using...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e8b74a5bfc11
branches:  trunk
changeset: 462320:e8b74a5bfc11
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Sep 30 12:03:21 2003 +0000

description:
Make this build on NetBSD -current (using the same hack as libesmtp does,
including <des.h> if we are on -current or create a symlink in the
BUILDLINK_DIR if we don't have OpenSSL 0.9.7).

Closes PR pkg/22710 by Soren Jacobsen. Bump pkgrevision to 4.

diffstat:

 net/ettercap/Makefile         |  12 ++++++++++--
 net/ettercap/distinfo         |   3 ++-
 net/ettercap/patches/patch-af |  12 ++++++++++++
 3 files changed, 24 insertions(+), 3 deletions(-)

diffs (62 lines):

diff -r 9cf16134aa07 -r e8b74a5bfc11 net/ettercap/Makefile
--- a/net/ettercap/Makefile     Tue Sep 30 10:36:46 2003 +0000
+++ b/net/ettercap/Makefile     Tue Sep 30 12:03:21 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2003/09/28 09:13:58 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2003/09/30 12:03:21 xtraeme Exp $
 
 DISTNAME=              ettercap-0.6.9
-PKGREVISION=           3
+PKGREVISION=           4
 CATEGORIES=            security net
 MASTER_SITES=          http://ettercap.sourceforge.net/download/
 
@@ -18,10 +18,18 @@
 USE_NCURSES=           # newpad(), MAX_FORM_COMMAND
 PTHREAD_OPTS+=         require
 MAKE_ENV+=             MACHINE_ARCH=${MACHINE_ARCH}
+LIBS+=                 -ldes
 
 BUILD_DIRS=            ${WRKSRC} ${WRKSRC}/plugins
 INSTALL_DIRS=          ${WRKSRC} ${WRKSRC}/plugins
 
+post-buildlink:
+       if [ ! -f /usr/include/des.h ]; then \
+               ${LN} -s ${BUILDLINK_DIR}/include/openssl/des.h \
+                       ${BUILDLINK_DIR}/include; \
+       fi
+
 .include "../../devel/ncurses/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
 .include "../../mk/pthread.buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 9cf16134aa07 -r e8b74a5bfc11 net/ettercap/distinfo
--- a/net/ettercap/distinfo     Tue Sep 30 10:36:46 2003 +0000
+++ b/net/ettercap/distinfo     Tue Sep 30 12:03:21 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2003/07/14 11:42:13 jmmv Exp $
+$NetBSD: distinfo,v 1.9 2003/09/30 12:03:21 xtraeme Exp $
 
 SHA1 (ettercap-0.6.9.tar.gz) = 2f70055af569cca75cf2460677229b7b4e4c38a5
 Size (ettercap-0.6.9.tar.gz) = 681245 bytes
@@ -7,3 +7,4 @@
 SHA1 (patch-ac) = 6771b96f36fa9439b0edf79e632f0d2f1125eecd
 SHA1 (patch-ad) = c7f997876c5b76fff77f70280f5b5fe523778abf
 SHA1 (patch-ae) = 58ea3d1500fb5f1c4b38ec795b884cfb2dd0ab42
+SHA1 (patch-af) = 0e94147d720e12a4298c0bf536d4385ee75625b0
diff -r 9cf16134aa07 -r e8b74a5bfc11 net/ettercap/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ettercap/patches/patch-af     Tue Sep 30 12:03:21 2003 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.1 2003/09/30 12:03:21 xtraeme Exp $
+
+--- src/ec_dissector_ssh.c.orig        2003-09-30 13:46:55.000000000 +0200
++++ src/ec_dissector_ssh.c     2003-09-30 13:48:01.000000000 +0200
+@@ -29,6 +29,7 @@
+ #else
+       #include <arpa/nameser.h>
+ #endif
++#include <des.h>
+ #include <openssl/ssl.h>
+ #include <openssl/rand.h>
+ #include <ctype.h>



Home | Main Index | Thread Index | Old Index