#------------------------------------------------------------------------------ # Copyright (c) 2005-2021 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2013-06-09 jed # Last Update: $Id$ # # Important: These binaries must be updated if openssl files # have been changed e.g. from v0.9.7 to v.0.9.8! # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 # - list of binaries: # /usr/bin/mailutil # /usr/sbin/imapd # ipop3d # # - needs the following library packages to build: # libpam # libpam-dev # libssl # libssl-dev # libz # libz-dev # # - needs the following packages to be build: # certs ### download source archive from https://github.com/jonabbey/panda-imap/ ### extract unzip -d panda-imap-master.zip mv ./panda-imap-master panda-imap-2010 # customize version number cd panda-imap-2010 ### patch # To make sure that the mailutil program is able to access all # mailboxes in different home directories without restrictions # it's important that it's compiled before any patches are # applied. # # ./src/imapd/Makefile.ORG # ./src/osdep/unix/env_unix.c.ORG # ./src/osdep/unix/dummy.c.ORG # ./Makefile.ORG #make slx SSLTYPE=unix SSLINCLUDE=/usr/include/openssl SSLCERTS=/usr/local/ssl/certs SSLKEYS=/usr/local/ssl/private # or # with PAM authentication make lnp PASSWDTYPE=pam SSLTYPE=unix SSLINCLUDE=/usr/include/openssl SSLCERTS=/usr/local/ssl/certs SSLKEYS=/usr/local/ssl/private strip -s mailutil/mailutil # make a backup of the mailutil program cp mailutil/mailutil ./mailutil.ORG # Don't display dot-files when displaying folder list in imapd # patch ./Makefile and add 'EXTRACFLAGS=-DFORCENODOTFILES' # After it has successfully been compiled we're ready to # patch several files. To restrict access to root and others # by changing/setting the parameter 'restrictbox = -1' in # src/osdep/unix/env_unix.c # diff -rupN env_unix.c.ORG env_unix.c --- env_unix.c.ORG 2010-11-27 11:38:29.000000000 +0100 +++ env_unix.c 2010-11-27 11:38:29.000000000 +0100 @@ -77,11 +77,13 @@ static char *sslCApath = NIL; /* non-sta static short anonymous = NIL; /* is anonymous */ static short blackBox = NIL; /* is a black box */ static short closedBox = NIL; /* is a closed box (uses chroot() jail) */ -static short restrictBox = NIL; /* is a restricted box */ +//static short restrictBox = NIL; /* is a restricted box */ +static short restrictBox = -1; /* is a restricted box */ static short has_no_life = NIL; /* is a cretin with no life */ /* block environment init */ static short block_env_init = NIL; -static short hideDotFiles = NIL;/* hide files whose names start with . */ +//static short hideDotFiles = NIL;/* hide files whose names start with . */ +static short hideDotFiles = 1; /* hide files whose names start with . */ /* advertise filesystem root */ static short advertisetheworld = NIL; /* only advertise own mailboxes and ** #shared */ @@ -1729,8 +1731,8 @@ void dorc (char *file,long flag) disableLockWarning = atoi (k); else if (!compare_cstring (s,"set disable-unix-UIDs-and-keywords")) has_no_life = atoi (k); - else if (!compare_cstring (s,"set hide-dot-files")) - hideDotFiles = atoi (k); +// else if (!compare_cstring (s,"set hide-dot-files")) +// hideDotFiles = atoi (k); else if (!compare_cstring (s,"set list-maximum-level")) list_max_level = atol (k); else if (!compare_cstring (s,"set trust-dns")) # diff -rupN env_unix.c.PATCHED-1 env_unix.c.PATCHED-2 if (allowuserconfig) { /* allow user config files */ dorc (strcat (strcpy (tmp,myHomeDir),"/.mminit"),T); @@ -1767,6 +1799,10 @@ void dorc (char *file,long flag) */ else if (!compare_cstring (s,"set CA-certificate-path")) sslCApath = cpystr (k); + else if (!compare_cstring (s,"set ssl-cipher-list")) + sslCipherList = cpystr (k); + else if (!compare_cstring (s,"set ssl-protocols")) + sslProtocols = cpystr (k); else if (!compare_cstring (s,"set disable-plaintext")) disablePlaintext = atoi (k); else if (!compare_cstring (s,"set allowed-login-attempts")) # /* Init server for SSL * Accepts: server name */ @@ -722,11 +792,36 @@ void ssl_server_init (char *server) syslog (LOG_ALERT,"Unable to create SSL context, host=%.80s", tcp_clienthost ()); else { /* set context options */ + char *s; + const char *errstr; + ssl_proto_t protocol; + SSL_CTX_set_options (stream->context,SSL_OP_ALL); + /* set protocols */ + if ((s = (char *) mail_parameters (NIL,GET_SSLPROTOCOLS,NIL)) != NULL) { + errstr = ssl_cmd_protocol_parse(s, &protocol); + if (errstr != NULL || !(protocol & SSL_PROTOCOL_SSLV2)) { + SSL_CTX_set_options(stream->context, SSL_OP_NO_SSLv2); + } + + if (errstr != NULL || !(protocol & SSL_PROTOCOL_SSLV3)) { + SSL_CTX_set_options(stream->context, SSL_OP_NO_SSLv3); + } + + if (errstr != NULL || !(protocol & SSL_PROTOCOL_TLSV1)) { + SSL_CTX_set_options(stream->context, SSL_OP_NO_TLSv1); + } + } + if (s != NULL && errstr != NULL) + syslog (LOG_ALERT,"Unable to set protocol (host=%.80s): %s", + tcp_clienthost (), errstr); /* set cipher list */ - if (!SSL_CTX_set_cipher_list (stream->context,SSLCIPHERLIST)) +/* if (!SSL_CTX_set_cipher_list (stream->context,SSLCIPHERLIST)) */ + else if ((s = (char *) mail_parameters (NIL,GET_SSLCIPHERLIST,NIL)) != NULL && !SSL_CTX_set_cipher_list (stream->context,s)) syslog (LOG_ALERT,"Unable to set cipher list %.80s, host=%.80s", - SSLCIPHERLIST,tcp_clienthost ()); +/* SSLCIPHERLIST,tcp_clienthost ()); */ + s,tcp_clienthost ()); + /* want to send client certificate? */ /* load certificate */ else if (!SSL_CTX_use_certificate_chain_file (stream->context,cert)) syslog (LOG_ALERT,"Unable to load certificate from %.80s, host=%.80s", # patch src/osdep/unix/dummy.c # # /* scan directory, ignore . and .. */ # if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) # #if FORCENODOTFILES # if ((!(dt && (*dt) (d->d_name))) && # (d->d_name[0] != '.')) { # #else # if ((!(dt && (*dt) (d->d_name))) && # ((d->d_name[0] != '.') || # (((int) mail_parameters (NIL,GET_HIDEDOTFILES,NIL)) ? NIL : # (d->d_name[1] && (((d->d_name[1] != '.') || d->d_name[2]))))) && # ((len + strlen (d->d_name)) <= NETMAXMBX)) { # #endif # /* see if name is useful */ # Don't use /etc/nologin for shutting down imapd anymore because it # has a sidekick on e.g. sshd which will be locked too. # Patch file src/imapd/Makefile: SHUTDOWN=/etc/nologin -> SHUTDOWN=/etc/mail-nologin ### output of build process 1. make clean rm -f ./mailutil/mailutil.ORG ./imapd/imapd.PATCHED ./ipopd/ipop3d.PATCHED ./mlock/mlock.PATCHED Removing old processed sources and binaries... sh -c 'rm -rf an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail ip6 || true' cd tools;make clean make[1]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/tools' sh -c 'rm -f *.o uahelper || true' make[1]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/tools' 3. export CFLAGS='-O2 -march=i486' export CXXFLAGS="" make lnp PASSWDTYPE=pam SSLTYPE=nopwd SSLINCLUDE=/usr/include/openssl SSLCERTS=/usr/local/ssl/certs SSLKEYS=/usr/local/ssl/private make[1]: Entering directory `/data/soft/panda-imap-2010_20140409_patched' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building in full compliance with RFC 3501 security + requirements: ++ TLS/SSL encryption is supported ++ Unencrypted plaintext passwords are prohibited +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ make[1]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched' Applying an process to sources... tools/an "ln -s" src/c-client c-client tools/an "ln -s" src/ansilib c-client tools/an "ln -s" src/charset c-client tools/an "ln -s" src/osdep/unix c-client tools/an "ln -s" src/mtest mtest tools/an "ln -s" src/ipopd ipopd tools/an "ln -s" src/imapd imapd tools/an "ln -s" src/mailutil mailutil tools/an "ln -s" src/mlock mlock tools/an "ln -s" src/dmail dmail tools/an "ln -s" src/tmail tmail ln -s tools/an . make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=nopwd IP=4 EXTRASPECIALS='' BUILDTYPE=lnp make[1]: Entering directory `/data/soft/panda-imap-2010_20140409_patched' make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building with IPv4 support +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched' Building c-client for lnp... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make lnp EXTRACFLAGS=''\ EXTRALDFLAGS=''\ EXTRADRIVERS='mbox'\ EXTRAAUTHENTICATORS=''\ PASSWDTYPE=pam SSLTYPE=nopwd IP=4\ make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/c-client' make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=nopwd IP=4 `cat SPECIALS` OS=slx \ SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \ BASELDFLAGS="-lpam -ldl" make[3]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/c-client' sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true' Once-only environment setup... echo cc > CCTYPE echo -g -O2 -pipe -fno-omit-frame-pointer '' -DCHUNKSIZE=65536 > CFLAGS echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \ -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"\" \ -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \ -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS echo -lpam -ldl > LDFLAGS echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE echo slx > OSTYPE ./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy ./mkauths ext md5 pla log echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c ln -s os_slx.h osdep.h ln -s os_slx.c osdepbas.c ln -s log_std.c osdeplog.c ln -s sig_psx.c siglocal.c ln -s crx_nfs.c crexcl.c ln -s ip4_unix.c ip_unix.c sh -c '(test slx = sc5 -o slx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS' PAM password authentication echo -lpam -ldl >> LDFLAGS ln -s ckp_pam.c osdepckp.c Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/local/ssl/private\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/local/ssl/lib -lssl -lcrypto >> LDFLAGS Building with SSL and plaintext passwords disabled unless SSL/TLS echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c Building OS-dependent module If you get No such file error messages for files x509.h, ssl.h, pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL is not installed on your system. Either install OpenSSL first or build with command: make slx SSLTYPE=none `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c `cat CCTYPE` -c `cat CFLAGS` mail.c `cat CCTYPE` -c `cat CFLAGS` misc.c `cat CCTYPE` -c `cat CFLAGS` newsrc.c `cat CCTYPE` -c `cat CFLAGS` smanager.c `cat CCTYPE` -c `cat CFLAGS` utf8.c `cat CCTYPE` -c `cat CFLAGS` utf8aux.c `cat CCTYPE` -c `cat CFLAGS` siglocal.c `cat CCTYPE` -c `cat CFLAGS` dummy.c `cat CCTYPE` -c `cat CFLAGS` pseudo.c `cat CCTYPE` -c `cat CFLAGS` netmsg.c `cat CCTYPE` -c `cat CFLAGS` flstring.c `cat CCTYPE` -c `cat CFLAGS` fdstring.c `cat CCTYPE` -c `cat CFLAGS` rfc822.c `cat CCTYPE` -c `cat CFLAGS` nntp.c `cat CCTYPE` -c `cat CFLAGS` smtp.c `cat CCTYPE` -c `cat CFLAGS` imap4r1.c `cat CCTYPE` -c `cat CFLAGS` pop3.c `cat CCTYPE` -c `cat CFLAGS` unix.c `cat CCTYPE` -c `cat CFLAGS` mbx.c `cat CCTYPE` -c `cat CFLAGS` mmdf.c `cat CCTYPE` -c `cat CFLAGS` tenex.c `cat CCTYPE` -c `cat CFLAGS` mtx.c `cat CCTYPE` -c `cat CFLAGS` news.c news.c: In function ‘news_open’: news.c:370:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ news.c:370:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ `cat CCTYPE` -c `cat CFLAGS` phile.c `cat CCTYPE` -c `cat CFLAGS` mh.c mh.c: In function ‘mh_ping’: mh.c:862:5: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mh.c:862:5: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mh.c: In function ‘mh_append’: mh.c:1128:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mh.c:1128:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ `cat CCTYPE` -c `cat CFLAGS` mx.c mx.c: In function ‘mx_scan_contents’: mx.c:277:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mx.c:277:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mx.c: In function ‘mx_rename’: mx.c:462:7: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mx.c:462:7: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mx.c: In function ‘mx_ping’: mx.c:731:5: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mx.c:731:5: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ `cat CCTYPE` -c `cat CFLAGS` mix.c mix.c: In function ‘mix_scan_contents’: mix.c:322:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mix.c:322:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mix.c: In function ‘mix_rename’: mix.c:554:7: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mix.c: In function ‘mix_expunge’: mix.c:1052:7: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mix.c:1052:7: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ sh -c 'rm -rf c-client.a || true' ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a make[3]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/c-client' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/c-client' echo lnp > OSTYPE touch rebuild sh -c 'rm -rf rebuild || true' Building bundled tools... cd mtest;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/mtest' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mtest.o mtest.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' mtest.o: In function `smtptest': /data/soft/panda-imap-2010_20140409_patched/mtest/mtest.c:790: warning: the `gets' function is dangerous and should not be used. make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/mtest' cd ipopd;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/ipopd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop2d.o ipop2d.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop2d ipop2d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop3d.o ipop3d.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop3d ipop3d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/ipopd' cd imapd;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/imapd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/nologin\" -c -o imapd.o imapd.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/nologin\" -o imapd imapd.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/imapd' cd mailutil;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/mailutil' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mailutil.o mailutil.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mailutil mailutil.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/mailutil' cd mlock;make || true make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/mlock' `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -c -o mlock.o mlock.c `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -o mlock mlock.o make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/mlock' cd dmail;make || true make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/dmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dmail.o dmail.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dquota.o dquota.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o dmail dmail.o dquota.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/dmail' cd tmail;make || true make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/tmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tmail.o tmail.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tquota.o tquota.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o tmail tmail.o tquota.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/tmail' make[1]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched' 4. strip -s ./mailutil/mailutil cp ./mailutil/mailutil ./mailutil/mailutil.ORG 5. make clean 7. make lnp PASSWDTYPE=pam SSLTYPE=nopwd SSLINCLUDE=/usr/include/openssl SSLCERTS=/usr/local/ssl/certs SSLKEYS=/usr/local/ssl/private make[1]: Entering directory `/data/soft/panda-imap-2010_20140409_patched' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building in full compliance with RFC 3501 security + requirements: ++ TLS/SSL encryption is supported ++ Unencrypted plaintext passwords are prohibited +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ make[1]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched' Applying an process to sources... tools/an "ln -s" src/c-client c-client tools/an "ln -s" src/ansilib c-client tools/an "ln -s" src/charset c-client tools/an "ln -s" src/osdep/unix c-client tools/an "ln -s" src/mtest mtest tools/an "ln -s" src/ipopd ipopd tools/an "ln -s" src/imapd imapd tools/an "ln -s" src/mailutil mailutil tools/an "ln -s" src/mlock mlock tools/an "ln -s" src/dmail dmail tools/an "ln -s" src/tmail tmail ln -s tools/an . make build EXTRACFLAGS='-DFORCENODOTFILES' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=nopwd IP=4 EXTRASPECIALS='' BUILDTYPE=lnp make[1]: Entering directory `/data/soft/panda-imap-2010_20140409_patched' make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building with IPv4 support +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched' Building c-client for lnp... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make lnp EXTRACFLAGS='-DFORCENODOTFILES'\ EXTRALDFLAGS=''\ EXTRADRIVERS='mbox'\ EXTRAAUTHENTICATORS=''\ PASSWDTYPE=pam SSLTYPE=nopwd IP=4\ make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/c-client' make build EXTRACFLAGS='-DFORCENODOTFILES' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=nopwd IP=4 `cat SPECIALS` OS=slx \ SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \ BASELDFLAGS="-lpam -ldl" make[3]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/c-client' sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true' Once-only environment setup... echo cc > CCTYPE echo -g -O2 -pipe -fno-omit-frame-pointer '-DFORCENODOTFILES' -DCHUNKSIZE=65536 > CFLAGS echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \ -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"\" \ -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \ -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS echo -lpam -ldl > LDFLAGS echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE echo slx > OSTYPE ./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy ./mkauths ext md5 pla log echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c ln -s os_slx.h osdep.h ln -s os_slx.c osdepbas.c ln -s log_std.c osdeplog.c ln -s sig_psx.c siglocal.c ln -s crx_nfs.c crexcl.c ln -s ip4_unix.c ip_unix.c sh -c '(test slx = sc5 -o slx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS' PAM password authentication echo -lpam -ldl >> LDFLAGS ln -s ckp_pam.c osdepckp.c Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/usr/local/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/usr/local/ssl/private\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/local/ssl/lib -lssl -lcrypto >> LDFLAGS Building with SSL and plaintext passwords disabled unless SSL/TLS echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c Building OS-dependent module If you get No such file error messages for files x509.h, ssl.h, pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL is not installed on your system. Either install OpenSSL first or build with command: make slx SSLTYPE=none `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c In file included from osdep.c:47:0: env_unix.c: In function ‘env_parameters’: env_unix.c:421:11: warning: cast to pointer from integer of different size `cat CCTYPE` -c `cat CFLAGS` mail.c `cat CCTYPE` -c `cat CFLAGS` misc.c `cat CCTYPE` -c `cat CFLAGS` newsrc.c `cat CCTYPE` -c `cat CFLAGS` smanager.c `cat CCTYPE` -c `cat CFLAGS` utf8.c `cat CCTYPE` -c `cat CFLAGS` utf8aux.c `cat CCTYPE` -c `cat CFLAGS` siglocal.c `cat CCTYPE` -c `cat CFLAGS` dummy.c `cat CCTYPE` -c `cat CFLAGS` pseudo.c `cat CCTYPE` -c `cat CFLAGS` netmsg.c `cat CCTYPE` -c `cat CFLAGS` flstring.c `cat CCTYPE` -c `cat CFLAGS` fdstring.c `cat CCTYPE` -c `cat CFLAGS` rfc822.c `cat CCTYPE` -c `cat CFLAGS` nntp.c `cat CCTYPE` -c `cat CFLAGS` smtp.c `cat CCTYPE` -c `cat CFLAGS` imap4r1.c `cat CCTYPE` -c `cat CFLAGS` pop3.c `cat CCTYPE` -c `cat CFLAGS` unix.c `cat CCTYPE` -c `cat CFLAGS` mbx.c `cat CCTYPE` -c `cat CFLAGS` mmdf.c `cat CCTYPE` -c `cat CFLAGS` tenex.c `cat CCTYPE` -c `cat CFLAGS` mtx.c `cat CCTYPE` -c `cat CFLAGS` news.c news.c: In function ‘news_open’: news.c:370:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ news.c:370:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ `cat CCTYPE` -c `cat CFLAGS` phile.c `cat CCTYPE` -c `cat CFLAGS` mh.c mh.c: In function ‘mh_ping’: mh.c:862:5: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mh.c:862:5: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mh.c: In function ‘mh_append’: mh.c:1128:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mh.c:1128:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ `cat CCTYPE` -c `cat CFLAGS` mx.c mx.c: In function ‘mx_scan_contents’: mx.c:277:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mx.c:277:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mx.c: In function ‘mx_rename’: mx.c:462:7: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mx.c:462:7: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mx.c: In function ‘mx_ping’: mx.c:731:5: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mx.c:731:5: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ `cat CCTYPE` -c `cat CFLAGS` mix.c mix.c: In function ‘mix_scan_contents’: mix.c:322:3: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mix.c:322:3: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ mix.c: In function ‘mix_rename’: mix.c:554:7: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mix.c: In function ‘mix_expunge’: mix.c:1052:7: warning: passing argument 3 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent *)’ but argument is of type ‘int (*)(struct dirent *)’ mix.c:1052:7: warning: passing argument 4 of ‘scandir’ from incompatible pointer type /usr/include/dirent.h:252:12: note: expected ‘int (*)(const struct dirent **, const struct dirent **)’ but argument is of type ‘int (*)(const void *, const void *)’ sh -c 'rm -rf c-client.a || true' ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a make[3]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/c-client' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/c-client' echo lnp > OSTYPE touch rebuild sh -c 'rm -rf rebuild || true' Building bundled tools... cd mtest;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/mtest' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mtest.o mtest.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' mtest.o: In function `smtptest': /data/soft/panda-imap-2010_20140409_patched/mtest/mtest.c:790: warning: the `gets' function is dangerous and should not be used. make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/mtest' cd ipopd;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/ipopd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop2d.o ipop2d.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop2d ipop2d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop3d.o ipop3d.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop3d ipop3d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/ipopd' cd imapd;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/imapd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/mail-nologin\" -c -o imapd.o imapd.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/mail-nologin\" -o imapd imapd.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/imapd' cd mailutil;make make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/mailutil' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mailutil.o mailutil.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mailutil mailutil.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/mailutil' cd mlock;make || true make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/mlock' `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -c -o mlock.o mlock.c `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -o mlock mlock.o make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/mlock' cd dmail;make || true make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/dmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dmail.o dmail.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dquota.o dquota.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o dmail dmail.o dquota.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/dmail' cd tmail;make || true make[2]: Entering directory `/data/soft/panda-imap-2010_20140409_patched/tmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tmail.o tmail.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tquota.o tquota.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o tmail tmail.o tquota.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /data/soft/panda-imap-2010_20140409_patched/c-client/osdep.c:349: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched/tmail' make[1]: Leaving directory `/data/soft/panda-imap-2010_20140409_patched' 8. strip -s ./imapd/imapd strip -s ./ipopd/ipop3d strip -s ./mlock/mlock cp ./imapd/imapd ./imapd/imapd.PATCHED cp ./ipopd/ipop3d ./ipopd/ipop3d.PATCHED cp ./mlock/mlock ./mlock/mlock.PATCHED 9. doclist="BUILD CONFIG RELNOTES SSLBUILD *.txt" for DNAME in bin sbin sbin/doc do mkdir -p ${destpath}/panda-imap-${version}/usr/${DNAME} done cp ./mailutil/mailutil.ORG /data/public/panda-imap-2010_20140409_patched/usr/bin/mailutil cp ./imapd/imapd.PATCHED /data/public/panda-imap-2010_20140409_patched/usr/sbin/imapd cp ./ipopd/ipop3d.PATCHED /data/public/panda-imap-2010_20140409_patched/usr/sbin/ipop3d for FNAME in ${doclist} do cp ./docs/${FNAME} ${destpath}/panda-imap-${version}/usr/sbin/doc/ >>./jed_conf.log 2>>./jed_conf.log done 10. rm -f /data/public/panda-imap-2010_20140409_patched-e1.tgz tar cvzf /data/public/panda-imap-2010_20140409_patched-e1.tgz /data/public/panda-imap-2010_20140409_patched tar: Removing leading `/' from member names /data/public/panda-imap-2010_20140409_patched/ /data/public/panda-imap-2010_20140409_patched/usr/ /data/public/panda-imap-2010_20140409_patched/usr/sbin/ /data/public/panda-imap-2010_20140409_patched/usr/sbin/imapd /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/ /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/RELNOTES /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/calendar.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/formats.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/drivers.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/md5.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/internal.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/FAQ.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/locking.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/mixfmt.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/CONFIG /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/commndmt.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/IPv6.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/imaprc.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/naming.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/bugs.txt /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/SSLBUILD /data/public/panda-imap-2010_20140409_patched/usr/sbin/doc/BUILD /data/public/panda-imap-2010_20140409_patched/usr/sbin/ipop3d /data/public/panda-imap-2010_20140409_patched/usr/bin/ /data/public/panda-imap-2010_20140409_patched/usr/bin/mailutil