mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
Really uphold the WITH_Y_OPTION '-y' command line parameter for the qpopper daemon
PR: 74813 Submitted by: Helge Oldach <mail-qpopper-uidl@oldach.net>
This commit is contained in:
parent
59635fde36
commit
c82ea4a1a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124006
@ -165,7 +165,9 @@ CONFIGURE_ARGS+= --enable-standalone
|
||||
# accept -y command line option which allows the user to specify a
|
||||
# different logging facility.
|
||||
.if defined(WITH_Y_OPTION)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-popper::pop_init.c
|
||||
EXTRA_PATCHES+= \
|
||||
${FILESDIR}/extra-patch-popper::pop_init.c \
|
||||
${FILESDIR}/extra-patch-popper::main.c
|
||||
.endif
|
||||
|
||||
# The default is to build without SSL/TLS support.
|
||||
|
27
mail/qpopper/files/extra-patch-popper::main.c
Normal file
27
mail/qpopper/files/extra-patch-popper::main.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- popper/main.c.orig Thu Jan 2 00:38:40 2003
|
||||
+++ popper/main.c Tue Dec 14 11:32:49 2004
|
||||
@@ -343,6 +343,24 @@
|
||||
trace_name, fileno(trace_file) );
|
||||
break;
|
||||
|
||||
+ case 'y': /* log facility */
|
||||
+ {
|
||||
+ POP config;
|
||||
+ POP *p = &config;
|
||||
+ if ( set_option ( p, "log-facility", optarg ) == POP_SUCCESS ) {
|
||||
+ closelog();
|
||||
+#ifdef SYSLOG42
|
||||
+ openlog ( pname, 0 );
|
||||
+#else
|
||||
+ openlog ( pname, POP_LOGOPTS, p->log_facility );
|
||||
+#endif
|
||||
+ } else {
|
||||
+ fprintf ( stderr, "Error setting '-y' to %s\n", optarg );
|
||||
+ return 1;
|
||||
+ }
|
||||
+ }
|
||||
+ break;
|
||||
+
|
||||
default:
|
||||
break;
|
||||
}
|
Loading…
Reference in New Issue
Block a user