From f4a0d49034e1a6b9420491c5e3836308aaf0607c Mon Sep 17 00:00:00 2001
From: oliver <oliver@FreeBSD.org>
Date: Sat, 8 Oct 2016 18:17:02 +0000
Subject: resurrect qmail-conf

---
 mail/Makefile             |  1 +
 mail/qmail-conf/Makefile  | 57 +++++++++++++++++++++++++++++++++++++++++++++++
 mail/qmail-conf/distinfo  |  4 ++++
 mail/qmail-conf/pkg-descr |  4 ++++
 mail/qmail-conf/pkg-plist |  6 +++++
 5 files changed, 72 insertions(+)
 create mode 100644 mail/qmail-conf/Makefile
 create mode 100644 mail/qmail-conf/distinfo
 create mode 100644 mail/qmail-conf/pkg-descr
 create mode 100644 mail/qmail-conf/pkg-plist

(limited to 'mail')

diff --git a/mail/Makefile b/mail/Makefile
index b401bcbf308f..6656179cc92f 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -557,6 +557,7 @@
     SUBDIR += qmail-activedir
     SUBDIR += qmail-auditor
     SUBDIR += qmail-autoresponder
+    SUBDIR += qmail-conf
     SUBDIR += qmail-contrib
     SUBDIR += qmail-dk
     SUBDIR += qmail-ldap
diff --git a/mail/qmail-conf/Makefile b/mail/qmail-conf/Makefile
new file mode 100644
index 000000000000..970f94fe558b
--- /dev/null
+++ b/mail/qmail-conf/Makefile
@@ -0,0 +1,57 @@
+# Created by: roam@FreeBSD.org
+# $FreeBSD$
+
+PORTNAME=	qmail-conf
+PORTVERSION=	0.60
+PORTREVISION=	4
+CATEGORIES=	mail
+MASTER_SITES=	LOCAL/oliver:conf \
+		http://cr.yp.to/djbdns/:djbdns
+DISTFILES=	${DISTNAME}.tar.gz:conf \
+		${DJBDNS_DIST}:djbdns
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER=	oliver@FreeBSD.org
+COMMENT=	Configure various qmail services to run under daemontools
+
+USES=		qmail:run
+
+ALL_TARGET=	prog
+INSTALL_TARGET=	setup check
+
+LEGAL_TEXT=	No license -- see http://cr.yp.to/softwarelaw.html
+
+PREFIX?=	${QMAIL_PREFIX}
+NO_PREFIX_RMDIR=yes
+
+NO_MTREE=	yes
+
+DJBDNS_VER=	1.05
+DJBDNS_NAME=	djbdns-${DJBDNS_VER}
+DJBDNS_DIST=	${DJBDNS_NAME}${EXTRACT_SUFX}
+
+post-extract:
+		@(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DJBDNS_DIST} ${EXTRACT_AFTER_ARGS})
+
+post-patch:
+		@${ECHO_CMD} "${QMAIL_PREFIX}" > ${WRKSRC}/conf-qmail
+		@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
+		@${ECHO_CMD} "${CC} ${CFLAGS} ${STRIP}" > ${WRKSRC}/conf-ld
+		@${ECHO_CMD} "${LOCALBASE}" > ${WRKSRC}/conf-ucspi-tcp
+
+pre-build:
+		@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
+		    djbdns=${DJBDNS_NAME} -f Makefile.ini)
+
+# Do a dance to stage and keep out of resulting binaries (see r346769
+# and r349241)
+post-build:
+	@${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR"
+	@${MV} -f ${WRKSRC}/conf-qmail ${WRKSRC}/conf-qmail.sav
+	@${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKSRC}/conf-qmail
+	@cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c
+	@cd ${WRKSRC} ; ${DO_MAKE_BUILD} install instcheck
+	@${TOUCH} ${WRKSRC}/*-conf
+	@${MV} -f ${WRKSRC}/conf-qmail.sav ${WRKSRC}/conf-qmail
+
+.include <bsd.port.mk>
diff --git a/mail/qmail-conf/distinfo b/mail/qmail-conf/distinfo
new file mode 100644
index 000000000000..f9a2dc00968f
--- /dev/null
+++ b/mail/qmail-conf/distinfo
@@ -0,0 +1,4 @@
+SHA256 (qmail-conf-0.60.tar.gz) = 1d015a0193b20861f7c26c6e20cd0569e8d0024288833d3b3f1d6e160ebb1706
+SIZE (qmail-conf-0.60.tar.gz) = 6332
+SHA256 (djbdns-1.05.tar.gz) = 3ccd826a02f3cde39be088e1fc6aed9fd57756b8f970de5dc99fcd2d92536b48
+SIZE (djbdns-1.05.tar.gz) = 85648
diff --git a/mail/qmail-conf/pkg-descr b/mail/qmail-conf/pkg-descr
new file mode 100644
index 000000000000..e7ffdaf278be
--- /dev/null
+++ b/mail/qmail-conf/pkg-descr
@@ -0,0 +1,4 @@
+This is a suite of helper programs which create daemontools service
+directories for the various qmail utilities.
+
+WWW: http://www.din.or.jp/~ushijima/qmail-conf.html
diff --git a/mail/qmail-conf/pkg-plist b/mail/qmail-conf/pkg-plist
new file mode 100644
index 000000000000..f481f3aa232d
--- /dev/null
+++ b/mail/qmail-conf/pkg-plist
@@ -0,0 +1,6 @@
+bin/qmail-delivery-conf
+bin/qmail-pop3d-conf
+bin/qmail-qmqpd-conf
+bin/qmail-qmtpd-conf
+bin/qmail-smtpd-conf
+@dir service
-- 
cgit