aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2004-01-03 07:24:15 +0800
committersergei <sergei@FreeBSD.org>2004-01-03 07:24:15 +0800
commit5f8034f1e1df4f2cd97c74559477d4930db1a0e2 (patch)
tree172f99a8cc9d5bde70b1a77d4de5c9ead0cbe4c6
parent665c1ea0bfd8d26ce5918e82618663a0ef21d972 (diff)
downloadfreebsd-ports-graphics-5f8034f1e1df4f2cd97c74559477d4930db1a0e2.tar.gz
freebsd-ports-graphics-5f8034f1e1df4f2cd97c74559477d4930db1a0e2.tar.zst
freebsd-ports-graphics-5f8034f1e1df4f2cd97c74559477d4930db1a0e2.zip
- chown(1) SPOOLDIR at the install time
Submitted by: maintainer
-rw-r--r--mail/qmail-scanner/files/patch-qmail-scanner-queue.template6
-rw-r--r--mail/qmail-scanner/pkg-install1
-rw-r--r--mail/qmail-scanner1/files/patch-qmail-scanner-queue.template6
-rw-r--r--mail/qmail-scanner1/pkg-install1
4 files changed, 8 insertions, 6 deletions
diff --git a/mail/qmail-scanner/files/patch-qmail-scanner-queue.template b/mail/qmail-scanner/files/patch-qmail-scanner-queue.template
index 90136d5f21a..de31d20e42b 100644
--- a/mail/qmail-scanner/files/patch-qmail-scanner-queue.template
+++ b/mail/qmail-scanner/files/patch-qmail-scanner-queue.template
@@ -21,12 +21,12 @@
#Array of local domains that are checked against for
#deciding whether or not to send recipient alerts to
-@@ -294,6 +300,7 @@ if (! -d "$scandir/tmp") {
+@@ -294,6 +300,7 @@
}
-
+
my $quarantine_event=0;
+my $spam_event=0;
-
+
my $file_id = &uniq_id();
@@ -415,7 +422,18 @@ eval {
diff --git a/mail/qmail-scanner/pkg-install b/mail/qmail-scanner/pkg-install
index 414c1f77bb1..e861383a19e 100644
--- a/mail/qmail-scanner/pkg-install
+++ b/mail/qmail-scanner/pkg-install
@@ -30,6 +30,7 @@ POST-INSTALL)
${MKDIR} -p ${SPOOLDIR}/tmp
# Mod and owner
+ ${CHOWN} -R ${GU_NAME}:${GU_NAME} ${SPOOLDIR}
${CHOWN} ${GU_NAME}:${GU_NAME} ${PREFIX}/bin/qmail-scanner-queue.pl
${CHMOD} 4755 ${PREFIX}/bin/qmail-scanner-queue.pl
diff --git a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template b/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template
index 90136d5f21a..de31d20e42b 100644
--- a/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template
+++ b/mail/qmail-scanner1/files/patch-qmail-scanner-queue.template
@@ -21,12 +21,12 @@
#Array of local domains that are checked against for
#deciding whether or not to send recipient alerts to
-@@ -294,6 +300,7 @@ if (! -d "$scandir/tmp") {
+@@ -294,6 +300,7 @@
}
-
+
my $quarantine_event=0;
+my $spam_event=0;
-
+
my $file_id = &uniq_id();
@@ -415,7 +422,18 @@ eval {
diff --git a/mail/qmail-scanner1/pkg-install b/mail/qmail-scanner1/pkg-install
index 414c1f77bb1..e861383a19e 100644
--- a/mail/qmail-scanner1/pkg-install
+++ b/mail/qmail-scanner1/pkg-install
@@ -30,6 +30,7 @@ POST-INSTALL)
${MKDIR} -p ${SPOOLDIR}/tmp
# Mod and owner
+ ${CHOWN} -R ${GU_NAME}:${GU_NAME} ${SPOOLDIR}
${CHOWN} ${GU_NAME}:${GU_NAME} ${PREFIX}/bin/qmail-scanner-queue.pl
${CHMOD} 4755 ${PREFIX}/bin/qmail-scanner-queue.pl