aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/3dm/pkg-install
blob: 394219c9560d6103b7b47f212dd1b736e34ada05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ "$2" != "PRE-INSTALL" ]; then
    exit 0
fi

#
# "3dm2" looks for the config file in /etc/3dm2, which is lame.  The file is
# placed in ${PREFIX}/etc/ (usually /usr/local/etc) and symlinked in /etc/3dm2
# so that the binary can find it.
#
    mkdir /etc/3dm2
    ln -s ${PKG_PREFIX}/etc/3dm2.conf /etc/3dm2/3dm2.conf
    ln -s ${PKG_PREFIX}/etc/3dm2.pem /etc/3dm2/3dm2.pem
exit 0