1
0
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:
Dag-Erling Smørgrav 2000-09-24 12:44:26 +00:00
parent ed91215abe
commit 79025bdeb3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33068
2 changed files with 54 additions and 0 deletions

View 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
View 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