1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

- Switch to recommended dependencies

- Drop p5-libwww, as SA will use fetch(1)
  - Use p5-IO-Socket-IP unconditionally
    - Drop p5-IO-Socket-INET6
    - Remove the IPV6 option
  - Use p5-Geo-IP instead of p5-IP-Country
  - Remove unnecessary p5-Mail-Tools dependency
- Remove RAZOR and DKIM from OPTIONS_DEFAULT. All
  plugins now default to off.
- Make instructions clearer in pkg-message and rc.d script
This commit is contained in:
Adam Weinberger 2014-03-16 15:18:57 +00:00
parent 032957ad09
commit 67bb95866d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348415
4 changed files with 22 additions and 20 deletions

View File

@ -1,7 +1,7 @@
# Created by: TAOKA Fumiyoshi
# $FreeBSD$
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= japanese mail perl5
PKGNAMEPREFIX= ja-

View File

@ -3,7 +3,7 @@
PORTNAME= spamassassin
PORTVERSION= 3.4.0
PORTREVISION?= 4 # also bump japanese/spamassassin
PORTREVISION?= 5 # also bump japanese/spamassassin
CATEGORIES?= mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan
@ -15,12 +15,11 @@ COMMENT?= Highly efficient mail filter for identifying spam
LICENSE= APACHE20
ALL_DEPENDS= p5-NetAddr-IP>=4.00.7:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
p5-Net-DNS>=0.63:${PORTSDIR}/dns/p5-Net-DNS \
ALL_DEPENDS= p5-Encode-Detect>=0:${PORTSDIR}/converters/p5-Encode-Detect \
p5-HTML-Parser>=3.46:${PORTSDIR}/www/p5-HTML-Parser \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-Encode-Detect>=0:${PORTSDIR}/converters/p5-Encode-Detect \
p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools
p5-IO-Socket-IP>=0:${PORTSDIR}/net/p5-IO-Socket-IP \
p5-Net-DNS>=0.63:${PORTSDIR}/dns/p5-Net-DNS \
p5-NetAddr-IP>=4.010:${PORTSDIR}/net-mgmt/p5-NetAddr-IP
BUILD_DEPENDS= ${ALL_DEPENDS}
RUN_DEPENDS= ${ALL_DEPENDS} \
re2c>=.12.0:${PORTSDIR}/devel/re2c
@ -40,30 +39,29 @@ SPAMASSASSIN_CONTACT_ADDRESS?= The administrator of that system
USERS?= spamd
GROUPS?= spamd
CONFIGURE_ARGS= SYSCONFDIR="${PREFIX}/etc" \
CONTACT_ADDRESS="${CONTACT_ADDRESS}" \
CONTACT_ADDRESS="${SPAMASSASSIN_CONTACT_ADDRESS}" \
LOCALSTATEDIR="${DBDIR}/spamassassin" \
BUILD_SPAMC=yes
OPTIONS_DEFINE= AS_ROOT GNUPG IPV6 SSL UPDATE_AND_COMPILE
OPTIONS_DEFINE= AS_ROOT GNUPG SSL UPDATE_AND_COMPILE
OPTIONS_GROUP= DATABASE PLUGINS
OPTIONS_GROUP_DATABASE= MYSQL PGSQL
OPTIONS_GROUP_PLUGINS= DCC DKIM PYZOR RAZOR RELAY_COUNTRY SPF_QUERY
OPTIONS_DEFAULT=AS_ROOT DKIM GNUPG RAZOR SSL UPDATE_AND_COMPILE
OPTIONS_DEFAULT=AS_ROOT GNUPG SSL UPDATE_AND_COMPILE
AS_ROOT_DESC= Run spamd as root (recommended)
GNUPG_DESC= Install GnuPG (for sa-update, optional)
IPV6_DESC= IPv6 sockets support
SSL_DESC= Build spamd/spamc with SSL support
UPDATE_AND_COMPILE_DESC= Download and compile rulesets (recommended)
DATABASE_DESC= Optional user-config database backends
DATABASE_DESC= Optional user-config/bayes database backends
PLUGINS_DESC= Optional SpamAssassin plugins
DCC_DESC= Add DCC support (mail/dcc-dccd)
DKIM_DESC= DKIM/DomainKeys Identified Mail (mail/p5-Mail-DKIM)
PYZOR_DESC= Add Pyzor support (mail/pyzor)
RAZOR_DESC= Add Vipul's Razor support (mail/razor-agents)
RELAY_COUNTRY_DESC= Relay country support (net/p5-IP-Country)
RELAY_COUNTRY_DESC= Relay country support (net/p5-Geo-IP)
SPF_QUERY_DESC= Add SPF query support (mail/p5-Mail-SPF)
SUB_FILES= pkg-message
@ -75,12 +73,11 @@ DKIM_RUN_DEPENDS= p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
p5-Mail-DKIM>=0.37:${PORTSDIR}/mail/p5-Mail-DKIM \
p5-Crypt-OpenSSL-RSA>=0.26_1:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA
GNUPG_RUN_DEPENDS= gnupg1>=1.4.7:${PORTSDIR}/security/gnupg1
IPV6_RUN_DEPENDS= p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6
MYSQL_RUN_DEPENDS= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
PGSQL_RUN_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
PYZOR_RUN_DEPENDS= pyzor:${PORTSDIR}/mail/pyzor
RAZOR_RUN_DEPENDS= razor-agents>=2.84:${PORTSDIR}/mail/razor-agents
RELAY_COUNTRY_RUN_DEPENDS= p5-IP-Country>=0:${PORTSDIR}/net/p5-IP-Country
RELAY_COUNTRY_RUN_DEPENDS= p5-Geo-IP>=0:${PORTSDIR}/net/p5-Geo-IP
SPF_QUERY_RUN_DEPENDS= p5-Mail-SPF>=0:${PORTSDIR}/mail/p5-Mail-SPF
SSL_USE= OPENSSL=yes

View File

@ -15,8 +15,9 @@ You should complete the following post-installation tasks:
spamd_enable="YES"
SECURITY NOTE:
Unless you deselected the default AS_ROOT, spamd will be running
as root. If you wish to change this, add the following to /etc/rc.conf:
spamd_flags="-u spamd -H /var/spool/spamd"
By default, spamd runs as root (the AS_ROOT option). If you wish
to change this, add the following to /etc/rc.conf:
spamd_flags="-u spamd -H /var/spool/spamd"
==========================================================================

View File

@ -18,6 +18,10 @@
#
# spamd_flags="-u USER [-H /path/to/home... we suggest /var/spool/spamd]"
#
# To keep your user-config in a SQL database, use
#
# spamd_flags="-Q"
#
. /etc/rc.subr
@ -29,11 +33,11 @@ load_rc_config $name
# Set defaults
: ${spamd_enable:="NO"}
: ${spamd_flags="-c %%SQL_FLAG%% %%RUN_AS_USER%%"}
: ${spamd_flags="%%SQL_FLAG%% %%RUN_AS_USER%%"}
pidfile=${spamd_pidfile:-"/var/run/${name}/${name}.pid"}
command=%%PREFIX%%/bin/${name}
command_args="-d -r ${pidfile}"
command_args="-d -r -c ${pidfile}"
required_dirs=%%PREFIX%%/share/spamassassin
run_rc_command "$1"