Changeset 325


Ignore:
Timestamp:
03/01/10 12:31:55 (12 years ago)
Author:
bas
Message:

configure, Makefile.in, configure.in:

  • added environment variable INSTALL_USER. if set use this user to chown:
    • email2trac.conf
    • run_email2trac ( is not needed when we it is not equal 'root' see #182
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r144 r325  
    1616TRAC_USER=@trac_user@
    1717MTA_USER=@mta_user@
     18INSTALL_USER=@INSTALL_USER@
    1819DEBUG=@DEBUG@
    1920
     
    3839        do \
    3940          name=`basename $$script '.py'` ;\
    40           $(INSTALL) -m 755 -o root $$script  $(DESTDIR)$(EXEC_PREFIX)/$$name ;\
     41          $(INSTALL) -m 755 -o $(INSTALL_USER) $$script  $(DESTDIR)$(EXEC_PREFIX)/$$name ;\
    4142        done
    4243
     
    4445        if [ ! -f  $(DESTDIR)/$(CONFIG)/email2trac.conf ] ; \
    4546        then \
    46                 $(INSTALL) -c -m 644 -o root email2trac.conf $(DESTDIR)/$(CONFIG)/email2trac.conf ;\
     47                $(INSTALL) -c -m 644 -o $(INSTALL_USER) email2trac.conf $(DESTDIR)/$(CONFIG)/email2trac.conf ;\
    4748        fi
    4849 
  • trunk/configure

    r270 r325  
    637637EGREP
    638638DEBUG
     639INSTALL_USER
    639640email2trac_conf
    640641SYSTEM_EMAIL2TRAC_CONF
     
    32093210if test "x$DEBUG" = "x";then
    32103211  DEBUG=0
     3212fi
     3213
     3214
     3215if test "x$INSTALL_USER" = "x";then
     3216  INSTALL_USER="root"
    32113217fi
    32123218
     
    39483954EGREP!$EGREP$ac_delim
    39493955DEBUG!$DEBUG$ac_delim
     3956INSTALL_USER!$INSTALL_USER$ac_delim
    39503957email2trac_conf!$email2trac_conf$ac_delim
    39513958SYSTEM_EMAIL2TRAC_CONF!$SYSTEM_EMAIL2TRAC_CONF$ac_delim
     
    39543961_ACEOF
    39553962
    3956   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
     3963  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
    39573964    break
    39583965  elif $ac_last_try; then
  • trunk/configure.in

    r261 r325  
    2424fi
    2525AC_SUBST(DEBUG)
     26
     27if test "x$INSTALL_USER" = "x";then
     28  INSTALL_USER="root"
     29fi
     30AC_SUBST(INSTALL_USER)
    2631
    2732# Now a user can specify the TRAC user
Note: See TracChangeset for help on using the changeset viewer.