diff options
author | flathill <flathill@FreeBSD.org> | 1999-11-19 07:54:19 +0800 |
---|---|---|
committer | flathill <flathill@FreeBSD.org> | 1999-11-19 07:54:19 +0800 |
commit | 01027567b6c24fbe213b92b950b6afafc6381d20 (patch) | |
tree | e2f982acaa4cbe513323f81c856d7a5b993a763b | |
parent | f294d74918a7737f84160b1a2e41a7e84713d811 (diff) | |
download | freebsd-ports-gnome-01027567b6c24fbe213b92b950b6afafc6381d20.tar.gz freebsd-ports-gnome-01027567b6c24fbe213b92b950b6afafc6381d20.tar.zst freebsd-ports-gnome-01027567b6c24fbe213b92b950b6afafc6381d20.zip |
Add patch for more firewall-friendly by default
Requested by: Nick Sayer <nsayer@sftw.com>
-rw-r--r-- | japanese/libicq/Makefile | 12 | ||||
-rw-r--r-- | japanese/libicq/files/patch-ad | 50 | ||||
-rw-r--r-- | japanese/libicq/pkg-plist | 3 | ||||
-rw-r--r-- | net-im/libicq/Makefile | 2 | ||||
-rw-r--r-- | net-im/libicq/files/patch-ad | 50 | ||||
-rw-r--r-- | net/libicq/Makefile | 2 | ||||
-rw-r--r-- | net/libicq/files/patch-ad | 50 |
7 files changed, 158 insertions, 11 deletions
diff --git a/japanese/libicq/Makefile b/japanese/libicq/Makefile index 80dcf2ad47f4..dc612b8fdf08 100644 --- a/japanese/libicq/Makefile +++ b/japanese/libicq/Makefile @@ -1,4 +1,4 @@ -# New ports collection makefile for: libicq +# New ports collection makefile for: libicq # Version required: 0.33 # Date Created: 22 Oct 1998 # Whom: Seiichirou Hiraoka @@ -9,7 +9,8 @@ DISTNAME= libicq-0.33 PKGNAME= ja-libicq-0.33 CATEGORIES= japanese net -MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ +MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ + http://www.nectar.com/distfiles/ PATCH_SITES= http://www.freebsd.org/~flathill/distfiles/ \ http://www-nagao.kuee.kyoto-u.ac.jp/member/taku/soft/ @@ -22,10 +23,7 @@ LIB_DEPENDS= glib12.3:${PORTSDIR}/devel/glib12 GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config -GNU_CONFIGURE= yes -CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" - -post-install: - @${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib +USE_LIBTOOL= yes +CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" .include <bsd.port.mk> diff --git a/japanese/libicq/files/patch-ad b/japanese/libicq/files/patch-ad new file mode 100644 index 000000000000..ba3b41a090d2 --- /dev/null +++ b/japanese/libicq/files/patch-ad @@ -0,0 +1,50 @@ +--- src/send.c.orig Thu Nov 11 17:16:26 1999 ++++ src/send.c Thu Nov 11 17:18:50 1999 +@@ -139,6 +139,17 @@ + fprintf(stderr, "\nSocket creation failed."); + exit(1); + } ++ ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ { ++ fprintf(stderr, "\nSocket range selection failed."); ++ exit(1); ++ } ++ } ++#endif + + if(Verbose & ICQ_VERB_INFO) + printf("\nSocket created. Attempting to connect..." ); +@@ -170,6 +181,12 @@ + bzero(&(sin.sin_zero), 8); + + tcp_sok = socket(AF_INET, SOCK_STREAM, 0); ++#if IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ setsockopt(tcp_sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i)); ++ } ++#endif + setsockopt(tcp_sok, SOL_SOCKET, SO_REUSEADDR, &retval, 4); + set_nonblock(tcp_sok); + retval = bind(tcp_sok, (struct sockaddr*)&sin, sizeof(sin)); +--- src/tcp.c.orig Thu Nov 11 17:20:01 1999 ++++ src/tcp.c Thu Nov 11 17:20:02 1999 +@@ -608,6 +608,14 @@ + sock = socket(AF_INET, SOCK_STREAM, 0); + if(sock == -1) return -1; + ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ return -1; ++ } ++#endif ++ + set_nonblock(sock); + + if((bind(sock, (struct sockaddr*)&local, sizeof(struct sockaddr))) == -1) diff --git a/japanese/libicq/pkg-plist b/japanese/libicq/pkg-plist index 8bb090697e3f..c717b5fc0c3c 100644 --- a/japanese/libicq/pkg-plist +++ b/japanese/libicq/pkg-plist @@ -1,7 +1,6 @@ include/libicq.h lib/libicq.a -lib/libicq.la lib/libicq.so -lib/libicq.so.0.2 +lib/libicq.so.0.3 @exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B @unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R diff --git a/net-im/libicq/Makefile b/net-im/libicq/Makefile index 5a91960fe539..669f47168647 100644 --- a/net-im/libicq/Makefile +++ b/net-im/libicq/Makefile @@ -8,7 +8,7 @@ DISTNAME= libicq-0.33 CATEGORIES= net -MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ +MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ http://www.nectar.com/distfiles/ MAINTAINER= flathill@FreeBSD.org diff --git a/net-im/libicq/files/patch-ad b/net-im/libicq/files/patch-ad new file mode 100644 index 000000000000..ba3b41a090d2 --- /dev/null +++ b/net-im/libicq/files/patch-ad @@ -0,0 +1,50 @@ +--- src/send.c.orig Thu Nov 11 17:16:26 1999 ++++ src/send.c Thu Nov 11 17:18:50 1999 +@@ -139,6 +139,17 @@ + fprintf(stderr, "\nSocket creation failed."); + exit(1); + } ++ ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ { ++ fprintf(stderr, "\nSocket range selection failed."); ++ exit(1); ++ } ++ } ++#endif + + if(Verbose & ICQ_VERB_INFO) + printf("\nSocket created. Attempting to connect..." ); +@@ -170,6 +181,12 @@ + bzero(&(sin.sin_zero), 8); + + tcp_sok = socket(AF_INET, SOCK_STREAM, 0); ++#if IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ setsockopt(tcp_sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i)); ++ } ++#endif + setsockopt(tcp_sok, SOL_SOCKET, SO_REUSEADDR, &retval, 4); + set_nonblock(tcp_sok); + retval = bind(tcp_sok, (struct sockaddr*)&sin, sizeof(sin)); +--- src/tcp.c.orig Thu Nov 11 17:20:01 1999 ++++ src/tcp.c Thu Nov 11 17:20:02 1999 +@@ -608,6 +608,14 @@ + sock = socket(AF_INET, SOCK_STREAM, 0); + if(sock == -1) return -1; + ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ return -1; ++ } ++#endif ++ + set_nonblock(sock); + + if((bind(sock, (struct sockaddr*)&local, sizeof(struct sockaddr))) == -1) diff --git a/net/libicq/Makefile b/net/libicq/Makefile index 5a91960fe539..669f47168647 100644 --- a/net/libicq/Makefile +++ b/net/libicq/Makefile @@ -8,7 +8,7 @@ DISTNAME= libicq-0.33 CATEGORIES= net -MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ +MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ http://www.nectar.com/distfiles/ MAINTAINER= flathill@FreeBSD.org diff --git a/net/libicq/files/patch-ad b/net/libicq/files/patch-ad new file mode 100644 index 000000000000..ba3b41a090d2 --- /dev/null +++ b/net/libicq/files/patch-ad @@ -0,0 +1,50 @@ +--- src/send.c.orig Thu Nov 11 17:16:26 1999 ++++ src/send.c Thu Nov 11 17:18:50 1999 +@@ -139,6 +139,17 @@ + fprintf(stderr, "\nSocket creation failed."); + exit(1); + } ++ ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ { ++ fprintf(stderr, "\nSocket range selection failed."); ++ exit(1); ++ } ++ } ++#endif + + if(Verbose & ICQ_VERB_INFO) + printf("\nSocket created. Attempting to connect..." ); +@@ -170,6 +181,12 @@ + bzero(&(sin.sin_zero), 8); + + tcp_sok = socket(AF_INET, SOCK_STREAM, 0); ++#if IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ setsockopt(tcp_sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i)); ++ } ++#endif + setsockopt(tcp_sok, SOL_SOCKET, SO_REUSEADDR, &retval, 4); + set_nonblock(tcp_sok); + retval = bind(tcp_sok, (struct sockaddr*)&sin, sizeof(sin)); +--- src/tcp.c.orig Thu Nov 11 17:20:01 1999 ++++ src/tcp.c Thu Nov 11 17:20:02 1999 +@@ -608,6 +608,14 @@ + sock = socket(AF_INET, SOCK_STREAM, 0); + if(sock == -1) return -1; + ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ return -1; ++ } ++#endif ++ + set_nonblock(sock); + + if((bind(sock, (struct sockaddr*)&local, sizeof(struct sockaddr))) == -1) |