head 1.8; access; symbols pkgsrc-2023Q4:1.8.0.36 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.34 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.32 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.30 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.8.0.28 pkgsrc-2022Q4-base:1.8 pkgsrc-2022Q3:1.8.0.26 pkgsrc-2022Q3-base:1.8 pkgsrc-2022Q2:1.8.0.24 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.22 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.20 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.18 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.8.0.16 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.14 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.12 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.10 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.8 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.4 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.6 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.2 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.7.0.6 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.4 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.2 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.5.0.106 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.104 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.102 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.100 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.98 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.94 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.92 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.90 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.88 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.86 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.84 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.82 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.80 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.78 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.76 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.74 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.72 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.70 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.68 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.66 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.64 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.62 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.60 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.58 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.56 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.54 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.52 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.50 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.48 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.46 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.44 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.42 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.40 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.38 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.36 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.34 pkgsrc-2009Q4-base:1.5 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.14 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.12 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.10 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.8 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.6 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.4 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.2 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.3.0.14 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.12 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.10 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.6 netbsd-1-6-1-base:1.3 netbsd-1-6:1.3.0.8 netbsd-1-6-RELEASE-base:1.3 pkgviews:1.3.0.4 pkgviews-base:1.3 buildlink2:1.3.0.2 buildlink2-base:1.3 netbsd-1-5-PATCH003:1.3; locks; strict; comment @# @; 1.8 date 2019.08.20.02.38.04; author schmonz; state Exp; branches; next 1.7; commitid 90GC55b8iQfWaIzB; 1.7 date 2018.12.04.17.01.39; author schmonz; state Exp; branches; next 1.6; commitid iW6CTuDE8mVlhv2B; 1.6 date 2018.11.14.16.43.17; author schmonz; state Exp; branches; next 1.5; commitid 7r6emozPdViVOVZA; 1.5 date 2006.04.29.04.53.17; author schmonz; state Exp; branches; next 1.4; 1.4 date 2004.07.21.22.35.59; author schmonz; state Exp; branches; next 1.3; 1.3 date 2002.01.28.17.56.19; author zuntum; state Exp; branches; next 1.2; 1.2 date 2001.11.26.22.22.19; author zuntum; state Exp; branches; next 1.1; 1.1 date 2001.11.01.01.01.10; author zuntum; state Exp; branches; next ; desc @@ 1.8 log @Update from netqmail 1.06 (2007) to notqmail 1.07 (just released). From the changelog: - code: remove incorrect usage of vfork() - code: detect and prefer utmpx where available - code: removed idedit, install-big. var-qmail packages are no more - portability problem: explicitly initialize strerr_sys and define BIND_8_COMPAT to work around Mac OS X - code: add instchown to set ownership and mode on installed files - code: add instpackage to install without root access - doc: rename INSTALL, SENDMAIL to INSTALL.md, SENDMAIL.md to support building on case-insensitive filesystems - code: lookup uid/gid at runtime - code: use DESTDIR environment variable as root directory in install pkgsrc changes: - If hostname isn't FQDN, config-fast-pkgsrc wouldn't produce a working config, so don't run it; tell user what to do instead - Stage QMAIL_QUEUE_DIR into DESTDIR/tmp, to be more obvious that it's not being packaged up (and is not how a queue gets created at pkg_add time) - Drop custom destdir, qbiffutmpx, and Darwin patches - Rebase TLS-onlyremote, QMAILREMOTE, and SRS patches - Require latest ucspi-ssl and ucspi-tcp6 for IPv4 fixes - Move MESSAGE.tls to README.tls, and remove other MESSAGE* - Set PKG_HOME even for non-default values of QMAIL_ALIAS_USER - Check whether alias/.qmail-foo exist before trying to remove Bump PKGREVISION. @ text @# $NetBSD: DEINSTALL,v 1.7 2018/12/04 17:01:39 schmonz Exp $ QMAILDIR=@@QMAILDIR@@ QMAIL_QUEUE_EXTRA=@@QMAIL_QUEUE_EXTRA@@ VAR_QMAIL_DIRS="alias bin boot control doc man queue users" case "${STAGE}" in DEINSTALL) cd ${PKG_SYSCONFDIR} for i in mailer-daemon postmaster root ${QMAIL_QUEUE_EXTRA}; do f="alias/.qmail-${i}" if [ -e ${f} ]; then contents=$(${CAT} ${f}) if [ "${contents}" = '# pkgsrc says: replace this comment with your config' ] \ || [ "${contents}" = '' ]; then ${RM} -f ${f} fi fi done for i in defaultdomain locals me plusdomain rcpthosts; do ${CMP} -s control/${i} .pkgsrc-defaults-do-not-edit/${i} \ && ${RM} -f control/${i} ${RM} -f .pkgsrc-defaults-do-not-edit/${i} done cd ${QMAILDIR} for dir in ${VAR_QMAIL_DIRS}; do [ -h ${dir} ] \ && ${RM} -f ${dir} done ;; esac @ 1.7 log @Take responsibility from qmail-run for creating and removing the basic config files and aliases. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: DEINSTALL,v 1.6 2018/11/14 16:43:17 schmonz Exp $ d13 7 a19 4 contents=$(${CAT} alias/.qmail-${i}) if [ "${contents}" = '# pkgsrc says: replace this comment with your config' ] \ || [ "${contents}" = '' ]; then ${RM} -f alias/.qmail-${i} @ 1.6 log @Build and install config-fast-pkgsrc, which is like config-fast but installs the generated files elsewhere, so we can simulate CONF_FILES-like behavior. qmail-run will switch to config-fast-pkgsrc. We'll take advantage to deinstall these config files (as well as the three basic .qmail files in ~alias) provided they haven't been changed. Both of these commands stop leaving leftovers in ${PKG_SYSCONFDIR}: # pkg_add qmail && pkg_delete qmail # pkg_add qmail-run && pkg_delete -r qmail While here, warn if the queue directory is on a case-insensitive filesystem. Probably not gonna work perfectly. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: DEINSTALL,v 1.5 2006/04/29 04:53:17 schmonz Exp $ d4 1 d12 6 a17 3 for i in postmaster mailer-daemon root; do [ -s alias/.qmail-${i} ] \ || ${RM} -f alias/.qmail-${i} @ 1.5 log @Set USERGROUP_PHASE=configure, causing qmail's users and groups to be created just before its "configure" phase, obviating the need for the hackish dependency on a qmail-users package. Since the new functionality in bsd.pkginstall.mk also records and enforces numeric UIDs and GIDs in binary packages, remove the note on that matter from MESSAGE. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: DEINSTALL,v 1.4 2004/07/21 22:35:59 schmonz Exp $ d9 11 a19 1 POST-DEINSTALL) d21 4 a24 4 for dir in $VAR_QMAIL_DIRS; do if [ -h ${QMAILDIR}/$dir ]; then ${RM} -f ${QMAILDIR}/$dir fi d26 1 @ 1.4 log @Short story: 1) Mostly conform to hier(7) and honor PKG_SYSCONFDIR. 2) Follow more closely Dave Sill's "Life with qmail" (LWQ). 3) Add a bunch of features to the rc.d scripts. 4) Remove some (but not all) obstacles to binary packaging. 5) Introduce QMAIL_AUTOCONFIG, QMAIL_QUEUE_DIR, and QMAIL_QUEUE_EXTRA. 6) Enable pkgviews installation. 7) Bump PKGREVISION. Long story: 1) Mostly conform to hier(7) and honor PKG_SYSCONFDIR. Based on a January 1997 post by mrg to the qmail list: prior to installation, we create symlinks in ${QMAILDIR} that point into ${LOCALBASE} or ${PKG_SYSCONFDIR}, causing installation to place files in those locations while allowing the canonical /var/qmail paths to continue to work. The notable deviation from hier(7) is that even though some binaries ought to go in sbin, they've all been lumped into bin for simplicity. Pleasant effects: * We no longer need to set LOCALBASE (a big no-no), and as a result also no longer need to set NO_MTREE, RCD_SCRIPTS_EXAMPLEDIR, or EVAL_PREFIX. This will also allow a few qmail-related packages to do likewise. * The commands and manual pages are in easily accessible paths by default. * Package installation and deinstallation work much better. Side effects: * There were a few minor conflicts with mail/courier-maildirmake, mail/mutt, and mail/pulsar. The latest versions of each are fine, so we add CONFLICTS only for older versions. (Thanks to those packages' maintainers!) There's also a conflict with security/mirrordir, which has a "bin/forward" command and corresponding section 1 man page. * Some directories under ${PREFIX} get chown'd to group qmail. Rather than modify the qmail installer, the affected directories are simply chown'd back afterward during post-install if PKG_INSTALLATION_TYPE is "overwrite". (If it's "pkgviews", then only the package's depot directory is affected, so we leave it alone.) 2) Follow more closely Dave Sill's "Life with qmail" (LWQ). Similarities: * Installs into /var/qmail from source. * Installs ucspi-tcp and daemontools. * Uses tcpserver(1). * Uses tcp.smtp.cdb for relay access control. * Uses control/defaultdelivery. * Uses control/concurrencyincoming. * Requires that control/rcpthosts exist to prevent open relays. * Uses similar chains of commands in run scripts. * Provides a script much like qmailctl. Differences: * This package does the following work for you automatically: * Creates user accounts. * Fetches, extracts, patches, configures, and compiles the source. * Installs binaries. * Runs ./config-fast. * Creates tcp.smtp{,cdb} and tcp.pop3d{,cdb}. * Creates control/concurrencyincoming. * Creates control/defaultdelivery (defaulting to "./Mailbox"). * Creates the three required system aliases. * LWQ suggests doing some things this package doesn't do: * Applying patches. * Copying a script from /var/qmail/boot to /var/qmail/rc. * Configuring svscan(8) to run at boot. * Creating and populating /service. * Using supervise(8) and multilog(8). * Using the qmailctl script to control qmail. * Using the inst_check script to verify the installation. * Storing tcp.smtp{,cdb} in /etc. * Renaming the system sendmail(8) and marking it non-executable. * Instead, this package: * Builds from unmodified source. (See also mail/netqmail.) * Uses NetBSD-style rc.d scripts (including one similar to qmailctl). * Sends log messages to syslog(3). * Stores tcp.smtp{,cdb} and tcp.pop3{,cdb} in ${PKG_SYSCONFDIR}. * Provides an example mailer.conf(5). 3) Add a bunch of features to the rc.d scripts. Rename the qmail script and rcvar to qmailsend. Add "doqueue" (synonyms: alrm, flush) and "queue" commands, add "hup" as a synonym for "reload", and determine default delivery instruction from control/defaultdelivery (LWQ). Add control/defaultdelivery to required_files. Rename qmailsend_flags to qmailsend_defaultdelivery, which overrides control/defaultdelivery if set. In the qmailpop3d and qmailsmtpd scripts, enforce resource limits with softlimit(8) (LWQ). Add dependency on sysutils/daemontools for this. Rename qmailfoo_flags to qmailfoo_tcpflags. Add qmailfoo_tcphost (default: 0, meaning "any address") and qmailfoo_tcpport (default: 110 and 25, respectively). Add qmailfoo_softlimit (default: 2000000). Add qmailfoo_pretcpserver and qmailfoo_prefoo (default: empty), useful for inserting commands such as rblsmtpd(1) or relay-ctrl into the chain. Log to splogger's default syslog facility ("mail"), and use the name of the script as the tag. In the qmailpop3d, qmailsend, and qmailsmtpd scripts, add qmailfoo_postenv (defaults: empty, PATH=${PREFIX}/bin:$PATH, and QMAILQUEUE=${PREFIX}/bin/qmail-queue, respectively), useful primarily for setting environment variables for each service. Add "pause" and "cont" commands (LWQ). They send -STOP and -CONT signals, respectively. Add "stat" as a synonym for "status" (LWQ). In the qmailpop3d script, add -x to qmailpop3d_tcpflags and add "cdb" command. Add qmailpop3d_checkpassword (useful for authenticating against alternate user databases) and qmailpop3d_maildirname (useful if your maildirs are named something other than "Maildir"). Add tcp.pop3.cdb to required_files. In the qmailsmtpd script, add -x and remove -H from qmailsmtpd_tcpflags, limit the number of incoming connections to control/concurrencyincoming, and add "cdb" command (LWQ). Add control/concurrencyincoming and tcp.smtp.cdb to required_files. Add qmailqread script and ${PREFIX}/bin/qmail-qread-client, based on Steinar Haug's example on www.qmail.org. If enabled, this allows local non-root users to see the queue. Add qmail script (structure copied from net/samba/files/samba.sh). Its interface is very similar to LWQ's qmailctl: it provides the commands "start stop restart rcvar pause cont stat status cdb doqueue reload queue alrm flush hup help". These commands can be run either directly from the appropriate service-specific script(s), or from this qmail script (which will call the right script(s) for you). 4) Remove some (but not all) obstacles to binary packaging. Each of these is better explained elsewhere. Summary: * Installs into the normal ${LOCALBASE}. * /var/qmail paths still work. * No patches are applied. (See also mail/netqmail.) 5) Introduce QMAIL_AUTOCONFIG, QMAIL_QUEUE_DIR, and QMAIL_QUEUE_EXTRA. QMAIL_AUTOCONFIG (default: YES): whether to automatically create basic config files. QMAIL_QUEUE_DIR (default: ${VARBASE}/spool/qmail): the path to the queue. QMAIL_QUEUE_EXTRA (default: empty): an additional recipient that will be added to every delivery. This is used primarily for logging. If this is set to a non-empty value, the necessary dot-qmail(5) file is created automatically at install time. 6) Enable pkgviews installation. 7) Bump PKGREVISION. Other user-visible changes: This package no longer applies patches to qmail. mail/netqmail, to be imported shortly, does. Restrictions on the redistribution of modified qmail apply not only to binaries but also to source. Clarify this in RESTRICTED. Add "newaliases", "hoststat", and "purgestat" entries to the sample mailer.conf. Install it to ${PREFIX}/share/examples/${PKGBASE}, as other pkgsrc mailers do. ("newaliases" is actually provided by the fastforward package, and isn't needed unless you're using it.) Explain how to enable qmail in MESSAGE (cribbed from the postfix package). Thanks to zuntum, snj, salo, and jlam for ideas, discussion, and review. @ text @d1 1 a1 1 # $NetBSD: DEINSTALL,v 1.3 2002/01/28 17:56:19 zuntum Exp $ a15 8 ${CAT} < ${ECHO} You may remove qmail-users package now, as it is no longer needed. @ text @d1 5 a5 1 # $NetBSD: DEINSTALL,v 1.2 2001/11/26 22:22:19 zuntum Exp $ d8 1 d10 14 a23 5 ${ECHO} =========================================================================== ${ECHO} ${ECHO} You may remove qmail-users package now, as it is no longer needed. ${ECHO} ${ECHO} =========================================================================== @ 1.2 log @o switched to bsd.pkg.install.mk logic -- now it depends on qmail-users package @ text @d1 1 a1 1 # $NetBSD$ d7 1 a7 1 ${ECHO} You may want to remove qmail-users package now, as it is no longer needed. @ 1.1 log @Move pkg/ files into package's toplevel directory @ text @d1 1 a1 1 # $NetBSD: DEINSTALL,v 1.1.1.1 2001/08/13 09:10:10 zuntum Exp $ d3 9 a11 26 PKGNAME=$1 STAGE=$2 if [ "$STAGE" != "POST-DEINSTALL" ]; then exit 0 fi QMAILDIR=@@QMAILDIR@@ echo =========================================================================== echo echo Note: this package did not remove qmail users and groups in case you may echo want to use them later. echo echo These qmail users still exist in the system: echo " alias qmaill qmaild qmailp qmailq qmailr qmails" echo and these groups: echo " nofiles qmail" echo echo If you won\'t be using ${PKGNAME} any longer, you may remove qmail echo users and groups automatically by typing \"make remove-users\". echo echo Directories \"alias control queue users\" from ${QMAILDIR} were also untouched echo and they are ready for future use. You may safely remove them - type \"make remove-dirs\". echo echo =========================================================================== @