home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / SENDMAIL / SENDMAIL.LIN / sendmail.8.6.9.linux.diff
Encoding:
Text File  |  1994-08-10  |  6.0 KB  |  201 lines

  1. --- Makefile.Linux
  2. +++ Makefile.Linux    1994/07/17 20:34:41
  3. @@ -0,0 +1,31 @@
  4. +
  5. +compile: praliases/praliases makemap/makemap mailstats/mailstats \
  6. +    src/sendmail rmail/rmail
  7. +
  8. +install: compile
  9. +    make -C src install -f Makefile.Linux
  10. +    install -s praliases/praliases /usr/bin
  11. +    install -s mailstats/mailstats /usr/sbin
  12. +    install -s makemap/makemap /usr/sbin
  13. +    install -m644 makemap/makemap.8 /usr/man/man8
  14. +    install -s rmail/rmail /usr/bin
  15. +    install -m644 rmail/rmail.8 /usr/man/man8
  16. +
  17. +rmail/rmail: rmail/rmail.c
  18. +    (cd rmail; gcc -O6 -fomit-frame-pointer -m486 rmail.c -o rmail -lbsd)
  19. +
  20. +mailstats/mailstats: mailstats/mailstats.c
  21. +    (cd mailstats; gcc -O6 -fomit-frame-pointer -m486 -I ../src \
  22. +         mailstats.c -o mailstats -ldbm)
  23. +
  24. +makemap/makemap: makemap/makemap.c
  25. +    (cd makemap; gcc -O6 -fomit-frame-pointer -m486 -I ../src \
  26. +        -DNDBM makemap.c -o makemap -ldbm)
  27. +
  28. +praliases/praliases: praliases/praliases.c
  29. +    (cd praliases; gcc -O6 -fomit-frame-pointer -m486 -I ../src \
  30. +         praliases.c -o praliases -ldbm)
  31. +
  32. +src/sendmail:
  33. +    make -C src -f Makefile.Linux
  34. +
  35. --- cf/README.linux
  36. +++ cf/README.linux    1994/07/17 20:24:37
  37. @@ -0,0 +1,22 @@
  38. +I have included two posssible setups for sendmail:
  39. +
  40. +- "cf/linux.smtp.mc" for people who are directly connected to the internet
  41. +  (most possible via ethernet or slip). This configuration is installed by
  42. +  default.
  43. +
  44. +- "cf/linux.uucp.mc", if you have one uucp host to send all mail (via uucp).
  45. +  The other uucp host must understand domain names and "normal" internet
  46. +  mail addresses like luser@host.domain.edu.
  47. +  You first have to configure uucp to work properly (/usr/conf/uucp).
  48. +  Then you have to change the name of the uucp host you are connected to in
  49. +  the sendmail config file. If you are connected to "hugo", your config file
  50. +  has a line "define(`SMART_HOST', uucp-dom:hugo)".
  51. +
  52. +If you want to install a new configuration file, do as root
  53. +"m4 linux.mc > /etc/sendmail.cf", where linux.mc is one of the above
  54. +config files or a new one by yourself.
  55. +
  56. +The file README contains a good description about sendmail config files.
  57. +
  58. +Florian  La Roche        flla@stud.uni-sb.de
  59. +
  60. --- cf/cf/linux.smtp.mc
  61. +++ cf/cf/linux.smtp.mc    1994/07/17 20:24:37
  62. @@ -0,0 +1,7 @@
  63. +include(`../m4/cf.m4')
  64. +VERSIONID(`linux for smtp-only setup')dnl
  65. +OSTYPE(linux)
  66. +FEATURE(nouucp)dnl
  67. +FEATURE(always_add_domain)dnl
  68. +MAILER(local)dnl
  69. +MAILER(smtp)dnl
  70. --- cf/cf/linux.uucp.mc
  71. +++ cf/cf/linux.uucp.mc    1994/07/17 20:24:37
  72. @@ -0,0 +1,9 @@
  73. +include(`../m4/cf.m4')
  74. +VERSIONID(`linux for setup with uucp which uses domain names')dnl
  75. +OSTYPE(linux)
  76. +FEATURE(nodns)dnl
  77. +FEATURE(always_add_domain)dnl
  78. +MAILER(local)dnl
  79. +MAILER(smtp)dnl
  80. +MAILER(uucp)
  81. +define(`SMART_HOST', uucp-dom:otheruucphost)
  82. --- cf/ostype/linux.m4
  83. +++ cf/ostype/linux.m4    1994/07/17 20:24:37
  84. @@ -35,4 +35,7 @@
  85.  
  86.  divert(0)
  87.  VERSIONID(`@(#)linux.m4    8.2 (Berkeley) 8/21/93')
  88. -define(`LOCAL_MAILER_PATH', /bin/mail.local)dnl
  89. +define(`LOCAL_MAILER_PATH',`/usr/bin/procmail')dnl
  90. +define(`LOCAL_MAILER_FLAGS',`ShP')dnl
  91. +define(`LOCAL_MAILER_ARGS',`procmail -d $u')dnl
  92. +define(`QUEUE_DIR', /var/mqueue)dnl
  93. --- rmail/rmail.c
  94. +++ rmail/rmail.c    1994/07/17 20:24:37
  95. @@ -78,6 +78,8 @@
  96.  #include <sysexits.h>
  97.  #include <unistd.h>
  98.  
  99. +#define MAX(a, b) ((a)>(b)?(a):(b))
  100. +
  101.  void err __P((int, const char *, ...));
  102.  void usage __P((void));
  103.  
  104. --- src/Makefile.Linux
  105. +++ src/Makefile.Linux    1994/07/17 20:24:37
  106. @@ -15,7 +15,7 @@
  107.  #
  108.  
  109.  # use O=-O (usual) or O=-g (debugging)
  110. -O=    -O
  111. +O=    -O2 -fomit-frame-pointer -m486 -Dsleep=sleepXXX
  112.  
  113.  # define the database mechanisms available for map & alias lookups:
  114.  #    -DNDBM -- use new DBM
  115. @@ -32,13 +32,13 @@
  116.  # see also conf.h for additional compilation flags
  117.  
  118.  # include directories
  119. -INCDIRS=-I/usr/local/include
  120. +INCDIRS=
  121.  
  122.  # library directories
  123.  LIBDIRS=-L/usr/local/lib
  124.  
  125.  # libraries required on your system
  126. -LIBS=    -lndbm
  127. +LIBS=    -ldbm
  128.  
  129.  # location of sendmail binary (usually /usr/sbin or /usr/lib)
  130.  BINDIR=    ${DESTDIR}/usr/sbin
  131. @@ -52,9 +52,6 @@
  132.  # additional .o files needed
  133.  OBJADD=
  134.  
  135. -# additional pseudo-sources needed
  136. -BEFORE=
  137. -
  138.  ###################  end of user configuration flags  ######################
  139.  
  140.  CFLAGS=    -I. $O ${INCDIRS} ${DBMDEF} ${ENVDEF}
  141. @@ -67,15 +64,15 @@
  142.  
  143.  LINKS=    ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq
  144.  BINOWN=    root
  145. -BINGRP=    kmem
  146. +BINGRP=    root
  147.  BINMODE=6555
  148.  
  149.  ALL=    sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
  150.  
  151.  all: ${ALL}
  152.  
  153. -sendmail: ${BEFORE} ${OBJS}
  154. -    ${CC} -o sendmail ${OBJS} ${LIBDIRS} ${LIBS}
  155. +sendmail: ${OBJS}
  156. +    ${CC} -o sendmail -v ${OBJS} ${LIBDIRS} ${LIBS}
  157.  
  158.  unistd.h:
  159.      cp /dev/null unistd.h
  160. @@ -101,7 +98,7 @@
  161.  install: install-sendmail install-docs
  162.  
  163.  install-sendmail: sendmail
  164. -    install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
  165. +    install -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} sendmail ${BINDIR}
  166.      for i in ${LINKS}; do rm -f $$i; ln -s ${BINDIR}/sendmail $$i; done
  167.      cp /dev/null ${STDIR}/sendmail.st
  168.      chmod 644 ${STDIR}/sendmail.st
  169. @@ -110,7 +107,10 @@
  170.      install -c -o ${BINOWN} -g ${BINGRP} -m 444 sendmail.hf ${HFDIR}
  171.  
  172.  # doesn't actually install them -- you may want to install pre-nroff versions
  173. -install-docs: aliases.0 mailq.0 newaliases.0 sendmail.0
  174. +install-docs:
  175. +    install -m644 mailq.1 newaliases.1 /usr/man/man1
  176. +    install -m644 aliases.5 /usr/man/man5
  177. +    install -m644 sendmail.8 /usr/man/man8
  178.  
  179.  clean:
  180.      rm -f ${OBJS} sendmail aliases.0 mailq.0 newaliases.0 sendmail.0
  181. --- src/conf.h
  182. +++ src/conf.h    1994/07/17 20:24:37
  183. @@ -81,7 +81,7 @@
  184.  # define NETINET    1    /* include internet support */
  185.  # define SETPROCTITLE    1    /* munge argv to display current status */
  186.  # define MATCHGECOS    1    /* match user names from gecos field */
  187. -# define XDEBUG        1    /* enable extended debugging */
  188. +/* # define XDEBUG        1    /* enable extended debugging */
  189.  # ifdef NEWDB
  190.  # define USERDB        1    /* look in user database (requires NEWDB) */
  191.  # endif
  192. @@ -628,6 +628,8 @@
  193.  # define SFS_TYPE    SFS_VFS        /* use <sys/vfs.h> statfs() impl */
  194.  # include <sys/sysmacros.h>
  195.  # undef atol            /* wounded in <stdlib.h> */
  196. +# define _PATH_SENDMAILCF    "/etc/sendmail.cf"
  197. +# define _PATH_SENDMAILPID    "/var/run/sendmail.pid"
  198.  #endif
  199.  
  200.  
  201.