diff options
author | dinoex <dinoex@FreeBSD.org> | 2006-07-27 02:45:08 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2006-07-27 02:45:08 +0800 |
commit | 2e4ecfcb312fa0bdb5cdbcae92dff2ad47892ada (patch) | |
tree | 687173c8cf4078f09f31da0d501d97cc41d7e5dc /mail/popa3d | |
parent | 37e8766203adf5387b0baf37949db965f2e3702c (diff) | |
download | freebsd-ports-gnome-2e4ecfcb312fa0bdb5cdbcae92dff2ad47892ada.tar.gz freebsd-ports-gnome-2e4ecfcb312fa0bdb5cdbcae92dff2ad47892ada.tar.zst freebsd-ports-gnome-2e4ecfcb312fa0bdb5cdbcae92dff2ad47892ada.zip |
- new option WITH_SETPROCTITLE
Submitted by: marck (Dmitry Morozovsky)
Diffstat (limited to 'mail/popa3d')
-rw-r--r-- | mail/popa3d/Makefile | 9 | ||||
-rw-r--r-- | mail/popa3d/files/setproctitle.patch | 10 |
2 files changed, 17 insertions, 2 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile index 9bed51d2d32c..13adad2212dd 100644 --- a/mail/popa3d/Makefile +++ b/mail/popa3d/Makefile @@ -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 \ diff --git a/mail/popa3d/files/setproctitle.patch b/mail/popa3d/files/setproctitle.patch new file mode 100644 index 000000000000..99650b291627 --- /dev/null +++ b/mail/popa3d/files/setproctitle.patch @@ -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); + } + |