#!/bin/sh
set -e

name=evolution-data-server
daversionappend=debathena4

hack_package () {
    perl -0pe 's/--with-krb5=/--with-krb4=\/usr --with-krb5=/m or die' -i debian/rules
    append_description <<EOF
 .
 This package was rebuilt for the Debathena project to include
 Kerberos 4 support
EOF
    add_changelog 'Enable krb4 support.'
    add_debathena_provides
    perl -0pe 's/^(Provides:.*debathena-libcamel.*)$/$1, debathena-libcamel-krb4/m or die' -i debian/control
    munge_sections
}

. ../common/debathenificator.sh
