aboutsummaryrefslogtreecommitdiff
path: root/news/inn-stable/pkg-install
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-12-21 20:43:52 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-12-21 20:43:52 +0000
commiteb4e1e556bee575659eec8b11b8ebd929b74beb9 (patch)
tree820df310f11f5324ab79ac510d8eafa5dd763923 /news/inn-stable/pkg-install
parent77802af27fd3879540bdc35d216617cbb134197d (diff)
downloadports-eb4e1e556bee575659eec8b11b8ebd929b74beb9.tar.gz
ports-eb4e1e556bee575659eec8b11b8ebd929b74beb9.zip
Add pkg-install, forgotten in previous commit.
Notes
Notes: svn path=/head/; revision=36210
Diffstat (limited to 'news/inn-stable/pkg-install')
-rw-r--r--news/inn-stable/pkg-install28
1 files changed, 28 insertions, 0 deletions
diff --git a/news/inn-stable/pkg-install b/news/inn-stable/pkg-install
new file mode 100644
index 000000000000..ccfece42914a
--- /dev/null
+++ b/news/inn-stable/pkg-install
@@ -0,0 +1,28 @@
+#!/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/incoming/bad \
+ ${NEWSBASE}/spool/innfeed \
+ ${NEWSBASE}/spool/outgoing \
+ ${NEWSBASE}/spool/overview \
+ ${NEWSBASE}/spool/tmp
+ ;;
+ *)
+ echo "Unexpected Argument $2!!!"
+ exit 1
+ ;;
+esac
+exit 0
+