freebsd-ports/sysutils/samdruckerclientshell/files/999-samdrucker-client.in
Dan Langille e42f2c8636 Update to 0.0.2
* fixes url encoding issue which mangled 'pkg+http. to .pkg http'
* some comment typos fixed

In the port itself:

* patch /usr/local to %%PREFIX%% in upstream code
* use %%PREFIX%% in periodic script
* correct LICENSE_FILE
2020-01-12 15:13:50 +00:00

25 lines
359 B
Bash

#!/bin/sh -
#
# $FreeBSD$
#
if [ -r /etc/defaults/periodic.conf ]; then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
rc=0
case "${samdrucker_client_enable:-YES}" in
[Yy][Ee][Ss])
anticongestion
if ! %%PREFIX%%/bin/samdrucker.sh ; then
echo 'ouch, something went wrong with %%PREFIX%%/bin/samdrucker.sh'
rc=2
fi
;;
*)
;;
esac
exit $rc