mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
- new option WITH_SETPROCTITLE
Submitted by: marck (Dmitry Morozovsky)
This commit is contained in:
parent
c250bf6151
commit
270e57af77
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168832
3 changed files with 20 additions and 4 deletions
|
@ -12,8 +12,9 @@ MAINTAINER= dinoex@FreeBSD.org
|
|||
WITH_SMTP_AFTER_POP3= yes
|
||||
MASTERDIR?= ${.CURDIR}/../popa3d
|
||||
|
||||
OPTIONS?= STANDALONE_POP3 "Unattended server mode" off \
|
||||
SMTP_AFTER_POP3 "Enable SMTP-after-POP mode" on
|
||||
OPTIONS?= SMTP_AFTER_POP3 "Enable SMTP-after-POP mode" on \
|
||||
STANDALONE_POP3 "Enable standalone server mode" off \
|
||||
SETPROCTITLE "Enable setproctitle mode" off
|
||||
|
||||
.if exists(${.CURDIR}/Makefile.local)
|
||||
.include "${.CURDIR}/Makefile.local"
|
||||
|
|
|
@ -22,8 +22,9 @@ PLIST= ${WRKDIR}/.PLIST.more
|
|||
CFLAGS+= -DPREFIX=${PREFIX}
|
||||
UNIQUENAME= ${.CURDIR:T}
|
||||
|
||||
OPTIONS?= STANDALONE_POP3 "Unattended server mode" off \
|
||||
SMTP_AFTER_POP3 "Enable SMTP-after-POP mode" off
|
||||
OPTIONS?= SMTP_AFTER_POP3 "Enable SMTP-after-POP mode" off \
|
||||
STANDALONE_POP3 "Enable standalone server mode" off \
|
||||
SETPROCTITLE "Enable setproctitle mode" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
@ -55,6 +56,10 @@ PLIST_SUB+= SMTP_AFTER_POP3="@comment "
|
|||
CONFLICTS?= popa3d-standalone-0.* popa3d-before-sendmail-0.*
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SETPROCTITLE)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/setproctitle.patch
|
||||
.endif
|
||||
|
||||
.if defined(WITH_STANDALONE_POP3)
|
||||
post-extract:
|
||||
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/popa3d.sh \
|
||||
|
|
10
mail/popa3d/files/setproctitle.patch
Normal file
10
mail/popa3d/files/setproctitle.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- pop_root.c.orig Sun Mar 5 13:45:36 2006
|
||||
+++ pop_root.c Wed Jul 26 20:26:08 2006
|
||||
@@ -248,6 +248,7 @@
|
||||
if (result == AUTH_OK) {
|
||||
if (close(channel[0])) return log_error("close");
|
||||
log_pop_auth(result, user);
|
||||
+ setproctitle(user);
|
||||
return do_pop_trans(spool, mailbox);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue