#------------------------------------------------------------------------------ # Copyright (c) 2001-2006 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org # # Creation: 2006-11-22 jed # Last Update: $Id$ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 # --help print this message # --no-create do not create output files # --quiet do not print `checking...' messages # --homedir=HOMEDIR DCC home directory [/var/dcc] # --bindir=DIR user executables [/usr/local/bin] # --libexecdir=DIR program executables [HOMEDIR/libexec] # --mandir=DIR documentation [/usr/local/man] # --with-updatedcc_pfile=FILE file of updatedcc parameters # --with-installroot=DIR prefix DIR to installation directories # --with-DCC-MD5 use MD5 code in the DCC source # --disable-sys-inst install in private directories # --with-uid=UID set-UID user name for cdcc, dccproc, & dccsight # --disable-server do not build DCC server, dccd # --disable-dccifd do not build DCC program interface, dccifd # --disable-dccm do not build DCC sendmail interface, dccm # --with-sendmail=DIR build dccm with sendmail milter interface in dir # --with-cgibin=DIR directory for DCC white list CGI scripts # --with-rundir=DIR for PID files and milter socket # --with-db-memory=MB server database buffer size 32-65536 MBytes # --with-max-db-mem=MB maximum server database buffer size 32-65536 MBytes # --with-max-log-size=KB max dccm & dccifd log size; 0=no limit [32] # --with-bad-locks work around broken NFS fcntl() locking # --disable-IPv6 no IPv6 support # --with-kludge=FILE include header FILE # --with-xfltr=FILE external filter .c file # --with-xfltr-cflags=opt -I or other flags to compile external filter # --with-xfltr-ldflags=opt -L, -l, foo.a needed by external filter # --with-socks[=lib] build DCC clients with SOCKS support 1. configure DCC package with the following commands: ./configure --homedir=/var/antispam/dcc --bindir=/usr/bin --with-cgibin=/var/www/cgi-bin --with-uid=spam --with-rundir=/var/run --disable-server --disable-dccm --enable-dccifd --disable-IPv6 --with-installroot=/tmp/dcc creating cache ./config.cache Rhyolite Software DCC 1.3.42 checking for cc... cc checking for gcc... (cached) cc checking whether the C compiler (cc ) works... yes checking whether the C compiler (cc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking how to run the C preprocessor... cc -E checking for pthread_mutex_lock... yes checking for gcc __attribute__... yes checking sizeof(long)... 4 checking sizeof(off_t)... 4 checking for va_copy()... yes checking for gmake... yes checking for wget... /usr/bin/wget checking for perl... /usr/bin/perl checking for htpasswd... /usr/local/bin/htpasswd checking for sa_len... no checking for socklen_t... yes checking for AF_LOCAL... yes checking for ANSI C header files... yes checking for pid_t... yes checking for u_int32_t... yes checking for u_int64_t... yes checking need for string.h... no checking whether time.h and sys/time.h may both be included... yes checking for strings.h... yes checking for paths.h... yes checking for sys/cdefs.h... yes checking for pthread.h... yes checking for arpa/nameser.h... yes checking for resolv.h... yes checking for utime.h... yes checking for daemon... yes checking for vsyslog... yes checking for getipnodebyname... no checking for getipnodebyaddr... no checking for freehostent... no checking for getaddrinfo... yes checking for getnameinfo... yes checking for freeaddrinfo... yes checking for gai_strerror... yes checking for hstrerror... yes checking for _res... no checking for res_init... no checking for res_query... no checking for dn_expand... no checking for inet_ntop... yes checking for inet_aton... yes checking for gethostid... yes checking for localtime_r... yes checking for timegm... yes checking for altzone... no checking for futimes... yes checking for setpgid... yes checking for poll... yes checking for strlcpy... no checking for strlcat... no checking for getprogname... no checking for getifaddrs... yes checking for freeifaddrs... yes checking for md5.h... no checking for sysconf(_SC_PHYS_PAGES)+sysconf(_SC_PAGESIZE)... yes checking for __progname... yes checking FD_SETSIZE to compute NUM_CWFS... 20 assume with-max-db-mem=2020 on 32-bit Linux checking for IPv6... disabled checking for Rsendto... no updating cache ./config.cache creating ./config.status ..............................................creating include/dcc_config.h 2. make 3. make install ./autoconf/install-sh -c -d -o bin -g bin -m 755 /tmp/dcc/usr/bin ./autoconf/install-sh -c -d -o bin -g bin -m 755 /tmp/dcc/usr/local/man/man8 ==> thrlib ==> cdcc ==> dccifd ==> dccproc ==> dccsight ==> homedir ==> misc ==> cgi-bin eval 'for NM in dcc.8 cdcc.8 dbclean.8 dccd.8 dblist.8 dccm.8 dccifd.8 dccproc.8 dccsight.8; do\ ./autoconf/install-sh -c -c -o bin -g bin -m 444 $NM /tmp/dcc/usr/local/man/man8;\ done' for DIR in dccd srvrlib dccm .; do\ if test "$DIR" != .; then\ (cd $DIR; make deinstall); fi; done make[1]: Entering directory `/soft/dcc-dccproc-1.3.42/dccd' rm -f /tmp/dcc/var/antispam/dcc/libexec/dccd make[1]: Leaving directory `/soft/dcc-dccproc-1.3.42/dccd' make[1]: Entering directory `/soft/dcc-dccproc-1.3.42/srvrlib' make[1]: Nothing to be done for `deinstall'. make[1]: Leaving directory `/soft/dcc-dccproc-1.3.42/srvrlib' make[1]: Entering directory `/soft/dcc-dccproc-1.3.42/dccm' rm -f /tmp/dcc/var/antispam/dcc/libexec/dccm make[1]: Leaving directory `/soft/dcc-dccproc-1.3.42/dccm' ==> thrlib ==> cdcc ../autoconf/install-sh -c -c -o spam -g bin -m 4555 cdcc /tmp/dcc/usr/bin ==> dccifd ../autoconf/install-sh -c -d -o bin -g bin -m 755 /tmp/dcc/var/antispam/dcc/libexec ../autoconf/install-sh -c -c -o bin -g bin -m 555 dccifd /tmp/dcc/var/antispam/dcc/libexec ../../autoconf/install-sh -c -c -o bin -g bin -m 555 dccif-test /tmp/dcc/var/antispam/dcc/libexec ==> dccproc ../autoconf/install-sh -c -c -o spam -g bin -m 4555 dccproc /tmp/dcc/usr/bin ==> dccsight ../autoconf/install-sh -c -c -o spam -g bin -m 4555 dccsight /tmp/dcc/var/antispam/dcc/libexec ==> homedir if test ! -d /tmp/dcc/var/antispam/dcc; then \ ../autoconf/install-sh -c -c -o spam -g bin -m 755 -d /tmp/dcc/var/antispam/dcc; fi if test ! -d /tmp/dcc/var/antispam/dcc/log; then \ ../autoconf/install-sh -c -c -o spam -g bin -m 710 -d /tmp/dcc/var/antispam/dcc/log; fi if test -s /tmp/dcc/var/antispam/dcc/dcc_conf; then \ sh make-dcc_conf -h /tmp/dcc/var/antispam/dcc; \ else \ ../autoconf/install-sh -c -c -o spam -g bin -m 644 dcc_conf /tmp/dcc/var/antispam/dcc/dcc_conf; \ fi for nm in flod grey_flod whitelist grey_whitelist \ whiteclnt whitecommon; do \ if test ! -f /tmp/dcc/var/antispam/dcc/$nm; then \ ../autoconf/install-sh -c -c -o spam -g bin -m 644 $nm /tmp/dcc/var/antispam/dcc/$nm; fi; \ done ==> misc ../autoconf/install-sh -c -c -o bin -g bin -m 555 wlist /tmp/dcc/var/antispam/dcc/libexec for NM in cron-dccd fetchblack fetch-testmsg-whitelist hackmc list-clients logger newwebuser rcDCC start-dccd start-grey start-dccifd start-dccm stop-dccd dcc-stats-collect stats-get dcc-stats-graph dcc-stats-init updatedcc uninstalldcc; do ../autoconf/install-sh -c -c -o bin -g bin -m 555 $NM /tmp/dcc/var/antispam/dcc/libexec/$NM;done ==> cgi-bin ../autoconf/install-sh -c -d -o bin -g bin -m 755 /tmp/dcc/var/antispam/dcc/cgi-bin for NM in chgpasswd edit-whiteclnt list-log list-msg http2https webuser-notify; do ../autoconf/install-sh -c -o bin -g bin \ -m 555 -c $NM /tmp/dcc/var/antispam/dcc/cgi-bin/$NM; done for NM in README common; do ../autoconf/install-sh -c -o bin -g bin \ -m 644 -c $NM /tmp/dcc/var/antispam/dcc/cgi-bin/$NM; done