diff options
author | pav <pav@FreeBSD.org> | 2004-05-03 02:18:08 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-03 02:18:08 +0800 |
commit | a4c5d2b5aa29395798c2dfd2aaf5185c069458a8 (patch) | |
tree | b1b91614a16e528914174ecb9fc3ecdea733be23 /security | |
parent | b98ddc80644b3f5d80109404d57e979d01dbf84b (diff) | |
download | freebsd-ports-gnome-a4c5d2b5aa29395798c2dfd2aaf5185c069458a8.tar.gz freebsd-ports-gnome-a4c5d2b5aa29395798c2dfd2aaf5185c069458a8.tar.zst freebsd-ports-gnome-a4c5d2b5aa29395798c2dfd2aaf5185c069458a8.zip |
- Unbreak on amd64: disable offending plugin
PR: ports/66052
Submitted by: Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
Diffstat (limited to 'security')
-rw-r--r-- | security/nessus-plugins/Makefile | 10 | ||||
-rw-r--r-- | security/nessus-plugins/files/extra-patch-3com-hub-amd64 | 18 | ||||
-rw-r--r-- | security/nessus-plugins/pkg-plist | 2 |
3 files changed, 26 insertions, 4 deletions
diff --git a/security/nessus-plugins/Makefile b/security/nessus-plugins/Makefile index 8bc7d4952178..c7a2ccb9e261 100644 --- a/security/nessus-plugins/Makefile +++ b/security/nessus-plugins/Makefile @@ -20,8 +20,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 \ - libnet-config:${PORTSDIR}/net/libnet +BUILD_DEPENDS= ${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus RUN_DEPENDS= ${LOCALBASE}/include/nessus/nessus-devel.h:${PORTSDIR}/security/nessus \ nmap:${PORTSDIR}/security/nmap \ wget:${PORTSDIR}/ftp/wget @@ -38,7 +37,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/files/extra-patch-3com-hub-amd64 b/security/nessus-plugins/files/extra-patch-3com-hub-amd64 new file mode 100644 index 000000000000..81eacf635f91 --- /dev/null +++ b/security/nessus-plugins/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/pkg-plist b/security/nessus-plugins/pkg-plist index fb9195b82bd2..e6dc3ebf3377 100644 --- a/security/nessus-plugins/pkg-plist +++ b/security/nessus-plugins/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 |