Convert packaging to Debhelper 7 / config-package-dev 5 format.
[invirt/packages/invirt-kerberos-config.git] / Makefile
1 # A normal kerberos-config package would just create and package an
2 # /etc/krb5.conf.invirt file (using config-packag-dev's 'transform').
3 # However, we want to generate that file dynamically, based on the realm
4 # setting in /etc/master/invirt.yaml. So, instead of packaging
5 # krb5.conf.invirt, we build a mako template and install it as
6 # /etc/krb5.conf.invirt.mako, and our initscript renders it to
7 # /etc/krb5.conf.invirt. In order to get the mako template right, we
8 # generate it by running a filter on the base krb5.conf to add mako
9 # template tags specifying the default realm.
10
11 all: krb5.conf.invirt.mako
12
13 krb5.conf.invirt.mako: 
14         ./templatize-krb5-conf < /usr/share/kerberos-configs/krb5.conf.template > $@
15
16 clean::
17         rm -f krb5.conf.invirt.mako
18
19 .PHONY: clean