Changeset 306


Ignore:
Timestamp:
01/26/2009 21:53:49 (3 years ago)
Author:
blee
Message:

Some Autotools cleanup:

  • /var is no longer hard-coded (instead use localstatedir)
  • confman.conf.sample is now created by autotools so that it has relevant defaults

Additionally:

  • Changing default of CONF_SSH_KEY to /root/.ssh/id_rsa

See #6

Location:
trunk
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r303 r306  
    88pkgdata_SCRIPTS = confmancommon.sh 
    99dist_pkgdata_SCRIPTS = confmanlib.sh confmandoc.sh 
    10 dist_sysconf_DATA = confman.conf.sample 
     10sysconf_DATA = confman.conf.sample 
    1111sysconfdefaults_DATA = confman.conf 
    1212bashcomp_DATA = confman_completion 
     
    2525                confmancommon.sh.in \ 
    2626                confman.conf.in \ 
     27                confman.conf.sample.in \ 
    2728                confman_completion.in \ 
    2829                LICENSE 
    2930 
    3031do_subst = $(SED) -e 's,[@]datadir[@],$(datadir),g' \ 
     32                -e 's,[@]localstatedir[@],$(localstatedir),g' \ 
    3133                -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ 
    3234                -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \ 
     35                -e 's,[@]prefix[@],$(prefix),g' \ 
    3336                -e 's,[@]sbindir[@],$(sbindir),g' \ 
    3437                -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ 
     
    5760        $(do_subst) < confman.conf.in > confman.conf 
    5861 
     62confman.conf.sample: confman.conf.sample.in Makefile 
     63        $(do_subst) < confman.conf.sample.in > confman.conf.sample 
     64 
    5965confman_completion: confman_completion.in Makefile 
    6066        $(do_subst) < confman_completion.in > confman_completion 
  • trunk/confman.conf.in

    r302 r306  
    1616 
    1717# The system lockfile 
    18 LOCKFILE="/var/run/confman.lock" 
     18LOCKFILE="@localstatedir@/run/confman.lock" 
    1919 
    2020# The script for locking 
     
    3030WORK_PATH="${HOME}/src/conf" 
    3131 
    32 # The path to our current host's recipe file 
    33 RECIPE_FILE="/var/db/confman/recipe" 
    34  
    3532# The list of singularities on this host 
    3633SINGULARITIES="" 
    3734 
    3835# A place where confman can keep state 
    39 REPO_DB="/var/db/confman" 
     36REPO_DB="@localstatedir@/db/confman" 
     37 
     38# The path to our current host's recipe file 
     39RECIPE_FILE="${REPO_DB}/recipe" 
    4040 
    4141# The warning message for all files 
     
    5757# file://, http://, https://, ftp://, sftp://, and scp://. Port numbers 
    5858# are not handled correctly in sftp and scp URIs. 
    59 CONF_EXPORT_FILE="/var/db/confman/export.tgz" 
     59CONF_EXPORT_FILE="${REPO_DB}/export.tgz" 
    6060CONF_EXPORT_URI="scp://confman@${REPO_HOSTNAME}${CONF_EXPORT_FILE}" 
    6161CONF_EXPORT_MODE="0640" 
    6262CONF_EXPORT_USER="$(whoami)" 
    6363CONF_EXPORT_GROUP="${CONF_GROUP}" 
    64 CONF_SSH_KEY="/root/id_rsa" 
     64CONF_SSH_KEY="/root/.ssh/id_rsa" 
    6565 
    6666# Enable or disable debugging 
  • trunk/confman.conf.sample.in

    r302 r306  
    1010 
    1111# The path on the remote host to find the repository: 
    12 REPO_PATH="${PREFIX}/repo/conf/conf" 
     12REPO_PATH="@prefix@/repo/conf/conf" 
    1313 
    1414# The list of singularities on this host 
     
    1919# file://, http://, https://, ftp://, sftp://, and scp://. Port numbers 
    2020# are not handled correctly in sftp and scp URIs. 
    21 CONF_EXPORT_FILE="/var/db/confman/export.tgz" 
     21CONF_EXPORT_FILE="@localstatedir@/db/confman/export.tgz" 
    2222CONF_EXPORT_URI="scp://confman@${REPO_HOSTNAME}${CONF_EXPORT_FILE}" 
    23 CONF_SSH_KEY="/root/id_rsa" 
     23CONF_SSH_KEY="/root/.ssh/id_rsa" 
    2424 
Note: See TracChangeset for help on using the changeset viewer.