View | Details | Raw Unified | Return to bug 45197
Collapse All | Expand All

(-)ipsorc/Makefile (-7 / +8 lines)
Lines 5-20 Link Here
5
# $FreeBSD: ports/net/ipsorc/Makefile,v 1.6 2002/09/03 01:06:24 lioux Exp $
5
# $FreeBSD: ports/net/ipsorc/Makefile,v 1.6 2002/09/03 01:06:24 lioux Exp $
6
#
6
#
7
7
8
PORTNAME=       ipsorc
8
PORTNAME=	ipsorc
9
PORTVERSION=    1.6
9
PORTVERSION=	1.7.5
10
CATEGORIES=     net security
10
CATEGORIES=	net security
11
MASTER_SITES=   http://www.legions.org/~phric/
11
MASTER_SITES=	http://www.informony.com/ipsorc/
12
MASTER_SITE_SUBDIR=     ${PORTNAME}
12
#MASTER_SITE_SUBDIR=     ${PORTNAME}
13
13
14
MAINTAINER=     Nicolas.Jombart@hsc-labs.com
14
MAINTAINER=	Nicolas.Jombart@hsc-labs.com
15
15
16
USE_GNOMENG=	yes
16
USE_GNOMENG=	yes
17
USE_GNOME=	gtk12
17
USE_GNOME=	gtk12
18
USE_BZIP2=	yes
18
19
19
post-patch:
20
post-patch:
20
	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
21
	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
Lines 28-34 Link Here
28
.endfor
29
.endfor
29
.if !defined(NOPORTDOCS)
30
.if !defined(NOPORTDOCS)
30
	${MKDIR} ${DOCSDIR}
31
	${MKDIR} ${DOCSDIR}
31
.for i in README
32
.for i in README HOWTO
32
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
33
.endfor
34
.endfor
34
.endif
35
.endif
(-)ipsorc/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (ipsorc-1.6.tar.gz) = 9a5470ee8a9e1e2b3e01ad0b5f7cd07b
1
MD5 (ipsorc-1.7.5.tar.bz2) = 2178f7e286cb3d0f5ec2794fd819e379
(-)ipsorc/files/patch-aa (-14 / +11 lines)
Lines 1-31 Link Here
1
--- Makefile.orig	Fri Mar 29 16:12:20 2002
1
--- Makefile.orig	Sun Nov 10 19:38:17 2002
2
+++ Makefile	Mon Apr  1 12:15:29 2002
2
+++ Makefile	Sun Nov 10 21:08:50 2002
3
@@ -1,6 +1,5 @@
3
@@ -1,6 +1,5 @@
4
  ## Makefile for IPMagic ##
4
  ## Makefile for IP Sorcery ##
5
 
5
 
6
-CC = cc
6
-CC = cc
7
 SPELL = magic
7
 SPELL = magic
8
 SRC =  ipmagic.c spellbook.c cauldron.c spells.c tcp.c icmp.c udp.c
8
 SRC =  ipmagic.c spellbook.c cauldron.c spells.c tcp.c icmp.c udp.c
9
 CON = sorcery.c spells.c ipsorcery.c icmp.c
9
 CON = sorcery.c spells.c route.c ip.c tcp.c udp.c ipsorcery.c icmp.c 
10
@@ -9,16 +8,18 @@
10
@@ -12,15 +11,15 @@
11
 default:
11
 all:    con gtk
12
 	@echo "Usage: make[gtk|con] then make [gtk-install|con-install]"
13
 
12
 
14
+all:   con gtk
15
+
16
 con:
13
 con:
17
-	$(CC) -g -O2 -Wall -ansi -D_CON_ $(CON) -o ipmagic
14
-	$(CC) -g -O2 -Wall -ansi -D_VERSION_=\"1.7.5\" -D_CON_ $(CON) -o ipmagic
18
+	$(CC) $(CFLAGS) -Wall -ansi -D_CON_ $(CON) -o ipmagic
15
+	$(CC) $(CFLAGS) -Wall -ansi -D_VERSION_=\"1.7.5\" -D_CON_ $(CON) -o ipmagic
19
 	
16
 	
20
 
17
 
21
 gtk:
18
 gtk:
22
-	$(CC) -g -O2 -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `gtk-config --cflags --libs`
19
-	$(CC) -g -O2 -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `gtk-config --cflags --libs`
23
+	$(CC) $(CFLAGS) -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `/usr/X11R6/bin/gtk12-config --cflags --libs`
20
+	$(CC) $(CFLAGS) -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `$(GTK_CONFIG) --cflags --libs`
24
 
21
 
25
 
22
 
26
 solaris:     
23
 solaris:     
27
-	$(CC) -g -O2 -Wall -ansi -D_CON_ $(CON) -o $(SPELL)  -lsocket -lnsl
24
-	$(CC) -g -O2 -Wall -ansi  -D_CON_  $(CON) -o $(SPELL)  -lsocket -lnsl
28
+	$(CC) $(CFLAGS) -Wall -ansi -D_CON_ $(CON) -o $(SPELL)  -lsocket -lnsl
25
+	$(CC) $(CFLAGS) -Wall -ansi  -D_CON_  $(CON) -o $(SPELL)  -lsocket -lnsl
29
 
26
 
30
 
27
 
31
 install: con-install
28
 install: con-install
(-)ipsorc/files/patch-ab (+11 lines)
Line 0 Link Here
1
--- sorcery.c.orig	Sun Nov 10 21:13:36 2002
2
+++ sorcery.c	Sun Nov 10 21:14:18 2002
3
@@ -152,7 +152,7 @@
4
  if(exi.READ_IT) {
5
  
6
   /* open second socket for snooping them packets */
7
-  if((snoop = socket(PF_PACKET, SOCK_PACKET, ETH_P_ALL)) == -1)
8
+  if((snoop = socket(PF_INET, SOCK_RAW, 0)) == -1)
9
   {
10
     perror("snoop socket");
11
     exit(snoop);
(-)ipsorc/pkg-plist (+1 lines)
Lines 1-4 Link Here
1
bin/ipmagic
1
bin/ipmagic
2
bin/magic
2
bin/magic
3
%%PORTDOCS%%share/doc/ipsorc/README
3
%%PORTDOCS%%share/doc/ipsorc/README
4
%%PORTDOCS%%share/doc/ipsorc/HOWTO
4
%%PORTDOCS%%@dirrm share/doc/ipsorc
5
%%PORTDOCS%%@dirrm share/doc/ipsorc

Return to bug 45197