X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-kerberos-config.git/blobdiff_plain/7abe488446d249ea020d3edf1676b295169d56ca..d0bdfc772f159057195b605c76376138f456fc88:/debian/rules diff --git a/debian/rules b/debian/rules index bbc3f16..b4c1c2c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,6 @@ #!/usr/bin/make -f DEB_DIVERT_EXTENSION = .invirt -# Stolen from Debathena DEB_CHECK_FILES_SOURCE_/etc/krb5.conf.invirt = \ /usr/share/kerberos-configs/krb5.conf.template DEB_DIVERT_FILES_invirt-kerberos-config += \ @@ -10,10 +9,20 @@ DEB_DIVERT_FILES_invirt-kerberos-config += \ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/config-package.mk -binary-fixup/invirt-base:: - mv $(DEB_DESTDIR)usr/bin/invirt-reload $(DEB_DESTDIR)usr/sbin/invirt-reload - common-build-indep:: debian/krb5.conf.invirt.mako +# A normal kerberos-config package would just create an +# /etc/krb5.conf.invirt file (probably using the DEB_TRANSFORM_FILES +# syntactic sugar, instead of calling the transform script directly). +# However, we want to generate that file dynamically, based on the realm +# setting in /etc/master/invirt.yaml. So, instead of packaging +# krb5.conf.invirt, we build a mako template in +# /etc/krb5.conf.invirt.mako, and our initscript renders it to +# /etc/krb5.conf.invirt. In order to get the mako template right, we +# generate it by transforming the base krb5.conf to add a mako template +# tags specifying the default realm. debian/krb5.conf.invirt.mako: $(call debian_check_files,/etc/krb5.conf) debian/transform_krb5.conf.invirt.mako < $< > $@ + +clean:: + rm -f debian/krb5.conf.invirt.mako