You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
5.6 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -638,10 +638,6 @@ ip6:
  4. @echo + yourself, try adding IP6=4 to the make command line.
  5. @echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6. @echo
  7. - @echo Do you want to build with IPv6 anyway? Type y or n please:
  8. - @$(SH) -c 'read x; case "$$x" in y) exit 0;; *) (make noip6;exit 1);; esac'
  9. - @echo OK, I will remember that you really want to build with IPv6.
  10. - @echo You will not see this message again.
  11. @$(TOUCH) ip6
  12. noip6:
  13. @@ -678,20 +674,18 @@ an ua:
  14. $(TOOLS)/$@ "$(LN)" src/tmail tmail
  15. $(LN) $(TOOLS)/$@ .
  16. -build: OSTYPE rebuild rebuildclean bundled
  17. +build: OSTYPE rebuild rebuildclean
  18. OSTYPE:
  19. @$(MAKE) ip$(IP)
  20. @echo Building c-client for $(BUILDTYPE)...
  21. @$(TOUCH) SPECIALS
  22. - echo `$(CAT) SPECIALS` $(EXTRASPECIALS) > c-client/SPECIALS
  23. $(CD) c-client;$(MAKE) $(BUILDTYPE) EXTRACFLAGS='$(EXTRACFLAGS)'\
  24. EXTRALDFLAGS='$(EXTRALDFLAGS)'\
  25. EXTRADRIVERS='$(EXTRADRIVERS)'\
  26. EXTRAAUTHENTICATORS='$(EXTRAAUTHENTICATORS)'\
  27. PASSWDTYPE=$(PASSWDTYPE) SSLTYPE=$(SSLTYPE) IP=$(IP)\
  28. - $(SPECIALS) $(EXTRASPECIALS)
  29. - echo $(BUILDTYPE) > OSTYPE
  30. + $(SPECIALS) $(EXTRASPECIALS) OSTYPE=$(BUILDTYPE)
  31. $(TOUCH) rebuild
  32. rebuild:
  33. --- a/src/osdep/unix/Makefile
  34. +++ b/src/osdep/unix/Makefile
  35. @@ -96,11 +96,11 @@ CHECKPW=std
  36. LOGINPW=std
  37. SIGTYPE=bsd
  38. CRXTYPE=std
  39. -ACTIVEFILE=/usr/lib/news/active
  40. -SPOOLDIR=/usr/spool
  41. +ACTIVEFILE=/var/lib/news/active
  42. +SPOOLDIR=/var/spool
  43. MAILSPOOL=$(SPOOLDIR)/mail
  44. NEWSSPOOL=$(SPOOLDIR)/news
  45. -RSHPATH=/usr/ucb/rsh
  46. +RSHPATH=/usr/bin/rsh
  47. MD5PWD=/etc/cram-md5.pwd
  48. # Tries one of the test alternatives below if not specified.
  49. LOCKPGM=
  50. @@ -154,7 +154,7 @@ BINARIES=osdep.o mail.o misc.o newsrc.o
  51. dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
  52. rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
  53. unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o
  54. -CFLAGS=-g
  55. +CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS) -DCHUNKSIZE=$(CHUNKSIZE)
  56. CAT=cat
  57. MAKE=make
  58. @@ -162,6 +162,16 @@ MV=mv
  59. RM=rm -rf
  60. SH=sh
  61. +OSCFLAGS= $(SSLCFLAGS) \
  62. + -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \
  63. + -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \
  64. + -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" \
  65. + -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \
  66. + -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" \
  67. + -DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \
  68. + -DLOCKPGM3=\"$(LOCKPGM3)\"
  69. +
  70. +LDFLAGS= $(BASELDFLAGS) $(EXTRALDFLAGS) $(SSLLDFLAGS)
  71. # Primary build command
  72. @@ -174,7 +184,7 @@ BUILD=$(MAKE) build EXTRACFLAGS='$(EXTRA
  73. # Here if no make argument established
  74. missing: osdep.h
  75. - $(MAKE) all `$(CAT) SPECIALS`
  76. + $(MAKE) all $(SPECIALS)
  77. osdep.h:
  78. @echo You must specify what type of system
  79. @@ -674,7 +684,7 @@ slx: # Secure Linux
  80. @echo You are building for libc6/glibc versions of Secure Linux
  81. @echo If you want libc5 versions you must use sl5 instead!
  82. @echo If you want libc4 versions you must use sl4 instead!
  83. - $(BUILD) `$(CAT) SPECIALS` OS=$@ \
  84. + $(BUILD) $(SPECIALS) OS=$@ \
  85. SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \
  86. SPOOLDIR=/var/spool \
  87. ACTIVEFILE=/var/lib/news/active \
  88. @@ -863,7 +873,7 @@ $(ARCHIVE): $(BINARIES)
  89. @$(SH) ARCHIVE
  90. .c.o:
  91. - `$(CAT) CCTYPE` -c `$(CAT) CFLAGS` $*.c
  92. + $(CC) -c $(CFLAGS) $*.c
  93. # Cleanup
  94. @@ -922,8 +932,8 @@ osdep.o:mail.h misc.h env.h fs.h ftl.h n
  95. @echo If you get No such file error messages for files x509.h, ssl.h,
  96. @echo pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
  97. @echo is not installed on your system. Either install OpenSSL first
  98. - @echo or build with command: make `$(CAT) OSTYPE` SSLTYPE=none
  99. - `$(CAT) CCTYPE` -c `$(CAT) CFLAGS` `$(CAT) OSCFLAGS` -c osdep.c
  100. + @echo or build with command: make $(OSTYPE) SSLTYPE=none
  101. + $(CC) -c $(CFLAGS) $(OSCFLAGS) -c osdep.c
  102. osdep.c: osdepbas.c osdepckp.c osdeplog.c osdepssl.c
  103. $(CAT) osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c
  104. @@ -962,21 +972,14 @@ os_sol.h:
  105. # Once-only environment setup
  106. -once: onceenv ckp$(PASSWDTYPE) ssl$(SSLTYPE) osdep.c
  107. +once: ssl$(SSLTYPE) onceenv ckp$(PASSWDTYPE) osdep.c
  108. onceenv:
  109. @echo Once-only environment setup...
  110. - echo $(CC) > CCTYPE
  111. - echo $(BASECFLAGS) '$(EXTRACFLAGS)' -DCHUNKSIZE=$(CHUNKSIZE) > CFLAGS
  112. - echo -DCREATEPROTO=$(CREATEPROTO) -DEMPTYPROTO=$(EMPTYPROTO) \
  113. - -DMD5ENABLE=\"$(MD5PWD)\" -DMAILSPOOL=\"$(MAILSPOOL)\" \
  114. - -DANONYMOUSHOME=\"$(MAILSPOOL)/anonymous\" \
  115. - -DACTIVEFILE=\"$(ACTIVEFILE)\" -DNEWSSPOOL=\"$(NEWSSPOOL)\" \
  116. - -DRSHPATH=\"$(RSHPATH)\" -DLOCKPGM=\"$(LOCKPGM)\" \
  117. - -DLOCKPGM1=\"$(LOCKPGM1)\" -DLOCKPGM2=\"$(LOCKPGM2)\" \
  118. - -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS
  119. - echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
  120. echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
  121. + echo "$(OSCFLAGS)" > OSCFLAGS
  122. + echo "$(CC) $(CFLAGS) $(OSCFLAGS) -shared -Wl,-soname,libc-client.so \
  123. + -o $(SHLIBNAME) $(BINARIES) $(LDFLAGS)" >> ARCHIVE
  124. echo $(OS) > OSTYPE
  125. ./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
  126. ./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)
  127. @@ -1055,7 +1058,6 @@ sslsco: sbasic sldsco
  128. sbasic: # UNIX OpenSSL
  129. @echo Building with SSL
  130. $(LN) ssl_unix.c osdepssl.c
  131. - echo $(SSLCFLAGS) >> OSCFLAGS
  132. echo " ssl_onceonlyinit ();" >> linkage.c
  133. snopwd: # Plaintext disable
  134. @@ -1063,13 +1065,12 @@ snopwd: # Plaintext disable
  135. echo " mail_parameters (NIL,SET_DISABLEPLAINTEXT,(void *) 2);" >> linkage.c
  136. sldunix:# Normal UNIX SSL load flags
  137. - echo $(SSLLDFLAGS) >> LDFLAGS
  138. + @echo Normal UNIX SSL load flags
  139. sldsco: # SCO SSL load flags
  140. # Note: Tim Rice says that SSL has to be lunk before other libraries on SCO.
  141. - echo $(SSLLDFLAGS) `cat LDFLAGS` > LDFLAGS.tmp
  142. - mv LDFLAGS.tmp LDFLAGS
  143. + @echo SCO SSL load flags
  144. # A monument to a hack of long ago and far away...