Commit graph

47 commits

Author SHA1 Message Date
joerg
3b0d97b0de Add DESTDIR support. 2008-06-20 01:09:05 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
ghen
b56da72829 Update to gld-1.7. Only one change over 1.6:
Removed the KEEPDBOPEN option as it could lead to multiple instance of gld
running when mail traffic is low and thus father process MYSQL connection
timeout.  Furthermore, after tests, efficency is the same.

KEEPDBOPEN option is now silently ignored to forced to NO.
2007-04-18 17:06:16 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
ghen
81d3bcd078 Replace rc.d dependency on "mysqld" by "pgsql" if pgsql option is selected. 2007-01-02 11:47:40 +00:00
ghen
03cf6f6c34 Grammar fixes + list postgresql as a possible data backend. 2006-11-10 11:36:32 +00:00
sketch
17183945bb Solaris fixes:
- Link against socket libraries.

  - Don't try to return a value from a void function (SunPro).
2006-07-10 20:32:59 +00:00
ghen
9b2b288847 Change permissions of the config file to 640 (ok with xtraeme). Bump
PKGREVISION again.
2006-06-06 17:32:20 +00:00
ghen
20b0c0e5ba - Advertize GLD_USER and GLD_GROUP as being configurable (add to BUILD_DEFS).
- Fix the default USER and GROUP substitution in the config file.
- Bump PKGREVISION for this.
2006-06-06 12:33:52 +00:00
jlam
802ce74fcb Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
2006-04-23 00:12:35 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
wiz
f133114add Update to 1.6:
16/09/2005 : V 1.6

	- Removed the algorithm lightgreydomain as the new mxgrey
	  does better and simpler

	- Removed the UPDATE option, now gld always update triplets.

	- Fixed a minor flaw in the MXGREY algorithm.

	- Now you can configure MXGREY to consider an ip as a safe
	  MX after X succesful greylists instead of only 1 . (read
	  gld.conf for details)

	- Now gld updates the counters only when mail is not
	  greylisted

	- Added Training mode, read gld.conf for details

	- Now gld verify that if you supply a custom smtp code,
	  it's a 4XX code otherwise gld discard it and use 450 .

	- If gld cannot connect to MySQL server on startup
	  it will not refuse to run anymore, but will set keepdbopen
	  to 0 and accept to run .

	- The sample config file provided now only listen to loopback
	  only accept connection from localhost and runs as nobody/
	  nobody.

	WARNING: if you were using lightgreydomain algorithm, it
	has been discontinued use MXGREY in place, please read
	gld.conf for details.
2006-03-02 21:03:39 +00:00
wiz
696ac67d3a Make MESSAGE mysql-specific, since it is.
Final part of PR 32969 by Greg Oster.
2006-03-02 20:54:08 +00:00
wiz
8d64305603 Fix build both for mysql and pgsql backends.
Addresses second part of PR 32969 by Greg Oster.
2006-03-02 20:49:39 +00:00
wiz
024507b18e pkglint cleanup. 2006-03-02 20:48:56 +00:00
wiz
c0c03cc8f8 Convert to make better use of the options framework. Addresses part
of PR 32969 by Greg Oster.
2006-03-02 20:41:30 +00:00
xtraeme
b36bf56512 ENOTIME to mantain these packages, feel free to pick it up if you are
insterested.
2006-02-12 15:24:14 +00:00
sketch
876a4b9db9 The previous postfix configuration wasn't valid syntax, and broke relaying
from $mynetworks.  Supply an example which works.
2006-02-06 15:59:58 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
xtraeme
eadc9131c8 Bump PKGREVISION due to mysql.buildlink3.mk changes (default mysql
pkg has been changed to 5.x). Reminded by wiz... thanks.
2006-01-08 18:35:08 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
7a95adad42 The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
2005-08-23 11:48:47 +00:00
dillo
f81ae835ad Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's a
user settable variable.  Set PKG_SUGGESTED_OPTIONS instead.  Also,
make use of PKG_OPTIONS_LEGACY_VARS.

Reviewed by wiz.
2005-05-31 10:01:36 +00:00
xtraeme
2ef127af08 Cannot use mysql and pgsql options together, use one of them. 2005-05-24 15:30:39 +00:00
rillig
f795c2e475 Removed trailing white-space. 2005-05-23 08:26:03 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00
xtraeme
c5cb02907a Update to 1.5.2
o Fixed a bug in MXGREY algorithm
2005-04-21 11:46:13 +00:00
xtraeme
0f7aab5828 Update to 1.5.1, which fixes PR pkg/29975 by Robert Elz.
Some changes were done: enabling the LOOPBACK option by default,
fix some snprintf() calls, etc.

While I'm here convert this pkg to use bsd.options.mk, now that it
supports MySQL and PostgreSQL (MySQL by default as before).
2005-04-14 22:22:56 +00:00
salo
cff9006f5d Point to the correct sql script.
XXX: this should be reworked when pgsql support is added
Style.
2005-04-13 17:30:28 +00:00
salo
632b869611 Add rcsid. 2005-04-13 17:14:01 +00:00
salo
014ef2305e Install all the correct files.. 2005-04-13 17:12:08 +00:00
salo
8158a84ced Fix installation of sql scripts.
This package needs more work.. (e.g., pgsql support)
2005-04-13 17:07:49 +00:00
salo
73ff8288a1 Put the correct content into patch-ab.. *sigh* 2005-04-13 17:00:14 +00:00
salo
e0794cfd88 Remove PKGREVISION. 2005-04-13 16:42:43 +00:00
salo
5df249b309 Split patch-ab to one patch per file. 2005-04-13 16:36:07 +00:00
christos
e8f1c6171b Update to 1.5 to fix security vulnerability issues.
- Add more patches to totally eliminate strcpy(); this code is horrible.
2005-04-13 16:19:59 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
8758983939 Add RMD160 digests. 2005-02-24 09:59:20 +00:00
xtraeme
eafb1a4479 This needs mysqld in REQUIRE as well. 2005-01-19 15:48:41 +00:00
xtraeme
7c2b2e8149 Add another changeable option via rc.conf "gld_waitmysql_seconds",
with a default value of "5" seconds to wait for mysql. This is necessary
because the gld process needs mysqld available when it's loaded,
and sometimes when booting mysqld, it needs more than 2 seconds to be
available.
2005-01-19 15:39:44 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
xtraeme
c1772089f8 Don't overwrite $pidfile if the command is "status" or "stop". 2004-11-29 16:17:22 +00:00
xtraeme
4bbc87607f Fix typo, it's BEFORE mail not postfix. 2004-11-29 15:46:25 +00:00
xtraeme
4715245f8a Add permit_mynetworks to smtpd_recipient_restrictions. 2004-11-25 17:22:31 +00:00
xtraeme
6de5125967 The gld.conf file contains important data, use CONF_FILES_PERMS 0740
${BINWON}:${GLD_GROUP}.
2004-11-25 07:19:32 +00:00
xtraeme
c75827ac75 English language tweaks, from Gendalia@. 2004-11-25 05:55:55 +00:00
xtraeme
46ae16ea0b Initial import of gld-1.4 into the NetBSD packages collection.
Gld is a standalone greylisting server for Postfix SMTP, it
listens on a TCP port and use MySQL for storing data.

The server supports whitelists based on sender,sender_domain
and client_ip, it supports also light greylisting and DNS white
lists.
2004-11-25 05:42:40 +00:00