diff options
Diffstat (limited to 'sysutils/3dm/pkg-install')
-rw-r--r-- | sysutils/3dm/pkg-install | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sysutils/3dm/pkg-install b/sysutils/3dm/pkg-install index 3cfdf38c2b69..9fa7acf24246 100644 --- a/sysutils/3dm/pkg-install +++ b/sysutils/3dm/pkg-install @@ -1,14 +1,15 @@ #!/bin/sh -if [ "$2" != "PRE-INSTALL" ]; then - exit 0 -fi - -# 3ware lamely hardcode the locations of various things +# 3ware hardcoded /etc/3dm2 into the binary, so we need to fake it +# in order to meet hier(9). +case $2 in +POST-INSTALL) mkdir /etc/3dm2 - mkdir -p ${PKG_PREFIX}/etc/3dm2/msg - ln -s ${PKG_PREFIX}/etc/3dm2/msg /etc/3dm2/msg ln -s ${PKG_PREFIX}/etc/3dm2/3dm2.conf /etc/3dm2/3dm2.conf ln -s ${PKG_PREFIX}/etc/3dm2/3dm2.pem /etc/3dm2/3dm2.pem + ;; +*) + ;; +esac exit 0 |