Commit graph

171 commits

Author SHA1 Message Date
Matthias Andree
4412b82121 Fix up DEFAULT_URL_HOST/DEFAULT_MAIL_HOST for jailed or external builds.
If the package is built in, for instance, poudriere, or on a computer other
than the one it is later installed on, the DEFAULT_MAIL_HOST and
DEFAULT_URL_HOST variables in the Mailman/Defaults.py file were unsuitable.

Leverage pkg-install to fix these up to be the same as hostname -f at
install time.

[The MFH would require the intermediate update to 2.1.24 to be included.]

MFH:		2017Q3
2017-09-10 16:53:56 +00:00
Matthias Andree
1414d2f5ec Update to new upstream version 2.1.24.
Upstream release notes:
"This release is primarily a bug fix release with a few minor feature additions
and a fix for a probably non-exploitable security issue. See the changelog for
details."

Changelog:
<https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/1708/NEWS>
2017-08-11 14:24:10 +00:00
Martin Wilke
64627c7758 - Fix shebangs 2017-04-21 03:11:17 +00:00
Dmitry Marakasov
096ff2b815 - Fix leftover file on deinstallation by using @sample
Approved by:	portmgr blanket
2016-11-28 13:43:39 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Matthias Andree
1c6c8e6f88 Security update to upstream release 2.1.23.
ChangeLog:
<http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/1668/NEWS#L8>

MFH:		2016Q3
Security:	b11ab01b-6e19-11e6-ab24-080027ef73ec
Security:	CVE-2016-6893
2016-08-29 19:27:44 +00:00
Matthias Andree
e1afedae1c Update to new upstream release 2.1.22.
Changelog: http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/1643/NEWS#L8
2016-04-22 23:14:18 +00:00
Mathieu Arnold
8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00
Matthias Andree
d2a065da18 Avoid patch-LP1551075 when HTDIG is enabled. [1]
This patch is part of the HTDIG integration patch already. [1]

Also correct namazurc file path in pkg-message, bumping PORTREVISION.

PR:		207876 [1]
Submitted by:	David Siebörger [1]
2016-03-10 19:50:12 +00:00
Matthias Andree
240fff7e0b Preserve some kinds of signatures, reenable HTDIG option.
Pull upstream change 1629 to fix Launchpad Bug #1551075
<https://bugs.launchpad.net/mailman/+bug/1551075>. This fix improves
preservation of OpenPGP MIME multipart signatures, by not collapsing
a multipart with a single sub-part inside multipart/signed parts.
See the Launchpad bug report for details.

EXPERIMENTAL feature: Reenable HTDIG support by rolling the patch on our
own, and laying down instructions to do so in the Makefile.  Mark Sapiro
no longer maintains the patch.

Bump PORTREVISION to 3.

Note that the upstream maintainer considers another release in a few
weeks' time, and called for help with updating translations.  If you
want to help, see
<http://www.mail-archive.com/mailman-users%40python.org/msg68036.html>
2016-03-02 08:34:40 +00:00
Matthias Andree
60308f52f6 Make sure pkg-install works with postfix-base, too.
Prior to this fix, pkg-install used hardcoded
${PKG_PREFIX}/sbin/postconf, but postfix-base installs it into
/usr/sbin/postconf.

Instead, do a path search for postconf in ${PKG_PREFIX}/sbin:$PATH and
cache the result in a variable.
2016-03-02 00:12:11 +00:00
Matthias Andree
97297c27ea Fix pkg-install "install -d" invocation.
It used to use GNU-install-isms (options after arguments) that don't
work with BSD install and caused two spurious directories to be created,
one named -g, the other usually named "mailman" (or whichever group name
was configured).  Bumps PORTREVISION.

