diff options
Diffstat (limited to 'mail/qpopper/patches')
-rw-r--r-- | mail/qpopper/patches/patch-aa | 16 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ab | 6 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ac | 6 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ad | 10 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ae | 13 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ag | 10 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ah | 67 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-al | 35 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-am | 129 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-an | 22 | ||||
-rw-r--r-- | mail/qpopper/patches/patch-ap | 22 |
11 files changed, 135 insertions, 201 deletions
diff --git a/mail/qpopper/patches/patch-aa b/mail/qpopper/patches/patch-aa index 5f2f1f1d77d..f71dd02708f 100644 --- a/mail/qpopper/patches/patch-aa +++ b/mail/qpopper/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.10 2009/12/27 14:17:38 obache Exp $ +$NetBSD: patch-aa,v 1.11 2012/03/22 14:13:29 taca Exp $ ---- configure.orig 2009-12-27 12:17:33.000000000 +0000 +--- configure.orig 2010-10-02 00:22:09.000000000 +0000 +++ configure -@@ -3023,13 +3023,6 @@ fi +@@ -3523,13 +3523,6 @@ fi @@ -15,12 +15,4 @@ $NetBSD: patch-aa,v 1.10 2009/12/27 14:17:38 obache Exp $ - if test "$GCC" = yes then - echo "$as_me:$LINENO: checking for gcc version 2.7.2.3" >&5 -@@ -5132,6 +5125,7 @@ fi - ipv6_cv_iruserok_sa=no - : - fi -+fi - - - USE_REG_STRUCT_RET="default" + { echo "$as_me:$LINENO: checking for gcc version 2.7.2.3" >&5 diff --git a/mail/qpopper/patches/patch-ab b/mail/qpopper/patches/patch-ab index 73ad47dd1cc..b98128e6c84 100644 --- a/mail/qpopper/patches/patch-ab +++ b/mail/qpopper/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.8 2001/06/10 15:08:41 taca Exp $ +$NetBSD: patch-ab,v 1.9 2012/03/22 14:13:29 taca Exp $ ---- popper/popauth.c.orig Wed Apr 4 09:23:41 2001 +--- popper/popauth.c.orig 2011-05-30 19:13:40.000000000 +0000 +++ popper/popauth.c -@@ -168,7 +168,7 @@ +@@ -192,7 +192,7 @@ static struct mods { #define APOP_AUTH 1 { "apopauth" }, #define POP_AUTH 2 diff --git a/mail/qpopper/patches/patch-ac b/mail/qpopper/patches/patch-ac index bf4673a12e7..45c3072a8d1 100644 --- a/mail/qpopper/patches/patch-ac +++ b/mail/qpopper/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.11 2006/01/08 17:34:47 joerg Exp $ +$NetBSD: patch-ac,v 1.12 2012/03/22 14:13:29 taca Exp $ ---- popper/popper.h.orig 2006-01-08 17:09:15.000000000 +0000 +--- popper/popper.h.orig 2011-05-30 19:13:40.000000000 +0000 +++ popper/popper.h -@@ -287,8 +287,6 @@ typedef struct _pop_tls pop_ +@@ -308,8 +308,6 @@ typedef struct _pop_sasl pop_ # define WILDCARD_SHELL "/POPPER/ANY/SHELL/" #endif /* CHECK_SHELL */ diff --git a/mail/qpopper/patches/patch-ad b/mail/qpopper/patches/patch-ad index c85842105f3..b06c6e306e1 100644 --- a/mail/qpopper/patches/patch-ad +++ b/mail/qpopper/patches/patch-ad @@ -1,10 +1,10 @@ -$NetBSD: patch-ad,v 1.5 2006/01/08 17:34:47 joerg Exp $ +$NetBSD: patch-ad,v 1.6 2012/03/22 14:13:29 taca Exp $ ---- popper/pop_init.c.orig 2006-01-08 17:27:18.000000000 +0000 +--- popper/pop_init.c.orig 2011-05-30 19:13:39.000000000 +0000 +++ popper/pop_init.c -@@ -211,7 +211,6 @@ - #endif /* HAVE_HSTRERROR */ - #endif /* INET6 */ +@@ -213,7 +213,6 @@ + # endif /* HAVE_HSTRERROR */ + #endif /* not INET6 */ -extern int errno; int no_rev_lookup; /* Avoid reverse lookup? */ diff --git a/mail/qpopper/patches/patch-ae b/mail/qpopper/patches/patch-ae index c787ff000de..e4eb0ad62bf 100644 --- a/mail/qpopper/patches/patch-ae +++ b/mail/qpopper/patches/patch-ae @@ -1,6 +1,6 @@ -$NetBSD: patch-ae,v 1.11 2001/06/10 15:08:41 taca Exp $ +$NetBSD: patch-ae,v 1.12 2012/03/22 14:13:29 taca Exp $ ---- man/popauth.8.orig Wed Apr 4 09:23:13 2001 +--- man/popauth.8.orig 2011-05-30 19:13:39.000000000 +0000 +++ man/popauth.8 @@ -7,11 +7,11 @@ .\" See License.txt file for terms and conditions for modification and @@ -17,7 +17,7 @@ $NetBSD: patch-ae,v 1.11 2001/06/10 15:08:41 taca Exp $ [ .BI \-trace " tracefile" ] [ -@@ -46,18 +46,18 @@ +@@ -46,18 +46,18 @@ popauth \-\- manipulate POP authorizatio ] .SH DESCRIPTION @@ -39,7 +39,12 @@ $NetBSD: patch-ae,v 1.11 2001/06/10 15:08:41 taca Exp $ just like the \fIpasswd\fR program. It then updates the authorization DB. With the -@@ -89,4 +89,4 @@ +@@ -85,8 +85,8 @@ With the + switch, the super-user or master POP user can remove + a user entry from the authorization DB. + .SH FILES +-/etc/pop.auth.* POP authorization DB ++@PKG_SYSCONFDIR@/etc/pop.auth.* POP authorization DB .SH ACKNOWLEDGEMENTS This program was derived from MH 6.8.3 .SH SEE ALSO diff --git a/mail/qpopper/patches/patch-ag b/mail/qpopper/patches/patch-ag index f1ec682ff93..a48384704bc 100644 --- a/mail/qpopper/patches/patch-ag +++ b/mail/qpopper/patches/patch-ag @@ -1,17 +1,17 @@ -$NetBSD: patch-ag,v 1.8 2001/06/10 15:08:41 taca Exp $ +$NetBSD: patch-ag,v 1.9 2012/03/22 14:13:29 taca Exp $ ---- man/popper.8.orig Wed Apr 4 09:23:13 2001 +--- man/popper.8.orig 2011-05-30 19:13:39.000000000 +0000 +++ man/popper.8 @@ -19,7 +19,7 @@ .SH NAME - qpopper \-\- POP3 server (v4.0) + qpopper \-\- POP3 server (v4.1) .SH SYNOPSIS -.B /usr/local/lib/popper -+.B /usr/local/lib/qpopper ++.B @PREFIX@/libexec/qpopper [ .I [ address ] .I [ ":" ] -@@ -800,7 +803,7 @@ +@@ -829,7 +829,7 @@ Connection closed by foreign host. .PP The server implements several extended commands. .PP diff --git a/mail/qpopper/patches/patch-ah b/mail/qpopper/patches/patch-ah deleted file mode 100644 index 184d270cbd8..00000000000 --- a/mail/qpopper/patches/patch-ah +++ /dev/null @@ -1,67 +0,0 @@ -$NetBSD: patch-ah,v 1.9 2009/10/31 20:08:05 tnn Exp $ - ---- popper/popper.c.orig 2006-03-09 23:32:38.000000000 +0100 -+++ popper/popper.c -@@ -150,7 +150,7 @@ char ** argv; - char message [ MAXLINELEN ]; - pop_result rslt = POP_FAILURE; - char * tgetline(); -- char * getline(); -+ char * get_line(); - - /* - * seed random with the current time to nearest second -@@ -425,7 +425,7 @@ jmp_buf env; - */ - - char --*getline ( char *str, int size, POP *pPOP ) -+*get_line ( char *str, int size, POP *pPOP ) - { - char *p = NULL; - int nRead = 0; -@@ -433,7 +433,7 @@ char - int nBufSz = sizeof ( pPOP->pcInBuf ); - - -- _DEBUG_LOG2 ( pPOP, "getline(%p,%d)", str, size ); -+ _DEBUG_LOG2 ( pPOP, "get_line(%p,%d)", str, size ); - - /* - * See if there's a line in our input buffer -@@ -472,7 +472,7 @@ char - pPOP->pcInStart - pPOP->pcInBuf ); - pPOP->pcInStart = pPOP->pcInEnd = pPOP->pcInBuf; - } -- _DEBUG_LOG3 ( pPOP, "getline() returning %d: '%.*s'", -+ _DEBUG_LOG3 ( pPOP, "get_line() returning %d: '%.*s'", - strlen(str), MIN(25, (int) strlen(str)), str ); - return ( str ); - } /* got a line */ -@@ -560,7 +560,7 @@ char - } /* found a '\n' */ - } /* loop and discard until we see a '\n' */ - -- _DEBUG_LOG2 ( pPOP, "getline() returning %d ('%c')", -+ _DEBUG_LOG2 ( pPOP, "get_line() returning %d ('%c')", - strlen(str), *str ); - return ( str ); - } /* nRoom == 0 */ -@@ -583,7 +583,7 @@ char - break; - } /* main loop */ - -- _DEBUG_LOG0 ( pPOP, "getline() returning NULL" ); -+ _DEBUG_LOG0 ( pPOP, "get_line() returning NULL" ); - return ( NULL ); - } - -@@ -614,7 +614,7 @@ tgetline ( char *str, int size, POP *p, - VERSION, timeout, p->user, p->client, p->ipaddr ); - } - else -- str = getline ( str, size, p ); -+ str = get_line ( str, size, p ); - - alarm ( 0 ); - signal ( SIGALRM, SIG_DFL ); diff --git a/mail/qpopper/patches/patch-al b/mail/qpopper/patches/patch-al index bdc03b4fb7e..bb2b0d490dc 100644 --- a/mail/qpopper/patches/patch-al +++ b/mail/qpopper/patches/patch-al @@ -1,8 +1,8 @@ -$NetBSD: patch-al,v 1.2 2009/12/27 14:17:38 obache Exp $ +$NetBSD: patch-al,v 1.3 2012/03/22 14:13:29 taca Exp $ ---- Makefile.in.orig 2006-03-09 22:32:36.000000000 +0000 +--- Makefile.in.orig 2011-05-30 19:13:39.000000000 +0000 +++ Makefile.in -@@ -26,6 +26,7 @@ MAKEFILE = Makefile +@@ -40,6 +40,7 @@ MAKEFILE = Makefile YACC = @YACC@ LEX = @LEX@ INSTALL = @INSTALL@ @@ -10,18 +10,33 @@ $NetBSD: patch-al,v 1.2 2009/12/27 14:17:38 obache Exp $ @SET_MAKE@ -@@ -58,10 +59,10 @@ popper_server: +@@ -72,25 +73,10 @@ popper_server: cd ${popper_dir} && ${MAKE} all install: -- ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popper.8 ${mandir}/man8/ -- echo "Installed man/popper.8 as ${mandir}/man8/popper.8" -- ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popauth.8 ${mandir}/man8/ -- echo "Installed man/popauth.8 as ${mandir}/man8/popauth.8" -+ ${BSD_INSTALL_MAN} ${top_srcdir}/man/popper.8 ${DESTDIR}${mandir}/man8/qpopper.8 +- @if [ ! -d ${prefix} ]; then \ +- ${base_dir}/mkdir-sh "${prefix}" "0755" "root" ; \ +- fi +- +- @if [ ! -d ${mandir} ]; then \ +- ${base_dir}/mkdir-sh "${mandir}" "0755" "root" ; \ +- fi +- +- @if [ ! -d ${mandir}/man8 ]; then \ +- mkdir -m 0755 ${mandir}/man8; \ +- chown root ${mandir}/man8; \ +- fi +- +- @${INSTALL} -m 0644 -o root ${top_srcdir}/man/popper.8 ${mandir}/man8/ +- @echo "Installed man/popper.8 as ${mandir}/man8/popper.8" +- +- @${INSTALL} -m 0644 -o root ${top_srcdir}/man/popauth.8 ${mandir}/man8/ +- @echo "Installed man/popauth.8 as ${mandir}/man8/popauth.8" +- ++ ${BSD_INSTALL_MAN} ${top_srcdir}/man/popper.8 ${DESTDIR}${mandir}/man8/qpopper.8 + @echo "Installed man/popper.8 as ${mandir}/man8/qpopper.8" + ${BSD_INSTALL_MAN} ${top_srcdir}/man/popauth.8 ${DESTDIR}${mandir}/man8/qpopauth.8 + @echo "Installed man/popauth.8 as ${mandir}/man8/qpopauth.8" - cd ${popper_dir} && ${MAKE} install + cd ${popper_dir} && ${MAKE} install clean: diff --git a/mail/qpopper/patches/patch-am b/mail/qpopper/patches/patch-am index 82c5c76fc43..788aec914c0 100644 --- a/mail/qpopper/patches/patch-am +++ b/mail/qpopper/patches/patch-am @@ -1,8 +1,8 @@ -$NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ +$NetBSD: patch-am,v 1.7 2012/03/22 14:13:29 taca Exp $ ---- popper/Makefile.in.orig 2006-03-09 22:32:37.000000000 +0000 +--- popper/Makefile.in.orig 2011-05-30 19:13:39.000000000 +0000 +++ popper/Makefile.in -@@ -86,6 +86,7 @@ CC = @CC@ +@@ -99,6 +99,7 @@ CC = @CC@ GPERF = @GPERF@ MAKEFILE = Makefile INSTALL = @INSTALL@ @@ -10,7 +10,7 @@ $NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ @SET_MAKE@ -@@ -96,6 +97,8 @@ VPATH = @srcdir@ +@@ -109,6 +110,8 @@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ installdir = @sbindir@ @@ -19,7 +19,7 @@ $NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ popper_srcdir = ${top_srcdir}/popper qd_srcdir = ${top_srcdir}/qd -@@ -114,17 +117,20 @@ password_dir = ${base_dir}/password +@@ -127,7 +130,7 @@ password_dir = ${base_dir}/password OBJS = pop_dele.o pop_dropcopy.o \ @@ -28,31 +28,19 @@ $NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ pop_last.o pop_list.o pop_log.o pop_lower.o \ pop_msg.o pop_parse.o pop_pass.o pop_quit.o \ pop_rset.o pop_send.o pop_stat.o pop_updt.o \ - pop_user.o pop_xtnd.o pop_xmit.o popper.o \ -- pop_bull.o xtnd_xlst.o pop_uidl.o mktemp.o \ -+ pop_bull.o xtnd_xlst.o pop_uidl.o \ - pop_rpop.o pop_apop.o md5.o pop_auth.o pop_pope.o \ - pop_extend.o scram.o hmac.o base64.o pop_util.o \ +@@ -137,7 +140,10 @@ OBJS = pop_dele.o pop_dropc + pop_extend.o scram.o hmac.o pop_util.o \ get_sub_opt.o msg_ptr.o drac.o pop_config.o pop_tls.o \ pop_tls_openssl.o pop_tls_sslplus.o sslplus_utils.o \ -- main.o pop_cache.o genpath.o -+ pop_cache.o genpath.o +- main.o pop_cache.o genpath.o pop_sasl.o ++ pop_cache.o genpath.o pop_sasl.o + +INETDOBJ = main.o pop_init.o +STANDOBJ = main-stand.o pop_init-stand.o SRCS = pop_dele.c pop_dropcopy.c \ pop_get_command.c pop_get_subcommand.c pop_init.c \ -@@ -132,7 +138,7 @@ SRCS = pop_dele.c pop_dropc - pop_msg.c pop_parse.c pop_pass.c pop_quit.c \ - pop_rset.c pop_send.c pop_stat.c pop_updt.c \ - pop_user.c pop_xtnd.c pop_xmit.c popper.c \ -- pop_bull.c xtnd_xlst.c pop_uidl.c mktemp.c \ -+ pop_bull.c xtnd_xlst.c pop_uidl.c \ - pop_rpop.c pop_apop.c md5.c pop_auth.c pop_pope.c \ - pop_extend.c scram.c hmac.c base64.c pop_util.c \ - get_sub_opt.c msg_ptr.c drac.c pop_config.c pop_tls.c \ -@@ -181,7 +187,7 @@ USE_PAM = @USE_PAM@ +@@ -198,7 +204,7 @@ pam_sample = ${top_srcdir}/sample .SUFFIXES: .c .o @@ -61,29 +49,31 @@ $NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ mangler_library: cd ${mmangle_dir} && ${MAKE} all -@@ -189,13 +195,18 @@ mangler_library: +@@ -206,14 +212,20 @@ mangler_library: common_library: cd ${common_dir} && ${MAKE} all --popper: ${OBJS} mangler_library common_library -- ${CC} ${OBJS} -o popper ${mmangle_dir}/libmangle.a \ -+popper: ${INETDOBJ} ${OBJS} mangler_library common_library -+ ${CC} ${INETDOBJ} ${OBJS} -o popper ${mmangle_dir}/libmangle.a \ +-popper: ${OBJS} ${MISSING_OBJS} mangler_library common_library +- ${CC} ${OBJS} ${MISSING_OBJS} -o popper \ ++popper: ${INETDOBJ} ${OBJS} ${MISSING_OBJS} mangler_library common_library ++ ${CC} ${INETDOBJ} ${OBJS} ${MISSING_OBJS} -o popper \ ++ ${mmangle_dir}/libmangle.a \ ++ -I${common_srcdir} ${common_dir}/libcommon.a \ ++ ${LIBS} ${LDFLAGS} ++ ++popper-standalone: ${STANDOBJ} ${OBJS} ${MISSING_OBJS} mangler_library common_library ++ ${CC} ${STANDOBJ} ${OBJS} ${MISSING_OBJS} -o popper-standalone \ + ${mmangle_dir}/libmangle.a \ -I${common_srcdir} ${common_dir}/libcommon.a \ ${LIBS} ${LDFLAGS} -+popper-standalone: ${STANDOBJ} ${OBJS} mangler_library common_library -+ ${CC} ${STANDOBJ} ${OBJS} -o popper-standalone \ -+ ${mmangle_dir}/libmangle.a -I${common_srcdir} \ -+ ${common_dir}/libcommon.a ${LIBS} -+ - popauth: ${POPAUTHOBJS} -- ${CC} -o popauth ${POPAUTHOBJS} ${NETWORK_LIBS} ${DBM_LIBS} \ -+ ${CC} -o popauth ${POPAUTHOBJS} ${LIBS} ${NETWORK_LIBS} ${DBM_LIBS} \ + popauth: ${POPAUTHOBJS} ${MISSING_OBJS} +- ${CC} -o popauth ${POPAUTHOBJS} ${NETWORK_LIBS} \ ++ ${CC} -o popauth ${POPAUTHOBJS} ${LIBS} ${NETWORK_LIBS} \ + ${DBM_LIBS} ${MISSING_OBJS} \ ${common_dir}/libcommon.a - poppassd: common_library -@@ -206,22 +217,35 @@ poppassd: common_library +@@ -225,47 +237,36 @@ poppassd: common_library -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} $< -o $@ @@ -101,32 +91,53 @@ $NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ + ${SRCS}: ${POPAUTHSRCS}: - --install: popper ${pop_auth} -- ${INSTALL} -s -m 0755 -o root popper ${installdir}/popper -- echo "Installed popper as ${installdir}/popper" -- if [ "x${poppassd}" != "x" ]; then \ -- cd ${password_dir} && ${MAKE} $@ ;\ -+install: popper popper-standalone ${pop_auth} + ${MISSING_SRCS}: + + install: popper ${pop_auth} +- @if [ ! -d ${installdir} ]; then \ +- ${base_dir}/mkdir-sh "${installdir}" "0755" "root:wheel" ; \ +- fi +- +- @${INSTALL} -s -m 0755 -o root popper ${installdir}/popper +- @echo "Installed popper as ${installdir}/popper" + ${BSD_INSTALL_PROGRAM} popper ${DESTDIR}${libexecdir}/qpopper -+ echo "Installed popper as ${libexecdir}/qpopper" ++ @echo "Installed popper as ${libexecdir}/qpopper" + ${BSD_INSTALL_PROGRAM} popper-standalone ${DESTDIR}${sbindir}/qpopper + @echo "Installed standalone popper as ${sbindir}/qpopper" -+ @if [ "x${pop_auth}" != "x" ]; then \ -+ ${BSD_INSTALL_PROGRAM} ${pop_auth} \ -+ ${DESTDIR}${sbindir}/q${pop_auth}; \ -+ echo "Installed popauth as ${sbindir}/q${pop_auth} " \ -+ "with uid ${apop_uid}"; \ + + @if [ "x${poppassd}" != "x" ]; then \ + cd ${password_dir} && ${MAKE} install ;\ fi -- if [ "x${pop_auth}" != "x" ]; then \ -- ${INSTALL} -s -m 4755 -o ${apop_uid} -g 0 ${pop_auth} \ -- ${installdir}/${pop_auth}; \ -- echo "Installed popauth as ${installdir}/${pop_auth} " \ -- "with uid ${apop_uid}"; \ -- ${installdir}/${pop_auth} -init -safe; \ -+ if [ "x${poppassd}" != "x" ]; then \ -+ cd ${password_dir} && ${MAKE} $@ ;\ +- @if [ "x${pop_auth}" != "x" ]; then \ +- ${INSTALL} -s -m 4755 -o ${apop_uid} -g 0 ${pop_auth} \ +- ${installdir}/${pop_auth}; \ +- echo "Installed popauth as ${installdir}/${pop_auth} " \ +- "with uid ${apop_uid}"; \ +- if [ "x${apop_dir}" != "x" ]; then \ +- if [ ! -d "${apop_dir}" ]; then \ +- ${base_dir}/mkdir-sh "${apop_dir}" "0700" "${apop_uid}:0" ; \ +- echo "Created directory ${apop_dir}" ; \ +- fi \ +- fi ; \ +- echo "Initializing popauth database"; \ +- ${installdir}/${pop_auth} -init -safe; \ +- fi +- +- @if [ "x${USE_PAM}" != "x" ]; then \ +- echo "Checking for pam.d file..."; \ +- if [ ! -e ${pam_file} ]; then \ +- if [ -e ${pam_sample} ]; then \ +- ${INSTALL} -m 0444 -o root ${pam_sample} ${pam_file} ; \ +- echo "Created ${pam_file}"; \ +- else \ +- echo "can't find ${pam_sample} file"; \ +- fi \ +- fi \ ++ @if [ "x${pop_auth}" != "x" ]; then \ ++ ${BSD_INSTALL_PROGRAM} ${pop_auth} \ ++ ${DESTDIR}${sbindir}/q${pop_auth}; \ ++ echo "Installed popauth as ${sbindir}/q${pop_auth}" ;\ fi - if [ "x${USE_PAM}" != "x" ]; then \ + clean: diff --git a/mail/qpopper/patches/patch-an b/mail/qpopper/patches/patch-an deleted file mode 100644 index 7f83d64815f..00000000000 --- a/mail/qpopper/patches/patch-an +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-an,v 1.1 2002/05/04 05:59:05 taca Exp $ - ---- popper/pop_bull.c.orig Wed Feb 21 10:15:17 2001 -+++ popper/pop_bull.c -@@ -702,7 +702,7 @@ - int msg_num; - int msg_vis_num = 0; - int msg_ends_in_nl = 0; -- char bullName [ 256 ]; -+ char bullName [ MAXLINELEN ]; - MsgInfoList *mp; /* Pointer to message info list */ - - -@@ -716,7 +716,7 @@ - msg_num = p->msg_count; - p->msg_count = ( ( ( p->msg_count - 1 ) / ALLOC_MSGS ) + 1 ) * ALLOC_MSGS; - -- sprintf ( bullName, "%s/%s", p->bulldir, name ); -+ Qsnprintf ( bullName, sizeof bullName, "%s/%s", p->bulldir, name ); - bull = fopen ( bullName, "r" ); - if ( bull == NULL ) { - pop_log ( p, POP_PRIORITY, HERE, diff --git a/mail/qpopper/patches/patch-ap b/mail/qpopper/patches/patch-ap index 61ec0ccbc6d..2498241403b 100644 --- a/mail/qpopper/patches/patch-ap +++ b/mail/qpopper/patches/patch-ap @@ -1,8 +1,8 @@ -$NetBSD: patch-ap,v 1.3 2005/06/01 20:55:16 adrianp Exp $ +$NetBSD: patch-ap,v 1.4 2012/03/22 14:13:29 taca Exp $ ---- popper/main.c.orig 2005-05-28 17:29:10.000000000 +0100 +--- popper/main.c.orig 2011-05-30 19:13:39.000000000 +0000 +++ popper/main.c -@@ -246,6 +246,7 @@ main ( int argc, char *argv[] ) +@@ -310,6 +310,7 @@ main ( int argc, char *argv[] ) fd_set fdset_templ; fd_set fdset_read; int fd_flags = 0; @@ -10,24 +10,24 @@ $NetBSD: patch-ap,v 1.3 2005/06/01 20:55:16 adrianp Exp $ #ifdef USE_PAM -@@ -625,7 +626,10 @@ main ( int argc, char *argv[] ) - "listening using socket fd %d", - sockfd ); +@@ -781,7 +782,10 @@ main ( int argc, char *argv[] ) + TRACE ( trace_file, POP_DEBUG, HERE, "listening using socket fd %d", + sockfd ); -- listen ( sockfd, 5 ); +- listen ( sockfd, 5 ); +#ifndef SOMAXCONN +#define SOMAXCONN 5 +#endif + listen ( sockfd, SOMAXCONN ); - /* - * Set file descriptor to be non-blocking in case there isn't really a -@@ -655,6 +659,16 @@ main ( int argc, char *argv[] ) + /* + * Set file descriptor to be non-blocking in case there isn't really a +@@ -823,6 +827,16 @@ main ( int argc, char *argv[] ) signal ( SIGHUP, VOIDSTAR hupit ); signal ( SIGTERM, VOIDSTAR cleanup ); +#ifndef PIDFILE -+#define PIDFILE "/var/run/qpopper.pid" ++#define PIDFILE "@VARBASE@/run/qpopper.pid" +#endif + fp = fopen(PIDFILE, "w"); + if (fp == NULL) { |