# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: package/.../horde/horde-conf.in
|
|
# Copyright (C) 2006 The OpenSDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
# GNU General Public License can be found in the file COPYING.
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
if [ "$pkg" == "horde" ]; then
|
|
prefix=opt/horde
|
|
set_confopt
|
|
else
|
|
pkgprefix -t horde
|
|
prefix=$( pkgprefix horde )
|
|
set_confopt
|
|
|
|
datadir=$datadir/${pkg#horde-}
|
|
docdir=${docdir%/*}/${pkg#horde-}
|
|
fi
|
|
|
|
runconf=0
|
|
makeopt=
|
|
makeinstopt=
|
|
|
|
horde_install() {
|
|
local x=
|
|
echo "Installing docs/* ..."
|
|
[ ! -e $root$datadir/docs ] || ln -s $sysconfdir $root$datadir/docs
|
|
find docs/ -mindepth 1 -type d | while read x; do
|
|
mkdir -vp $root$docdir/${x#docs/}
|
|
done
|
|
find docs/ -type f | while read x; do
|
|
mv -vf $x $root$docdir/${x#docs/}
|
|
done
|
|
|
|
for x in README COPYING LICENSE; do
|
|
[ ! -e $x ] || mv -vf $x $root$docdir/
|
|
done
|
|
|
|
echo "Installing the rest ..."
|
|
rm -rvf docs
|
|
tar -cf - * .[^.]* | tar -C $root$datadir -xvf -
|
|
}
|
|
|
|
hook_add postmake 5 'horde_install'
|