aboutsummaryrefslogtreecommitdiffstats
path: root/news/inn
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-09-24 20:44:26 +0800
committerdes <des@FreeBSD.org>2000-09-24 20:44:26 +0800
commitcbe3191d010a6def4bf927157cd74ce7cf1b6b6b (patch)
treee1822a9ef6848fd996251987129b0f73146eb914 /news/inn
parent00525b5084fb472d28a83d1f861aba2140fd3b40 (diff)
downloadfreebsd-ports-gnome-cbe3191d010a6def4bf927157cd74ce7cf1b6b6b.tar.gz
freebsd-ports-gnome-cbe3191d010a6def4bf927157cd74ce7cf1b6b6b.tar.zst
freebsd-ports-gnome-cbe3191d010a6def4bf927157cd74ce7cf1b6b6b.zip
Add forgotten post-install script
Diffstat (limited to 'news/inn')
-rw-r--r--news/inn/pkg-install27
1 files changed, 27 insertions, 0 deletions
diff --git a/news/inn/pkg-install b/news/inn/pkg-install
new file mode 100644
index 000000000000..a44c3c526e73
--- /dev/null
+++ b/news/inn/pkg-install
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+PKGNAME=$1
+
+case $2 in
+ PRE-INSTALL)
+ ;;
+ POST-INSTALL)
+ NEWSBASE=${PREFIX:-/usr/local}/news
+ install -d -o news -g news -m 755 \
+ ${NEWSBASE}/run \
+ ${NEWSBASE}/spool \
+ ${NEWSBASE}/spool/archive \
+ ${NEWSBASE}/spool/articles \
+ ${NEWSBASE}/spool/incoming \
+ ${NEWSBASE}/spool/innfeed \
+ ${NEWSBASE}/spool/outgoing \
+ ${NEWSBASE}/spool/overview \
+ ${NEWSBASE}/spool/tmp
+ ;;
+ *)
+ echo "Unexpected Argument $2!!!"
+ exit 1
+ ;;
+esac
+exit 0
+