Commit graph

61 commits

Author SHA1 Message Date
Peter Pentchev
4b89ada401 Only use -fPIC on amd64 - none of the other arches seem to need it.
Unfortunately, the only way to avoid adding -fPIC to the files that
go into libvpopmail.a would be to actually make the vpopmail port
build a real shared library, which might be a bit more difficult and
should probably be coordinated with the upstream.

Pointy hat to:	roam (myself)
Pointy hat handed by:	kris
2005-11-24 16:04:38 +00:00
Peter Pentchev
8905aec82c Unless WITHOUT_FPIC is defined, add -fPIC to the C compiler flags.
This fixes the build of ports that use libvpopmail, at least on amd64,
and does not hurt on other platforms.

PR:		88402
Submitted by:	Matteo Baldi <egon@egonflower.com> among others
2005-11-17 22:54:30 +00:00
Peter Pentchev
41dcdf6652 Errr... actually add the patch needed for the WITH_SMTP_AUTH_PATCH option
introduced in ports/mail/vpopmail/Makefile rev. 1.57.

Submitted by:	Nikolay Georgiev <niki@techlab.office1.bg>
2005-09-16 07:35:24 +00:00
Peter Pentchev
86fde83af8 Add the WITH_SMTP_AUTH_PATCH knob to fix the SMTP authentication, at least
when invoked via the elysium implementation of SMTP auth from
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/

Submitted by:	Nikolay Georgiev <niki@techlab.office1.bg>
2005-09-16 07:34:01 +00:00
Peter Pentchev
f83c5272a2 Complement pav's handling of tcp.smtp and tcp.smtp-dist: actually install
the sample tcp.smtp file as tcp.smtp-dist.
Add the WITH_SUID_VCHKPW knob for setting the setuid bit on bin/vchkpw. [1]
Bump PORTREVISION.

PR:		85124 [1]
Submitted by:	garga [1]
2005-09-05 21:27:03 +00:00
Peter Pentchev
2823cfaed6 Set the SHELL environment variable to "/bin/sh" in vdelivermail before
executing external programs.

PR:		69969
Submitted by:	Claudiu Bosioc <claudiu@casi.ro>
2005-07-01 16:43:25 +00:00
Peter Pentchev
36001620eb Use --enable-sql-logging instead of the deprecated --enable-mysql-logging
and --enable-pgsql-logging.  Correspondingly, deprecate WITH_MYSQL_LOG and
WITH_PGSQL_LOG in favor of WITH_SQL_LOG.

Reported by:	Alexander B. Zubkov <sasha@sekrett.ru>,
		Martin Tsachev <mtsachev@gmail.com>
2005-06-07 08:51:34 +00:00
Pav Lucistnik
a8d60112a8 - Require perl in runtime too, pkg-install script is written in it.
Up until now, it was impossible to install from package.
2005-05-30 11:26:21 +00:00
Pav Lucistnik
bcf835034e - Update to 5.4.10
- Add support for LDAP
- Handle tcp.smtp configuration file nicely

PR:		ports/80412
Submitted by:	Renato Botelho <freebsd@galle.com.br>
Approved by:	maintainer timeout (2 weeks)
2005-05-11 13:32:29 +00:00
Palle Girgensohn
34fa6c853e Split the postgresql ports into a server and a client part.
All ports depending on postgresql shall use the USE_PGSQL=yes knob
defined in Mk/bsd.ports.mk. Bumping portrevisions where needed.

PR:		75344
Approved by:	portmgr@ (kris), ade & sean (mentors)
2005-01-31 00:35:55 +00:00
Peter Pentchev
c31f009e5b Merge several security and reliability fixes from the vpopmail 5.4
CVS branch.

Prompted by:	eik (for the vsybase.c advisory and CVS fix)
Approved by:	portmgr (marcus)
2004-09-10 06:23:24 +00:00
Peter Pentchev
449bcae98c Update to vpopmail-5.4.6, which contains IMPORTANT security fixes for
people using vpopmail with SQL backends!
2004-08-25 08:09:45 +00:00
Mathieu Arnold
4031a6967c Remove databases/postgresql-client because there can't be a -server, and having
it installed prevents databases/postgresql7 from being installed, leading to
some dependencies problems
2004-05-25 09:19:42 +00:00
Peter Pentchev
ef5ef83888 Fix a file descriptor leak in opensmtp().
Obtained from:	vpopmail CVS via oliver and
		Michael Bowe <mbowe@pipeline.com.au>
