diff -ruN nessus-plugins.orig/configure nessus-plugins/configure --- nessus-plugins.orig/configure Sat Feb 22 08:46:23 2003 +++ nessus-plugins/configure Sat Mar 15 14:03:30 2003 @@ -3438,7 +3438,7 @@ # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. - archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' + archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags $(test "x$module" != xyes && echo -install_name $rpath/$soname $verstring)' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' hardcode_direct=yes diff -ruN nessus-plugins.orig/plugins/3com_hub/3com_hub.c nessus-plugins/plugins/3com_hub/3com_hub.c --- nessus-plugins.orig/plugins/3com_hub/3com_hub.c Mon Feb 24 04:54:08 2003 +++ nessus-plugins/plugins/3com_hub/3com_hub.c Sat Mar 15 23:29:13 2003 @@ -6,6 +6,11 @@ #include #include +#if defined(__APPLE__) && defined(__GNUC__) +#define LIBNET_IP_H LIBNET_IPV4_H +#define LIBNET_ICMP_ECHO_H LIBNET_ICMPV4_ECHO_H +#endif /* Darwin */ + #define EN_NAME "3Com hub" #define EN_FAMILY "Misc." diff -ruN nessus-plugins.orig/plugins/3com_hub/Makefile.darwin nessus-plugins/plugins/3com_hub/Makefile.darwin --- nessus-plugins.orig/plugins/3com_hub/Makefile.darwin Sun Jun 9 05:06:53 2002 +++ nessus-plugins/plugins/3com_hub/Makefile.darwin Mon Apr 14 10:35:53 2003 @@ -2,12 +2,13 @@ PLUGNAME=3com_hub -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +INCS = `libnet-config --defines --cflags` +LD_ADDS = `libnet-config --defines --libs` + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/darwin.inc nessus-plugins/plugins/darwin.inc --- nessus-plugins.orig/plugins/darwin.inc Wed Dec 31 17:00:00 1969 +++ nessus-plugins/plugins/darwin.inc Mon Apr 14 11:13:15 2003 @@ -0,0 +1,23 @@ +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(include) +LINK = $(LIBTOOL) --mode=link $(CC) \ + -flat_namespace -undefined suppress \ + $(DEFS) $(LDFLAGS) -o $@ + +la_LDFLAGS = -bundle -avoid-version + +.SUFFIXES: .c .lo .o + +.c.o: + $(CC) $(DEFS) $(include) $(INCS) $(LIBNET_INC) -c $< + +.c.lo: + $(LTCOMPILE) $(INCS) $(LIBNET_INC) -c $< + +$(PLUGNAME).nes: $(LO_OBJS) + $(LINK) -rpath $(prefix)/bin/plugins $(la_LDFLAGS) \ + $(LD_ADDS) $(LIBUTIL) $(LO_OBJS) $(LIBS) + ../install_plug $(PLUGNAME) $(rootdir) + +clean: + @rm -fr *.lo *.nes *.la .libs + @rm -fr *.o diff -ruN nessus-plugins.orig/plugins/find_service/Makefile.darwin nessus-plugins/plugins/find_service/Makefile.darwin --- nessus-plugins.orig/plugins/find_service/Makefile.darwin Wed Nov 7 13:28:34 2001 +++ nessus-plugins/plugins/find_service/Makefile.darwin Mon Apr 14 10:07:31 2003 @@ -2,12 +2,10 @@ PLUGNAME=find_service -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/ftp_write_dirs/Makefile.darwin nessus-plugins/plugins/ftp_write_dirs/Makefile.darwin --- nessus-plugins.orig/plugins/ftp_write_dirs/Makefile.darwin Wed Nov 7 13:28:34 2001 +++ nessus-plugins/plugins/ftp_write_dirs/Makefile.darwin Mon Apr 14 10:07:54 2003 @@ -2,12 +2,10 @@ PLUGNAME=ftp_write_dirs -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/hydra/Makefile.darwin nessus-plugins/plugins/hydra/Makefile.darwin --- nessus-plugins.orig/plugins/hydra/Makefile.darwin Mon Feb 24 05:52:48 2003 +++ nessus-plugins/plugins/hydra/Makefile.darwin Mon Apr 14 11:13:57 2003 @@ -2,77 +2,20 @@ PLUGNAME=hydra -all : $(PLUGNAME).nes +all: $(PLUGNAME).nes -O_OBJS = d3des.o hydra4nessus.o hydra-cisco.o \ +LO_OBJS = d3des.o hydra4nessus.o hydra-cisco.o \ hydra-ftp.o hydra-http.o hydra-icq.o \ hydra-imap.o hydra-mod.o hydra-nntp.o \ hydra-pcnfs.o hydra-pop3.o hydra-rexec.o hydra-smb.o \ - hydra-socks5.o hydra-telnet.o hydra-vnc.o hydra.o \ - hydra-cisco-enable.o hydra-ldap.o + hydra-ldap.o hydra-cisco-enable.o \ + hydra-socks5.o hydra-telnet.o hydra-vnc.o hydra.o +#LO_OBJS = d3des.lo hydra4nessus.lo hydra-cisco.lo \ +# hydra-ftp.lo hydra-http.lo hydra-icq.lo \ +# hydra-imap.lo hydra-mod.lo hydra-nntp.lo \ +# hydra-pcnfs.lo hydra-pop3.lo hydra-rexec.lo hydra-smb.lo \ +# hydra-ldap.lo hydra-cisco-enable.lo \ +# hydra-socks5.lo hydra-telnet.lo hydra-vnc.lo hydra.lo -d3des.o : d3des.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c d3des.c - -hydra4nessus.o : hydra4nessus.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra4nessus.c - -hydra.o : hydra.c - $(LIBTOOL) $(CC) $(DEFS) -DNESSUS_PLUGIN $(include) -c hydra.c - -hydra-cisco.o : hydra-cisco.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-cisco.c - -hydra-ftp.o : hydra-ftp.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-ftp.c - -hydra-http.o : hydra-http.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-http.c - -hydra-icq.o : hydra-icq.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-icq.c - -hydra-imap.o : hydra-imap.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-imap.c - -hydra-mod.o : hydra-mod.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-mod.c - -hydra-nntp.o : hydra-nntp.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-nntp.c - -hydra-pcnfs.o : hydra-pcnfs.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-pcnfs.c - -hydra-pop3.o : hydra-pop3.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-pop3.c - -hydra-rexec.o : hydra-rexec.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-rexec.c - -hydra-smb.o : hydra-smb.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-smb.c - -hydra-socks5.o : hydra-socks5.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-socks5.c - -hydra-telnet.o : hydra-telnet.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-telnet.c - -hydra-vnc.o : hydra-vnc.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-vnc.c - -hydra-cisco-enable.o : hydra-cisco-enable.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-cisco-enable.c - -hydra-ldap.o : hydra-ldap.c - $(CC) -bundle -undefined error $(DEFS) $(include) -c hydra-ldap.c - -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(O_OBJS) - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(O_OBJS) $(LIBS) - cp hydra.nes $(rootdir)/bin -clean : - @rm -fr *.o *.nes *.la .libs - +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/install_plug nessus-plugins/plugins/install_plug --- nessus-plugins.orig/plugins/install_plug Tue Oct 16 14:47:12 2001 +++ nessus-plugins/plugins/install_plug Mon Apr 14 09:29:05 2003 @@ -28,10 +28,9 @@ cp .libs/$1.so.0.0.0 $2/bin/$1.nes cp .libs/lib$1.so.0.0.0 $1.nes else -if [ -f .libs/lib$1.0.0.0.dylib ]; then # Darwin +if [ -f ./$1.nes ]; then # Darwin test -d $2/bin || mkdir $2/bin -cp .libs/lib$1.0.0.0.dylib $2/bin/$1.nes -cp .libs/lib$1.0.0.0.dylib $1.nes +cp ./$1.nes $2/bin/$1.nes fi fi fi diff -ruN nessus-plugins.orig/plugins/linux_tftp/Makefile.darwin nessus-plugins/plugins/linux_tftp/Makefile.darwin --- nessus-plugins.orig/plugins/linux_tftp/Makefile.darwin Wed Nov 7 13:28:34 2001 +++ nessus-plugins/plugins/linux_tftp/Makefile.darwin Mon Apr 14 10:08:21 2003 @@ -2,12 +2,10 @@ PLUGNAME=linux_tftp -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/nikto_wrapper/Makefile.darwin nessus-plugins/plugins/nikto_wrapper/Makefile.darwin --- nessus-plugins.orig/plugins/nikto_wrapper/Makefile.darwin Fri Feb 15 05:29:23 2002 +++ nessus-plugins/plugins/nikto_wrapper/Makefile.darwin Mon Apr 14 10:08:57 2003 @@ -2,12 +2,10 @@ PLUGNAME=nikto_wrapper -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/nmap_osfingerprint/Makefile.darwin nessus-plugins/plugins/nmap_osfingerprint/Makefile.darwin --- nessus-plugins.orig/plugins/nmap_osfingerprint/Makefile.darwin Mon Feb 24 08:19:48 2003 +++ nessus-plugins/plugins/nmap_osfingerprint/Makefile.darwin Mon Apr 14 11:36:00 2003 @@ -1,6 +1,9 @@ include ../../nessus.tmpl PLUGNAME=nmap_osfingerprint + +all: $(PLUGNAME).nes + OBJS = main.o \ nmap.o \ targets.o \ @@ -12,21 +15,18 @@ timing.o \ portlist.o +LO_OBJS = main.lo \ + nmap.lo \ + targets.lo \ + tcpip.lo \ + nmap_error.lo \ + utils.lo \ + osscan.lo \ + output.lo \ + timing.lo \ + portlist.lo -NMAP_STUFF=-DNMAP_VERSION=\"3.00\" -DLOCALSTATEDIR=\"$(localstatedir)\" - - - -all : $(PLUGNAME).nes - -.c.o: - $(CC) -bundle -undefined error $(DEFS) $(NMAP_STUFF) $(include) -c $< - - -$(PLUGNAME).nes : $(OBJS) - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(OBJS) $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +INCS = -DNMAP_VERSION=\"3.00\" -DLOCALSTATEDIR=\"$(localstatedir)\" +LD_ADDS = -DNMAP_VERSION=\"3.00\" -DLOCALSTATEDIR=\"$(localstatedir)\" +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/nmap_osfingerprint/tcpip.c nessus-plugins/plugins/nmap_osfingerprint/tcpip.c --- nessus-plugins.orig/plugins/nmap_osfingerprint/tcpip.c Mon Feb 24 07:46:20 2003 +++ nessus-plugins/plugins/nmap_osfingerprint/tcpip.c Mon Apr 14 11:35:37 2003 @@ -81,6 +81,7 @@ through the kernel localhost interface */ #ifndef WIN32 /* This next group of functions are already defined in wintcpip.c for now */ +#ifndef __APPLE__ int islocalhost(struct in_addr *addr) { char dev[128]; @@ -102,7 +103,9 @@ localhost */ return 0; } - +#else +extern int islocalhost(struct in_addr *addr); +#endif /* Darwin */ /* Calls pcap_open_live and spits out an error (and quits) if the call faile. So a valid pcap_t will always be returned. */ @@ -365,6 +368,7 @@ #endif /* WIN32 */ +#ifndef __APPLE__ int getsourceip(struct in_addr *src, struct in_addr *dst) { int sd; @@ -399,7 +403,9 @@ close(sd); return 1; /* Calling function responsible for checking validity */ } - +#else +extern int getsourceip(struct in_addr *src, struct in_addr *dst); +#endif /* Darwin */ /* Read an IP packet using libpcap . We return the packet and take @@ -637,6 +643,7 @@ #ifndef WIN32 /* Currently the Windows code for next few functions is in wintcpip.c -- should probably be merged at some point */ +#ifndef __APPLE__ int ipaddr2devname(char *dev, struct in_addr *addr) { struct interface_info *mydevs; @@ -655,6 +662,9 @@ } return -1; } +#else +extern int ipaddr2devname(char *dev, struct in_addr *addr); +#endif /* Darwin */ int devname2ipaddr(char *dev, struct in_addr *addr) { @@ -678,6 +688,7 @@ #ifndef WIN32 /* ifdef'd out for now because 'doze apparently doesn't support ioctl() */ +#ifndef __APPLE__ struct interface_info *getinterfaces(int *howmany) { static int initialized = 0; @@ -762,6 +773,9 @@ *howmany = numinterfaces; return mydevs; } +#else +extern struct interface_info *getinterfaces(int *howmany); +#endif /* Darwin */ #endif @@ -775,6 +789,7 @@ should probably be merged at some point */ #define ROUTETHROUGH_MAXROUTES 1024 +#ifndef __APPLE__ char *routethrough(struct in_addr *dest, struct in_addr *source) { static int initialized = 0; @@ -917,6 +932,9 @@ fatal("I know sendmail technique ... I know rdist technique ... but I don't know what the hell kindof technique you are attempting!!!"); return NULL; } +#else +extern char *routethrough(struct in_addr *dest, struct in_addr *source); +#endif /* Darwin */ #endif /* WIN32 */ /* Maximize the receive buffer of a socket descriptor (up to 500K) */ diff -ruN nessus-plugins.orig/plugins/nmap_osfingerprint/utils.c nessus-plugins/plugins/nmap_osfingerprint/utils.c --- nessus-plugins.orig/plugins/nmap_osfingerprint/utils.c Mon Feb 24 07:46:20 2003 +++ nessus-plugins/plugins/nmap_osfingerprint/utils.c Mon Apr 14 11:34:14 2003 @@ -156,7 +156,7 @@ printf("\n"); } -#ifndef HAVE_STRERROR +#if !defined(HAVE_STRERROR) && !defined(__APPLE__) char *strerror(int errnum) { static char buf[1024]; @@ -218,6 +218,7 @@ return s; } +#ifndef __APPLE__ int get_random_bytes(void *buf, int numbytes) { static char bytebuf[2048]; @@ -278,6 +279,9 @@ bytesleft = 0; return get_random_bytes((char *) buf + tmp, numbytes - tmp); } +#else +extern int get_random_bytes(void *buf, int numbytes); +#endif /* Darwin */ /* Scramble the contents of an array*/ void genfry(unsigned char *arr, int elem_sz, int num_elem) diff -ruN nessus-plugins.orig/plugins/nmap_tcp_connect/Makefile.darwin nessus-plugins/plugins/nmap_tcp_connect/Makefile.darwin --- nessus-plugins.orig/plugins/nmap_tcp_connect/Makefile.darwin Wed Nov 7 13:28:34 2001 +++ nessus-plugins/plugins/nmap_tcp_connect/Makefile.darwin Mon Apr 14 10:09:25 2003 @@ -2,12 +2,10 @@ PLUGNAME=nmap_tcp_connect -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/nmap_wrapper/Makefile.darwin nessus-plugins/plugins/nmap_wrapper/Makefile.darwin --- nessus-plugins.orig/plugins/nmap_wrapper/Makefile.darwin Mon Feb 4 13:47:10 2002 +++ nessus-plugins/plugins/nmap_wrapper/Makefile.darwin Mon Apr 14 10:09:35 2003 @@ -2,12 +2,10 @@ PLUGNAME=nmap_wrapper -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/objectserver/Makefile.darwin nessus-plugins/plugins/objectserver/Makefile.darwin --- nessus-plugins.orig/plugins/objectserver/Makefile.darwin Wed Nov 7 13:28:35 2001 +++ nessus-plugins/plugins/objectserver/Makefile.darwin Mon Apr 14 10:09:45 2003 @@ -2,12 +2,10 @@ PLUGNAME=objectserver -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/smad/Makefile.darwin nessus-plugins/plugins/smad/Makefile.darwin --- nessus-plugins.orig/plugins/smad/Makefile.darwin Wed Nov 7 13:28:35 2001 +++ nessus-plugins/plugins/smad/Makefile.darwin Mon Apr 14 10:09:53 2003 @@ -2,12 +2,10 @@ PLUGNAME=smad -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/snmp_portscan/Makefile.darwin nessus-plugins/plugins/snmp_portscan/Makefile.darwin --- nessus-plugins.orig/plugins/snmp_portscan/Makefile.darwin Tue Feb 5 07:42:47 2002 +++ nessus-plugins/plugins/snmp_portscan/Makefile.darwin Mon Apr 14 10:10:00 2003 @@ -2,12 +2,10 @@ PLUGNAME=snmp_portscan -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/ssl_ciphers/Makefile.darwin nessus-plugins/plugins/ssl_ciphers/Makefile.darwin --- nessus-plugins.orig/plugins/ssl_ciphers/Makefile.darwin Fri Feb 8 13:31:29 2002 +++ nessus-plugins/plugins/ssl_ciphers/Makefile.darwin Mon Apr 14 10:10:11 2003 @@ -2,12 +2,10 @@ PLUGNAME=ssl_ciphers -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/synscan/Makefile.darwin nessus-plugins/plugins/synscan/Makefile.darwin --- nessus-plugins.orig/plugins/synscan/Makefile.darwin Wed Feb 5 20:27:20 2003 +++ nessus-plugins/plugins/synscan/Makefile.darwin Mon Apr 14 10:10:20 2003 @@ -2,12 +2,10 @@ PLUGNAME=synscan -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/tftp_grab_file/Makefile.darwin nessus-plugins/plugins/tftp_grab_file/Makefile.darwin --- nessus-plugins.orig/plugins/tftp_grab_file/Makefile.darwin Wed Nov 7 13:28:35 2001 +++ nessus-plugins/plugins/tftp_grab_file/Makefile.darwin Mon Apr 14 10:10:31 2003 @@ -2,12 +2,10 @@ PLUGNAME=tftp_grab_file -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc diff -ruN nessus-plugins.orig/plugins/whisker_wrapper/Makefile.darwin nessus-plugins/plugins/whisker_wrapper/Makefile.darwin --- nessus-plugins.orig/plugins/whisker_wrapper/Makefile.darwin Wed Feb 6 03:55:27 2002 +++ nessus-plugins/plugins/whisker_wrapper/Makefile.darwin Mon Apr 14 10:10:38 2003 @@ -2,12 +2,10 @@ PLUGNAME=whisker_wrapper -all : $(PLUGNAME).nes -$(PLUGNAME).nes : $(PLUGNAME).c - $(CC) -bundle -undefined error $(DEFS) $(include) -c $(PLUGNAME).c - $(CC) -bundle -undefined error -o $(PLUGNAME).nes $(PLUGNAME).o $(LIBS) - cp $(PLUGNAME).nes $(rootdir)/bin/ -clean : - @rm -fr *.lo *.nes *.la .libs - @rm -fr *.o +all: $(PLUGNAME).nes +OBJS = $(PLUGNAME).o + +LO_OBJS = $(PLUGNAME).lo + +include ../darwin.inc