Commit graph

144 commits

Author SHA1 Message Date
rillig
b381c6e2f3 Sort PLIST files.
Unsorted entries in PLIST files have generated a pkglint warning for at
least 12 years. Somewhat more recently, pkglint has learned to sort
PLIST files automatically. Since pkglint 5.4.23, the sorting is only
done in obvious, simple cases. These have been applied by running:

  pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
2018-01-01 22:29:15 +00:00
schmonz
0b29d5023c Remove compatibility mappings for options retired in 2017Q2. 2017-10-29 00:46:14 +00:00
schmonz
15ac330ba5 Update to netqmail-1.06-qbiffutmpx-20170820.patch. Should fix EL7 bulk
build. No functional change elsewhere.
2017-08-19 22:11:43 +00:00
schmonz
0401ca3d9d Update to 1.03nb32. pkgsrc changes:
- Apply the qbiff-utmpx patch to (probably) fix build on FreeBSD
- Enable "qmail-srs" by default
- Add "qmail-customerror", enabled by default
- Move TLS config steps from INSTALL to MESSAGE.tls
2017-08-13 23:42:55 +00:00
schmonz
a94af901f3 Let binary packages built with MANZ install to completion by informing
install-destdir and instcheck about the .gz extensions. While here,
handle INSTALL and SENDMAIL docs on case-insensitive filesystems in a
more straightforward way. Bump PKGREVISION.
2017-08-03 03:20:57 +00:00
schmonz
c093965805 With the enabled-by-default "eai" option, outbound message headers were
being terminated with bare LFs, getting tempfailed by some SMTP servers
(such as qmail!), and getting stuck in the local queue. Tweak the EAI
patch to terminate header lines with CRLF, as unpatched qmail-remote
would have done. Submitted upstream. Bump PKGREVISION.
2017-08-01 02:53:59 +00:00
schmonz
ea7400da80 Set PKG_{USER,GROUP}S_VARS. 2017-07-27 04:58:31 +00:00
schmonz
ba50ae153c Use SUBST_VARS where applicable. 2017-07-27 02:18:05 +00:00
schmonz
3aafb73dc2 Update to 1.03nb29. pkgsrc changes:
Remove unneeded options:

- Unconditionally apply netqmail (which includes a local patch; remove it)

- Unconditionally apply bigdns, maildiruniq, outgoingip, rcptcheck, remote

- Unconditionally apply the TLS + SMTP AUTH _patch_ (not the options)

- Record all applied patches (mandatory and optional) in QMAILPATCHES

- Remove badrcptto, qregex, realrcptto, viruscan (moved to rejectutils)



Simplify packaging:

- Extract a standalone patch <https://schmonz.com/qmail/rejectutils> to
  repackage the mutually conflicting recipient- and content-checking
  patches as separate programs, along with wrappers for running checks
  in sequence

- Extract a standalone patch <https://schmonz.com/qmail/destdir> to
  build to a staging area, as non-root, without hardcoded IDs

- Run the destdir patch's `install-destdir` to make or repair the queue
  and set special file permissions, obviating the need for a dependency
  on mail/queue-fix and handcrafted SPECIAL_PERMS

