updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / vdr-xineliboutput-cvs / vdr-xineliboutput-cvs.install
blob033928499b875c9f830b98f602df539c432b696e
1 # vdr-xineliboutput-cvs.install
3 # Assumed VDR directory environment
4 VDR_USER=vdr
5 CONFDIR=/etc/vdr
6 PLUGINS_CONFDIR=${CONFDIR}/plugins
8 # Package-specific
9 PKG_NAME=vdr-xineliboutput-cvs
10 PLUGIN_NAME=xineliboutput
11 THIS_PLUGIN_CONFDIR=${PLUGINS_CONFDIR}/${PLUGIN_NAME}
13 ## arg 1:  the new package version
14 post_install() {
15   echo "**************************************************************************"
16   echo '  Configuration files are installed in "'${THIS_PLUGIN_CONFDIR}'"'
17   if getent passwd ${VDR_USER} >/dev/null; then
18     chown ${VDR_USER}:${VDR_USER} ${PLUGINS_CONFDIR}
19     chown -R ${VDR_USER}:${VDR_USER} ${THIS_PLUGIN_CONFDIR}
20   fi
21   echo '  Example remote.conf files are in "/usr/share/doc/'${PKG_NAME}'"'
22   if getent passwd ${VDR_USER} >/dev/null; then
23     echo '  Copy the chosen file to "'${CONFDIR}'/remote.conf" and chown to "'${VDR_USER}':'${VDR_USER}'"'
24   else
25     echo '  Copy the chosen file to "'${CONFDIR}'/remote.conf"'
26   fi
27   echo "**************************************************************************"
30 ## arg 1:  the new package version
31 ## arg 2:  the old package version
32 post_upgrade() {
33   post_install $1