mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
753ed9d7e7
WWW: http://www.encap.org/epkg/ PR: ports/97210 Submitted by: Jim Pirzyk <pirzyk@freebsd.org>
26 lines
548 B
Bash
26 lines
548 B
Bash
#!/bin/sh
|
|
|
|
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
|
|
if [ ! -d "${PKG_PREFIX}/etc" ]; then
|
|
echo "creating directory: ${PKG_PREFIX}/etc";
|
|
mkdir -p "${PKG_PREFIX}/etc";
|
|
fi
|
|
|
|
if [ ! -f "${PKG_PREFIX}/etc/mkencap_environment" ]; then
|
|
echo "installing: ${PKG_PREFIX}/etc/mkencap_environment";
|
|
cp "${PKG_PREFIX}/etc/mkencap_environment.sample" "${PKG_PREFIX}/etc/mkencap_environment";
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|