PR:		207528 (Attachment #167455)
Submitted by:	ohauer@
2016-03-01 00:05:08 +00:00
Matthias Andree
e616349fd4 Upgrade to new release 2.1.21. Disable HTDIG option.
Disable experimental HTDIG integration option,
the relevant ht://Dig patch no longer fits.

Changelog: https://launchpad.net/mailman/2.1/2.1.21
2016-02-29 23:33:24 +00:00
Matthias Andree
4d4e2f35e8 Fix a leftover in rcfile, make more robust.
Make things more robust such that options in mailman_flags don't kill
the start.
2015-12-30 15:00:35 +00:00
Matthias Andree
3c21594264 Fix stop method in rc.d script to wait for process to exit.
To that end, simplify and use rc.subr default methods where possible.
2015-12-30 14:21:33 +00:00
Matthias Andree
5181935100 Find Postfix also if installed with INST_BASE option.
Submitted by:	Roger Marquis
2015-12-29 11:56:20 +00:00
Mathieu Arnold
6172d4b590 Remove $FreeBSD$ from patches files everywhere.
With hat:	portmgr
Sponsored by:	Absolight
2015-05-22 20:34:27 +00:00
Mathieu Arnold
60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00
Matthias Andree
7b43595384 USE_AUTOTOOLS -> USES=autoreconf, GNU_CONFIGURE=yes
Add USES=fakeroot to permit non-root builds if user is not in wheel
group. [1]

PR:		199396 [1]
Submitted by:	dvl [1]
2015-04-22 22:16:22 +00:00
Matthias Andree
3eb0692848 Update to new upstream release 2.1.20.
Fixes one security bug [1], a few other bugs, and adds a feature so that
list admins can edit list addresses.

Uses newer Mailman-and-HTDig integration patches. [2]

Security:	CVE-2015-2775 [1]
Security:	a5f160fa-deee-11e4-99f8-080027ef73ec [1]
PR:		199286 [2]
Submitted by:	David Siebörger [2]
2015-04-09 20:08:50 +00:00
Matthias Andree
d0bb14a1e3 Add CPE information.
PR:		198474
Submitted by:	shun.fbsd.pr@dropcut.net
2015-03-09 21:33:38 +00:00
Baptiste Daroussin
74c050c183 Remove Author from pkg-descr and white space fixes 2015-03-02 23:31:09 +00:00
Matthias Andree
b23d38e29f Update to new upstream release 2.1.19.
Changes: https://mail.python.org/pipermail/mailman-announce/2015-March/000205.html
2015-03-02 07:26:30 +00:00
Matthias Andree
569aa08fee Install powerlogo.png in both image locations.
(Reported by Alex Stangl.)

Take the opportunity to convert powerlogo from GIF to PNG.

Check permissions of mailman/qfiles directory and top-level
subdirectories from post-install before running check_perms script,
further to the existing workarounds for pkg/libarchive permissions
issues.
2015-01-17 13:29:24 +00:00
Matthias Andree
837c36bed9 Update Apache instructions in post-install notes for 2.4 [1], dropping 1.3.
Revise language a bit.
Spell qmail with lowercase q.

Submitted by:	[1] Tom Eagle
2015-01-08 22:53:32 +00:00
Matthias Andree
db498a55e1 Repair packaging with non-default MM_USERNAME.
PR:		196620
Submitted by:	 mcdouga9@egr.msu.edu
Obtained from:	Bugzilla attachment 151505
2015-01-08 19:31:33 +00:00
Matthias Andree
b37db99ba9 With CVS gone, use the GIF file directly, ditching the uuencoding. 2015-01-07 00:25:46 +00:00
Matthias Andree
1661e02b60 Update rcfile and permission handling.
- Move directory permission handling into pkg-install, to work around
  pkg/libarchive issues on 9.3.
- Handle some crucial directory permissions directly in pkg-install,
  so that running check_perms becomes optional.
- Try a bit harder to preserve permissions on the archives/private dir.
- The rcfile now fixes directory permissions by default on start.
- You can now set mailman_fix_perms="NO" in the /etc/rc.conf* files,
  to avoid running check_perms -f on start, or from pkg-install.
- Clean up pkg-plist.
- Bump PORTREVISION to 6.

Suggested by:	bapt@, peter@
2015-01-07 00:12:45 +00:00
Baptiste Daroussin
b1ddfbe27d mail private expect 02770 2014-12-27 11:23:03 +00:00
Matthias Andree
fa3fa04f49 The rcfile now runs bin/check_perms so users have a visual clue in case
they installed the package without running scripts (pkg install -I).
Clean up inconsistent image (=icon) installation. Reported by Alex Stangl.
Makefile: Shuffle things around to please portlint.
Makefile: Clean up muting: only mute RM, comments, MKDIR.
Makefile: Move postfix checks into pkg-install.
pkg-deinstall: drop workaround for traditional pkg_delete.
pkg-deinstall: less verbose mail list reporting.
pkg-deinstall: cleanups for last_mailman_version handling.
pkg-install: defeat "Re-run..." line from check_perms to avoid confusing users.
pkg-plist: cleanups and modernization. Sets directory permissions.
  NOTE: pkg 1.4.1 is unable to extract these on package installs,
  "make install" however should be fine.
2014-12-27 01:19:30 +00:00
Matthias Andree
1469247035 Back out bapt's "cleanup" commit r371953.
This causes directory permissions to change, and if installation happens
without scripts, installing the new package causes mailman to become
defunct until bin/check_perms is run manually.

Most directories need to have group mailman (or whatever is configured)
and mode 02775, with exception of the archive/private.

More cleanups to follow later.

Submitted by:	flo@
2014-12-26 19:07:21 +00:00
Baptiste Daroussin
083fccd2a6 Simplify plist 2014-10-31 23:07:37 +00:00
Matthias Andree
47c5d1d6d4 Reinstate checksums for optional patches[1], fixing regression from c334818.
Update USE_PYTHON -> USES=python:2.

PR:		193682 [1]
Submitted by:	David Siebörger [1]
2014-09-16 21:18:29 +00:00
Matthias Andree
313bbece6a Add OPENSMTPD's user ID [1]. Add warnings about GIDs [2].
The FreeBSD pkg-message and post-install documentation now clearly warn
that the binary package is only meant for use with Sendmail, and
hints that poudriere can be used to build a Mailman package with
different options.

PR:		192230 [1]
Submitted by:	feld [1], Tom Limoncelli [2]
2014-08-13 20:05:15 +00:00
Dmitry Marakasov
cb5de81339 - Switch databases/namazu2 to USES=libtool, drop .la files
- Bump dependent ports as .so version has changed
2014-07-29 23:52:43 +00:00
Antoine Brodin
105236a46e Fix make fetch
Pointy hat:	adamw
2014-07-29 19:56:24 +00:00
Adam Weinberger
a84c115a09 Convert a bunch of EXTRACT_SUFX=... into USES=tar:...
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 19:11:51 +00:00
Adam Weinberger
08a006d08a Rename all patches that contain '::' as a path separator, and use
'__' instead.
2014-07-29 17:12:47 +00:00
Matthias Andree
608099abc5 Avoid leftovers on pkg_add-based systems by running a
depth-first remove of empty directories under the Mailman directory.

Submitted by:	jenkins/swills@
2014-05-16 15:56:24 +00:00
Matthias Andree
c9dda5ba97 Upgrade to new upstream bugfix release 2.1.18-1.
Changes: https://mail.python.org/pipermail/mailman-announce/2014-May/000195.html
2014-05-10 23:21:52 +00:00
Matthias Andree
bb4b025846 Update to new upstream version 2.1.18.
Bugfixes, DMARC policy support.
New dependency on py-dnspython.

Upstream change log:
https://mail.python.org/pipermail/mailman-announce/2014-May/000193.html
2014-05-04 20:44:24 +00:00
Baptiste Daroussin
e04b632220 Fix properties on pkg-plist 2014-01-21 23:40:21 +00:00
Rene Ladan
50f8eaece1 Python cleanup:
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2
- USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes
Reviewed by:	python (mva, rm)
Approved by:	portmgr-lurkers (mat)
2014-01-13 21:00:02 +00:00
Matthias Andree
57bfaa32c3 - Update to new upstream release 2.1.17, resetting PORTREVISION.
- Remove patch-Makefile.in, which has been integrated by upstream.

- Announcement:
<https://mail.python.org/pipermail/mailman-announce/2013-November/000186.html>

- Poudriere 3.0.13 ticket filed about misreported orphans in testport:
<https://fossil.etoilebsd.net/poudriere/tktview/e8d957a27f8ce8b6255ed655d031e6d05b02492c>
2013-11-25 07:56:14 +00:00
Matthias Andree
b5ca2a054c simplify, per Mark Sapiro's suggestion 2013-10-23 21:00:45 +00:00
Matthias Andree
86b3563dc7 Distill Python-compileall fix into something fit for shipping upstream,
and fixing a missed directory component along the way (bumping PORTREVISION).
2013-10-18 18:34:09 +00:00
Matthias Andree
9ea5412619 Upgrade to new upstream release 2.1.16, release notes:
https://launchpad.net/mailman/2.1/2.1.16/

Support stage directory. (Requires Python 2.7, 2.6 is no longer
sufficient.) This requires us to compile the Python scripts ourselves to
avoid spilling the stagedir name all over the .pyc files, as Mailman's
build would do (causing complaints from make stage-qa).
While there, compile bin/*.py programs, too.

The post-install section of the Makefile is more verbose now.

Run Mailman's bin/update after install.

Fixes to handling the mailman_last_version file to avoid leftover dirs
from an unused Mailman installation and deinstallation.

Scripts are more robust now, and use mktemp -d for temporary directories.
2013-10-18 16:42:11 +00:00
Baptiste Daroussin
fd61959c15 Add NO_STAGE all over the place in preparation for the staging support (cat: mail) 2013-09-20 19:59:12 +00:00
Florian Smeets
96bedb64e4 Fix a typo that prevented the port from building 2013-09-02 21:52:27 +00:00
Matthias Andree
854b45ea77 Note that I could not fully test all integrations yet. If integrations are
failing, please add detailed information how you set up your MTA, and
Mailman, what user/group IDs are, how list aliases are managed, and
thereabouts.

- Update to 2.1.15. [2] Changes: click View the full Changelog on
  https://launchpad.net/mailman/2.1/2.1.15
- Fix without-NLS install: Install at least English template. [1]
- Drop EXIM3 option, we don't have an Exim 3 port any more.
- Drop INTEGRATION option, which would at best be confusing.
- Reformat COMMENT to fit into common limits.
- Fix typo in COURIER_DESC.
- When Postfix integration is chosen, add BUILD and RUN_DEPENDS on
  Postfix because we need the postconf program.
- Use htdig patches for Mailman version 2.1.12 and remove BROKEN tag,
  in an experimental attempt to revive htdig support.
- Fix a few minor glitches in FreeBSD-post-install-notes.
- Drop files/patch-Mailman__Cgi__confirm.py, integrated in upstream tarball.
- Add launchpad.net to MASTER_SITES.
- Update files/postfix-verp.diff.
- Install a dummy one-line text file into PYTHON_SITELIBDIR so that
  Python's upgrade-site-packages would reinstall Mailman. [1]
- Add "status" support for rc.d script. [3]
- Change pre-fetch: to pre-everything::
- Revise formatting of pre-everything text to make clear it displays
  default values, not current values. To avoid ports/170280.

PR:		ports/135503 [1]
PR:		ports/170280 [2]
PR:		ports/170285 [2]
PR:		ports/176180 [1]
PR:		ports/181298 [3]
Submitted by:	Lowell Gilbert [1]
Submitted by:	Stefan Lasiewski [2]
Submitted by:	Oliver Fromme [3]
2013-08-29 22:58:07 +00:00