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

(-)ftp/pavuk/Makefile (-20 / +21 lines)
Lines 6-38 Link Here
6
#
6
#
7
7
8
PORTNAME=	pavuk
8
PORTNAME=	pavuk
9
PORTVERSION=	0.9.28
9
PORTVERSION=	0.9.31
10
PORTREVISION=	6
11
CATEGORIES=	ftp www
10
CATEGORIES=	ftp www
12
MASTER_SITES=	${MASTER_SITE_SUNSITE} \
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
		http://www.idata.sk/~ondrej/sw/
12
MASTER_SITE_SUBDIR=	${PORTNAME}
14
MASTER_SITE_SUBDIR=	apps/www/mirroring
15
DISTNAME=	${PORTNAME}-0.9pl28
16
EXTRACT_SUFX=	.tgz
17
13
18
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
19
COMMENT=	HTTP, FTP and Gopher mirroring tool
15
COMMENT=	HTTP, FTP and Gopher mirroring tool
20
16
21
USE_OPENSSL=	yes
17
USE_BZIP2=	yes
22
WANT_GNOME=	yes
18
WANT_GNOME=	yes
19
USE_GNOME=	gnometarget
20
USE_OPENSSL=	yes
23
USE_REINPLACE=	yes
21
USE_REINPLACE=	yes
24
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
25
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
23
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
26
CONFIGURE_ARGS=	--with-locale-dir=${LOCALBASE}/share/locale \
24
CONFIGURE_ARGS=	--with-locale-dir=${PREFIX}/share/locale \
27
		--disable-debug --disable-gnome --enable-threads
25
		--disable-debug --disable-gnome --disable-gtk2 --disable-js \
28
26
		--enable-threads
29
.if !defined(WITHOUT_NLS)
30
USE_GETTEXT=	yes
31
PLIST_SUB+=	NLS=""
32
.else
33
CONFIGURE_ARGS+=--disable-nls
34
PLIST_SUB+=	NLS="@comment "
35
.endif
36
27
37
MAN1=		pavuk.1
28
MAN1=		pavuk.1
38
29
Lines 41-48 Link Here
41
32
42
.include <bsd.port.pre.mk>
33
.include <bsd.port.pre.mk>
43
34
35
.if defined(WITHOUT_NLS)
36
CONFIGURE_ARGS+=	--disable-nls
37
PLIST_SUB+=	NLS="@comment "
38
.else
39
USE_GETTEXT=	yes
40
PLIST_SUB+=	NLS=""
41
.endif
42
44
.if ${HAVE_GNOME:Mgtk12}!=""
43
.if ${HAVE_GNOME:Mgtk12}!=""
45
USE_GNOME=	gtk12
44
PKGNAMESUFFIX=	-gtk
45
USE_GNOME+=	gtk12
46
CONFIGURE_ARGS+=	--with-gtk-config="${GTK_CONFIG}"
46
CONFIGURE_ARGS+=	--with-gtk-config="${GTK_CONFIG}"
47
.else
47
.else
48
CONFIGURE_ARGS+=	--disable-gtk
48
CONFIGURE_ARGS+=	--disable-gtk
Lines 61-67 Link Here
61
	${INSTALL_DATA} ${WRKSRC}/pavukrc.sample ${PREFIX}/etc
61
	${INSTALL_DATA} ${WRKSRC}/pavukrc.sample ${PREFIX}/etc
62
.if !defined(NOPORTDOCS)
62
.if !defined(NOPORTDOCS)
63
	@${MKDIR} ${DOCSDIR}
63
	@${MKDIR} ${DOCSDIR}
64
.for f in AUTHORS BUGS CREDITS ChangeLog FAQ MAILINGLIST NEWS README
64
.for f in AUTHORS BUGS CREDITS ChangeLog FAQ MAILINGLIST NEWS README \
65
	wget-pavuk.HOWTO
