From 678d5aef8748d63c8589d4ec7b32381d8920b866 Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Wed, 15 Mar 2006 09:48:53 +0000 Subject: [PATCH] keep checksum sort order consistent with startskript - use existing file if possible --- eclass/vdr-plugin.eclass | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index 8bc7200a237c..a4b8f1c8ebb0 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.15 2006/03/15 09:14:37 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.16 2006/03/15 09:48:53 zzam Exp $ # # Author: # Matthias Schwarzott @@ -199,14 +199,18 @@ vdr-plugin_src_install() { fi done - if which md5sum >/dev/null 2>&1; then - cd ${S} - insinto /usr/lib/vdr/checksums - ( - cd ${ROOT}${VDR_INCLUDE_DIR}/vdr - md5sum *.h libsi/*.h|sort --key=2 - ) > header-md5-${PN} - doins header-md5-${PN} + insinto /usr/lib/vdr/checksums + if [[ -f ${ROOT}/usr/lib/vdr/checksums/header-md5-vdr ]]; then + newins ${ROOT}/usr/lib/vdr/checksums/header-md5-vdr header-md5-${PN} + else + if which md5sum >/dev/null 2>&1; then + cd ${S} + ( + cd ${ROOT}${VDR_INCLUDE_DIR}/vdr + md5sum *.h libsi/*.h|LC_ALL=C sort --key=2 + ) > header-md5-${PN} + doins header-md5-${PN} + fi fi } -- 2.26.2