Changeset 24108

Show
Ignore:
Timestamp:
10/20/09 12:17:33 (5 weeks ago)
Author:
broder
Message:

Use the same logic for determining at build time whether to configure
krb4 as is used in the postinst for determining whether to keep krb4
configured.

Otherwise systems (such as Karmic) which don't have krb4, but do come
with a krb4-config, would install the transformed files and then
immediately undo the transformations on upgrades.

Location:
trunk/debathena/config/kerberos-config/debian
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/debathena/config/kerberos-config/debian/control.in

    r24103 r24108  
    33Priority: extra 
    44Maintainer: Debathena Project <debathena@mit.edu> 
    5 Build-Depends: @cdbs@, krb5-config, debathena-maybe-krb4-config, debathena-maybe-apparmor, debathena-cups 
     5Build-Depends: @cdbs@, krb5-clients, krb5-config, debathena-maybe-krb4-config, debathena-maybe-apparmor, debathena-cups 
    66Standards-Version: 3.7.2 
    77 
  • trunk/debathena/config/kerberos-config/debian/rules

    r24104 r24108  
    66DEB_CHECK_FILES_SOURCE_/etc/krb5.conf.debathena = \ 
    77        /usr/share/kerberos-configs/krb5.conf.template 
    8 ifneq ($(wildcard /usr/share/kerberos-configs/krb.conf.template),) 
     8 
     9KRB5_VERSION="$(shell dpkg-query -W -f '${Version}' krb5-clients)" 
     10ifeq ($(shell dpkg --compare-versions $(KRB5_VERSION) '<<' '1.7~' && echo y),y) 
    911    DEB_TRANSFORM_FILES_debathena-kerberos-config += \ 
    1012        /etc/krb.conf.debathena \