Changeset 332


Ignore:
Timestamp:
03/24/10 11:09:47 (10 years ago)
Author:
bas
Message:

Added a new configure option --with-install_user

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r325 r332  
    1616TRAC_USER=@trac_user@
    1717MTA_USER=@mta_user@
    18 INSTALL_USER=@INSTALL_USER@
     18INSTALL_USER=@install_user@
    1919DEBUG=@DEBUG@
    2020
     
    3535install: all install-conf
    3636        $(INSTALL) -d $(DESTDIR)$(EXEC_PREFIX)
    37         $(INSTALL) -m 4111 -o root run_email2trac $(DESTDIR)$(EXEC_PREFIX)
    3837        for script in $(PYTHON_FILES) ; \
    3938        do \
     
    4140          $(INSTALL) -m 755 -o $(INSTALL_USER) $$script  $(DESTDIR)$(EXEC_PREFIX)/$$name ;\
    4241        done
     42
     43        $(INSTALL) -m 4111 -o  $(INSTALL_USER) run_email2trac $(DESTDIR)$(EXEC_PREFIX)
    4344
    4445install-conf:
  • trunk/configure

    r325 r332  
    618618trac_user
    619619mta_user
     620install_user
    620621PYTHON
    621622PYTHON_VERSION
     
    637638EGREP
    638639DEBUG
    639 INSTALL_USER
    640640email2trac_conf
    641641SYSTEM_EMAIL2TRAC_CONF
     
    12201220  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    12211221  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1222
     1223  --with-install_user=USER    Specify the name of the user that we must use for installation,
     1224                          default=root
    12221225
    12231226  --with-trac_user=USER    Specify the name of the user that trac use,
     
    16661669
    16671670
     1671
    16681672#DEBUG=0
    16691673
     
    32133217
    32143218
    3215 if test "x$INSTALL_USER" = "x";then
    3216   INSTALL_USER="root"
    3217 fi
    3218 
     3219# What user must be used for installation (default: root)
     3220#
     3221
     3222# Check whether --with-install_user was given.
     3223if test "${with_install_user+set}" = set; then
     3224  withval=$with_install_user; case "${withval}" in
     3225        *) install_user="${withval}" ;;
     3226  esac
     3227else
     3228  install_user="root"
     3229
     3230fi
    32193231
    32203232# Now a user can specify the TRAC user
     
    39353947trac_user!$trac_user$ac_delim
    39363948mta_user!$mta_user$ac_delim
     3949install_user!$install_user$ac_delim
    39373950PYTHON!$PYTHON$ac_delim
    39383951PYTHON_VERSION!$PYTHON_VERSION$ac_delim
     
    39543967EGREP!$EGREP$ac_delim
    39553968DEBUG!$DEBUG$ac_delim
    3956 INSTALL_USER!$INSTALL_USER$ac_delim
    39573969email2trac_conf!$email2trac_conf$ac_delim
    39583970SYSTEM_EMAIL2TRAC_CONF!$SYSTEM_EMAIL2TRAC_CONF$ac_delim
  • trunk/configure.in

    r325 r332  
    1212AC_SUBST(trac_user)
    1313AC_SUBST(mta_user)
     14AC_SUBST(install_user)
    1415AC_SUBST(sysconfdir)
    1516
     
    2526AC_SUBST(DEBUG)
    2627
    27 if test "x$INSTALL_USER" = "x";then
    28   INSTALL_USER="root"
    29 fi
    30 AC_SUBST(INSTALL_USER)
     28# What user must be used for installation (default: root)
     29#
     30AC_ARG_WITH(install_user,
     31[
     32  --with-install_user=USER    Specify the name of the user that we must use for installation,
     33                          default=root],
     34
     35  [case "${withval}" in
     36        *) install_user="${withval}" ;;
     37  esac],
     38
     39  [install_user="root"]
     40)dnl           
    3141
    3242# Now a user can specify the TRAC user
  • trunk/debian/changelog

    r331 r332  
    11email2trac (1.3.0-2) stable; urgency=low
    22
    3   * Added environment variable INSTALL_USER check. If set then use
    4     the specified user for installation. So user can install the
    5     package as non-root user, eg: closes #182
    6       - export INSTALL_USER=bas; configure
     3  * Added configure option '--with-install_user=<name>', default user is 'root'.
     4    The specified user is used for installation so we can install the
     5    package as non-root user, closes #182.
    76
    87    Reported by: shildebrand at venturebeat dot com
Note: See TracChangeset for help on using the changeset viewer.