source: package_branches/invirt-base/hvirt/debian/rules @ 2847

Last change on this file since 2847 was 2840, checked in by gdb, 15 years ago

Have init script operate in the style of xvm-munin-config

  • Property svn:executable set to *
  • Property svn:mime-type set to text/script
File size: 1.7 KB
Line 
1#!/usr/bin/make -f
2
3DEB_PYTHON_SYSTEM=pysupport
4DEB_DIVERT_EXTENSION = .invirt
5# Stolen from Debathena
6DEB_CHECK_FILES_SOURCE_/etc/krb5.conf.invirt = \
7        /usr/share/kerberos-configs/krb5.conf.template
8DEB_DIVERT_FILES_invirt-base += \
9        /etc/ssh/sshd_config.invirt \
10        /etc/krb5.conf.invirt
11
12DEB_DH_INSTALLINIT_ARGS += --no-start
13DEB_UPDATE_RCD_PARAMS_invirt-base += defaults 20 80
14
15include /usr/share/cdbs/1/rules/debhelper.mk
16include /usr/share/cdbs/1/class/python-distutils.mk
17include /usr/share/cdbs/1/rules/config-package.mk
18
19binary-fixup/invirt-base::
20        mv $(DEB_DESTDIR)usr/bin/invirt-reload $(DEB_DESTDIR)usr/sbin/invirt-reload
21
22common-build-indep:: debian/sshd_config.invirt debian/krb5.conf.invirt.mako
23
24# Stolen from Debathena
25debian/sshd_config.invirt-orig: /var/lib/dpkg/info/openssh-server.postinst
26        perl -0pe 's/^.*<<EOF[^\n]*\n(.*\n)EOF\n.*$$/$$1/s or die;' $< > $@
27
28# Stolen from Debathena
29debian/sshd_config.invirt: debian/sshd_config.invirt-orig
30        perl -0pe '# Debathena rules (from debathena-ssh-server-config) \
31s/^#?GSSAPIAuthentication .*$$/GSSAPIAuthentication yes\nGSSAPIKeyExchange yes\nGSSAPIStrictAcceptorCheck no/m and \
32s/^#?GSSAPICleanupCredentials .*$$/GSSAPICleanupCredentials yes/m and \
33s/^#?ChallengeResponseAuthentication .*$$/ChallengeResponseAuthentication yes/m and \
34## In Debathena, privilege separation is configurable. \
35s/^#?UsePrivilegeSeparation .*$$/UsePrivilegeSeparation yes/m and \
36s/^#?PasswordAuthentication .*$$/PasswordAuthentication no/m or die;' $< > $@
37
38debian/krb5.conf.invirt.mako: $(call debian_check_files,/etc/krb5.conf)
39        debian/transform_krb5.conf.invirt.mako < $< > $@
40
41clean::
42        rm -rf python/invirt.egg-info
Note: See TracBrowser for help on using the repository browser.