Skip to content

Commit b0da684

Browse files
committed
First AFD git commit based on 1.4.7-10
0 parents  commit b0da684

File tree

1,156 files changed

+486110
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,156 files changed

+486110
-0
lines changed

ABOUT-NLS

+1,068
Large diffs are not rendered by default.

COPYING

+339
Large diffs are not rendered by default.

CREDITS

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
This is the credit-file of people that have contributed to the AFD project.
2+
It is sorted by name and formating is done as the CREDIT file for the linux
3+
kernel: N - name
4+
E - email
5+
W - web-address
6+
P - PGP key ID and fingerprint
7+
D - description
8+
S - snail-mail address
9+
10+
N: Tobias Freyberg
11+
E:
12+
D: Helped designing AFD and author of the renaming stuff.
13+
S:
14+
S: Germany
15+
16+
N: Holger Kiehl
17+
18+
D: Author and current maintainer of the AFD.
19+
S: Sossenheimer Weg 17
20+
S: 65843 Sulzbach
21+
S: Germany
22+
23+
N: Herbert Lepper
24+
25+
D: Numerous bug fixes.
26+
S: Germany
27+
28+
N: Jose Mauro/Leonardo Marra
29+
30+
D: Designed and made AFD logo.
31+
S: Brazil
32+
33+
N: Sven Knudsen
34+
D: Bug fix and other improvements.
35+
S: Germany
36+
37+
N: Bill Welch
38+
D: Improvement to SSH code and documentation.
39+
40+
N: Alexander Maul
41+
D: Bug fix and other improvements.
42+
S: Germany
43+
44+
45+
Many thanks also to the Deutscher Wetterdienst (German Weather Service) at
46+
Offenbach, who have permitted me to make this work available under the
47+
GPL.

Changelog

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc/Changelog

FAQ

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc/FAQ

HACKING

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
AFD source code style:
4+
5+
- 3 level indent
6+
7+
- no tabs, spaces only
8+
9+
- braces for if/for/while statement on separate line:
10+
11+
if (foo)
12+
{
13+
bla();
14+
}
15+
16+
- use braces even for single-statement blocks
17+
18+
- try to keep source lines shorter than 80 columns

INSTALL

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
2+
3+
1.) Run ./configure to generate config.h and the various Makefiles.
4+
./configure --help gives a list of possible options with slightly
5+
longer descriptions in README.configure.
6+
7+
Some systems require unusual options for compilation or linking that
8+
the `configure' script does not know about. You can give `configure'
9+
initial values for variables by setting them in the environment.
10+
11+
You can do that on the command line like this:
12+
13+
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
14+
15+
2.) Set any other main preferences in:
16+
17+
src/afdsetup.h
18+
src/init_afd/afddefs.h
19+
20+
But the defaults should be okay.
21+
22+
3.) Build it:
23+
24+
make
25+
26+
4.) After everything is compiled, install everything:
27+
28+
make install
29+
30+
Here are some more make options, mostly usfull if you are a
31+
developer:
32+
33+
clean : Removes all binaries, library, object files
34+
generated by a build.
35+
distclean : Same as above, but additionally delete all
36+
files created by configure.
37+
maintainer-clean : Similar to the above only that it also removes
38+
all files generated by autoconfig and automake.
39+
rpm : Create a RPM.
40+
41+
42+
5.) Setting up AFD
43+
44+
The AFD can be configured in two files, DIR_CONFIG and HOST_CONFIG,
45+
these can be found in the directory etc. Of these only the DIR_CONFIG
46+
file is absolutely necessary, otherwise the AFD will not start up.
47+
48+
The following is an example entry in the DIR_CONFIG:
49+
50+
[directory]
51+
/home/afd/data
52+
53+
[files]
54+
*
55+
56+
[destination]
57+
58+
[recipient]
59+
ftp://user:passwd@test1//dir1/dir2
60+
61+
[options]
62+
archive 3
63+
lock DOT
64+
priority 0
65+
66+
This tells the AFD to send any files (*) via FTP in the directory
67+
/home/afd/data to the user 'user' at host test1 with the password
68+
'passwd' into the directory '/dir1/dir2'. It also tells the AFD to
69+
archive these files for three days and to send them with the priority
70+
0 (very high). The option 'lock DOT' tells to send the files in dot
71+
notation, i.e. the file name is first written with a dot at the beg-
72+
ining. When the file has been transmitted it is renamed to its original
73+
name.
74+
75+
76+
6.) Starting the AFD
77+
78+
To run the AFD ensure that the path of the binaries is in the
79+
environment variable PATH. Set the environment variable AFD_WORK_DIR
80+
to where you want the AFD to be running (ie. where it put its log files,
81+
statistics, fifos, etc). Make certain that you have valid entries in the
82+
DIR_CONFIG, otherwise it will not run.
83+
84+
There are two possible ways to start the AFD. If you are running X you
85+
just need to enter 'afd'. This will start all process needed to run the
86+
AFD and the 'afd_ctrl' window. If you do not want to have the 'afd_ctrl'
87+
window you can start the AFD only by entering 'afd -a'.
88+
89+
90+
7.) Stopping the AFD
91+
92+
Stopping the AFD is always done by entering 'afd -s'. This will stop
93+
all process and remove all shared memory areas. Even when the AFD
94+
fails to start properly, always use this command to stop it again.

