freebsd-ports/java/jdk16/files/pkg-install.in
Greg Lewis 4bb0df0d3b . Update to 1.4.1p4.
. Use ${PTHREAD_LIBS} rather than -pthread or -lc_r.
. Install system preferences to avoid annoying and constant error messages.

Approved by:	phantom (the update, anyway)
2003-10-11 05:16:50 +00:00

19 lines
642 B
Bash

#!/bin/sh
# System preference location
PREFS_LOCATION=%%JRE_HOME%%
# Set up system preferences during post install
if [ "$2" = "POST-INSTALL" ]; then
if [ ! -d "${PREFS_LOCATION}/.systemPrefs" ] ; then
mkdir -m 755 "${PREFS_LOCATION}/.systemPrefs"
fi
if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
fi
if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
fi
fi