View | Details | Raw Unified | Return to bug 210223
Collapse All | Expand All

(-)qmail/Makefile (-2 / +3 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	${QMAIL_PORTNAME}
4
PORTNAME=	${QMAIL_PORTNAME}
5
PORTVERSION?=	${QMAIL_VERSION}
5
PORTVERSION?=	${QMAIL_VERSION}
6
PORTREVISION?=	2
6
PORTREVISION?=	3
7
CATEGORIES=	mail
7
CATEGORIES=	mail
8
MASTER_SITES+=	QMAIL
8
MASTER_SITES+=	QMAIL
9
DISTNAME=	${PORTNAME}-${QMAIL_VERSION}
9
DISTNAME=	${PORTNAME}-${QMAIL_VERSION}
Lines 326-332 Link Here
326
.endif
326
.endif
327
327
328
.if !defined(SLAVE_LDAP)
328
.if !defined(SLAVE_LDAP)
329
SUB_FILES+=	qmailsmtpd
329
SUB_FILES+=	qmailsmtpd qmailsend
330
.endif
330
.endif
331
331
332
WRKDIR_doc=	${WRKDIR}/doc
332
WRKDIR_doc=	${WRKDIR}/doc
Lines 838-843 Link Here
838
.endfor
838
.endfor
839
.if !defined(SLAVE_LDAP)
839
.if !defined(SLAVE_LDAP)
840
	${INSTALL_SCRIPT} ${WRKDIR}/qmailsmtpd ${STAGEDIR}${PREFIX}/boot
840
	${INSTALL_SCRIPT} ${WRKDIR}/qmailsmtpd ${STAGEDIR}${PREFIX}/boot
841
	${INSTALL_SCRIPT} ${WRKDIR}/qmailsend ${STAGEDIR}${PREFIX}/boot
841
.endif
842
.endif
842
.for i in 1 5 7 8
843
.for i in 1 5 7 8
843
	@${MKDIR} ${STAGEDIR}${PREFIX}/man/man$i
844
	@${MKDIR} ${STAGEDIR}${PREFIX}/man/man$i
(-)qmail/files/qmailsend.in (+66 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: $
4
#
5
# PROVIDE: qmailsend
6
# REQUIRE: network
7
#
8
# The wrapper around qmail's qmail-send, qmail-lspawn, qmail-rspawn and
9
# qmail-clean chain.
10
#
11
# the qmailsend_delivery variable controls where mails should be delivered to:
12
#  maildir - qmail-local to ~/Maildir/ (this is the default)
13
#  mailbox - qmail-local to ~/Mailbox
14
#  proc    - procmail to /var/spool/mail/$USER
15
#  V7      - /bin/mail V7 interface to /var/spool/mail/$USER
16
#  SVR4    - /bin/mail SVR4 interface to /var/spool/mail/$USER
17
#  BSD44   - /usr/libexec/mail.local to /var/spool/mail/$USER
18
#
19
# Setting qmailsend_dotforward enables support for sendmail style
20
# .forward files
21
#
22
23
. /etc/rc.subr
24
25
name=qmailsend
26
rcvar=qmailsend_enable
27
28
load_rc_config $name
29
30
: ${qmailsend_delivery="maildir"}
31
: ${qmailsend_dotforward="NO"}
32
33
start_cmd="${name}_start"
34
command="%%PREFIX%%/bin/qmail-start"
35
procname=qmail-send
36
37
extra_commands="flush"
38
flush_cmd="qmailsend_flush"
39
40
pidfile="/var/run/${name}.pid"
41
42
qmailsend_start() {
43
  case ${qmailsend_delivery} in
44
    maildir) command_args='./Maildir/';;
45
    mailbox) command_args='./Mailbox';;
46
    proc)    command_args='|preline procmail';;
47
    V7)      command_args='|preline -f /bin/mail -f "${SENDER:-MAILER-DAEMON}" -d "$USER"';;
48
    SVR4)    command_args='|preline -f /bin/mail -r "${SENDER:-MAILER-DAEMON}" -d "$USER"';;
49
    BSD44)   command_args='|preline -f /usr/libexec/mail.local -r "${SENDER:-MAILER-DAEMON}" -d "$USER"';;