KNOWN-BUGS

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
Problem : If the LOCKFILE option is set and two or more process have finished
4+
transfering their files, which process will remove the LOCKFILE?
5+
6+
Problem : When starting AFD via mon_ctrl dialog the process do not get the
7+
environment variables set in .profile (.bashrc, .kshrc, etc) when
8+
using SSH.
9+
10+
Problem : After a system crash and the system comes back and AFD is started
11+
via /etc/init.d/afd, it can happen that it AFD does not start.
12+
Reason : Since the command 'afd -a' starts init_afd and this puts itself
13+
in the background it can happen that the process afd is terminated
14+
before init_afd has put itself as daemon in the background.
15+
Solution: Process afd must wait for init_afd to initialize.

Makefile.am

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
## Makefile.am
2+
3+
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure ac-tools/config.guess\
4+
ac-tools/config.h.in ac-tools/config.h.in~\
5+
ac-tools/config.sub ac-tools/depcomp\
6+
ac-tools/install-sh ac-tools/missing\
7+
ac-tools/mkinstalldirs ac-tools/compile\
8+
$(PACKAGE)-$(VERSION).tar.gz\
9+
$(PACKAGE)-$(VERSION).tar.bz2\
10+
afd.spec\
11+
errors
12+
CLEANFILES = core core.* typescript configmake.h configmake.h-t\
13+
po/$(PACKAGE).pot afd.spec\
14+
$(PACKAGE)-$(VERSION).tar.gz\
15+
$(PACKAGE)-$(VERSION).tar.bz2
16+
BUILT_SOURCES = configmake.h
17+
SUBDIRS = po src scripts doc
18+
DISTDOCS = COPYING CREDITS INSTALL KNOWN-BUGS README.configure\
19+
THANKS TODO changes-1.2.x-1.3.x
20+
EXTRA_DIST = ac-tools scripts afd.spec.in $(DISTDOCS)
21+
doc_DATA = $(DISTDOCS)
22+
23+
configmake.h: Makefile
24+
rm -f $@-t $@
25+
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26+
echo '#define PREFIX "$(prefix)"'; \
27+
echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
28+
echo '#define BINDIR "$(bindir)"'; \
29+
echo '#define SBINDIR "$(sbindir)"'; \
30+
echo '#define LIBEXECDIR "$(libexecdir)"'; \
31+
echo '#define DATAROOTDIR "$(datarootdir)"'; \
32+
echo '#define DATADIR "$(datadir)"'; \
33+
echo '#define SYSCONFDIR "$(sysconfdir)"'; \
34+
echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
35+
echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
36+
echo '#define INCLUDEDIR "$(includedir)"'; \
37+
echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
38+
echo '#define DOCDIR "$(docdir)"'; \
39+
echo '#define INFODIR "$(infodir)"'; \
40+
echo '#define HTMLDIR "$(htmldir)"'; \
41+
echo '#define DVIDIR "$(dvidir)"'; \
42+
echo '#define PDFDIR "$(pdfdir)"'; \
43+
echo '#define PSDIR "$(psdir)"'; \
44+
echo '#define LIBDIR "$(libdir)"'; \
45+
echo '#define LISPDIR "$(lispdir)"'; \
46+
echo '#define LOCALEDIR "$(localedir)"'; \
47+
echo '#define MANDIR "$(mandir)"'; \
48+
echo '#define MANEXT "$(manext)"'; \
49+
echo '#define PKGDATADIR "$(pkgdatadir)"'; \
50+
echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
51+
echo '#define PKGLIBDIR "$(pkglibdir)"'; \
52+
echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
53+
} | sed '/""/d' > $@-t
54+
mv $@-t $@
55+
56+
rpm: dist
57+
$(RPM) -ta $(PACKAGE)-$(VERSION).tar.bz2 </dev/null;
58+
59+
dist-hook:
60+
cp afd.spec $(distdir)
61+
62+
.PHONY: rpm

0 commit comments

Comments
 (0)