Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 1996 14:33:51 -0400 (EDT)
From:      John Capo <jc@irbs.com>
To:        xiyuan@www.haplink.co.cn (xiyuan qian)
Cc:        freebsd-isp@freebsd.org
Subject:   Re: How to setup majordomo
Message-ID:  <199605271833.OAA03111@irbs.irbs.com>
In-Reply-To: <199505271330.WAA05045@www.haplink.co.cn> from xiyuan qian at "May 27, 95 10:30:47 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
xiyuan qian writes:
> Hi, I have got perl5.001 and majordome-1.93 and read carefully inside the README & FAQ files and tried many times to modify the Makefile to suit my OS--FreeBSD2.1-STABLE but unfortunetly until now I have NOT let it go. Who there has the experience on setting up it? Would you please show me a light? Can you express a little extensive for my poor english understanding? 
> Best regards!

Here are the diffs against my version of majordomo-1.93 and the
distribution.  If you were having trouble compiling wrapper.c, the
included patch will fix that.

John Capo                                                   jc@irbs.com
IRBS Engineering                       FreeBSD Servers and Workstations
(954) 792-9551                 Unix/Internet Consulting - ISP Solutions


diff -rc /u1/jc/majordomo-1.93/Makefile ./Makefile
*** /u1/jc/majordomo-1.93/Makefile	Sat Jan  7 13:06:48 1995
--- ./Makefile	Wed Apr 19 13:58:26 1995
***************
*** 19,33 ****
  #
  
  # This is where "wrapper" looks for the programs it's supposed to run.
! W_BIN=/tools/majordomo-1.93
  
  # 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=$(W_BIN)/majordomo.cf
  
  # Use these settings for BSD-based systems, including SunOS 4.x.  If you're
--- 19,33 ----
  #
  
  # This is where "wrapper" looks for the programs it's supposed to run.
! W_BIN=/usr/local/majordomo-1.93
  
  # 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:/sbin:/usr/bin:/usr/sbin
  W_HOME=${W_BIN}
! W_SHELL=/bin/tcsh
  W_MAJORDOMO_CF=$(W_BIN)/majordomo.cf
  
  # Use these settings for BSD-based systems, including SunOS 4.x.  If you're
***************
*** 45,52 ****
  # and comment out the BSD settings above.
  #
  #
! W_UID = 54
! W_GID = 54
  W_CHOWN=root
  W_CHMOD=4755
  WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \
--- 45,52 ----
  # and comment out the BSD settings above.
  #
  #
! W_UID = 1
! W_GID = 99
  W_CHOWN=root
  W_CHMOD=4755
  WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \
diff -rc /u1/jc/majordomo-1.93/wrapper.c ./wrapper.c
*** /u1/jc/majordomo-1.93/wrapper.c	Sat Jan  7 12:28:00 1995
--- ./wrapper.c	Wed Apr 19 13:59:25 1995
***************
*** 14,19 ****
--- 14,20 ----
  #endif
  
  #include <stdio.h>
+ #include <string.h>
  
  #ifndef STRCHR
  #  define STRCHR(s,c) strchr(s,c)
***************
*** 96,102 ****
  #if defined(SETGROUP)
  /* renounce any previous group memberships if we are running as root */
      if (geteuid() == 0) { /* Should I exit if this test fails? */
!     char setgroups_used = "setgroups_was_included"; /* give strings a hint */
      int groups[] =  { POSIX_GID, 0 };
      
      if (setgroups(1, groups) != 0) {
--- 97,103 ----
  #if defined(SETGROUP)
  /* renounce any previous group memberships if we are running as root */
      if (geteuid() == 0) { /* Should I exit if this test fails? */
!     char *setgroups_used = "setgroups_was_included"; /* give strings a hint */
      int groups[] =  { POSIX_GID, 0 };
      
      if (setgroups(1, groups) != 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605271833.OAA03111>