Browse Source

clockspeed: improved to only build and install man pages if groff package is available

user/karasz/test/ecn
Christian Wiese 15 years ago committed by Christian Wiese
parent
commit
3ae3925c9c
  1. 14
      network/clockspeed/clockspeed.conf

14
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

Loading…
Cancel
Save