# $Source: /sources/cvsrepos/majordomo/digest/Makefile,v $
# $Revision: 1.1.1.1 $
# $Date: 1994/01/18 23:28:23 $
# $Author: rouilj $
# $State: Exp $
# 
# $Header: /sources/cvsrepos/majordomo/digest/Makefile,v 1.1.1.1 1994/01/18 23:28:23 rouilj Exp $
# 
# $Locker:  $
# 

# This is where "wrapper" looks for the programs it's supposed to run.
W_BIN=/mycroft/brent/majordomo

# This is the environment that (along with LOGNAME and USER inherited from the
# parent process, and without the leading "W_" in the variable names) gets
# passed to processes run by "wrapper"

W_PATH=/bin:/usr/bin:/usr/ucb
W_HOME=${W_BIN}
W_SHELL=/bin/csh
W_MAJORDOMO_CF=/mycroft/brent/majordomo/majordomo-test.cf

# Use these settings for BSD-based systems, including SunOS 4.x.  If you're
# using a POSIX-compliant system (including SysV and BSDI), comment these
# settings out, and uncomment the POSIX settings below.
W_USER=daemon
W_GROUP=majordom
W_CHOWN=${W_USER}.${W_GROUP}
W_CHMOD=6755
WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\"	\
	-DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\"	\
	-DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\"

# If you're using a POSIX-compliant system, uncomment this set of parameters
# and comment out the BSD settings above.
# W_UID = 1
# W_GID = 15
# W_CHOWN=root
# W_CHMOD=4755
# WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \
# 	-DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\" \
#	-DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\"       \
# 	-DPOSIX_UID=${W_UID} -DPOSIX_GID=${W_GID}

default: wrapper

install: wrapper

wrapper: wrapper.c
	cc ${WRAPPER_FLAGS} -o wrapper wrapper.c
	chown ${W_CHOWN} wrapper
	chmod ${W_CHMOD} wrapper

