summaryrefslogtreecommitdiffstats
path: root/news/leafnode/pkg-install
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-02-06 22:09:23 +0000
committerbrian <brian@FreeBSD.org>1998-02-06 22:09:23 +0000
commite5a7f3d4a6a47bf3a1aec192fea424863e1f76cb (patch)
tree64499887f2c3ec3023ff5f12c4aafdfab1e22b56 /news/leafnode/pkg-install
parent045ba27174115f747c5a5638fea14d1d62b7f03d (diff)
downloadFreeBSD-ports-e5a7f3d4a6a47bf3a1aec192fea424863e1f76cb.zip
FreeBSD-ports-e5a7f3d4a6a47bf3a1aec192fea424863e1f76cb.tar.gz
Make the package create the spool dirs
PR: 5629 Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Diffstat (limited to 'news/leafnode/pkg-install')
-rw-r--r--news/leafnode/pkg-install13
1 files changed, 13 insertions, 0 deletions
diff --git a/news/leafnode/pkg-install b/news/leafnode/pkg-install
new file mode 100644
index 0000000..8642cd4
--- /dev/null
+++ b/news/leafnode/pkg-install
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ x$2 != xPOST-INSTALL ]; then
+ exit
+fi
+SPOOLDIR=/var/spool/news
+export SPOOLDIR
+mkdir -p $SPOOLDIR
+csh -c 'mkdir -p $SPOOLDIR/{message.id,interesting.groups,out.going}'
+echo This is actually quite fast, for _small_ servers.
+csh -c 'mkdir -p $SPOOLDIR/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
+{0,1,2,3,4,5,6,7,8,9}'
+chown -R news.news $SPOOLDIR
+chmod 2750 $SPOOLDIR
OpenPOWER on IntegriCloud