diff options
author | 2007-06-02 15:07:43 +0000 | |
---|---|---|
committer | 2007-06-02 15:07:43 +0000 | |
commit | 2cf3e6032fd6cdcb73f36b053b017c608016ba7b (patch) | |
tree | a58954a1571a7170f2060fe09ea089ee09e88f01 /eclass | |
parent | Stable on amd64 wrt bug 179638 (diff) | |
download | gentoo-2-2cf3e6032fd6cdcb73f36b053b017c608016ba7b.tar.gz gentoo-2-2cf3e6032fd6cdcb73f36b053b017c608016ba7b.tar.bz2 gentoo-2-2cf3e6032fd6cdcb73f36b053b017c608016ba7b.zip |
Moved checksum creation to own function.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/vdr-plugin.eclass | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index c45e766f1951..ccf3b1a675fb 100644 --- a/eclass/vdr-plugin.eclass +++ b/eclass/vdr-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.44 2007/04/23 07:17:42 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.45 2007/06/02 15:07:43 zzam Exp $ # # Author: # Matthias Schwarzott <zzam@gentoo.org> @@ -139,6 +139,27 @@ delete_orphan_plugindb_file() { rm ${DB_FILE} } + +create_header_checksum_file() +{ + # Danger: Not using $ROOT here, as compile will also not use it !!! + # If vdr in $ROOT and / differ, plugins will not run anyway + + insinto ${VDR_CHECKSUM_DIR} + if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then + newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN} + else + if type -p md5sum >/dev/null 2>&1; then + cd ${S} + ( + cd ${VDR_INCLUDE_DIR} + md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 + ) > header-md5-${PN} + doins header-md5-${PN} + fi + fi +} + vdr-plugin_pkg_setup() { # -fPIC is needed for shared objects on some platforms (amd64 and others) append-flags -fPIC @@ -346,25 +367,7 @@ vdr-plugin_src_install() { newins "${VDR_RCADDON_FILE}" plugin-${VDRPLUGIN}.sh fi - - - # Danger: Not using $ROOT here, as compile will also not use it !!! - # If vdr in $ROOT and / differ, plugins will not run anyway - - insinto ${VDR_CHECKSUM_DIR} - if [[ -f ${VDR_CHECKSUM_DIR}/header-md5-vdr ]]; then - newins ${VDR_CHECKSUM_DIR}/header-md5-vdr header-md5-${PN} - else - if type -p md5sum >/dev/null 2>&1; then - cd ${S} - ( - cd ${VDR_INCLUDE_DIR} - md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 - ) > header-md5-${PN} - doins header-md5-${PN} - fi - fi - + create_header_checksum_file create_plugindb_file } |