forked from Lainports/freebsd-ports
- Cleanup Makefile to use modern constructs (COPYTREE_SHARE, PORTDOCS, etc) - Fix typos in pkg-message - Cleanup properly in pkg-deinstall PR: ports/129185 (based upon) Submitted by: l.messner@physik.tu-berlin.de Approved by: maintainer timeout (3+ months)
14 lines
315 B
Bash
14 lines
315 B
Bash
#!/bin/sh
|
|
# $FreeBSD:
|
|
|
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
|
|
|
RUNDIR=%%PUPPET_RUNDIR%%
|
|
WORKDIR=%%PUPPET_WORKDIR%%
|
|
|
|
if [ "$2" = "POST-DEINSTALL" ]; then
|
|
echo "=> Deleting ${RUNDIR} if empty..."
|
|
rm -d ${RUNDIR} 2>/dev/null || true
|
|
echo "=> Deleting ${WORKDIR} if empty..."
|
|
rm -d ${WORKDIR} 2>/dev/null || true
|
|
fi
|