Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

11
mail/pfqueue/DESCR Normal file
View File

@@ -0,0 +1,11 @@
pfqueue is an effort to give postqueue/mailq/postsuper a console
(ncurses) interface: it won't add any particular functionality to
those provided with postfix itself, but will hopefully make them to
use.
It's a real-time queue scanner, that show per-queue lists of existing
messages; the messages can be deleted, put on hold or released
Just for example, it may be useful to inspect a traffic jam at a given
time, to see what is falling into and unexpectedly crowding you deferred
queue

44
mail/pfqueue/Makefile Normal file
View File

@@ -0,0 +1,44 @@
# $NetBSD: Makefile,v 1.11 2012/10/08 12:19:26 asau Exp $
#
DISTNAME= pfqueue-0.5.6
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pfqueue/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pfqueue.sourceforge.net/
COMMENT= Real-time queue scanner for postfix
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
INCOMPAT_CURSES= NetBSD-1.*-*
.include "options.mk"
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/pfqueue
CONF_FILES= share/examples/pfqueue/pfqueue.conf ${PKG_SYSCONFDIR}/pfqueue.conf
CONFIGURE_ARGS+= --enable-shared
SUBST_CLASSES+= make
SUBST_MESSAGE.make= Fixing Makefiles for shared lib
SUBST_STAGE.make= pre-configure
SUBST_FILES.make= backends/Makefile.in
SUBST_FILES.make+= libpfq/Makefile.in
SUBST_SED.make+= -e 's,-module,,'
SUBST_CLASSES+= conf
SUBST_MESSAGE.conf= Fixing path to config file
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= pfqconfig.c pfqueue.conf.5
SUBST_SED.conf= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
post-install:
${INSTALL_DATA} ${FILESDIR}/pfqueue.conf ${DESTDIR}${PREFIX}/share/examples/pfqueue
.include "../../devel/ncurses/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

10
mail/pfqueue/PLIST Normal file
View File

@@ -0,0 +1,10 @@
@comment $NetBSD: PLIST,v 1.3 2009/12/07 09:24:46 fhajny Exp $
bin/pfqueue
bin/spfqueue
${PLIST.exim}lib/libpfq_exim.la
${PLIST.postfix}lib/libpfq_postfix2.la
${PLIST.socket}lib/libpfq_socket.la
lib/libpfqueue.la
man/man1/pfqueue.1
man/man5/pfqueue.conf.5
share/examples/pfqueue/pfqueue.conf

8
mail/pfqueue/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.4 2009/12/07 09:24:46 fhajny Exp $
SHA1 (pfqueue-0.5.6.tar.gz) = 29fc58eab31b1a6225bda1205f155ed5cfb951b2
RMD160 (pfqueue-0.5.6.tar.gz) = 6b2b539449fd9e0f127b23ba49de1761d769c27f
Size (pfqueue-0.5.6.tar.gz) = 298870 bytes
SHA1 (patch-aa) = 51c1ae7a438ef596a6b1c0d4821440822315e2e4
SHA1 (patch-ab) = 3feee5012319cc3634217aacb95923f3ae550e7d
SHA1 (patch-ac) = 26d19666b3dfd2bb71fb5140668ec58b292a046c

View File

@@ -0,0 +1,2 @@
# Default backend to use
backend_name=postfix2

40
mail/pfqueue/options.mk Normal file
View File

@@ -0,0 +1,40 @@
# $NetBSD: options.mk,v 1.1 2009/11/20 13:14:13 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pfqueue
PKG_SUPPORTED_OPTIONS= exim postfix socket
PKG_SUGGESTED_OPTIONS= postfix socket
.include "../../mk/bsd.options.mk"
PLIST_VARS+= exim postfix socket
###
### Enable Exim support
###
.if !empty(PKG_OPTIONS:Mexim)
PFQ_BACKENDS+= libpfq_exim.la
PLIST.exim= yes
.endif
###
### Enable Postfix support
###
.if !empty(PKG_OPTIONS:Mpostfix)
PFQ_BACKENDS+= libpfq_postfix2.la
PLIST.postfix= yes
.endif
###
### Enable socket support
###
.if !empty(PKG_OPTIONS:Msocket)
PFQ_BACKENDS+= libpfq_socket.la
PLIST.socket= yes
.endif
SUBST_CLASSES+= backends
SUBST_STAGE.backends= post-patch
SUBST_MESSAGE.backends= Enabling backends
SUBST_FILES.backends= backends/Makefile.in
SUBST_SED.backends= -e 's|@PFQ_BACKENDS@|${PFQ_BACKENDS:Q}|'

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-aa,v 1.1 2009/11/20 13:14:13 fhajny Exp $
Only install backends requested via options
--- backends/Makefile.in.orig 2007-02-03 17:49:29.000000000 +0000
+++ backends/Makefile.in
@@ -183,7 +183,7 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-lib_LTLIBRARIES = libpfq_postfix1.la libpfq_postfix2.la libpfq_exim.la libpfq_socket.la
+lib_LTLIBRARIES = @PFQ_BACKENDS@
libpfq_postfix1_la_SOURCES = pfq_postfix1.c pfq_backend.h pfq_service.c pfq_service.h
libpfq_postfix1_la_LDFLAGS = -module
libpfq_postfix2_la_SOURCES = pfq_postfix2.c pfq_backend.h pfq_service.c pfq_service.h

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.1 2009/12/07 09:24:46 fhajny Exp $
Fix path to config file
--- pfqconfig.c.orig 2007-01-19 16:31:42.000000000 +0000
+++ pfqconfig.c
@@ -124,7 +124,7 @@ void pfq_read_file ( struct pfql_context
void pfq_read_config ( struct pfql_context_t *ctx ) {
char *b;
b = (char*)malloc(CFG_MAXLEN);
- pfq_read_file ( ctx, "/etc/pfqueue.conf" );
+ pfq_read_file ( ctx, "@PKG_SYSCONFDIR@/pfqueue.conf" );
sprintf ( b, "%s/.pfqueue", getenv("HOME") );
pfq_read_file ( ctx, b );
free ( b );

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ac,v 1.1 2009/12/07 09:24:46 fhajny Exp $
Fix path to config file
--- pfqueue.conf.5.orig 2007-01-19 16:37:19.000000000 +0000
+++ pfqueue.conf.5
@@ -18,14 +18,14 @@
pfqueue.conf \- pfqueue configuration file
.SH FULL PATH
-/etc/pfqueue.conf or ~/.pfqueue
+@PKG_SYSCONFDIR@/pfqueue.conf or ~/.pfqueue
.SH DESCRIPTION
\fBpfqueue\fP can be configured storing its option in configuration files.
-At startup, if /etc/pfqueue.conf is present it is read and options
+At startup, if @PKG_SYSCONFDIR@/pfqueue.conf is present it is read and options
are set accordingly; then, if a .pfqueue file is present in user's home
directory, it is read and options are set accordingly, overriding those
-stored in /etc/pfqueue.conf.
+stored in @PKG_SYSCONFDIR@/pfqueue.conf.
.br
Note that the resulting settings are overridden by command line options.