Add pkg-install, forgotten in previous commit.
This commit is contained in:
parent
77802af27f
commit
eb4e1e556b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36210
28
news/inn-stable/pkg-install
Normal file
28
news/inn-stable/pkg-install
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user