Changeset 1560 in MondoRescue


Ignore:
Timestamp:
Jul 25, 2007, 1:31:37 AM (17 years ago)
Author:
Bruno Cornec
Message:

Try to improve conf files generation and installation

Location:
branches/stable/mondo
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/distributions/conf/Makefile.am

    r1387 r1560  
    11etcdir          = $(sysconfdir)/mondo
    2 etc_DATA        = mondo.conf.dist
     2etc_DATA        = mondo.conf.dist mondo.conf.sample
    33
    4 install-data-local-config:
    5     @if [ ! -e $(etcdir)/mondo.conf ]; then cat >> $(etcdir)/mondo.conf << EOF
    6 #
    7 # Configuration file for mondo
    8 #
    9 # By default values are taken from $(etcdir)/mondo.conf.dist
    10 # You can override them here
    11 #
    12 # e.g.
    13 #
    14 #
    15 #mondo_tmp_dir="/var/tmp"
    16 #
    17     EOF
    18     @fi
    19     @chmod 444 $(etcdir)/mondo.conf.dist
    20     @(cd $(etcdir) ; md5sum mondo.conf.dist > mondo.conf.dist.md5)
     4install-data-local:
     5    chmod 444 $(etcdir)/mondo.conf.dist $(etcdir)/mondo.conf.sample
     6    if [ ! -e $(etcdir)/mondo.conf ]; then cp -a $(etcdir)/mondo.conf.sample $(etcdir)/mondo.conf ; fi
     7    (cd $(etcdir) ; md5sum mondo.conf.dist > mondo.conf.dist.md5)
  • branches/stable/mondo/src/mondoarchive/Makefile.am

    r1256 r1560  
    44## Process with Automake to generate Makefile.in
    55##
    6 AM_CPPFLAGS = -DMONDO_CONF_DIR=\"$(sysconfdir)\" -I${top_builddir}/src/include -I${top_builddir}/src/common -I${top_builddir}/src/mondoarchive
     6AM_CPPFLAGS = -DMONDO_CONF_DIR=\"$(sysconfdir)/mondo\" -I${top_builddir}/src/include -I${top_builddir}/src/common -I${top_builddir}/src/mondoarchive
    77
    88## Headers
  • branches/stable/mondo/src/mondorestore/Makefile.am

    r1352 r1560  
    44## Process with Automake to generate Makefile.in
    55##
    6 AM_CPPFLAGS = -DMONDO_CONF_DIR=\"$(sysconfdir)\" -I${top_builddir}/src/include -I${top_builddir}/src/common
     6AM_CPPFLAGS = -DMONDO_CONF_DIR=\"$(sysconfdir)/mondo\" -I${top_builddir}/src/include -I${top_builddir}/src/common
    77
    88## Headers
Note: See TracChangeset for help on using the changeset viewer.