50
    *)       err 1 "Error: Unknown qmailsend delivery method: ${qmailsend_delivery}";;
51
  esac
52
  if checkyesno qmailsend_dotforward; then
53
    command_args='|dot-forward .forward
54
'"${command_args}"
55
  fi
56
57
  exec env - PATH="%%PREFIX%%/bin:$PATH" ${command} \'"${command_args}"\' splogger qmail&
58
  /bin/pgrep -P $$ > ${pidfile}
59
}
60
61
qmailsend_flush() {
62
  /bin/pkill -ALRM ${rc_pid}
63
}
64
65
run_rc_command "$1"
66
(-)qmail/pkg-plist (-2 / +5 lines)
Lines 1-8 Link Here
1
@unexec for alias in postmaster root mailer-daemon; do if [ -f %D/alias/.qmail-${alias} ] && [ $(stat -f '%%z' %D/alias/.qmail-${alias}) -eq 0 ]; then rm -f %D/alias/.qmail-${alias}; fi; done
1
@unexec for alias in postmaster root mailer-daemon; do if [ -f %D/alias/.qmail-${alias} ] && [ $(stat -f '%%z' %D/alias/.qmail-${alias}) -eq 0 ]; then rm -f %D/alias/.qmail-${alias}; fi; done
2
@exec for alias in postmaster root mailer-daemon; do if ! [ -f %D/alias/.qmail-${alias} ]; then :> %D/alias/.qmail-${alias}; fi; done
2
@exec for alias in postmaster root mailer-daemon; do if ! [ -f %D/alias/.qmail-${alias} ]; then :> %D/alias/.qmail-${alias}; fi; done
3
%%RCDLINK%%@unexec rm -f %%LOCALBASE%%/etc/rc.d/qmailsmtpd
3
%%RCDLINK%%@unexec rm -f %%LOCALBASE%%/etc/rc.d/qmailsmtpd
4
%%RCDLINK%%@exec /bin/ln -fs %D/rc %%LOCALBASE%%/etc/rc.d/qmailsmtpd
4
%%RCDLINK%%@unexec rm -f %%LOCALBASE%%/etc/rc.d/qmailsend
5
%%RCDLINK%%@exec echo; echo "A %%LOCALBASE%%/etc/rc.d/qmailsmtpd symlink was created. To enable qmail at boot time you need to copy a script to %D/rc.  There are some examples at %D/boot" | /usr/bin/fmt; echo
5
%%RCDLINK%%@exec /bin/ln -fs %D/boot/qmailsmtpd %%LOCALBASE%%/etc/rc.d/qmailsmtpd
6
%%RCDLINK%%@exec /bin/ln -fs %D/boot/qmailsend %%LOCALBASE%%/etc/rc.d/qmailsend
7
%%RCDLINK%%@exec echo; echo "A %%LOCALBASE%%/etc/rc.d/qmailsmtpd and a %%LOCALBASE%%/etc/rc.d/qmailsend symlink were created." | /usr/bin/fmt; echo
6
%%LDAP%%bin/auth_dovecot
8
%%LDAP%%bin/auth_dovecot
7
%%LDAP%%bin/auth_imap
9
%%LDAP%%bin/auth_imap
8
%%LDAP%%bin/auth_pop
10
%%LDAP%%bin/auth_pop
Lines 90-95 Link Here
90
%%NO_LDAP%%boot/proc
92
%%NO_LDAP%%boot/proc
91
%%NO_LDAP%%boot/proc+df
93
%%NO_LDAP%%boot/proc+df
92
%%NO_LDAP%%boot/qmailsmtpd
94
%%NO_LDAP%%boot/qmailsmtpd
95
%%NO_LDAP%%boot/qmailsend
93
%%LDAP%%boot/qmail/log/run
96
%%LDAP%%boot/qmail/log/run
94
%%LDAP%%boot/qmail/run
97
%%LDAP%%boot/qmail/run
95
%%LDAP%%boot/qmail-smtpd/log/run
98
%%LDAP%%boot/qmail-smtpd/log/run

Return to bug 210223