mirror of
https://git.freebsd.org/ports.git
synced 2025-07-16 08:49:15 -04:00
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.
27 lines
524 B
Bash
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
|