View | Details | Raw Unified | Return to bug 152365 | Differences between
and this patch

Collapse All | Expand All

(-)assp.new/Makefile (-4 / +4 lines)
Lines 2-12 Link Here
2
# Date created:				16 May 2005
2
# Date created:				16 May 2005
3
# Whom:					J.R. Oldroyd <fbsd@opal.com>
3
# Whom:					J.R. Oldroyd <fbsd@opal.com>
4
#
4
#
5
# $FreeBSD: ports/mail/assp/Makefile,v 1.29 2010/12/12 02:41:17 pgollucci Exp $
5
# $FreeBSD: ports/mail/assp/Makefile,v 1.27 2010/09/21 07:56:37 mm Exp $
6
#
6
#
7
7
8
PORTNAME=	assp
8
PORTNAME=	assp
9
PORTVERSION=	1.8.1.6
9
PORTVERSION=	1.8.1.5
10
CATEGORIES=	mail
10
CATEGORIES=	mail
11
MASTER_SITES=	SF/${PORTNAME}/ASSP%20Installation/${PORTNAME:U}%20${PORTVERSION}/
11
MASTER_SITES=	SF/${PORTNAME}/ASSP%20Installation/${PORTNAME:U}%20${PORTVERSION}/
12
DISTNAME=	${PORTNAME:U}_${PORTVERSION}-Install
12
DISTNAME=	${PORTNAME:U}_${PORTVERSION}-Install
Lines 29-35 Link Here
29
29
30
PLIST_SUB=	ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}"
30
PLIST_SUB=	ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}"
31
31
32
SUB_FILES=	assp.8 assplog.8 assplog.pl periodic-assp
32
SUB_FILES=	assp.8 assplog.8 assplog.pl periodic-assp.sh
33
SUB_LIST=	ASSP_USER="${ASSP_USER}" ASSP_GROUP="${ASSP_GROUP}" \
33
SUB_LIST=	ASSP_USER="${ASSP_USER}" ASSP_GROUP="${ASSP_GROUP}" \
34
		ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" \
34
		ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" \
35
		DATADIR="${DATADIR}" PERL="${PERL}"
35
		DATADIR="${DATADIR}" PERL="${PERL}"
Lines 181-187 Link Here
181
	${LN} -s ${ASSP_LOG} ${ASSP_HOME}/logs
181
	${LN} -s ${ASSP_LOG} ${ASSP_HOME}/logs
182
182
183
	${MKDIR} ${PREFIX}/etc/periodic/daily
183
	${MKDIR} ${PREFIX}/etc/periodic/daily
184
	${INSTALL_SCRIPT} ${WRKDIR}/periodic-assp ${PREFIX}/etc/periodic/daily/510.assp
184
	${INSTALL_SCRIPT} ${WRKDIR}/periodic-assp.sh ${PREFIX}/etc/periodic/daily/510.assp
185
185
186
.if !defined(NOPORTDOCS)
186
.if !defined(NOPORTDOCS)
187
	${MKDIR} ${DOCSDIR}
187
	${MKDIR} ${DOCSDIR}
(-)assp.new/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (ASSP_1.8.1.6-Install.zip) = ca0c5aef74964b2eec8d687dfe7b67a786600a0b9564d3b80d86de282ebb8a5a
1
MD5 (ASSP_1.8.1.5-Install.zip) = 0509a3fb76dd3c001e31bc96245e29f2
2
SIZE (ASSP_1.8.1.6-Install.zip) = 701752
2
SHA256 (ASSP_1.8.1.5-Install.zip) = 0c669679123e0f92e9c5c911fbc3b2a0ae898064f10d622b051cd1a8e41d63db
3
SIZE (ASSP_1.8.1.5-Install.zip) = 729697
(-)assp.new/files/periodic-assp.in (-31 lines)
Lines 1-31 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/assp/files/periodic-assp.in,v 1.1 2010/12/12 01:09:48 pgollucci Exp $
4
#
5
# Run ASSP's nightly housekeeping script, rebuildspamdb.pl
6
# Delete old ASSP log files
7
8
cd %%ASSP_HOME%%
9
10
if [ ! -f %%DATADIR%%/rebuildspamdb.pl ]
11
then
12
	echo "%%DATADIR%%/rebuildspamdb.pl does not exist"
13
	rc_spamdb=2
14
else
15
	echo ""
16
	echo "Running ASSP rebuildspamdb.pl:"
17
	%%PERL%% %%DATADIR%%/rebuildspamdb.pl && rc_spamdb=0 || rc_spamdb=3
18
	chown -R assp:assp %%DATADIR%%
19
fi
20
21
. /etc/rc.subr
22
name=assp
23
rcvar=`set_rcvar`
24
load_rc_config $name
25
: ${assp_logexpire="45"}
26
27
echo ""
28
echo "Removing old ASSP log files:"
29
find -L . -name '*.maillog.txt' -mtime +$assp_logexpire -exec ls -l {} \; -exec rm {} \;
30
31
exit $rc_spamdb
(-)assp.new/files/periodic-assp.sh.in (+1 lines)
Lines 15-20 Link Here
15
	echo ""
15
	echo ""
16
	echo "Running ASSP rebuildspamdb.pl:"
16
	echo "Running ASSP rebuildspamdb.pl:"
17
	%%PERL%% %%DATADIR%%/rebuildspamdb.pl && rc_spamdb=0 || rc_spamdb=3
17
	%%PERL%% %%DATADIR%%/rebuildspamdb.pl && rc_spamdb=0 || rc_spamdb=3
18
	chown -R assp:assp %%ASSP_HOME%%
18
fi
19
fi
19
20
20
. /etc/rc.subr
21
. /etc/rc.subr

Return to bug 152365