Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial addition of spegla-1.04, a mirror program for FTP sites (writ…
…ten in C). Provided in pr 7018 by Jens A Nilsson with some modifications by myself to make it work with current (sys/errno.h vs errno.h).
- Loading branch information
frueauf
committed
Feb 26, 1999
1 parent
a0d06a6
commit c24ea76
Showing
8 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# $NetBSD: Makefile,v 1.1.1.1 1999/02/26 11:27:18 frueauf Exp $ | ||
# | ||
|
||
DISTNAME= spegla-1.04 | ||
CATEGORIES= net | ||
MASTER_SITES= ftp://ftp.luth.se/pub/unix/mirror/ \ | ||
ftp://subzero.campus.luth.se/pub/spegla/ | ||
|
||
MAINTAINER= jnilsson@ludd.luth.se | ||
|
||
.include "../../mk/bsd.prefs.mk" | ||
|
||
.ifdef MANZ | ||
MANCOMPRESSED= yes | ||
.endif | ||
|
||
.include "../../mk/bsd.pkg.mk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$NetBSD: md5,v 1.1.1.1 1999/02/26 11:27:19 frueauf Exp $ | ||
|
||
MD5 (spegla-1.04.tar.gz) = e8c45cb3950e6f7c8a1987cfc90e6665 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$NetBSD: patch-aa,v 1.1.1.1 1999/02/26 11:27:19 frueauf Exp $ | ||
|
||
--- jftp.c-orig Sun Feb 7 11:46:11 1999 | ||
+++ jftp.c Fri Feb 26 12:07:15 1999 | ||
@@ -28,9 +28,9 @@ | ||
/*$Id: patch-aa,v 1.1.1.1 1999/02/26 11:27:19 frueauf Exp $*/ | ||
#include <sys/types.h> | ||
#include <sys/socket.h> | ||
-#include <sys/errno.h> | ||
#include <netinet/in.h> | ||
#include <arpa/inet.h> | ||
+#include <errno.h> | ||
#include <setjmp.h> | ||
#include <signal.h> | ||
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$NetBSD: patch-ab,v 1.1.1.1 1999/02/26 11:27:20 frueauf Exp $ | ||
|
||
--- spegla.c-orig Tue Feb 9 23:37:42 1999 | ||
+++ spegla.c Fri Feb 26 12:09:22 1999 | ||
@@ -27,7 +27,6 @@ | ||
|
||
/*$Id: patch-ab,v 1.1.1.1 1999/02/26 11:27:20 frueauf Exp $*/ | ||
|
||
-#include <sys/errno.h> | ||
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
#include <sys/param.h> | ||
@@ -46,6 +45,7 @@ | ||
# include <errno.h> | ||
#endif | ||
|
||
+#include <errno.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <stdarg.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$NetBSD: patch-ac,v 1.1.1.1 1999/02/26 11:27:20 frueauf Exp $ | ||
|
||
--- Makefile-orig Sun Feb 7 22:49:59 1999 | ||
+++ Makefile Fri Feb 26 12:11:47 1999 | ||
@@ -12,4 +12,6 @@ | ||
CFLAGS+= -Wall | ||
LDADD+= -lcompat | ||
|
||
+MANINSTALL= catinstall maninstall | ||
+ | ||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a mirror program for FTP sites (written in C). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Spegla is a mirror program for FTP sites. It was written because I | ||
couldn't find any fast mirroring program for big mirrors. It makes a | ||
complete mirror of a FTP area. | ||
|
||
Spegla only take one command-line parameter, the config file. These | ||
parameters can be specified in it: | ||
|
||
- localdir where the mirror should go on your machine. | ||
|
||
- remotedir directory at the FTP server. | ||
|
||
- username user to log in as i.e. anonymous. | ||
|
||
- password password to use i.e. your email address. | ||
|
||
- host FTP server. | ||
|
||
- retries how many retries before quit. Defaults to 20. | ||
|
||
- retrytime how many seconds to wait before log in again after | ||
a timeout. Defaults to 150. | ||
|
||
- timeout how many seconds to wait to timeout. Defaults to 150. | ||
|
||
- skipdir which directories to ignore remote and local, can be | ||
several but only one per row. | ||
|
||
- dirlink not used for now. | ||
|
||
- logfile logfile, can be a file, stdout or stderr. Defaults | ||
to stdout. | ||
|
||
Blank lines and text after '#' are ignored. | ||
|
||
This is what's in the config file I use for the FreeBSD mirror of | ||
Walnut Creek's FreeBSD area. | ||
|
||
localdir = /ftp/pub/FreeBSD | ||
remotedir = /pub/FreeBSD | ||
username = anonymous | ||
password = jnilsson@ludd.luth.se | ||
host = ftp.freebsd.org | ||
timeout = 120 | ||
retries = 300 # busy ftp server and lots of files. | ||
# Takes lots of hours to complete | ||
# and don't want to quit when we are | ||
# almost finished. | ||
retrytime = 120 # if network goes down don't consume | ||
# all retries to fast. | ||
logfile = freebsd.org.log | ||
skipdir = distfiles # don't have room for this yet. | ||
skipdir = incoming # no need for this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@comment $NetBSD: PLIST,v 1.1.1.1 1999/02/26 11:27:19 frueauf Exp $ | ||
bin/spegla | ||
man/cat1/spegla.0 | ||
man/man1/spegla.1 |