aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2008-12-04 11:42:36 +0800
committerbeech <beech@FreeBSD.org>2008-12-04 11:42:36 +0800
commitd1535f63b7d6538a346b040db7616ae29064fd73 (patch)
treef1ef247cfcfac0fdb0673b9a68f8b6be419faa03 /mail
parent835ea9e757945ce39a093c97222b4b6055511af9 (diff)
downloadfreebsd-ports-gnome-d1535f63b7d6538a346b040db7616ae29064fd73.tar.gz
freebsd-ports-gnome-d1535f63b7d6538a346b040db7616ae29064fd73.tar.zst
freebsd-ports-gnome-d1535f63b7d6538a346b040db7616ae29064fd73.zip
Policyd v2
Policyd v2 (codenamed "cluebringer") is a multi-platform policy server for popular MTAs. This policy daemon is designed mostly for large scale mail hosting environments. WWW: http://www.policyd.org PR: ports/129385 Submitted by: Chifeng QU <chifeng at gmail.com>
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/policyd2/Makefile65
-rw-r--r--mail/policyd2/distinfo3
-rw-r--r--mail/policyd2/files/patch-cbpadmin11
-rw-r--r--mail/policyd2/files/patch-cbpolicyd11
-rw-r--r--mail/policyd2/files/pkg-message.in2
-rw-r--r--mail/policyd2/files/policyd.sh.in28
-rw-r--r--mail/policyd2/pkg-descr7
-rw-r--r--mail/policyd2/pkg-plist130
9 files changed, 258 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 2ceccbe8d9da..05abecb4d91d 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -454,6 +454,7 @@
SUBDIR += pine-pgp-filters
SUBDIR += pm-lib
SUBDIR += pmail
+ SUBDIR += policyd2
SUBDIR += pop-before-smtp
SUBDIR += pop3gwd
SUBDIR += pop3lite
diff --git a/mail/policyd2/Makefile b/mail/policyd2/Makefile
new file mode 100644
index 000000000000..e2c8adf74208
--- /dev/null
+++ b/mail/policyd2/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: policyd2
+# Date created: 2 December 2008
+# Whom: Chifeng QU <chifeng@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= policyd2
+PORTVERSION= 2.0.5
+CATEGORIES= mail
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= policyd
+DISTNAME= cluebringer-${PORTVERSION}
+
+MAINTAINER?= chifeng@gmail.com
+COMMENT= Policyd v2 is a multi-platform policy server for popular MTAs
+
+RUN_DEPENDS= ${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
+ ${SITE_PERL}/Net/CIDR.pm:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
+ ${SITE_PERL}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles \
+ ${SITE_PERL}/mach/Cache/FastMmap.pm:${PORTSDIR}/devel/p5-Cache-FastMmap \
+ ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_mysql.so:${PORTSDIR}/databases/php5-pdo_mysql
+
+USE_PERL5= yes
+USE_PHP= yes
+NO_BUILD= yes
+USE_RC_SUBR= policyd.sh
+SUB_FILES= pkg-message
+
+WEBUIDIR= ${PREFIX}/www/policyd
+PORTDOCS= AUTHORS CHANGELOG INSTALL TODO WISHLIST
+PORTDATA= *
+
+OPTIONS= MYSQL "Use MySQL support" On \
+ SQLite "Use SQLite support" Off
+
+.include <bsd.port.pre.mk>
+.if defined(WITH_MYSQL)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
+.endif
+.if defined(WITH_SQLite)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
+.endif
+
+do-install:
+ @${INSTALL} -d ${WEBUIDIR}
+ @cd ${WRKSRC} && ${CP} -Rpf webui/ ${WEBUIDIR}
+ @cd ${WRKSRC} && ${CP} -Rpf cbp ${SITE_PERL}
+ ${INSTALL_SCRIPT} -m 0755 ${WRKSRC}/cbpadmin ${PREFIX}/bin
+ ${INSTALL_SCRIPT} -m 0755 ${WRKSRC}/cbpolicyd ${PREFIX}/bin
+ ${INSTALL_DATA} -m 0644 ${WRKSRC}/cluebringer.conf ${PREFIX}/etc
+
+post-install:
+.if !defined(NOPORTDATA)
+ @${INSTALL} -d ${DATADIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${DATADIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} database ${DATADIR}
+.endif
+
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d ${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/policyd2/distinfo b/mail/policyd2/distinfo
new file mode 100644
index 000000000000..ca2abc957d1f
--- /dev/null
+++ b/mail/policyd2/distinfo
@@ -0,0 +1,3 @@
+MD5 (cluebringer-2.0.5.tar.gz) = 999f7eed383561c154020c6cc0cd4429
+SHA256 (cluebringer-2.0.5.tar.gz) = c8b1c3fd66511a1b72a51c411cc70b27bf59ec5d14e19c0115524eeaec0c4ee4
+SIZE (cluebringer-2.0.5.tar.gz) = 112439
diff --git a/mail/policyd2/files/patch-cbpadmin b/mail/policyd2/files/patch-cbpadmin
new file mode 100644
index 000000000000..c795386e6601
--- /dev/null
+++ b/mail/policyd2/files/patch-cbpadmin
@@ -0,0 +1,11 @@
+--- cbpadmin.orig 2008-12-02 15:31:28.000000000 +0000
++++ cbpadmin 2008-12-02 15:31:42.000000000 +0000
+@@ -51,7 +51,7 @@
+
+ # Set defaults
+ my $cfg;
+-$cfg->{'config_file'} = "/etc/cluebringer.conf";
++$cfg->{'config_file'} = "/usr/local/etc/cluebringer.conf";
+
+ # Check if we must override
+ if (defined($opts{'config'}) && $opts{'config'} ne "") {
diff --git a/mail/policyd2/files/patch-cbpolicyd b/mail/policyd2/files/patch-cbpolicyd
new file mode 100644
index 000000000000..232100bdcb43
--- /dev/null
+++ b/mail/policyd2/files/patch-cbpolicyd
@@ -0,0 +1,11 @@
+--- cbpolicyd.orig 2008-12-02 15:32:47.000000000 +0000
++++ cbpolicyd 2008-12-02 15:33:10.000000000 +0000
+@@ -52,7 +52,7 @@
+
+
+ # Set defaults
+- $cfg->{'config_file'} = "/etc/cluebringer.conf";
++ $cfg->{'config_file'} = "/usr/local/etc/cluebringer.conf";
+
+ $server->{'timeout'} = 120;
+ $server->{'background'} = "yes";
diff --git a/mail/policyd2/files/pkg-message.in b/mail/policyd2/files/pkg-message.in
new file mode 100644
index 000000000000..9387aa755ab4
--- /dev/null
+++ b/mail/policyd2/files/pkg-message.in
@@ -0,0 +1,2 @@
+Please check INSTALL file to configure!
+
diff --git a/mail/policyd2/files/policyd.sh.in b/mail/policyd2/files/policyd.sh.in
new file mode 100644
index 000000000000..8875a0a7fc57
--- /dev/null
+++ b/mail/policyd2/files/policyd.sh.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Start or stop policyd
+# $FreeBSD$
+
+# PROVIDE: policyd
+# KEYWORD: shutdown
+#
+# Define these policyd_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+
+. %%RC_SUBR%%
+
+name="policyd"
+rcvar=`set_rcvar`
+
+command="%%LOCALBASE%%/bin/cbpolicyd"
+procname="/usr/bin/perl"
+
+load_rc_config $name
+
+: ${policyd_enable="NO"}
+
+run_rc_command "$1"
diff --git a/mail/policyd2/pkg-descr b/mail/policyd2/pkg-descr
new file mode 100644
index 000000000000..e45c641c08df
--- /dev/null
+++ b/mail/policyd2/pkg-descr
@@ -0,0 +1,7 @@
+Policyd v2
+
+Policyd v2 (codenamed "cluebringer") is a multi-platform policy
+server for popular MTAs. This policy daemon is designed mostly
+for large scale mail hosting environments.
+
+WWW: http://www.policyd.org
diff --git a/mail/policyd2/pkg-plist b/mail/policyd2/pkg-plist
new file mode 100644
index 000000000000..7cfefaef62f4
--- /dev/null
+++ b/mail/policyd2/pkg-plist
@@ -0,0 +1,130 @@
+www/policyd/accesscontrol-add.php
+www/policyd/accesscontrol-change.php
+www/policyd/accesscontrol-delete.php
+www/policyd/accesscontrol-main.php
+www/policyd/amavis-add.php
+www/policyd/amavis-change.php
+www/policyd/amavis-delete.php
+www/policyd/amavis-main.php
+www/policyd/checkhelo-add.php
+www/policyd/checkhelo-blacklist-add.php
+www/policyd/checkhelo-blacklist-change.php
+www/policyd/checkhelo-blacklist-delete.php
+www/policyd/checkhelo-blacklist-main.php
+www/policyd/checkhelo-change.php
+www/policyd/checkhelo-delete.php
+www/policyd/checkhelo-main.php
+www/policyd/checkhelo-whitelist-add.php
+www/policyd/checkhelo-whitelist-change.php
+www/policyd/checkhelo-whitelist-delete.php
+www/policyd/checkhelo-whitelist-main.php
+www/policyd/checkspf-add.php
+www/policyd/checkspf-change.php
+www/policyd/checkspf-delete.php
+www/policyd/checkspf-main.php
+www/policyd/greylisting-add.php
+www/policyd/greylisting-change.php
+www/policyd/greylisting-delete.php
+www/policyd/greylisting-main.php
+www/policyd/greylisting-whitelist-add.php
+www/policyd/greylisting-whitelist-change.php
+www/policyd/greylisting-whitelist-delete.php
+www/policyd/greylisting-whitelist-main.php
+www/policyd/images/bg.jpg
+www/policyd/images/bullet.jpg
+www/policyd/images/help.gif
+www/policyd/images/menuleft.gif
+www/policyd/images/menuright.gif
+www/policyd/images/specs_bottom.jpg
+www/policyd/images/strips_onside.jpg
+www/policyd/images/top2.jpg
+www/policyd/images/valid-css2.png
+www/policyd/images/valid-xhtml10.png
+www/policyd/images/wcag1AAA.png
+www/policyd/includes/config.php
+www/policyd/includes/db.php
+www/policyd/includes/footer.php
+www/policyd/includes/header.php
+www/policyd/includes/tooltipdata.php
+www/policyd/includes/tooltips.php
+www/policyd/index.php
+www/policyd/policy-add.php
+www/policyd/policy-change.php
+www/policyd/policy-delete.php
+www/policyd/policy-group-add.php
+www/policyd/policy-group-change.php
+www/policyd/policy-group-delete.php
+www/policyd/policy-group-main.php
+www/policyd/policy-group-member-add.php
+www/policyd/policy-group-member-change.php
+www/policyd/policy-group-member-delete.php
+www/policyd/policy-group-member-main.php
+www/policyd/policy-main.php
+www/policyd/policy-member-add.php
+www/policyd/policy-member-change.php
+www/policyd/policy-member-delete.php
+www/policyd/policy-member-main.php
+www/policyd/postfix-aliases-add.php
+www/policyd/postfix-aliases-change.php
+www/policyd/postfix-aliases-delete.php
+www/policyd/postfix-aliases-main.php
+www/policyd/postfix-distgroups-add.php
+www/policyd/postfix-distgroups-change.php
+www/policyd/postfix-distgroups-delete.php
+www/policyd/postfix-distgroups-main.php
+www/policyd/postfix-distgroups-member-add.php
+www/policyd/postfix-distgroups-member-change.php
+www/policyd/postfix-distgroups-member-delete.php
+www/policyd/postfix-distgroups-member-main.php
+www/policyd/postfix-mailboxes-add.php
+www/policyd/postfix-mailboxes-change.php
+www/policyd/postfix-mailboxes-delete.php
+www/policyd/postfix-mailboxes-main.php
+www/policyd/postfix-transports-add.php
+www/policyd/postfix-transports-change.php
+www/policyd/postfix-transports-delete.php
+www/policyd/postfix-transports-main.php
+www/policyd/quotas-add.php
+www/policyd/quotas-change.php
+www/policyd/quotas-delete.php
+www/policyd/quotas-limits-add.php
+www/policyd/quotas-limits-change.php
+www/policyd/quotas-limits-delete.php
+www/policyd/quotas-limits-main.php
+www/policyd/quotas-main.php
+www/policyd/stylesheet.css
+www/policyd/tooltips/BubbleTooltips.js
+www/policyd/tooltips/bt.css
+www/policyd/tooltips/bt.gif
+%%SITE_PERL%%/cbp/cache.pm
+%%SITE_PERL%%/cbp/config.pm
+%%SITE_PERL%%/cbp/database/dbi.pm
+%%SITE_PERL%%/cbp/dbilayer.pm
+%%SITE_PERL%%/cbp/dblayer.pm
+%%SITE_PERL%%/cbp/dummy.pm
+%%SITE_PERL%%/cbp/logging.pm
+%%SITE_PERL%%/cbp/modules/AccessControl.pm
+%%SITE_PERL%%/cbp/modules/CheckHelo.pm
+%%SITE_PERL%%/cbp/modules/CheckSPF.pm
+%%SITE_PERL%%/cbp/modules/Core.pm
+%%SITE_PERL%%/cbp/modules/Greylisting.pm
+%%SITE_PERL%%/cbp/modules/Quotas.pm
+%%SITE_PERL%%/cbp/modules/README.txt
+%%SITE_PERL%%/cbp/policies.pm
+%%SITE_PERL%%/cbp/protocols.pm
+%%SITE_PERL%%/cbp/protocols/Bizanga.pm
+%%SITE_PERL%%/cbp/protocols/Postfix.pm
+%%SITE_PERL%%/cbp/system.pm
+%%SITE_PERL%%/cbp/tracking.pm
+%%SITE_PERL%%/cbp/version.pm
+bin/cbpadmin
+bin/cbpolicyd
+etc/cluebringer.conf
+@dirrm www/policyd/tooltips
+@dirrm www/policyd/includes
+@dirrm www/policyd/images
+@dirrmtry www/policyd
+@dirrm %%SITE_PERL%%/cbp/protocols
+@dirrm %%SITE_PERL%%/cbp/modules
+@dirrm %%SITE_PERL%%/cbp/database
+@dirrm %%SITE_PERL%%/cbp