mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
26 lines
405 B
Bash
26 lines
405 B
Bash
#!/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
|
|
|