aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/nessus-plugins-devel/Makefile10
-rw-r--r--security/nessus-plugins-devel/files/extra-patch-3com-hub-amd6418
-rw-r--r--security/nessus-plugins-devel/pkg-plist2
3 files changed, 26 insertions, 4 deletions
diff --git a/security/nessus-plugins-devel/Makefile b/security/nessus-plugins-devel/Makefile
index 9c7522755216..0002c8fa6c8b 100644
--- a/security/nessus-plugins-devel/Makefile
+++ b/security/nessus-plugins-devel/Makefile
@@ -17,8 +17,7 @@ DISTNAME= nessus-plugins-${PORTVERSION}
MAINTAINER= udo.schweigert@siemens.com
COMMENT= Plugins for Nessus, the security scanner
-BUILD_DEPENDS= ${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus-devel \
- libnet-config:${PORTSDIR}/net/libnet
+BUILD_DEPENDS= ${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus-devel
RUN_DEPENDS= ${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus-devel \
nmap:${PORTSDIR}/security/nmap \
wget:${PORTSDIR}/ftp/wget
@@ -35,7 +34,12 @@ MAN8= nessus-update-plugins.8
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
-BROKEN= "Does not compile on amd64 (libnet needs to provide a shared library)"
+PLIST_SUB+= AMD="@comment "
+pre-configure:
+ ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-3com-hub-amd64
+.else
+PLIST_SUB+= AMD=""
+BUILD_DEPENDS+= libnet-config:${PORTSDIR}/net/libnet
.endif
post-install:
diff --git a/security/nessus-plugins-devel/files/extra-patch-3com-hub-amd64 b/security/nessus-plugins-devel/files/extra-patch-3com-hub-amd64
new file mode 100644
index 000000000000..81eacf635f91
--- /dev/null
+++ b/security/nessus-plugins-devel/files/extra-patch-3com-hub-amd64
@@ -0,0 +1,18 @@
+--- plugins/make_world.orig Sun Jun 9 13:07:06 2002
++++ plugins/make_world Wed Apr 28 17:03:30 2004
+@@ -15,14 +15,7 @@
+ do if [ -d $i -a $i != CVS ]; then
+ if [ "$i" = "3com_hub" ];
+ then
+- libnet-config && {
+- cd $i
+- ${MAKE:-make} $MAKEFLAG $1
+- if [ $? -ne 0 ];then
+- BADPLUGINS="$BADPLUGINS $i"
+- fi
+- cd ..
+- }
++ BADPLUGINS="$BADPLUGINS $i";
+ else
+ cd $i
+ ${MAKE:-make} $MAKEFLAG $1
diff --git a/security/nessus-plugins-devel/pkg-plist b/security/nessus-plugins-devel/pkg-plist
index fb9195b82bd2..e6dc3ebf3377 100644
--- a/security/nessus-plugins-devel/pkg-plist
+++ b/security/nessus-plugins-devel/pkg-plist
@@ -2,7 +2,7 @@ bin/nessus-build
lib/nessus/plugins/12planet_chat_server_path_disclosure.nasl
lib/nessus/plugins/12planet_chat_server_plaintext_password.nasl
lib/nessus/plugins/3com_config_disclosure.nasl
-lib/nessus/plugins/3com_hub.nes
+%%AMD%%lib/nessus/plugins/3com_hub.nes
lib/nessus/plugins/3com_ras_crash.nasl
lib/nessus/plugins/3com_switches.nasl
lib/nessus/plugins/404_path_disclosure.nasl