a3ec21852b
includes spaces. The content is changed but the previous commit is a few minutes before, don't bump PORTREVISION to avoid confusion.
25 lines
409 B
Bash
25 lines
409 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
case "${HOME}" in
|
|
"")
|
|
export POPFILE_USER_DEFAULT=/var/db/popfile
|
|
;;
|
|
*)
|
|
export POPFILE_USER_DEFAULT="${HOME}/.popfile"
|
|
;;
|
|
esac
|
|
|
|
die()
|
|
{
|
|
echo "$1"
|
|
exit 1
|
|
}
|
|
|
|
export POPFILE_ROOT=%%DATADIR%%
|
|
export POPFILE_USER=${POPFILE_USER:-${POPFILE_USER_DEFAULT}}
|
|
|
|
mkdir -p "${POPFILE_USER}" || die "mkdir ${POPFILE_USER} failed"
|
|
cd "${POPFILE_USER}"
|
|
%%DATADIR%%/popfile.pl >/dev/null 2>&1 &
|