2004-04-19 12:09:50 +00:00
Peter Pentchev
7036b59ab3 Update vpopmail to 5.4.3. 2004-04-09 09:38:26 +00:00
Alex Dupre
08a0ca9dce Fix dependency on SpamAssassin.
Noticed by:	Cristiano Deana <cris@gufi.org>
2004-03-12 09:36:22 +00:00
Alex Dupre
07b1e132d3 Add CONFLICTS. 2004-02-26 14:34:32 +00:00
Alex Dupre
f85e6e4cfd - Fix new installations (patch disappeared in my last commit) [1]
- Remove now useless post-patch target

Noticed by:	Cristiano Deana <cris@gufi.org> [1]
Approved by:	nork (mentor/implicitly)
2004-02-11 08:24:34 +00:00
Alex Dupre
7cbdf7fde0 Update to 5.4.0 stable release.
Approved by:	roam, nork (mentor/implicitly)
2004-02-05 22:10:00 +00:00
Joe Marcus Clarke
73f7c91b5d Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.
(Part 1)
2004-02-04 05:10:27 +00:00
Peter Pentchev
389e88f486 A first shot at enabling the PostgreSQL authentication features, only
loosely based on the PR mentioned (the original patch in the PR does not
handle either library dependencies nor changing the default credentials).
PORTREVISION *not* bumped, this can wait until I implement WITH_PGSQL_PASS
and WITH_PGSQL_SERVER in the near future.

PR:		61998
Submitted by:	Sascha Luck <sascha@c4inet.net>
2004-01-30 18:03:31 +00:00
Peter Pentchev
54844ff483 Looks like I seriously botched the last commit; somehow four lines from
the original Makefile.in got duplicated in the 'patched' one, leading
to a malformed sh(1) construct that would inevitably break the installation.
Thanks to Ronald Sebastian and Alex Dupre for pointing this out.

Noticed by:	Ronald Sebastian <mailsagan@yahoo.com> and
		Alex Dupre <sysadmin@alexdupre.com>, among others

While I'm here, remove the autoconf part of the Makefile.in patch, which
actually duplicates what I've been doing in the port's Makefile for
some time now :)
2003-11-28 07:54:53 +00:00
Peter Pentchev
a860f902fb Update to vpopmail-5.3.30, fixing a critical update_rules bug.
Revamp a bit the creation of the MySQL credentials file.

PR:		59605
Submitted by:	Alex Dupre <sysadmin@alexdupre.com> (mostly)
Approved by:	portmgr (will)
2003-11-27 21:59:00 +00:00
Peter Pentchev
9edb1b2b50 Create an empty default limits file if none exists, bump PORTREVISION.
Change a -f check to an -e one to also catch symlinks and such.
2003-11-10 09:26:39 +00:00
Peter Pentchev
d4122741f9 Update to 5.3.29 and add the new SpamAssassion patch from Alex Dupre,
with a configurable spam threshold value set by the SPAM_THRESHOLD knob.

PR:		58306, 58805
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
2003-11-03 13:42:16 +00:00
Peter Pentchev
f4a88d4c6c Add Alex Dupre's patch for SpamAssassin integration, conditional
on the WITH_SPAMASSASSIN knob.

PR:		58503
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
2003-10-31 17:24:01 +00:00
Peter Pentchev
112c462b38 Update to vpopmail 5.3.28. Only set vpopmail:vchkpw ownership on
the bin/ and etc/ directories.

PR:		57551
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
2003-10-08 12:32:49 +00:00
Peter Pentchev
aa8b98e716 Manually do the recursive chown of the vpopmail directory that was
removed from the 5.3.27 source for some reason.

PR:		56916
Submitted by:	guilherme@vianavirtual.com
2003-09-30 08:47:29 +00:00
Peter Pentchev
d7dea45549 Update to 5.3.27, USE_MYSQL, de-quote COMMENT, update the knobs info,
and other assorted fixes, mostly from Alex's PR.

