summaryrefslogtreecommitdiffstats
path: root/mail/qmail-smtp_auth
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-02-12 03:07:46 +0000
committerlioux <lioux@FreeBSD.org>2001-02-12 03:07:46 +0000
commit4a3d42b0bd3eebf5a44ce7e642d1f89cef79d2ab (patch)
tree22a4cf97f421624c8cd75591d91f07cbfc0769ca /mail/qmail-smtp_auth
parentcbc441f53ff38dd4103d58e671b4af84c5421797 (diff)
downloadFreeBSD-ports-4a3d42b0bd3eebf5a44ce7e642d1f89cef79d2ab.zip
FreeBSD-ports-4a3d42b0bd3eebf5a44ce7e642d1f89cef79d2ab.tar.gz
Add initial revision of port of a patch to stock qmail supporting
SMTP TLS TLS patch version 20000823 This is a meta port both including and dependent on the main port qmail Makefile
Diffstat (limited to 'mail/qmail-smtp_auth')
-rw-r--r--mail/qmail-smtp_auth/Makefile100
-rw-r--r--mail/qmail-smtp_auth/pkg-comment1
-rw-r--r--mail/qmail-smtp_auth/pkg-descr11
-rw-r--r--mail/qmail-smtp_auth/pkg-message27
-rw-r--r--mail/qmail-smtp_auth/pkg-plist162
5 files changed, 301 insertions, 0 deletions
diff --git a/mail/qmail-smtp_auth/Makefile b/mail/qmail-smtp_auth/Makefile
new file mode 100644
index 0000000..56d71a2
--- /dev/null
+++ b/mail/qmail-smtp_auth/Makefile
@@ -0,0 +1,100 @@
+# New ports collection makefile for: qmail-tls
+# Date created: 03 Dec 2000
+# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
+#
+# $FreeBSD$
+#
+
+PORTNAME= qmail
+PORTVERSION= ${QMAIL_VERSION}.${TLS_PATCH_DATE}
+CATEGORIES= mail
+PKGNAMESUFFIX= -tls
+
+PATCH_SITES+= http://www.esat.kuleuven.ac.be/~vermeule/qmail/
+PATCHFILES+= tls.patch
+PATCH_DIST_STRIP+= -p1
+
+MAINTAINER= lioux@FreeBSD.org
+
+USE_OPENSSL= YES
+
+TLS_PATCH_DATE= 20000823
+
+.if !defined(PRE_MK_INCLUDED)
+.include <bsd.port.pre.mk>
+.endif
+
+MAKE_ARGS+= TLS=yes
+
+.if defined(WITH_TLS_DEBUG)
+MAKE_ARGS+= DEBUG=yes
+.endif # WITH_TLS_DEBUG
+
+#PREFIX= /var/qmail-tls
+
+DOCFILES+= ${WRKDIR}/TLS.readme
+
+yetanotherone-pre-fetch: tls-pre-fetch
+
+tls-pre-fetch:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "You may use the following build options:"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
+ @${ECHO_MSG} ""
+
+yetanotherone-post-patch: tls-post-patch
+
+tls-post-patch:
+ @${HEAD} -74 ${DISTDIR}/tls.patch > ${WRKDIR}/TLS.readme
+ @${PERL} -pi -ne "s|/var/qmail|${PREFIX}|;s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
+
+# Primary Ugh... ;-)
+# idea stolen from www/apache13-ssl, a target written by adam@algroup.co.uk
+# internal code ripped from tls.patch guts ;-) written by Frederik Vermeulen <jos-tls@kotnet.org>
+
+certificate:
+ @if [ -f ${OPENSSLDIR}/openssl.cnf ]; \
+ then \
+ if [ ! -d ${WRKDIR} ]; \
+ then \
+ ${MKDIR} ${WRKDIR} ; \
+ fi ; \
+ ${OPENSSLBASE}/bin/openssl req -new -x509 -nodes \
+ -out ${WRKDIR}/cert.pem -days 366 \
+ -keyout ${WRKDIR}/cert.pem ; \
+ ${INSTALL} -o qmaild -g qmail -m 0640 ${WRKDIR}/cert.pem ${PREFIX}/control/cert.pem ; \
+ ${ECHO_MSG} "===> Do not forget to do 'make clean' to clean up temporary files" ; \
+ else \
+ ${ECHO_MSG} "===> You must create the file ${OPENSSLDIR}/openssl.cnf first." ; \
+ fi
+
+certificate-req:
+ @if [ -f ${OPENSSLDIR}/openssl.cnf ]; \
+ then \
+ if [ ! -d ${WRKDIR} ]; \
+ then \
+ ${MKDIR} ${WRKDIR} ; \
+ fi ; \
+ ${OPENSSLBASE}/bin/openssl req -new -nodes \
+ -out ${WRKDIR}/req.pem \
+ -keyout ${WRKDIR}/cert.pem ; \
+ ${INSTALL} -o qmaild -g qmail -m 0640 ${WRKDIR}/cert.pem ${PREFIX}/control/cert.pem ; \
+ ${ECHO_MSG} ; \
+ ${ECHO_MSG} "===> Do not forget to do 'make clean' to clean up temporary files" ; \
+ ${ECHO_MSG} "===> Send ${WRKDIR}/req.pem to your CA to obtain signed_req.pem, and do:" ; \
+ ${ECHO_MSG} "===> cat signed_req.pem >> ${PREFIX}/control/cert.pem" ; \
+ else \
+ ${ECHO_MSG} "===> You must create the file ${OPENSSLDIR}/openssl.cnf first." ; \
+ fi
+
+# Local overrides
+MASTERDIR= ${PORTSDIR}/mail/qmail
+#MASTERDIR= ${.CURDIR}/../qmail
+PKGDIR_LOCAL= ${.CURDIR}
+COMMENT= ${PKGDIR_LOCAL}/pkg-comment
+DESCR= ${PKGDIR_LOCAL}/pkg-descr
+PKGMESSAGE= ${PKGDIR_LOCAL}/pkg-message
+PLIST= ${PKGDIR_LOCAL}/pkg-plist
+
+.include "${MASTERDIR}/Makefile"
diff --git a/mail/qmail-smtp_auth/pkg-comment b/mail/qmail-smtp_auth/pkg-comment
new file mode 100644
index 0000000..ed761ea
--- /dev/null
+++ b/mail/qmail-smtp_auth/pkg-comment
@@ -0,0 +1 @@
+A SECURE, reliable, and FAST MTA for UNIX systems WITH TLS support
diff --git a/mail/qmail-smtp_auth/pkg-descr b/mail/qmail-smtp_auth/pkg-descr
new file mode 100644
index 0000000..0bb7b13
--- /dev/null
+++ b/mail/qmail-smtp_auth/pkg-descr
@@ -0,0 +1,11 @@
+What is is: [excerpt taken from tls patch]
+
+Frederik Vermeulen <jos-tls@kotnet.org> 20000823
+http://www.esat.kuleuven.ac.be/~vermeule/qmail/tls.patch
+
+This patch implements RFC2487 in qmail. This means you can
+get SSL or TLS encrypted and authenticated SMTP between
+the MTAs and between MTA and an MUA like Netscape4.5 TM.
+The code is considered experimental.
+
+WWW: http://www.qmail.org/
diff --git a/mail/qmail-smtp_auth/pkg-message b/mail/qmail-smtp_auth/pkg-message
new file mode 100644
index 0000000..48b6d84
--- /dev/null
+++ b/mail/qmail-smtp_auth/pkg-message
@@ -0,0 +1,27 @@
+ ATTENTIONATTENTION:
+
+Please make sure that you read /var/qmail/doc/PORT_NOTES.
+It contains important information about testing and configuring
+qmail, and finally replacing sendmail with qmail.
+
+You should also add /var/qmail/man to your MANPATH (see manpath(1)
+or login.conf(5)).
+
+Do not forget to read /var/qmail/doc/TLS.readme. After all,
+this is NOT our old stock qmail.
+
+==> You can enable qmail as your default mailer:
+
+# this will disable the default MTA
+1) do "make disable-sendmail"
+
+# enable qmail as your default MTA
+2) do "make enable-qmail"
+
+==> As you need to provide a working certificate in /var/qmail/control/cert.pem :
+
+# makes a self-signed certificate
+3) do "make certificate"
+
+# makes a certificate request
+4) do "make certificate-req"
diff --git a/mail/qmail-smtp_auth/pkg-plist b/mail/qmail-smtp_auth/pkg-plist
new file mode 100644
index 0000000..e561e62
--- /dev/null
+++ b/mail/qmail-smtp_auth/pkg-plist
@@ -0,0 +1,162 @@
+%%PORTDOCS%%%%DOCDIR%%/FAQ
+%%PORTDOCS%%%%DOCDIR%%/UPGRADE
+%%PORTDOCS%%%%DOCDIR%%/SENDMAIL
+%%PORTDOCS%%%%DOCDIR%%/INSTALL
+%%PORTDOCS%%%%DOCDIR%%/INSTALL.alias
+%%PORTDOCS%%%%DOCDIR%%/INSTALL.ctl
+%%PORTDOCS%%%%DOCDIR%%/INSTALL.ids
+%%PORTDOCS%%%%DOCDIR%%/INSTALL.maildir
+%%PORTDOCS%%%%DOCDIR%%/INSTALL.mbox
+%%PORTDOCS%%%%DOCDIR%%/INSTALL.vsm
+%%PORTDOCS%%%%DOCDIR%%/TEST.deliver
+%%PORTDOCS%%%%DOCDIR%%/TEST.receive
+%%PORTDOCS%%%%DOCDIR%%/REMOVE.sendmail
+%%PORTDOCS%%%%DOCDIR%%/REMOVE.binmail
+%%PORTDOCS%%%%DOCDIR%%/PIC.local2alias
+%%PORTDOCS%%%%DOCDIR%%/PIC.local2ext
+%%PORTDOCS%%%%DOCDIR%%/PIC.local2local
+%%PORTDOCS%%%%DOCDIR%%/PIC.local2rem
+%%PORTDOCS%%%%DOCDIR%%/PIC.local2virt
+%%PORTDOCS%%%%DOCDIR%%/PIC.nullclient
+%%PORTDOCS%%%%DOCDIR%%/PIC.relaybad
+%%PORTDOCS%%%%DOCDIR%%/PIC.relaygood
+%%PORTDOCS%%%%DOCDIR%%/PIC.rem2local
+%%PORTDOCS%%%%DOCDIR%%/TLS.readme
+boot/home
+boot/home+df
+boot/proc
+boot/proc+df
+boot/binm1
+boot/binm1+df
+boot/binm2
+boot/binm2+df
+boot/binm3
+boot/binm3+df
+
+@group qmail
+@mode 04711
+@comment *** NOTE different owner
+@owner qmailq
+bin/qmail-queue
+@owner
+@mode 0700
+bin/qmail-lspawn
+@mode 0700
+bin/qmail-start
+@mode 0711
+bin/qmail-getpw
+@mode 0711
+bin/qmail-local
+@mode 0711
+bin/qmail-remote
+@mode 0711
+bin/qmail-rspawn
+@mode 0711
+bin/qmail-clean
+@mode 0711
+bin/qmail-send
+@mode 0711
+bin/splogger
+@mode 0700
+bin/qmail-newu
+@mode 0700
+bin/qmail-newmrh
+@mode 0711
+bin/qmail-pw2u
+@mode 0755
+bin/qmail-inject
+@mode 0755
+bin/predate
+@mode 0755
+bin/datemail
+@mode 0755
+bin/mailsubj
+@mode 0755
+bin/qmail-showctl
+@mode 0755
+bin/qmail-qread
+@mode 0755
+bin/qmail-qstat
+@mode 0755
+bin/qmail-tcpto
+@mode 0755
+bin/qmail-tcpok
+@mode 0755
+bin/qmail-pop3d
+@mode 0711
+bin/qmail-popup
+@mode 0755
+bin/qmail-qmqpc
+@mode 0755
+bin/qmail-qmqpd
+@mode 0755
+bin/qmail-qmtpd
+@mode 0755
+bin/qmail-smtpd
+@mode 0755
+bin/sendmail
+@mode 0755
+bin/tcp-env
+@mode 0755
+bin/qreceipt
+@mode 0755
+bin/qsmhook
+@mode 0755
+bin/qbiff
+@mode 0755
+bin/forward
+@mode 0755
+bin/preline
+@mode 0755
+bin/condredirect
+@mode 0755
+bin/bouncesaying
+@mode 0755
+bin/except
+@mode 0755
+bin/maildirmake
+@mode 0755
+bin/maildir2mbox
+@mode 0755
+bin/maildirwatch
+@mode 0755
+bin/qail
+@mode 0755
+bin/elq
+@mode 0755
+bin/pinq
+
+@group
+@owner
+@mode
+
+@comment This port installs the following manually (ie. not through qmail-hier)
+configure/install
+configure/config
+configure/config-fast
+configure/dnsfq
+configure/hostname
+configure/dnsip
+configure/ipmeprint
+configure/dnsptr
+%%PORTDOCS%%%%DOCDIR%%/BLURB
+%%PORTDOCS%%%%DOCDIR%%/BLURB2
+%%PORTDOCS%%%%DOCDIR%%/BLURB3
+%%PORTDOCS%%%%DOCDIR%%/BLURB4
+%%PORTDOCS%%%%DOCDIR%%/INTERNALS
+%%PORTDOCS%%%%DOCDIR%%/SECURITY
+%%PORTDOCS%%%%DOCDIR%%/THOUGHTS
+%%PORTDOCS%%%%DOCDIR%%/PORT_NOTES
+%%PORTDOCS%%%%DOCDIR%%/PORT_NOTES_FreeBSD_40-RELEASE
+%%PORTDOCS%%%%DOCDIR%%/SYSDEPS
+%%PORTDOCS%%%%DOCDIR%%/mailer.conf.sample
+%%PORTDOCS%%%%DOCDIR%%/mkaliasdir
+boot/maildir
+%%PORTDOCS%%@dirrm %%DOCDIR%%
+@dirrm configure
+@dirrm boot
+@dirrm bin
+
+@unexec echo "1) If you are permanently removing qmail, you should also ``rm -Rf ${PKG_PREFIX}/alias ${PKG_PREFIX}/control ${PKG_PREFIX}/queue ${PKG_PREFIX}/users'' and remove the qmail users/groups." | /usr/bin/fmt
+@unexec echo "2) Do not forget to reconfigure your /etc/mail/mailer.conf to use your older MTA, or reconfigure your old MTA binaries if you decided to replace them." | /usr/bin/fmt
+@unexec echo "3) Do not forget to enable sendmail as your default MTA if you have to. Go to mail/qmail portsdir and do a 'make enable-sendmail'" | /usr/bin/fmt
OpenPOWER on IntegriCloud