mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Add forgotten post-install script
This commit is contained in:
parent
ed91215abe
commit
79025bdeb3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33068
27
news/inn-current/pkg-install
Normal file
27
news/inn-current/pkg-install
Normal file
@ -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
|
||||
|
27
news/inn/pkg-install
Normal file
27
news/inn/pkg-install
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user