1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Update to version 2.54 Beta 22. Nmapfe versions will now track nmap itself.

This commit is contained in:
David E. O'Brien 2001-05-28 01:02:07 +00:00
parent 14c5bb3b12
commit ce3064087d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43173
6 changed files with 20 additions and 142 deletions

View File

@ -6,26 +6,20 @@
# $FreeBSD$
#
PORTNAME= nmapfe
PORTVERSION= 0.9.5
CATEGORIES= security
MASTER_SITES= http://codebox.net/download/ \
http://www.insecure.org/nmap/dist/
EXTRACT_SUFX= .tgz
MASTERDIR= ${.CURDIR}/../nmap
PKGDIR= ${.CURDIR}
MAINTAINER= obrien@FreeBSD.org
PORTNAME= nmapfe
RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap
.include <bsd.port.pre.mk>
USE_XLIB= yes
USE_GTK= yes
GNU_CONFIGURE= yes
WRKSRC:= ${WRKDIR}/nmapfe
#WRKSRC:= ${WRKSRC}/nmapfe
INSTALL_TARGET= install-nmapfe
MAN1= nmapfe.1 xnmap.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nmapfe ${PREFIX}/bin
cd ${PREFIX}/bin && ${LN} -f nmapfe xnmap
after-install:
test -e ${PREFIX}/bin/nmapfe \
|| (cd ${PREFIX}/bin ; ${LN} -f nmapfe xnmap)
.include <bsd.port.post.mk>
.include "${MASTERDIR}/Makefile"

View File

@ -1,25 +0,0 @@
--- Makefile.in.orig Fri May 7 04:51:52 1999
+++ Makefile.in Fri Jul 23 10:46:08 1999
@@ -71,7 +71,7 @@
PROGRAMS = $(bin_PROGRAMS)
-DEFS = @DEFS@ -I. -I$(srcdir)
+DEFS = @DEFS@ -DNMAP_PATH=\"$(bindir)/\" -I. -I$(srcdir)
CPPFLAGS = @CPPFLAGS@
STATIC =
LDFLAGS = @LDFLAGS@ $(STATIC)
@@ -231,11 +231,11 @@
maintainer-clean-depend:
-rm -rf .deps
-%.o: %.c
+.c.o:
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -c $<
-%.lo: %.c
+.c.lo:
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -c $<
@-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \

View File

@ -1,30 +0,0 @@
--- gladesig.c.orig Mon Aug 30 11:27:21 1999
+++ gladesig.c Sun Apr 1 22:31:42 2001
@@ -163,7 +163,7 @@
on_Get_Nmap_Version_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- execute("nmap -V");
+ execute( NMAP_PATH "nmap -V");
}
@@ -467,7 +467,8 @@
if (size > command_size)
command = realloc(command, size);
- strcpy(command, "nmap ");
+ strcpy(command, NMAP_PATH);
+ strcat(command, "nmap ");
/*Uhm... yeah.. Spit out which scan to perform based
on the which_scan variable */
@@ -487,7 +488,7 @@
strncat(command, " -sR ", 5);
if (GTK_TOGGLE_BUTTON(MW->fast_check)->active)
- strncat(command, " -F ", 3);
+ strncat(command, " -F ", 4);
if (GTK_TOGGLE_BUTTON(MW->range_check)->active) {
val = gtk_entry_get_text(GTK_ENTRY(MW->range_text));

View File

@ -6,26 +6,20 @@
# $FreeBSD$
#
PORTNAME= nmapfe
PORTVERSION= 0.9.5
CATEGORIES= security
MASTER_SITES= http://codebox.net/download/ \
http://www.insecure.org/nmap/dist/
EXTRACT_SUFX= .tgz
MASTERDIR= ${.CURDIR}/../nmap
PKGDIR= ${.CURDIR}
MAINTAINER= obrien@FreeBSD.org
PORTNAME= nmapfe
RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap
.include <bsd.port.pre.mk>
USE_XLIB= yes
USE_GTK= yes
GNU_CONFIGURE= yes
WRKSRC:= ${WRKDIR}/nmapfe
#WRKSRC:= ${WRKSRC}/nmapfe
INSTALL_TARGET= install-nmapfe
MAN1= nmapfe.1 xnmap.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nmapfe ${PREFIX}/bin
cd ${PREFIX}/bin && ${LN} -f nmapfe xnmap
after-install:
test -e ${PREFIX}/bin/nmapfe \
|| (cd ${PREFIX}/bin ; ${LN} -f nmapfe xnmap)
.include <bsd.port.post.mk>
.include "${MASTERDIR}/Makefile"

View File

@ -1,25 +0,0 @@
--- Makefile.in.orig Fri May 7 04:51:52 1999
+++ Makefile.in Fri Jul 23 10:46:08 1999
@@ -71,7 +71,7 @@
PROGRAMS = $(bin_PROGRAMS)
-DEFS = @DEFS@ -I. -I$(srcdir)
+DEFS = @DEFS@ -DNMAP_PATH=\"$(bindir)/\" -I. -I$(srcdir)
CPPFLAGS = @CPPFLAGS@
STATIC =
LDFLAGS = @LDFLAGS@ $(STATIC)
@@ -231,11 +231,11 @@
maintainer-clean-depend:
-rm -rf .deps
-%.o: %.c
+.c.o:
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -c $<
-%.lo: %.c
+.c.lo:
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -c $<
@-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \

View File

@ -1,30 +0,0 @@
--- gladesig.c.orig Mon Aug 30 11:27:21 1999
+++ gladesig.c Sun Apr 1 22:31:42 2001
@@ -163,7 +163,7 @@
on_Get_Nmap_Version_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- execute("nmap -V");
+ execute( NMAP_PATH "nmap -V");
}
@@ -467,7 +467,8 @@
if (size > command_size)
command = realloc(command, size);
- strcpy(command, "nmap ");
+ strcpy(command, NMAP_PATH);
+ strcat(command, "nmap ");
/*Uhm... yeah.. Spit out which scan to perform based
on the which_scan variable */
@@ -487,7 +488,7 @@
strncat(command, " -sR ", 5);
if (GTK_TOGGLE_BUTTON(MW->fast_check)->active)
- strncat(command, " -F ", 3);
+ strncat(command, " -F ", 4);
if (GTK_TOGGLE_BUTTON(MW->range_check)->active) {
val = gtk_entry_get_text(GTK_ENTRY(MW->range_text));