head 1.7; access; symbols pkgsrc-2023Q4:1.7.0.96 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.94 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.92 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.90 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.88 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.86 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.84 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.82 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.80 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.78 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.76 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.74 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.72 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.70 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.66 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.46 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.68 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.64 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.62 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.60 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.58 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.56 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.54 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.52 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.50 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.48 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.44 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.42 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.40 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.38 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.36 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.34 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.32 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.30 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.28 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.26 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.24 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.22 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.20 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.7.0.18 pkgsrc-2014Q1-base:1.7 pkgsrc-2013Q4:1.7.0.16 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.7.0.14 pkgsrc-2013Q3-base:1.7 pkgsrc-2013Q2:1.7.0.12 pkgsrc-2013Q2-base:1.7 pkgsrc-2013Q1:1.7.0.10 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.8 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.6 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.4 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.2 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.6.0.18 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.16 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.14 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.12 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.10 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.8 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.6 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.4 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.2 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.5.0.32 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.30 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.28 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.26 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.24 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.22 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.20 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.18 pkgsrc-2008Q1:1.5.0.16 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.14 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.12 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.10 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.8 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.6 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.4 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.2 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.4.0.8 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.6 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.4 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.2 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.3.0.8 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.6 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.4 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.2 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.2.0.6 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.4 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.2 netbsd-1-6-1-base:1.2 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.7 date 2012.03.22.14.13.29; author taca; state Exp; branches; next 1.6; 1.6 date 2009.12.27.14.17.38; author obache; state Exp; branches; next 1.5; 1.5 date 2006.05.02.08.39.37; author joerg; state Exp; branches; next 1.4; 1.4 date 2005.06.01.20.55.16; author adrianp; state Exp; branches; next 1.3; 1.3 date 2004.05.06.13.46.23; author taca; state Exp; branches 1.3.8.1; next 1.2; 1.2 date 2002.11.23.17.01.21; author taca; state Exp; branches; next 1.1; 1.1 date 2001.06.10.15.08.41; author taca; state Exp; branches; next ; 1.3.8.1 date 2005.06.05.18.35.25; author salo; state Exp; branches; next ; desc @@ 1.7 log @Update qpopper to 4.1.0. 4.1 * IPv6 support * Significantly improved performance * Cygwin compatibility (for use under Windows) * Ability to execute arbitrary programs when users log in * And lots more @ text @$NetBSD: patch-am,v 1.6 2009/12/27 14:17:38 obache Exp $ --- popper/Makefile.in.orig 2011-05-30 19:13:39.000000000 +0000 +++ popper/Makefile.in @@@@ -99,6 +99,7 @@@@ CC = @@CC@@ GPERF = @@GPERF@@ MAKEFILE = Makefile INSTALL = @@INSTALL@@ +DESTDIR = @@SET_MAKE@@ @@@@ -109,6 +110,8 @@@@ VPATH = @@srcdir@@ prefix = @@prefix@@ exec_prefix = @@exec_prefix@@ installdir = @@sbindir@@ +libexecdir = @@libexecdir@@ +sbindir = @@sbindir@@ popper_srcdir = ${top_srcdir}/popper qd_srcdir = ${top_srcdir}/qd @@@@ -127,7 +130,7 @@@@ password_dir = ${base_dir}/password OBJS = pop_dele.o pop_dropcopy.o \ - pop_get_command.o pop_get_subcommand.o pop_init.o \ + pop_get_command.o pop_get_subcommand.o \ 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 \ @@@@ -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_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 \ @@@@ -198,7 +204,7 @@@@ pam_sample = ${top_srcdir}/sample .SUFFIXES: .c .o -all: popper ${pop_auth} mangler_library common_library ${poppassd} +all: mangler_library common_library popper popper-standalone ${pop_auth} ${poppassd} mangler_library: cd ${mmangle_dir} && ${MAKE} all @@@@ -206,14 +212,20 @@@@ mangler_library: common_library: cd ${common_dir} && ${MAKE} all -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} 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 @@@@ -225,47 +237,36 @@@@ poppassd: common_library -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} $< -o $@@ +main-stand.o: main.c + ${CC} -c -I${base_dir} -I${top_srcdir} -I${srcdir} \ + -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ + ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} -DSTANDALONE \ + -o $@@ main.c + +pop_init-stand.o: pop_init.c + ${CC} -c -I${base_dir} -I${top_srcdir} -I${srcdir} \ + -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ + ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} -DSTANDALONE \ + -o $@@ pop_init.c + ${SRCS}: ${POPAUTHSRCS}: ${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" + ${BSD_INSTALL_PROGRAM} popper-standalone ${DESTDIR}${sbindir}/qpopper + @@echo "Installed standalone popper as ${sbindir}/qpopper" @@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}"; \ - 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 clean: @ 1.6 log @some improvement and fixes for qpopper and poppassd. qpopper: * add user-destdir support * add ${QPOPPER_USER}:${QPOPPER_GROUP} to PKG_USERS, fixes PR#28807. * honor VARBASE. common: * update ipv6 patch to appropriate one for base version. * some pkglint cleanup. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.5 2006/05/02 08:39:37 joerg Exp $ d3 1 a3 1 --- popper/Makefile.in.orig 2006-03-09 22:32:37.000000000 +0000 d5 1 a5 1 @@@@ -86,6 +86,7 @@@@ CC = @@CC@@ d13 1 a13 1 @@@@ -96,6 +97,8 @@@@ VPATH = @@srcdir@@ d22 1 a22 1 @@@@ -114,17 +117,20 @@@@ password_dir = ${base_dir}/password d31 2 a32 5 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 \ d35 2 a36 2 - main.o pop_cache.o genpath.o + pop_cache.o genpath.o d43 1 a43 10 @@@@ -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@@ d52 1 a52 1 @@@@ -189,13 +195,18 @@@@ mangler_library: d56 11 a66 4 -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 \ d70 4 a73 8 +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} \ d76 1 a76 2 poppassd: common_library @@@@ -206,22 +217,35 @@@@ poppassd: common_library d94 1 d96 7 a102 6 -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} d104 1 a104 1 + echo "Installed popper as ${libexecdir}/qpopper" d107 3 a109 5 + @@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}"; \ d112 29 a140 8 - 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} $@@ ;\ d143 1 a143 1 if [ "x${USE_PAM}" != "x" ]; then \ @ 1.5 log @Don't run qpopauth -init -safe during installation, it destroys the symmetry between installation from source and from binary package. Annoate MESSAGE accordingly, so that those using apop can do it themselves. Bump revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- popper/Makefile.in.orig 2005-05-13 19:20:11.000000000 +0000 d5 9 a13 1 @@@@ -96,6 +96,8 @@@@ VPATH = @@srcdir@@ d22 1 a22 1 @@@@ -114,17 +116,20 @@@@ password_dir = ${base_dir}/password d46 1 a46 1 @@@@ -132,7 +137,7 @@@@ SRCS = pop_dele.c pop_dropc d55 1 a55 1 @@@@ -181,7 +186,7 @@@@ USE_PAM = @@USE_PAM@@ d64 1 a64 1 @@@@ -189,13 +194,18 @@@@ mangler_library: d86 1 a86 1 @@@@ -206,22 +216,35 @@@@ poppassd: common_library d111 1 a111 1 + ${INSTALL} -s -m 0755 -o root popper ${libexecdir}/qpopper d113 1 a113 1 + ${INSTALL} -s -m 0755 -o root popper-standalone ${sbindir}/qpopper d116 2 a117 2 + ${INSTALL} -s -m 4755 -o ${apop_uid} -g ${BINGRP} ${pop_auth} \ + ${sbindir}/q${pop_auth}; \ @ 1.4 log @- Update qpopper to 4.0.8 - Thanks to taca@@ and gavan@@ for feedback and patch review - This also enables experimental PAM support (on platforms that support it) - Security fixes included - From the ChangeLog: > Changes from 4.0.7 to 4.0.8: > --------------------------- > 1. Fix compilation error on HPUX. > 2. Fix some compilation warnings. > 3. Update man page with '-x' option. > 4. Fix problems with 'make install' > > > Changes from 4.0.6 to 4.0.7: > --------------------------- > 1. Fix '-V' for standalone. > 2. Include 'man' directory in tarball. > > > Changes from 4.0.5 to 4.0.6: > ---------------------------- > 1. Minor fixes for true64. > 2. Patch from Uli Zappe to fix SCRAM compilation bugs. > 3. Minor fixes for true64. > 4. poppassd now runs smbpasswd as user, not root, to avoid exploit > 5. Remove -traditional-cpp from the compiler options for Darwin > builds (otherwise build fails) > 6. Open stdout and stderr as O_WRONLY instead of O_RDONLY so that > should anything actually be written to them it will show up > 7. When configured as --with-pam and required, > include instead of > (otherwise build fails) > 8. strdup the pw.pw_name field from getpwnam so that it's still > valid by the time genpath is called; also added corresponding > free (without this fix when the bug manifests, clients are > erroneously told there are 0 messages in the mail drop > regardless of the actual number) > 9. Add a pam bug workaround at the beginning of main to do a > pam_start and pam_end immediately when the program starts up > in order to avoid bogus authentication failed messages from > pam_authenticate later (only when configured as --with-pam) > [ Thanks to Kyle McKay for changes 5-9 ] > 10. Fixed error in configure script for Mac OS / Darwin. > 11. Support chained certs for OpenSSL [from Daniel Senie]. > 12. Fixes to compile better on Linux [from Daniel Senie]. > 13. X-UIDL header no longer written when Update_status_hdrs is false > [thanks to Helge Oldach] > 14. Now calling SSL_shutdown() again if it fails the first time. > 15. Now logging TLS errors when compiled with debugging and debug is > enabled (instead of either) [thanks to Maks N. Polunin]. > 16. Config file now always closed (not just on error). > 17. When using pam, Kerberos tickets are now destroyed. > Otherwise dead tickets accumulate in cache directory which runs > out of space quickly on busy server. Problem noted by Rodney > McDuff ITS UQ. (Directory permissions on ticket cache dir need > to be 1777). > 18. Always log "Servicing request" (instead of just when debugging is > on). This allows start of pop sessions to be logged always which > is useful for diagnosis of problems. > 19. Worked around problem on some systems causing SIGALRM to be masked, > leaving hung pop processes which should have timed out waiting > for a command from the client. > [ Thanks to David Shrimpton for changes 16-19 ] > 20. Now defaulting to "EXPIRE NEVER" instead of "EXPIRE 0". > 21. Fix core dump on 64-bit Solaris 2.8 [thanks to Kenny Nguyen] > 22. Log facility set on command line now applies to daemon as well. > [Thanks to Helge Oldach] > 23. '-y' to set log facility on command line now works again. > 24. Allow '-V' as synonym for '-v' (to see version). > 25. Process user and spool config files as user, not as root (fix > security hole reported by Jens Steube) > 26. Added "xtnd_xmit" as a boolean option to permit/deny XTND XMIT > and 'x' as a command-line option to disable it. You should > disable it unless you really need it, and even then it is better > to move to SMTP AUTH. > 27. popauth now opens trace file as user, not root (fix security > hole reported by Jens Steube); also umask now set. > 28. Fix race crash on FreeBSD (thanks to Martin Haller). > 29. Resolve some compiler warnings. > 30. Fix check for libcrypt on FreeBSD. > 31. Added sample pam configuration file (also installed by 'make > install') > 32. Use generic error msg and sleep in more auth failure cases. > 33. Added code to use mkstemp() instead of our perfectly safe usage > of tempnam() because some compilers issue overly broad warnings > implying that all uses of tempnam() are unsafe. To bypass, > use '--enable-tempnam' with ./configure. @ text @d3 1 a3 1 --- popper/Makefile.in.orig 2005-05-13 20:20:11.000000000 +0100 d78 1 a78 1 @@@@ -206,22 +216,36 @@@@ poppassd: common_library a111 1 + ${sbindir}/q${pop_auth} -init -safe; \ @ 1.3 log @Install stand-alone qpopper to ${PREFIX}/sbin. Bump PKGREVISION. TODO: support libwrap(tcpwrappers) in stand-alone qpopper. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.2 2002/11/23 17:01:21 taca Exp $ d3 1 a3 1 --- popper/Makefile.in.orig Thu Mar 13 11:06:36 2003 d5 1 a5 1 @@@@ -90,6 +90,8 @@@@ VPATH = @@srcdir@@ d10 1 a10 1 +sbindir = @@sbindir@@ d14 1 a14 1 @@@@ -108,17 +110,20 @@@@ password_dir = ${base_dir}/password d30 2 a31 2 - main.o pop_cache.o genpath.o + pop_cache.o genpath.o d38 1 a38 1 @@@@ -126,7 +131,7 @@@@ SRCS = pop_dele.c pop_dropc d47 1 a47 1 @@@@ -174,7 +179,7 @@@@ SSL_INC = @@SSL_DIR_INC@@ d56 1 a56 1 @@@@ -182,13 +187,18 @@@@ mangler_library: d78 1 a78 1 @@@@ -199,21 +209,32 @@@@ poppassd: common_library d84 2 a85 2 + -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ + ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} -DSTANDALONE \ d90 2 a91 2 + -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ + ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} -DSTANDALONE \ a101 5 - 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} " \ d104 1 a104 1 + @@echo "Installed popper as ${libexecdir}/qpopper" d108 12 a119 4 + ${INSTALL} -s -m 4755 -o ${apop_uid} -g ${BINGRP} ${pop_auth} \ + ${sbindir}/q${pop_auth}; \ + echo "Installed popauth as ${sbindir}/q${pop_auth} " \ "with uid ${apop_uid}"; \ d121 2 a122 1 + ${sbindir}/q${pop_auth} -init -safe; \ d125 1 a125 1 clean: @ 1.3.8.1 log @Pullup ticket 539 - requested by Adrian Portelli security update for qpopper Revisions pulled up: - pkgsrc/mail/qpopper/Makefile 1.49-1.50 - pkgsrc/mail/qpopper/Makefile.common 1.14-1.15 - pkgsrc/mail/qpopper/PLIST 1.4 - pkgsrc/mail/qpopper/distinfo 1.12 - pkgsrc/mail/qpopper/options.mk patched by hand (parts of 1.5-1.6) - pkgsrc/mail/qpopper/patches/patch-am 1.4 - pkgsrc/mail/qpopper/patches/patch-ao removed - pkgsrc/mail/qpopper/patches/patch-ap 1.3 Module Name: pkgsrc Committed By: taca Date: Sat May 28 02:55:43 UTC 2005 Modified Files: pkgsrc/mail/qpopper: Makefile Makefile.common PLIST Log Message: - Sort PLIST. - Share MASTER_SITES and HOMEPAGE with poppassd package with introducing QPOPPER_MASTER_SITES and QPOPPER_HOMEPAGE in Makefile.common. No functional change. --- Module Name: pkgsrc Committed By: adrianp Date: Wed Jun 1 20:55:16 UTC 2005 Modified Files: pkgsrc/mail/qpopper: Makefile Makefile.common distinfo options.mk pkgsrc/mail/qpopper/patches: patch-am patch-ap Removed Files: pkgsrc/mail/qpopper/patches: patch-ao Log Message: - Update qpopper to 4.0.8 - Thanks to taca@@ and gavan@@ for feedback and patch review - This also enables experimental PAM support (on platforms that support it) - Security fixes included - From the ChangeLog: > Changes from 4.0.7 to 4.0.8: > --------------------------- > 1. Fix compilation error on HPUX. > 2. Fix some compilation warnings. > 3. Update man page with '-x' option. > 4. Fix problems with 'make install' > > > Changes from 4.0.6 to 4.0.7: > --------------------------- > 1. Fix '-V' for standalone. > 2. Include 'man' directory in tarball. > > > Changes from 4.0.5 to 4.0.6: > ---------------------------- > 1. Minor fixes for true64. > 2. Patch from Uli Zappe to fix SCRAM compilation bugs. > 3. Minor fixes for true64. > 4. poppassd now runs smbpasswd as user, not root, to avoid exploit > 5. Remove -traditional-cpp from the compiler options for Darwin > builds (otherwise build fails) > 6. Open stdout and stderr as O_WRONLY instead of O_RDONLY so that > should anything actually be written to them it will show up > 7. When configured as --with-pam and required, > include instead of > (otherwise build fails) > 8. strdup the pw.pw_name field from getpwnam so that it's still > valid by the time genpath is called; also added corresponding > free (without this fix when the bug manifests, clients are > erroneously told there are 0 messages in the mail drop > regardless of the actual number) > 9. Add a pam bug workaround at the beginning of main to do a > pam_start and pam_end immediately when the program starts up > in order to avoid bogus authentication failed messages from > pam_authenticate later (only when configured as --with-pam) > [ Thanks to Kyle McKay for changes 5-9 ] > 10. Fixed error in configure script for Mac OS / Darwin. > 11. Support chained certs for OpenSSL [from Daniel Senie]. > 12. Fixes to compile better on Linux [from Daniel Senie]. > 13. X-UIDL header no longer written when Update_status_hdrs is false > [thanks to Helge Oldach] > 14. Now calling SSL_shutdown() again if it fails the first time. > 15. Now logging TLS errors when compiled with debugging and debug is > enabled (instead of either) [thanks to Maks N. Polunin]. > 16. Config file now always closed (not just on error). > 17. When using pam, Kerberos tickets are now destroyed. > Otherwise dead tickets accumulate in cache directory which runs > out of space quickly on busy server. Problem noted by Rodney > McDuff ITS UQ. (Directory permissions on ticket cache dir need > to be 1777). > 18. Always log "Servicing request" (instead of just when debugging is > on). This allows start of pop sessions to be logged always which > is useful for diagnosis of problems. > 19. Worked around problem on some systems causing SIGALRM to be masked, > leaving hung pop processes which should have timed out waiting > for a command from the client. > [ Thanks to David Shrimpton for changes 16-19 ] > 20. Now defaulting to "EXPIRE NEVER" instead of "EXPIRE 0". > 21. Fix core dump on 64-bit Solaris 2.8 [thanks to Kenny Nguyen] > 22. Log facility set on command line now applies to daemon as well. > [Thanks to Helge Oldach] > 23. '-y' to set log facility on command line now works again. > 24. Allow '-V' as synonym for '-v' (to see version). > 25. Process user and spool config files as user, not as root (fix > security hole reported by Jens Steube) > 26. Added "xtnd_xmit" as a boolean option to permit/deny XTND XMIT > and 'x' as a command-line option to disable it. You should > disable it unless you really need it, and even then it is better > to move to SMTP AUTH. > 27. popauth now opens trace file as user, not root (fix security > hole reported by Jens Steube); also umask now set. > 28. Fix race crash on FreeBSD (thanks to Martin Haller). > 29. Resolve some compiler warnings. > 30. Fix check for libcrypt on FreeBSD. > 31. Added sample pam configuration file (also installed by 'make > install') > 32. Use generic error msg and sleep in more auth failure cases. > 33. Added code to use mkstemp() instead of our perfectly safe usage > of tempnam() because some compilers issue overly broad warnings > implying that all uses of tempnam() are unsafe. To bypass, > use '--enable-tempnam' with ./configure. --- Module Name: pkgsrc Committed By: adrianp Date: Wed Jun 1 21:09:02 UTC 2005 Modified Files: pkgsrc/mail/qpopper: options.mk Log Message: - Add a note for PAM @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.4 2005/06/01 20:55:16 adrianp Exp $ d3 1 a3 1 --- popper/Makefile.in.orig 2005-05-13 20:20:11.000000000 +0100 d5 1 a5 1 @@@@ -96,6 +96,8 @@@@ VPATH = @@srcdir@@ d10 1 a10 1 +sbindir = @@sbindir@@ d14 1 a14 1 @@@@ -114,17 +116,20 @@@@ password_dir = ${base_dir}/password d30 2 a31 2 - main.o pop_cache.o genpath.o + pop_cache.o genpath.o d38 1 a38 1 @@@@ -132,7 +137,7 @@@@ SRCS = pop_dele.c pop_dropc d47 1 a47 1 @@@@ -181,7 +186,7 @@@@ USE_PAM = @@USE_PAM@@ d56 1 a56 1 @@@@ -189,13 +194,18 @@@@ mangler_library: d78 1 a78 1 @@@@ -206,22 +216,36 @@@@ poppassd: common_library d84 2 a85 2 + -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ + ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} -DSTANDALONE \ d90 2 a91 2 + -I${mmangle_srcdir} -I${common_srcdir} ${SSL_INC} \ + ${CFLAGS} ${DEFS} ${CDEFS} ${OS_DEFS} -DSTANDALONE \ d102 5 d109 1 a109 1 + echo "Installed popper as ${libexecdir}/qpopper" d113 4 a116 12 + ${INSTALL} -s -m 4755 -o ${apop_uid} -g ${BINGRP} ${pop_auth} \ + ${sbindir}/q${pop_auth}; \ + echo "Installed popauth as ${sbindir}/q${pop_auth} " \ + "with uid ${apop_uid}"; \ + ${sbindir}/q${pop_auth} -init -safe; \ 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}"; \ d118 1 a118 2 + if [ "x${poppassd}" != "x" ]; then \ + cd ${password_dir} && ${MAKE} $@@ ;\ d121 1 a121 1 if [ "x${USE_PAM}" != "x" ]; then \ @ 1.2 log @Make qpopper build on Solaris. - Remove extra rule line in install target. (It tried to do make on password directory.) - Solaris's /usr/ucb/install dosen't accept number with -g option. @ text @d1 1 a1 1 $NetBSD: patch-am,v 1.1 2001/06/10 15:08:41 taca Exp $ d3 3 a5 3 --- popper/Makefile.in.orig Mon Apr 23 07:55:27 2001 +++ popper/Makefile.in Fri Nov 22 15:35:20 2002 @@@@ -87,6 +87,8 @@@@ d14 81 a94 1 @@@@ -199,17 +201,14 @@@@ d97 1 a97 1 install: popper ${pop_auth} d107 1 d110 2 @ 1.1 log @Update qpopper to 4.0.3 from 3.1.2. Here is brief new feature from Release note. 4.0 Supports TLS/SSL security. '-p' option now has value '4' to permit plain-text passwords under TLS/SSL. Now uses a cache file to retain spool index across sessions. This dramatically speeds up session start when no new mail has arrived. '-l' option added to specify TLS/SSL support. Lots of TLS/SSL options added. See the Administrator's Guide for details. '-v' option added to report current version and exit. 'make install' added. Lots of compile-time options now available at run-time. See the Administrator's Guide for details. Integrated poppassd into build. And here is changes from 4.0. Changes from 4.0.2 to 4.0.3: ---------------------------- 1. Don't call SSL_shutdown unless we tried to negotiate an SSL session. (As suggested by Kenneth Porter.) 2. Fix buffer overflow (reported by Gustavo Viscaino). 3. Fixed empty password treated as empty command (patch submitted by Michael Smith and others). 4. Added patch by Carles Xavier Munyoz to fix erroneous scanning for \n in getline(). 5. Fix from Arvin Schnell for warnings on 64-bit systems. 6. Added patch by Clifton Royston to change error message for nonauthfile and authfile tests. 7. Added 'uw-kludge' as synonym for 'uw-kluge'. Changes from 4.0.1 to 4.0.2: ---------------------------- 1. Added fix for XTND XMIT (sent in by Jacques Distler and others). 2. Fixed makefile problems with poppassd compile and install (sent in by Steven Champeon). 3. Increased maximum spool path length from 64 to 256. 4. Added more debug code when genpath() runs out of room. 5. Changed C++ style comments to C style in poppassd.c 6. Changed poppassd's UID check to be the same as Qpopper's (which is that if BLOCK_UID is defined we use that value, otherwise it defaults to 10). 7. Added poppassd expect strings for DEC True 64 (sent in by Andres Henckens). Changes from 4.0.1b1 to 4.0.1 (final): -------------------------------------- 1. Fixed typo in popper/pop_init.c if DONT_CHECK_HASH_SPOOL_DIR defined. Changes from 4.0 to 4.0.1b1: ---------------------------- 1. Messages with lines longer than 512 characters are no longer garbled when sent to the client. 2. Added patches from Michael C Tiernan to fix makefile problems. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- popper/Makefile.in.orig Mon Apr 23 07:59:15 2001 +++ popper/Makefile.in d14 1 a14 1 @@@@ -199,17 +201,17 @@@@ d20 7 a28 4 if [ "x${poppassd}" != "x" ]; then \ cd ${password_dir} && ${MAKE} $@@ ;\ fi - if [ "x${pop_auth}" != "x" ]; then \ d30 1 a30 3 ${INSTALL} -s -m 4755 -o ${apop_uid} -g 0 ${pop_auth} \ - ${installdir}/${pop_auth}; \ - echo "Installed popauth as ${installdir}/${pop_auth} " \ @