Changeset 2840 for package_branches


Ignore:
Timestamp:
Jan 1, 2010, 10:47:50 PM (15 years ago)
Author:
gdb
Message:

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

Location:
package_branches/invirt-base/hvirt/debian
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-base/hvirt/debian/changelog

    r2787 r2840  
    1 invirt-base (0.0.29) unstable; urgency=low
     1invirt-base (0.0.29hvirt1) unstable; urgency=low
    22
    33  * Added debathena SSH and KRB5 config
    44  * Added init script to regen kerberos config
     5  * Have init script operate in the style of xvm-munin-config
    56
    67 -- Greg Brockman <gdb@mit.edu>  Thu, 24 Dec 2009 20:13:20 -0500
  • package_branches/invirt-base/hvirt/debian/invirt-base.init

    r2787 r2840  
    1111
    1212# Author: Invirt Project <invirt@mit.edu>
    13 PATH=/sbin:/usr/sbin:/bin:/usr/bin
    1413
    15 if [ -x /usr/bin/invirt-getconf -a -f /etc/krb5.conf.invirt ]; then
    16     /usr/bin/perl -i -e '$r = `/usr/bin/invirt-getconf kerberos.realm`; chomp($r);
    17       while(<>) { s/^([ \t]*default_realm *=).*$/\1 $r/m; print; }' /etc/krb5.conf.invirt
    18 fi
     14PACKAGE=invirt-base
     15GEN_FILES=/etc/krb5.conf.invirt
     16
     17dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
     18
     19. /lib/init/config-init.sh
     20config_init "$1"
  • package_branches/invirt-base/hvirt/debian/invirt-base.install

    r2788 r2840  
    11files/* .
    22debian/sshd_config.invirt etc/ssh/
     3debian/krb5.conf.invirt.mako etc/
     4
  • package_branches/invirt-base/hvirt/debian/rules

    r2788 r2840  
    66DEB_CHECK_FILES_SOURCE_/etc/krb5.conf.invirt = \
    77        /usr/share/kerberos-configs/krb5.conf.template
    8 DEB_TRANSFORM_FILES_invirt-base += \
     8DEB_DIVERT_FILES_invirt-base += \
     9        /etc/ssh/sshd_config.invirt \
    910        /etc/krb5.conf.invirt
    10 DEB_DIVERT_FILES_invirt-base += \
    11         /etc/ssh/sshd_config.invirt
     11
     12DEB_DH_INSTALLINIT_ARGS += --no-start
     13DEB_UPDATE_RCD_PARAMS_invirt-base += defaults 20 80
    1214
    1315include /usr/share/cdbs/1/rules/debhelper.mk
     
    1820        mv $(DEB_DESTDIR)usr/bin/invirt-reload $(DEB_DESTDIR)usr/sbin/invirt-reload
    1921
    20 common-build-indep:: debian/sshd_config.invirt
     22common-build-indep:: debian/sshd_config.invirt debian/krb5.conf.invirt.mako
    2123
    2224# Stolen from Debathena
     
    3436s/^#?PasswordAuthentication .*$$/PasswordAuthentication no/m or die;' $< > $@
    3537
     38debian/krb5.conf.invirt.mako: $(call debian_check_files,/etc/krb5.conf)
     39        debian/transform_krb5.conf.invirt.mako < $< > $@
     40
    3641clean::
    3742        rm -rf python/invirt.egg-info
Note: See TracChangeset for help on using the changeset viewer.