65
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
66
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
66
.endfor
67
.endfor
67
.endif
68
.endif
(-)ftp/pavuk/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (pavuk-0.9pl28.tgz) = d0f7b77bd11322add1f7d52d62afbf78
1
MD5 (pavuk-0.9.31.tar.bz2) = 41ad4df0a6c48a7bf4ec37fbd8095a97
2
SIZE (pavuk-0.9pl28.tgz) = 968336
2
SIZE (pavuk-0.9.31.tar.bz2) = 640384
(-)ftp/pavuk/files/patch-src::ainterface.c (+22 lines)
Line 0 Link Here
1
--- src/ainterface.c.orig	Wed Nov  3 15:51:10 2004
2
+++ src/ainterface.c	Fri Nov 12 03:29:00 2004
3
@@ -448,13 +448,17 @@
4
 {
5
   int i;
6
 
7
+#ifdef I_FACE
8
+#ifdef HAVE_MT
9
+  _config_struct_priv_t privcfg;
10
+#endif
11
+#endif
12
+
13
   if(cfg.mode == MODE_MIRROR)
14
     return;
15
 
16
 #ifdef I_FACE
17
 #ifdef HAVE_MT
18
-  _config_struct_priv_t privcfg;
19
-
20
   privcfg_make_copy(&privcfg);
21
   pthread_setspecific(cfg.privcfg_key, (void *) (&privcfg));
22
   pthread_cleanup_push((void *) privcfg_free, (void *) (&privcfg));
(-)ftp/pavuk/files/patch-src::digest_auth.c (-30 lines)
Lines 1-30 Link Here
1
--- src/digest_auth_orig.c	2000-12-03 08:25:44.000000000 -0600
2
+++ src/digest_auth.c	2004-07-24 13:45:50.000000000 -0500
3
@@ -87,6 +87,7 @@
4
 	return retv;
5
 }
6
 
7
+/* PRE: Assumes 'buf' can store 2K */
8
 char *http_get_digest_auth_str(auth_digest, method, user, pass, urlp, buf)
9
 http_digest_info *auth_digest;
10
 char *method;
11
@@ -99,14 +100,15 @@
12
 	char *a1,*a2,*a3;
13
 	char *d = url_encode_str(urlp->p.http.document, URL_PATH_UNSAFE);
14
 
15
-	sprintf(pom, "%s:%s:%s", user, auth_digest->realm, pass);
16
+	snprintf(pom, sizeof(pom), "%s:%s:%s", user, auth_digest->realm, pass);
17
 	a1 = _md5(pom);
18
-	sprintf(pom, "%s:%s", method, d);
19
+	snprintf(pom, sizeof(pom), "%s:%s", method, d);
20
 	a2 = _md5(pom);
21
-	sprintf(pom, "%s:%s:%s", a1, auth_digest->nonce, a2);
22
+	snprintf(pom, sizeof(pom), "%s:%s:%s", a1, auth_digest->nonce, a2);
23
 	a3 = _md5(pom);
24
 
