FreeBSD Bugzilla – Attachment 111142 Details for
Bug 152365
mail/assp: Periodic script resets file ownership to root on assp db
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
assp.diff
assp.diff (text/x-patch), 3.13 KB, created by
rnejdl
on 2010-12-21 18:19:27 UTC
(
hide
)
Description:
assp.diff
Filename:
MIME Type:
Creator:
rnejdl
Created:
2010-12-21 18:19:27 UTC
Size:
3.13 KB
patch
obsolete
>diff -ruN assp/Makefile assp.new/Makefile >--- assp/Makefile 2010-12-12 09:04:30.000000000 -0600 >+++ assp.new/Makefile 2010-12-09 22:47:59.000000000 -0600 >@@ -2,11 +2,11 @@ > # Date created: 16 May 2005 > # Whom: J.R. Oldroyd <fbsd@opal.com> > # >-# $FreeBSD: ports/mail/assp/Makefile,v 1.29 2010/12/12 02:41:17 pgollucci Exp $ >+# $FreeBSD: ports/mail/assp/Makefile,v 1.27 2010/09/21 07:56:37 mm Exp $ > # > > PORTNAME= assp >-PORTVERSION= 1.8.1.6 >+PORTVERSION= 1.8.1.5 > CATEGORIES= mail > MASTER_SITES= SF/${PORTNAME}/ASSP%20Installation/${PORTNAME:U}%20${PORTVERSION}/ > DISTNAME= ${PORTNAME:U}_${PORTVERSION}-Install >@@ -29,7 +29,7 @@ > > PLIST_SUB= ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" > >-SUB_FILES= assp.8 assplog.8 assplog.pl periodic-assp >+SUB_FILES= assp.8 assplog.8 assplog.pl periodic-assp.sh > SUB_LIST= ASSP_USER="${ASSP_USER}" ASSP_GROUP="${ASSP_GROUP}" \ > ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" \ > DATADIR="${DATADIR}" PERL="${PERL}" >@@ -181,7 +181,7 @@ > ${LN} -s ${ASSP_LOG} ${ASSP_HOME}/logs > > ${MKDIR} ${PREFIX}/etc/periodic/daily >- ${INSTALL_SCRIPT} ${WRKDIR}/periodic-assp ${PREFIX}/etc/periodic/daily/510.assp >+ ${INSTALL_SCRIPT} ${WRKDIR}/periodic-assp.sh ${PREFIX}/etc/periodic/daily/510.assp > > .if !defined(NOPORTDOCS) > ${MKDIR} ${DOCSDIR} >diff -ruN assp/distinfo assp.new/distinfo >--- assp/distinfo 2010-12-12 09:04:30.000000000 -0600 >+++ assp.new/distinfo 2010-12-09 22:48:21.000000000 -0600 >@@ -1,2 +1,3 @@ >-SHA256 (ASSP_1.8.1.6-Install.zip) = ca0c5aef74964b2eec8d687dfe7b67a786600a0b9564d3b80d86de282ebb8a5a >-SIZE (ASSP_1.8.1.6-Install.zip) = 701752 >+MD5 (ASSP_1.8.1.5-Install.zip) = 0509a3fb76dd3c001e31bc96245e29f2 >+SHA256 (ASSP_1.8.1.5-Install.zip) = 0c669679123e0f92e9c5c911fbc3b2a0ae898064f10d622b051cd1a8e41d63db >+SIZE (ASSP_1.8.1.5-Install.zip) = 729697 >diff -ruN assp/files/periodic-assp.in assp.new/files/periodic-assp.in >--- assp/files/periodic-assp.in 2010-12-11 19:09:48.000000000 -0600 >+++ assp.new/files/periodic-assp.in 1969-12-31 18:00:00.000000000 -0600 >@@ -1,31 +0,0 @@ >-#!/bin/sh >-# >-# $FreeBSD: ports/mail/assp/files/periodic-assp.in,v 1.1 2010/12/12 01:09:48 pgollucci Exp $ >-# >-# Run ASSP's nightly housekeeping script, rebuildspamdb.pl >-# Delete old ASSP log files >- >-cd %%ASSP_HOME%% >- >-if [ ! -f %%DATADIR%%/rebuildspamdb.pl ] >-then >- echo "%%DATADIR%%/rebuildspamdb.pl does not exist" >- rc_spamdb=2 >-else >- echo "" >- echo "Running ASSP rebuildspamdb.pl:" >- %%PERL%% %%DATADIR%%/rebuildspamdb.pl && rc_spamdb=0 || rc_spamdb=3 >- chown -R assp:assp %%DATADIR%% >-fi >- >-. /etc/rc.subr >-name=assp >-rcvar=`set_rcvar` >-load_rc_config $name >-: ${assp_logexpire="45"} >- >-echo "" >-echo "Removing old ASSP log files:" >-find -L . -name '*.maillog.txt' -mtime +$assp_logexpire -exec ls -l {} \; -exec rm {} \; >- >-exit $rc_spamdb >diff -ruN assp/files/periodic-assp.sh.in assp.new/files/periodic-assp.sh.in >--- assp/files/periodic-assp.sh.in 2010-03-26 19:13:10.000000000 -0500 >+++ assp.new/files/periodic-assp.sh.in 2010-12-21 12:02:03.000000000 -0600 >@@ -15,6 +15,7 @@ > echo "" > echo "Running ASSP rebuildspamdb.pl:" > %%PERL%% %%DATADIR%%/rebuildspamdb.pl && rc_spamdb=0 || rc_spamdb=3 >+ chown -R assp:assp %%ASSP_HOME%% > fi > > . /etc/rc.subr
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 152365
: 111142 |
111143