- While here, run `instcheck` to ensure we've installed just like `make
  setup check` as root would have

- Install INSTALL and SENDMAIL docs under their original names,
  even on Darwin

- Avoid building catpages, since we don't install them, and remove nroff
  from USE_TOOLS


Default-enable more useful options:

- "eai" (new) permits UTF-8 almost everywhere in email

- "qmail-rejectutils" (new) adds several tools for selectively
  rejecting messages

- "syncdir" forces synchronous link() and related syscalls

- "tls" and "sasl", instead of causing patch conflicts, cause the TLS
  and SMTP AUTH code to be included (!)
2017-07-21 04:07:01 +00:00
schmonz
7be59959d2 Add optional QMAILREMOTE patch. Bump PKGREVISION. 2017-05-22 17:18:32 +00:00
schmonz
80cb0f580b Honor custom values of ${QMAIL_DAEMON_USER} and ${QMAIL_QMAIL_GROUP}. 2017-04-27 20:35:10 +00:00
schmonz
8f75a54640 Remove dependency on sysutils/checkpassword. In the default install it's
used only for qmail-pop3d, which is likely not being used much anymore.
Other installs might need a different implementation of checkpassword
anyhow. And this implementation is not (yet?) in the public domain, so
it's blocking us from publishing binary packages of qmail.

Unless (until?) sysutils/checkpassword becomes "public-domain", it
remains under "djb-nonlicense". If you continue to need it, since you've
already accepted the nonlicense, simply install it directly.

I believe this package and all its remaining dependencies are now in
DEFAULT_ACCEPTABLE_LICENSES. Bump PKGREVISION.
2017-04-08 18:22:51 +00:00
schmonz
3c799aa9cf Give absolute path to srsfilter. From Nathan Arthur in private mail. 2017-04-04 14:58:06 +00:00
schmonz
cbbfeb5838 Substitute configured qmail users and groups (defaults haven't changed).
Bump dependency on queue-fix to a version that does likewise.
Bump PKGREVISION.
2017-04-04 07:50:18 +00:00
schmonz
1bfed9f777 Add "qmail-srs" option to apply the Sender Rewriting Scheme patch,
requested by Nathan Arthur. Bump PKGREVISION.
2017-03-31 13:52:00 +00:00
schmonz
1b318cd9b9 To make the newly useful binary package a bit more useful, enable
qmail-{bigdns,realrcptto} (in addition to qmail-netqmail) by default.
These are conservative choices: small patches that make qmail behave
more like it probably wanted to without breaking existing systems,
adding attack surface, or failing on some platforms we support.

Bump PKGREVISION.
2017-03-29 13:26:05 +00:00
schmonz
0944c1409f Add qmail-maildiruniq and qmail-rcptcheck options, off by default. Since
we no longer stage-install as root, instcheck is noise; skip it. Mollify
pkglint. Bump PKGREVISION.
2017-03-23 07:24:48 +00:00
schmonz
c287229d51 When I added basic DESTDIR support, I introduced a regression: the
source package stopped initializing the queue. (DESTDIR makes source
packages generate binary packages, which had never had that feature. See
<http://mail-index.netbsd.org/pkgsrc-changes/2011/06/07/msg056339.html>
for where the regression was introduced.)

Add a dependency on mail/queue-fix and, if no queue is present at
pkg_add time, initialize it.

Defer creating users and groups all the way to pkg_add time, and improve
DESTDIR support to full "user-destdir". Since mail/postfix lets
unprivileged users install it, we do too. (Can't run a server that way,
but so what.)

A typical (privileged) binary package should now:

1. Install on any other system of matching OS and architecture,
2. Not need matching numeric UIDs and GIDs to do so, and
3. Be usable in production.

You know, like any other binary package.

Bump PKGREVISION.
2017-03-20 16:23:19 +00:00
schmonz
835b896082 Look up user/group IDs at runtime.
This lets us defer USERGROUP_PHASE to "pre-install", and is a step
closer to having the qmail users and groups be created at pkg_add time
(as with binary packages of typical software needing users and groups).

Based on Paul Fox's getpwnam.patch for qmail 0.96.
2017-03-10 03:13:29 +00:00
schmonz
fdb38fd224 Add SHA512 digests for remaining patches. 2016-12-15 11:49:35 +00:00
schmonz
1d9aee76cc Add SHA512 digests for some patches. 2016-12-15 11:44:15 +00:00
joerg
aea50c92b8 Adjust checks for _USE_DESTDIR != no or incorrect references to
USE_DESTDIR.
2016-04-10 16:39:27 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
jperkin
16bfc92aac Use OPSYSVARS. 2016-02-25 15:00:50 +00:00
agc
ddbf6ddecd Add SHA512 digests for distfiles for mail category
Problems found locating distfiles:
	Package mutt: missing distfile patch-1.5.24.rr.compressed.gz
	Package p5-Email-Valid: missing distfile Email-Valid-1.198.tar.gz
	Package pine: missing distfile fancy.patch.gz
	Package postgrey: missing distfile targrey-0.31-postgrey-1.34.patch
	Package qmail: missing distfile badrcptto.patch
	Package qmail: missing distfile outgoingip.patch
	Package qmail: missing distfile qmail-1.03-realrcptto-2006.12.10.patch
	Package qmail: missing distfile qmail-smtpd-viruscan-1.3.patch
	Package thunderbird24: missing distfile enigmail-1.7.2.tar.gz
	Package thunderbird31: missing distfile enigmail-1.7.2.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 23:27:00 +00:00
wiz
627d407a75 Remove pkg_views support, second part: infrastructure. 2014-12-30 15:13:19 +00:00
schmonz
4884aed0f3 Quell pkglint, mostly:
- Pluralize QMAIL_ROOT_ONLY_{READABLE,EVERYTHING}S
- Declare the viruscan targets .PHONY
2014-11-23 19:08:22 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
schmonz
9629b0f78f Allow packaging as non-root, prompted by private mail from J. Lewis
Muir.

For the baker's dozen of binaries unreadable (or worse) to non-root,
chmod them 0755 at post-install for pkg_create(1), and chmod them
back with SPECIAL_PERMS at pkg_add(1) time. Permissions on the
installed binaries compare equal before and after this change, so
no PKGREVISION bump.
2014-08-19 22:06:49 +00:00
schmonz
4d4045cf16 The qmail-bigdns patch currently redirects to https. Put a copy on
MASTER_SITE_LOCAL.
2014-07-04 03:34:43 +00:00
schmonz
1f1a81b5d6 Improve binary package:
* Reduce potential patch conflicts by switching more DESTDIR support to sed
* Enable `qmail-netqmail` by default
* Install `qmail-viruscan` signatures via CONF_FILES
* With `tls` option, don't generate cert, instruct the user at INSTALL time

That last change also fixes the source build with `tls` enabled on
systems that don't already have a /var/qmail/control, as reported
by Thomas Lazar on pkgsrc-users@.

While here, add a comment with the new location of the qregex patch.
Since it's named strangely, I've also placed a traditionally-named
copy on ftp.n.o.

Bump PKGREVISION.
2014-05-30 21:35:04 +00:00
schmonz
af51669ae9 The TLS/SASL patch no longer applies over our patch to hier.c
(reported by Thomas Lazar), so instead express our local changes
with SUBST_SED at do-configure. Update to the latest TLS/SASL patch.
Bump PKGREVISION.
2014-04-16 04:57:23 +00:00
tron
73d05e2276 Recursive PKGREVISION bump for OpenSSL API version bump. 2014-02-12 23:17:32 +00:00
schmonz
288964eb45 Rename and comment pkgsrc patches. No functional change. 2013-08-15 15:43:48 +00:00
schmonz
c47ff4c4f2 qmail-smtpd-viruscan-logging.patch disappeared (reported by Nathan
Arthur). Put a copy up on ${MASTER_SITE_LOCAL}.
2013-03-24 20:10:31 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
marino
ecb1a633e2 mail/qmail: Rev bump - last commit might change binary 2012-05-20 09:04:26 +00:00
marino
9d024ea0ea PR#46333 mail/qmail: Fix qmail-*spawn segfaults on DragonFly
Fix implemented per PR.
2012-05-20 08:48:56 +00:00
sbd
470c1181eb At joerg@'s suggestion instead of set MANINSTALL to agree with what gets
installed simple don't install the catpages.
2012-03-12 03:53:55 +00:00
sbd
41d78f206e qmail always installs the manpages and catpages so MANINSTALL
must be set so thay are not removed from the PLIST.
2012-03-09 04:04:47 +00:00
hans
d0953670bd There is no need to do the Darwin-specific post-extract stuff on
anything but Darwin.
2011-10-12 17:20:21 +00:00
joerg
9340115756 Fix PLIST overlap with dependency 2011-09-28 06:36:57 +00:00
schmonz
fadd3f4ce3 DESTDIR support, PKGMANDIR support, OS X fixes, general cleanups.
For ${OPSYS}/${USE_DESTDIR}/${PKGMANDIR} combinations that already
worked, no functional change (hence no PKGREVISION bump).
2011-06-07 02:53:42 +00:00
joerg
62d1ba2bac Remove @dirrm entries from PLISTs 2009-06-14 18:03:28 +00:00
wiz
c8c77a65f1 Uncomment some more LICENSE lines (all "public-domain"). 2009-05-19 09:07:13 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
schmonz
99c1212a7d Upgrade netqmail to 1.06, which is identical to 1.05 except that
instead of consisting of a pristine qmail tarball and netqmail
patch, 1.06 has the patch already applied. No user-visible changes
to pkgsrc, either; this just simplifies a weird build and will make
future upgrades (don't laugh!) easier.

jlam@ "looks fine"
2008-03-20 03:30:32 +00:00
schmonz
1e750b6014 Add commented-out LICENSE=public-domain. Nudged by gdt@. 2008-02-19 21:12:06 +00:00
schmonz
d49c575364 DJB has placed certain of his software in the public domain. Excerpted
from <URL:http://cr.yp.to/distributors.html>:

  What are the distribution terms for daemontools?

  2007.12.28: I hereby place the daemontools package (in particular,
  daemontools-0.76.tar.gz, with MD5 checksum
  1871af2453d6e464034968a0fbcb2bfc) into the public domain. The
  package is no longer copyrighted.

  What are the distribution terms for djbdns?

  2007.12.28: I hereby place the djbdns package (in particular,
  djbdns-1.05.tar.gz, with MD5 checksum 3147c5cd56832aa3b41955c7a51cbeb2)
  into the public domain. The package is no longer copyrighted.

  What are the distribution terms for ucspi-tcp?

  2007.12.28: I hereby place the ucspi-tcp package (in particular,
  ucspi-tcp-0.88.tar.gz, with MD5 checksum
  39b619147db54687c4a583a7a94c9163) into the public domain. The
  package is no longer copyrighted.

  Am I free to modify uncopyrighted packages and distribute modified
  versions?

  Yes. But this does not mean that modifications are _encouraged_!

And from <URL:http://cr.yp.to/qmail/dist.html>:

  I hereby place the qmail package (in particular, qmail-1.03.tar.gz,
  with MD5 checksum 622f65f982e380dbe86e6574f3abcb7c) into the
  public domain. You are free to modify the package, distribute
  modified versions, etc.

  This does not mean that modifications are encouraged!

pkgsrc will strive, as it has, to keep modifications to a tasteful
minimum. This addresses PR pkg/37964 by Aleksej Saushev.
2008-02-19 13:59:04 +00:00
jlam
12351d2476 * Change some instances of ROOT_USER and ROOT_GROUP to BINOWN and BINGRP
in SPECIAL_PERMS usage.

* Consistently use 4555 for setuid and 2555 for setgid programs.
2007-06-15 18:15:06 +00:00