25
-	sprintf(buf,
26
+	snprintf(buf,
27
+		2048,
28
 		"Digest username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\"" , 
29
 		user, auth_digest->realm, auth_digest->nonce, d, a3);
30
 
(-)ftp/pavuk/files/patch-src_http.c (-16 lines)
Lines 1-16 Link Here
1
2
$FreeBSD: ports/ftp/pavuk/files/patch-src_http.c,v 1.1 2004/07/02 22:26:44 naddy Exp $
3
4
--- src/http.c.orig	Mon Jul 30 00:06:40 2001
5
+++ src/http.c	Fri Jul  2 18:08:05 2004
6
@@ -1111,8 +1111,8 @@
7
 	if (!loc)
8
 		return -1;
9
 
10
-	if (sscanf(loc, "http://%[.0-9A-Za-z_-]:%d", proxy, &port) < 1)
11
-		if (sscanf(loc, "%[.0-9A-Za-z_-]:%d", proxy, &port) !=2)
12
+	if (sscanf(loc, "http://%255[.0-9A-Za-z_-]:%d", proxy, &port) < 1)
13
+		if (sscanf(loc, "%255[.0-9A-Za-z_-]:%d", proxy, &port) !=2)
14
 			return -1;
15
 
16
 	_free(docp->http_proxy);
(-)ftp/pavuk/pkg-descr (-17 / +4 lines)
Lines 1-18 Link Here
1
   Pavuk is a HTTP, FTP and Gopher mirroring tool.
1
Pavuk is UNIX program used to mirror contents of WWW documents or files. It
2
transfers documents from HTTP, FTP, Gopher and optionaly from HTTPS (HTTP
3
over SSL) servers. Pavuk has an optional GUI based on GTK2 widget set.
2
4
3
   What this program does :
5
WWW: http://pavuk.sourceforge.net/
4
5
   - recursive HTTP , HTTP over SSL , FTP and Gopher document retrieving
6
   - synchronizing retrieved local copies of document with remote
7
   - partial content retrieving on servers which supports it (FTP and HTTP/1.1)
8
   - follows moved documents
9
   - supports "robots.txt" standard
10
   - supports HTTP and FTP proxy server
11
   - supports HTTP authentication
12
   - shows document tree
13
   - have interface to "at" command for scheduling
14
   - have X-windows user interface (built with own widgets based on plain Xt)
15
   - may be built with or without X-windows user interface
16
   - can handle setup files
17
18
WWW: http://www.idata.sk/~ondrej/pavuk/
(-)ftp/pavuk/pkg-plist (-5 / +10 lines)
Lines 1-4 Link Here
1
bin/pavuk
1
bin/pavuk
2
bin/pavuk.sh
3
bin/tperf.sh
2
etc/pavuk_authinfo.sample
4
etc/pavuk_authinfo.sample
3
etc/pavukrc.sample
5
etc/pavukrc.sample
4
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
6
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
Lines 9-26 Link Here
9
%%PORTDOCS%%%%DOCSDIR%%/MAILINGLIST
11
%%PORTDOCS%%%%DOCSDIR%%/MAILINGLIST
10
%%PORTDOCS%%%%DOCSDIR%%/NEWS
12
%%PORTDOCS%%%%DOCSDIR%%/NEWS
11
%%PORTDOCS%%%%DOCSDIR%%/README
13
%%PORTDOCS%%%%DOCSDIR%%/README
12
%%DATADIR%%/icons/pavuk_16x16.xpm
14
%%PORTDOCS%%%%DOCSDIR%%/wget-pavuk.HOWTO
13
%%DATADIR%%/icons/pavuk_32x32.xpm
14
%%DATADIR%%/icons/pavuk_64x64.xpm
15
%%DATADIR%%/icons/pavuk_as_icon.xpm
16
%%DATADIR%%/icons/pavuk_prg_icon.xpm
17
%%NLS%%share/locale/cs/LC_MESSAGES/pavuk.mo
15
%%NLS%%share/locale/cs/LC_MESSAGES/pavuk.mo
18
%%NLS%%share/locale/de/LC_MESSAGES/pavuk.mo
16
%%NLS%%share/locale/de/LC_MESSAGES/pavuk.mo
19
%%NLS%%share/locale/es/LC_MESSAGES/pavuk.mo
17
%%NLS%%share/locale/es/LC_MESSAGES/pavuk.mo
20
%%NLS%%share/locale/fr/LC_MESSAGES/pavuk.mo
18
%%NLS%%share/locale/fr/LC_MESSAGES/pavuk.mo
21
%%NLS%%share/locale/it/LC_MESSAGES/pavuk.mo
19
%%NLS%%share/locale/it/LC_MESSAGES/pavuk.mo
20
%%NLS%%share/locale/pl/LC_MESSAGES/pavuk.mo
22
%%NLS%%share/locale/ja/LC_MESSAGES/pavuk.mo
21
%%NLS%%share/locale/ja/LC_MESSAGES/pavuk.mo
23
%%NLS%%share/locale/sk/LC_MESSAGES/pavuk.mo
22
%%NLS%%share/locale/sk/LC_MESSAGES/pavuk.mo
23
%%NLS%%share/locale/uk/LC_MESSAGES/pavuk.mo
24
%%DATADIR%%/icons/pavuk_16x16.xpm
25
%%DATADIR%%/icons/pavuk_32x32.xpm
26
%%DATADIR%%/icons/pavuk_64x64.xpm
27
%%DATADIR%%/icons/pavuk_as_icon.xpm
28
%%DATADIR%%/icons/pavuk_prg_icon.xpm
24
@dirrm %%DATADIR%%/icons
29
@dirrm %%DATADIR%%/icons
25
@dirrm %%DATADIR%%
30
@dirrm %%DATADIR%%
26
%%PORTDOCS%%@dirrm %%DOCSDIR%%
31
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 73902