diff options
Diffstat (limited to 'news/diablo/pkg-install')
-rw-r--r-- | news/diablo/pkg-install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/news/diablo/pkg-install b/news/diablo/pkg-install new file mode 100644 index 000000000000..3decfb9a7e50 --- /dev/null +++ b/news/diablo/pkg-install @@ -0,0 +1,25 @@ +#!/bin/sh + +PKGNAME=$1 + +case $2 in + PRE-INSTALL) + ;; + POST-INSTALL) + NEWSBASE=${PREFIX:-/usr/local}/news + install -d \ + ${NEWSBASE}/dqueue \ + ${NEWSBASE}/spool \ + ${NEWSBASE}/spool/news \ + ${NEWSBASE}/spool/cache \ + ${NEWSBASE}/spool/group \ + ${NEWSBASE}/spool/postq + chown -R news:news ${NEWSBASE} + ;; + *) + echo "Unexpected Argument $2!!!" + exit 1 + ;; +esac +exit 0 + |