PR:		56462
Submitted by:	Alex Dupre <sysadmin@alexdupre.com>
Ob-woohoo:	run-time configuration of default-domain and MySQL info;
		at last it is possible to build a single package for
		deploying on multiple servers!
2003-09-10 09:41:33 +00:00
Peter Pentchev
f467e05513 Update to vpopmail-5.3.20.
Add the WITH_VPOPMAIL_SQWEBMAIL_CREATION knob to make vadduser
(well, make_user_dir(), actually) create an sqwebmail-config file
specifying the outgoing messages' sender address.
2003-04-29 12:10:06 +00:00
Peter Pentchev
33059bd045 Remove pkg-comment files in my ports. 2003-02-19 16:07:30 +00:00
Peter Pentchev
c8ea705c5e Update to vpopmail-5.3.16:
- WITH_MYSQL_LIMITS works now, move it where users can actually see it
  and remove the BROKEN mark;
- remove the vmysql.h patch that defined the 'limits' table creation -
  it was fixed in the meantime;
- remove the annoying configure script check for id == 0.
2003-02-17 12:21:10 +00:00
Peter Pentchev
81dc3b4048 Fix the regular expressions used for setting the database access
(username, password, database name, etc) - when I did the changeover
from ${PERL} to ${REINPLACE_CMD}, I plain forgot that sed does not
really like Perl-style $1 subexpression references :(

Reported by:	Ventsislav Velkov <veno@evrocom.net>,
		"Pavel Novikov" <pavel@ext.by>
2003-02-09 13:15:11 +00:00
Peter Pentchev
e6f9fa5a9e USE_REINPLACE.
The mail/vpopmail and mail/vpopmail-stable ports retain their Perl
dependency, since the pkg-install script is written in Perl.  I think
this might need to be changed when I get the time to look into it.

Submitted by:	Ulrich Spoerlein <q@uni.de>
2003-01-20 16:55:22 +00:00
Peter Pentchev
aa47b1121d Update the checksum to match the "new" distfile.
Submitted by:	gerald <gerald@hannibal.symicon.com> - the original
		notification about the vpopmail distfile checksum change

Fix a possible buffer underflow bug in the changed code.
Add a new ENABLE_MYSQL_LIMITS knob for .qmailadmin-limits processing, and
DISABLE the new MySQL limits code - it does not even compile as shipped :(

Use the correct configure script option for specifying the path to
the tcprules program, so vpopmail works even with LOCALBASE != /usr/local.

Submitted by:	 Mike Meyer <mwm@mired.org> - the tcprules patch
2002-11-02 21:33:09 +00:00
Peter Pentchev
096cb4a5dd Mark FORBIDDEN due to a checksum mismatch.
It seems that a couple of new features were added, but I have to take
a closer look at them to make sure nothing is wrong.  This will probably
happen as soon as I wake up in a couple of hours.

Submitted by:	gerald <gerald@hannibal.symicon.com>
Pointy hat to:	Inter 7 for adding new features to an already "released"
		tarball instead of releasing a new version :(
2002-11-01 22:20:29 +00:00
Peter Pentchev
4715f698e0 Apply a blessed +3 magic wand of autotools protection; a rogue run of
autoconf or automake over our local patches can ruin your whole day.
This rarely, if ever, affected the vpopmail ports, causing mysterious
failures at install time, but inevitably killed the stunnel build if
automake-1.5 happened to be installed.

Reported by:	Dan Langille <dan@langille.org> for stunnel,
		Sitchin Zech <mailsagan@yahoo.com> for vpopmail
2002-09-20 19:55:07 +00:00
Peter Pentchev
0f12aaab1a Update to vpopmail-5.3.9, with better processing of the exit code
of mail/autoresponder.
2002-09-15 10:25:50 +00:00
Peter Pentchev
f31f83abe9 Update to vpopmail-5.3.8.
There are two new configuration knobs:
- WITHOUT_USERS_BIG_DIR disables the use of 'big' directories for users,
  thereby saving a little on disk space and inode usage; IMO, the
  savings are negligible;
- WITHOUT_SEEKABLE disables the newly introduced ability of vdelivermail
  to examine its input stream for seekability, and read it all into a
  file to make it seekable.  This works quite fine in the tests that I
  have done, so there seems to be no need to enable it on FreeBSD;
  however, if things should go wrong (in particular, if delivering mail
  to your virtual domains seems to fail), try rebuilding vpopmail with
  this knob.

Prompted by:	David Phillips <david@acz.org>
2002-09-05 14:30:21 +00:00
Peter Pentchev
a8636d465c Change the WITH_MD5_PASSWORDS knob to WITHOUT_MD5_PASSWORDS;
the vpopmail default is to build support for MD5-hashed passwords now.

Reported by:	Jetchko Jekov <jeka@flavia-bg.com>
2002-09-05 13:42:30 +00:00
Peter Pentchev
e756b17c46 Fix a segfault when authenticating against the system passwd file:
there's little sense in passing an integer port number to a string
comparison routine :)
Bump PORTREVISION.

Reported by:	Rudy <rudy@tzone.it>
2002-06-14 09:38:41 +00:00
Peter Pentchev
c3b475fe8a Update to the vpopmail-5.3.6 development version, which adds back APOP
support (spelled WITH_CLEARTEXT_PASSWD now), along with a couple of
other tweakable knobs.  There is UNTESTED support for Sybase and Oracle
database backends; please report any successes or failures to me.

APOP support discontinuation reported by:	"A. Postle" <apostle@kolbas.it>
2002-06-12 10:09:04 +00:00
Peter Pentchev
fdd48b3e7c Update to vpopmail-5.2.1. 2002-05-21 16:26:16 +00:00
Peter Pentchev
df961b0ee1 Update vpopmail to version 5.2.
Introduce two new build knobs:
- WITH_CLEAR_PASSWD	actually enable the clear passwords management
	that was turned on by default in 5.2 (hello, POLA!)
- WITH_MD5_PASSWORDS	for the encrypted passwords, use MD5 hashes.

Prompted by:	Claus Rasmussen <claus@webclaus.com>
2002-02-26 14:54:19 +00:00
Peter Pentchev
93ec79962e Update to 5.0.1.
Add the WITH_QMAIL_EXT knob to enable the user-* address extensions.
2001-12-17 18:52:19 +00:00
Peter Pentchev
a7c5e60cc5 Update to 5.0. This should enable the sqwebmail and courier-imap
ports to work once again.

NB: The vpopmail documentation says that the special support for
sqwebmail authorization is no longer needed for sqwebmail 3.0 and above.
If your sqwebmail installation does not work after this vpopmail update,
make sure to try vpopmail built both with and without the WITH_SQWEBMAIL
knob enabled.

Requested and patiently awaited by:	much too many to list..
Tested by:	NERvOus <nervous@nervous.it>,
		Valentin Zahariev <curly@e-card.bg>
2001-11-20 18:11:26 +00:00
Peter Pentchev
88c3bf1dc1 Fix the build of several dependent ports by actually installing
the inc_deps and lib_deps files.  This should fix qmailadmin,
courier-imap and possibly others, after I broke them by my configure
changes to not create and populate ${PREFIX}/vpopmail/etc/ at
configure time.
Add a couple of configuration knobs.
Bump PORTREVISION for the inc_deps/lib_deps fix.

Reported by:	a multitude of innocents :(
Pointy hat:	roam (myself)
2001-11-04 12:05:05 +00:00
Peter Pentchev
6f7ea96ff4 Assume maintainership of this port; Neil has asked me a couple of
times in the last few months :)
2001-11-02 13:49:45 +00:00
Peter Pentchev
63b7fbd702 Fix a CONFIGURE_ARGS typo: --enable-qmail-dir -> --enable-qmaildir.
No PORTREVISION bump necessary IMHO.

Submitted by:	"Dmitry Osipov" <daosipov@mail.ru>
2001-10-15 13:39:11 +00:00
Peter Pentchev
bb8cf40c25 Turn off world-readability on the directories holding the executable
binaries and libraries of vpopmail.  This prevents arbitrary users
from obtaining the username and password for access to the MySQL database,
which are present in plaintext in the vpopmail object files and binaries.

Obtained from:	Bugtraq
2001-09-08 10:48:49 +00:00