patch -p0 < ./files/patch-BC
patch -p0 < ./files/patch-big-dns
patch -p0 < ./files/patch-chown
patch -p0 < ./files/patch-pb
patch -p0 < ./files/patch-pe
patch -p0 < ./files/patch-pf
patch -p0 < ./files/patch-pg
patch -p0 < ./files/patch-ph
patch -p0 < ./files/patch-pi
patch -p0 < ./files/patch-pp
patch -p0 < ./files/patch-ps
patch -p0 < ./files/patch-pt
patch -p0 < ./files/patch-pu-tls
patch -p0 < ./files/patch-pv-smtp-auth
patch -p0 < ./files/patch-qmail-date-localtime
patch -p0 < ./files/patch-qmtpd
patch -p0 < ./files/patch-spf
patch -p0 < ./files/patch-TD
patch -p0 < ./files/patch-z01-isoc
patch -p0 < ./files/patch-z02-libssl
patch -p0 < ./files/patch-z03-next-mx
patch -p0 < ./files/patch-z04-tcp-env
patch -p0 < ./files/patch-z10-spp
patch -p0 < ./files/patch-z15-smtpd-relay-reject
patch -p0 < ./files/patch-z20-perms
patch -p0 < ./files/patch-z25-mms
patch -p0 < ./files/patch-z30-tlsserverciphers-fix
patch -p0 < ./files/patch-z33-dk-0.54
patch -p0 < ./files/patch-z35-dk-auth
patch -p0 < ./files/patch-z37-dk-mailhandler
patch -p0 < ./files/patch-z40-smtpd-maxrcpt
patch -p0 < ./files/patch-z42-inject-maxrcpt
cd /usr/ports/distfiles/qmail-1.03
cp -p conf-users conf-users.1.bak
cp -p conf-groups conf-groups.1.bak
grep -E '^(qmail|alias)' /etc/passwd | awk 'BEGIN {FS=":"; OFS=" ";} {if ($1 == "qmaill") {print $1,$3,"\nroot 0"} else {print $1,$3}}' >
conf-users
grep -E '^(qmail|nofiles)' /etc/group | awk 'BEGIN {FS=":"; OFS=" ";} {print $1,$3}' > conf-groups
cp -p conf-qmail conf-qmail.1.bak
echo "/usr/local/psa/qmail" > conf-qmail
cd /usr/ports/security/openssl
make install
pkg-config --libs openssl > ssl.lib
cd /usr/ports/distfiles/qmail-1.03/
cp -p conf-spawn conf-spawn-2010-Oct-31.txt
nano -w conf-spawn
make