freebsd-ports/news/leafnode/pkg-install
Christian Weisgerber 7c13b7541f * Update to upstream version 1.9.36, fixing download issues when filters
are configured.

* LOCALBASE -> PREFIX
* Fix extra files after uninstall
* Add "deinstall for good" instructions.
* Use the more efficient quickmkdir program from pkg-install.
* Move spooldir into ${PREFIX} and lockfile into ${SPOOLDIR}
  (compatibility hack for ports that aren't turned into packages to allow for
   continued use of /var/spool/news for ${SPOOLDIR} is in place)
* Execute pkg-install contents only once (in POST-INSTALL phase).

PR:		48750
Submitted by:	Matthias Andree <matthias.andree@web.de>
2003-02-27 18:40:30 +00:00

32 lines
797 B
Bash

#! /bin/sh
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
SPOOLDIR=${SPOOLDIR:=${PKG_PREFIX}/var/spool/leafnode}
LOCKFILE=${SPOOLDIR}/leaf.node/lock.file
mkdir -p `dirname $LOCKFILE`
mkdir -p $SPOOLDIR
mkdir -p $SPOOLDIR/failed.postings
mkdir -p $SPOOLDIR/leaf.node
mkdir -p $SPOOLDIR/message.id
mkdir -p $SPOOLDIR/interesting.groups
mkdir -p $SPOOLDIR/out.going
mkdir -p $SPOOLDIR/temp.files
chown news:news `dirname $LOCKFILE`
chown news:news $SPOOLDIR
chown news:news $SPOOLDIR/failed.postings
chown news:news $SPOOLDIR/leaf.node
chown news:news $SPOOLDIR/message.id
chown news:news $SPOOLDIR/interesting.groups
chown news:news $SPOOLDIR/out.going
chown news:news $SPOOLDIR/temp.files
${PKG_PREFIX}/sbin/quickmkdir
;;
*)
echo >&2 "Unknown argument in $0 $@"
exit 1
;;
esac