Changeset 1261


Ignore:
Timestamp:
Oct 25, 2008, 6:00:22 PM (16 years ago)
Author:
broder
Message:

Generate and install /etc/xen/xend-config.sxp in invirt-xen-config

Location:
trunk/packages/invirt-xen-config/debian
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-xen-config/debian/changelog

    r1260 r1261  
    55  * Divert /etc/xen/qemu-ifup, since it existed and we've been scribbling
    66    over it
     7  * Generate /etc/xen/xend-config.sxp
    78
    8  -- Evan Broder <broder@mit.edu>  Sat, 25 Oct 2008 16:15:33 -0400
     9 -- Evan Broder <broder@mit.edu>  Sat, 25 Oct 2008 17:41:40 -0400
    910
    1011sipb-xen-dom0 (2.10) unstable; urgency=low
  • trunk/packages/invirt-xen-config/debian/control

    r1259 r1261  
    33Priority: extra
    44Maintainer: Invirt project <invirt@mit.edu>
    5 Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0)
    6 Standards-Version: 3.7.2
     5Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), xen-utils-3.2
     6Standards-Version: 3.8.0
    77
    88Package: invirt-xen-config
  • trunk/packages/invirt-xen-config/debian/invirt-xen-config.init

    • Property svn:executable set to *
    r1257 r1261  
    1010### END INIT INFO
    1111
    12 set -e
     12PACKAGE=invirt-xen-config
     13PARENTPACKAGE=xend
     14GEN_FILES=/etc/xen/xend-config.sxp
    1315
    14 case $1 in
    15     start)
     16dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
     17
     18. /lib/init/gen-files.sh
     19. /lib/init/std-init.sh
     20
     21do_start() {
     22    gen_files
     23   
    1624    echo 1 >/proc/sys/net/ipv4/ip_forward
    17     for foo in all default; do
    18     echo 1 >/proc/sys/net/ipv4/conf/$foo/rp_filter
    19     echo 1 >/proc/sys/net/ipv4/conf/$foo/proxy_arp
     25    for i in all default; do
     26        echo 1 >/proc/sys/net/ipv4/conf/$i/rp_filter
     27        echo 1 >/proc/sys/net/ipv4/conf/$i/proxy_arp
    2028    done
    21     ;;
    22     esac
     29   
     30    invoke-rc.d "$PARENTPACKAGE" "$1"
     31}
     32
     33do_reload() {
     34    do_start
     35}
     36
     37do_stop() {
     38    invoke-rc.d "$PARENTPACKAGE" "$1"
     39}
     40
     41std_init "$1"
  • trunk/packages/invirt-xen-config/debian/invirt-xen-config.install

    r1260 r1261  
    22qemu-ifup.invirt etc/xen
    33vif-invirtroute etc/xen/scripts
     4
     5debian/xend-config.sxp.invirt.mako etc/xen
  • trunk/packages/invirt-xen-config/debian/rules

    r1260 r1261  
    44
    55DEB_DIVERT_FILES_invirt-xen-config += \
    6         /etc/xen/qemu-ifup.invirt
     6        /etc/xen/qemu-ifup.invirt \
     7        /etc/xen/xend-config.sxp.invirt
    78
    89include /usr/share/cdbs/1/rules/debhelper.mk
     10include /usr/share/cdbs/1/rules/config-package.mk
     11
     12common-build-indep:: debian/xend-config.sxp.invirt.mako
     13
     14debian/xend-config.sxp.invirt.mako: $(call debian_check_files,/etc/xen/xend-config.sxp)
     15        debian/transform_xend-config.sxp.invirt.mako < $< > $@
     16
     17clean::
     18        rm -f debian/xend-config.sxp.invirt.mako
Note: See TracChangeset for help on using the changeset viewer.