# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/mnemoc/vquota/parse-config # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf # # 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; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- if pkgcheck vquota X; then if [ ${pkg:0:7} == linux24 -o $pkg == vserver -o $pkg == quota ]; then echo_status "Including Contexts Quota (vquota) patch..." pkg_vquota_confdir=$base/package/mnemoc/vquota pkg_vquota_archdir=$base/download/mnemoc/vquota pkg_vquota_patchfile='' for x in $( grep "^\[D\]" ${pkg_vquota_confdir}/vquota.desc | tr ' ' '\t' | tr -s '\t' | cut -f3 ); do case "$x" in linux*) if [ "${pkg:0:7}" == "linux24" ] ; then pkg_vquota_patchdir=$( mktemp -d ) hook_add postpatch 4 "rm -rf $pkg_vquota_patchdir" pkg_vquota_ver=$( sed -n 's,^\[V\] \(.*\),\1,p' \ $pkg_vquota_confdir/vquota.desc ) pkg_vquota_patchfile=${pkg_vquota_patchdir}/ctx-vquota-${pkg_vquota_ver}.patch bunzip2 -c "${pkg_vquota_archdir}/$x" > \ ${pkg_vquota_patchfile} var_append conffiles ' ' "${pkg_vquota_confdir}/kernel.conf.sh" fi ;; vserver*) if [ "$pkg" == "vserver" ] ; then pkg_vquota_patchfile="/tmp/vquota-vserver.diff" bunzip2 -c "${pkg_vquota_archdir}/$x" > $pkg_vquota_patchfile hook_add postpatch 4 "rm -f $pkg_vquota_patchfile" fi ;; quota*) if [ "$pkg" == "quota" ] ; then pkg_vquota_patchfile="/tmp/vquota-quota.diff" bunzip2 -c "${pkg_vquota_archdir}/$x" > $pkg_vquota_patchfile hook_add postpatch 4 "rm -f $pkg_vquota_patchfile" fi ;; esac done var_append patchfiles ' ' "$pkg_vquota_patchfile" fi fi