# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../squirrelmail/squirrelmail-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" == "squirrelmail" ]; then prefix=opt/squirrelmail set_confopt else pkgprefix -t squirrelmail prefix=$( pkgprefix squirrelmail ) set_confopt datadir=$datadir/plugins/${pkg#squirrelmail-} docdir=${docdir%/*}/${pkg#squirrelmail-} fi runconf=0 makeopt= makeinstopt= squirrelmail_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 'squirrelmail_install'