/[gentoo-x86]/eclass/vdr-plugin.eclass
Gentoo

Diff of /eclass/vdr-plugin.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.14
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.12 2006/02/03 21:18:52 zzam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/vdr-plugin.eclass,v 1.14 2006/03/14 16:03:01 zzam Exp $
4# 4#
5# Author: 5# Author:
6# Matthias Schwarzott <zzam@gentoo.org> 6# Matthias Schwarzott <zzam@gentoo.org>
7 7
8# vdr-plugin.eclass 8# vdr-plugin.eclass
181 181
182 for f in ${FILESDIR}/confd-${PV} ${FILESDIR}/confd; do 182 for f in ${FILESDIR}/confd-${PV} ${FILESDIR}/confd; do
183 if [[ -f "${f}" ]]; then 183 if [[ -f "${f}" ]]; then
184 insinto /etc/conf.d 184 insinto /etc/conf.d
185 newins "${f}" vdr.${VDRPLUGIN} 185 newins "${f}" vdr.${VDRPLUGIN}
186 VDR_PLUGIN_CONFIG_FILE_INSTALLED=1
186 break 187 break
187 fi 188 fi
188 done 189 done
189 190
190 for f in ${FILESDIR}/rc-addon-${PV}.sh ${FILESDIR}/rc-addon.sh; do 191 for f in ${FILESDIR}/rc-addon-${PV}.sh ${FILESDIR}/rc-addon.sh; do
192 insinto "${VDR_RC_DIR}" 193 insinto "${VDR_RC_DIR}"
193 newins "${f}" plugin-${VDRPLUGIN}.sh 194 newins "${f}" plugin-${VDRPLUGIN}.sh
194 break 195 break
195 fi 196 fi
196 done 197 done
198
199 if which md5sum >/dev/null 2>&1; then
200 cd ${S}
201 insinto /usr/lib/vdr/checksums
202 (
203 cd ${ROOT}${VDR_INCLUDE_DIR}/vdr
204 md5sum *.h libsi/*.h|sort --key=2
205 ) > header-md5-${PN}
206 doins header-md5-${PN}
207 fi
197} 208}
198 209
199vdr-plugin_pkg_postinst() { 210vdr-plugin_pkg_postinst() {
200 update_vdrplugindb 211 update_vdrplugindb
201 einfo 212 einfo
202 einfo "The vdr plugin ${VDRPLUGIN} has now been installed." 213 einfo "The vdr plugin ${VDRPLUGIN} has now been installed."
203 einfo "To activate execute the following command:" 214 einfo "To activate execute the following command:"
204 einfo 215 einfo
205 einfo " emerge --config ${PN}" 216 einfo " emerge --config ${PN}"
206 einfo 217 einfo
218 if [[ -n "${VDR_PLUGIN_CONFIG_FILE_INSTALLED}" ]]; then
219 einfo "And have a look at the config-file"
220 einfo "/etc/conf.d/vdr.${VDRPLUGIN}"
221 einfo
222 fi
207} 223}
208 224
209vdr-plugin_pkg_postrm() { 225vdr-plugin_pkg_postrm() {
210 remove_vdrplugindb 226 remove_vdrplugindb
211} 227}

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20