ports/www/drupal-pubcookie/files/pkg-install.in
Brooks Davis 310ae6e33c The pubcookie Drupal module is an external authentication module that
allows users to authenticate to Drupal using pubcookie.  Pubcookie is
used single sign-on to web-based applications at a site.

The module also provide LDAP integration to populate user profiles as
users register.
2006-02-10 06:23:15 +00:00

27 lines
524 B
Bash

#!/bin/sh
PREFIX=%%PREFIX%%
CONF_FILES="%%CONF_FILES%%"
CONF_DIRS="%%CONF_DIRS%%"
case $2 in
POST-INSTALL)
for cfgfile in "${CONF_FILES}"; do
if [ ! -e ${PREFIX}/${cfgfile} ]; then
cp ${PREFIX}/${cfgfile}-dist ${PREFIX}/${cfgfile}
fi
done
;;
DEINSTALL)
for cfgfile in "${CONF_FILES}"; do
if cmp -s ${PREFIX}/${cfgfile} ${PREFIX}/${cfgfile}-dist ]; then
rm ${PREFIX}/${cfgfile}
fi
done
;;
POST-DEINSTALL)
for cfgdir in "${CONF_DIRS}"; do
rmdir ${PREFIX}/${cfgdir} 2> /dev/null || true
done
;;
esac