From 3ae3925c9c9797e49fed5b277412af198788d33d Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 21 Apr 2010 16:09:47 +0200 Subject: [PATCH] clockspeed: improved to only build and install man pages if groff package is available --- network/clockspeed/clockspeed.conf | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/network/clockspeed/clockspeed.conf b/network/clockspeed/clockspeed.conf index b33cae856..6252ea413 100644 --- a/network/clockspeed/clockspeed.conf +++ b/network/clockspeed/clockspeed.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../clockspeed/clockspeed.conf -# Copyright (C) 2008 The OpenSDE Project +# Copyright (C) 2008 - 2010 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -13,7 +13,7 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -makeopt="$makeopt it leapsecs.dat" +makeopt="$makeopt sntpclock taiclock taiclockd clockspeed clockadd clockview leapsecs.dat" clockspeed_config() { echo $CC > conf-cc @@ -32,7 +32,7 @@ clockspeed_install() { [[ $arch != x86* ]] && [[ $file = clockspeed* ]] && continue mkdir -p $root/$prefix/$dir cp $file $root/$prefix/$dir/$file - done < <( grep "c(.*man\|c(.*bin" hier.c | cut -d'"' --output-delimiter ' ' -f 2,4 ) + done < <( grep "$installfiles" hier.c | cut -d'"' --output-delimiter ' ' -f 2,4 ) # install leapsecs.dat mkdir -p $root/var/state/clockspeed @@ -51,3 +51,11 @@ hook_add premake 5 'clockspeed_config' hook_add postmake 5 "clockspeed_install" hook_add preconf 5 "cp -v $( match_source_file -p leapsecs ) leapsecs.dat" + +# by default install binaries only +installfiles="c(.*bin" +# only build and install man pages if groff package is available +if pkginstalled groff; then + var_append makeopt ' ' "man" + var_append installfiles "\|" "c(.*man" +fi