#!/bin/sh # $FreeBSD: head/astro/boinc-astropulse/files/pkg-install.in 340719 2014-01-22 15:52:06Z mat $ if [ "$2" != "POST-INSTALL" ]; then exit 0 fi F=%%BOINC_CLIENT_HOME%%/projects/%%SETI_SITE%%/app_info.xml if [ ! -f $F ]; then echo Creating new $F echo "" > $F echo "" >> $F chown %%BOINC_CLIENT_USER%%:%%BOINC_CLIENT_GROUP%% $F fi echo Adding astropulse_v6 lines to $F ed - $F < astropulse_v6 %%AP_BINARY%% astropulse_v6 %%AP_VERSION%% %%AP_BINARY%% . w q EOF