| 1 |
--- a/CONFIG |
| 2 |
+++ b/CONFIG |
| 3 |
@@ -69,8 +69,8 @@ LOCKDIR = $(DESTDIR)"/var/lock" |
| 4 |
|
| 5 |
# Directory from which file requests are resolved. |
| 6 |
# This may be changed from the 'config' file. |
| 7 |
-#PUBDIR = $(DESTDIR)"/home/ftp/pub" |
| 8 |
-PUBDIR = $(DESTDIR)"/var/spool/uucppublic" |
| 9 |
+PUBDIR = $(DESTDIR)"/home/ftp/pub" |
| 10 |
+#PUBDIR = $(DESTDIR)"/var/spool/uucppublic" |
| 11 |
|
| 12 |
# News spool directory (to check space only) |
| 13 |
#NEWSSPOOL = $(DESTDIR)"/usr/spool/news" |
| 14 |
@@ -92,7 +92,7 @@ USE_NLS = yes |
| 15 |
# the correct References: line |
| 16 |
# see iflib/ref.c for more complete info |
| 17 |
# |
| 18 |
-REFERENCES_MSC96 = yes |
| 19 |
+#REFERENCES_MSC96 = yes |
| 20 |
|
| 21 |
# use a shared lib for common functions ? |
| 22 |
# Does not work yet. |
| 23 |
@@ -223,6 +223,10 @@ REFERENCES_MSC96 = yes |
| 24 |
# define -DSELECT_NEED_BSDTYPES_H if #include <bsdtypes.h> needed to |
| 25 |
# use select() |
| 26 |
|
| 27 |
+# define -DEXPERIMENTAL_EMSI if you like to live on the edge... :-) |
| 28 |
+# It enables experimental EMSI code which should be a bit more standards |
| 29 |
+# conforming |
| 30 |
+ |
| 31 |
# ### Defines from version 2.8c-JE |
| 32 |
|
| 33 |
# define -DIGNORE_SOFTCR if you need to treat SoftCR (0x8d) as a printable |
| 34 |
@@ -324,15 +328,14 @@ REFERENCES_MSC96 = yes |
| 35 |
|
| 36 |
#General options: |
| 37 |
# These are not machine dependent, and describe only ifmail/ifcico features |
| 38 |
-OPTS = -DFORCE_REPLYTO -DTERMAIL_HACK -DTPUT_STATUS_HACK \ |
| 39 |
+OPTS = -DTERMAIL_HACK -DTPUT_STATUS_HACK -DADD_PID -DLEVEL=0 \ |
| 40 |
-DDONT_REGATE -DSLAVE_SENDS_NAK_TOO \ |
| 41 |
- -DPUDDLE_GATE -DPCBOARD_GATE -DRNEWSB -DJE \ |
| 42 |
- -DRESTAMP_OLD_POSTINGS=25 -DBELEIVE_ZFIN=1 \ |
| 43 |
- -DKEEP_MSGID_ON_SPLIT -DIGNORE_SOFTCR \ |
| 44 |
- -DRELAXED -DFORCEINTL -DHAS_TCP -DAREAS_HACKING \ |
| 45 |
+ -DRNEWSB -DJE \ |
| 46 |
+ -DRESTAMP_OLD_POSTINGS=14 -DBELEIVE_ZFIN=1 \ |
| 47 |
+ -DHAS_TCP -DAREAS_HACKING \ |
| 48 |
-DRESTAMP_FUTURE_POSTINGS -DFSCHTML -DMACHIGAI \ |
| 49 |
-DALLOW_RETURNPATH -DGATEBAU_MSGID \ |
| 50 |
- -DDIRTY_CHRS \ |
| 51 |
+ -DDIRTY_CHRS -DHIDDEN \ |
| 52 |
-DAREAS_NUMERAL_COMMENTS |
| 53 |
|
| 54 |
# -DAREAS_NUMERAL_COMPATIBILITY |
| 55 |
@@ -345,9 +348,10 @@ OPTS = -DFORCE_REPLYTO -DTERMAIL_ |
| 56 |
OPTS += -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \ |
| 57 |
-DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \ |
| 58 |
-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H \ |
| 59 |
- -DHAS_SYSLOG -DNEED_BSY -DNEED_TRAP \ |
| 60 |
+ -DNEED_BSY -DNO_IO_AFTER_HANGUP -DDO_NEED_TIME \ |
| 61 |
-DNEED_FORK -DHAS_BSD_SIGNALS -DHAS_SELECT \ |
| 62 |
- -DINT32=long -DINT16=short |
| 63 |
+ -DUSE_SETPROCTITLE \ |
| 64 |
+ -DINT32=long -DINT16=short -D_GNU_SOURCE |
| 65 |
|
| 66 |
# 386BSD, FreeBSD: |
| 67 |
#OPTS += -DHAS_STATFS -DSTATFS_IN_MOUNT_H -DHAS_SETSID -DHAS_NDBM_H \ |
| 68 |
@@ -438,15 +442,15 @@ MANOWNER = man |
| 69 |
MANGROUP = man |
| 70 |
MANMODE = 0644 |
| 71 |
|
| 72 |
-INSTALL = install |
| 73 |
+INSTALL = install --strip-program=/bin/true |
| 74 |
AR = ar |
| 75 |
RANLIB = ranlib |
| 76 |
#RANLIB = touch |
| 77 |
SHELL = /bin/sh |
| 78 |
ECHO = echo -e |
| 79 |
-CC = gcc |
| 80 |
+#CC = cc |
| 81 |
#YACC = bison -y |
| 82 |
-YACC = yacc |
| 83 |
+YACC = bison -y |
| 84 |
#LEX = flex |
| 85 |
LEX = lex |
| 86 |
AWK = awk |
| 87 |
@@ -454,7 +458,7 @@ TAR = tar |
| 88 |
|
| 89 |
#CFLAGS = -g -Wall |
| 90 |
# Linux, 386BSD, FreeBSD, SunOS: |
| 91 |
-CFLAGS = -O2 -Wall |
| 92 |
+CFLAGS = -Wall -fno-strict-aliasing $(EXTRA_CFLAGS) |
| 93 |
# SVR4: |
| 94 |
#CFLAGS = -O -Xa |
| 95 |
# NeXTSTEP |
| 96 |
@@ -464,7 +468,7 @@ CFLAGS = -O2 -Wall |
| 97 |
#CFLAGS= -migrate -O5 -ifo -g0 |
| 98 |
#LDFLAGS = -s |
| 99 |
|
| 100 |
-LDFLAGS += |
| 101 |
+LDFLAGS += -Wl,--as-needed $(EXTRA_LDFLAGS) |
| 102 |
|
| 103 |
# For LIBS, you may need to add "-lfl" if you are using flex 2.4.x |
| 104 |
# If you need TERM also add e.g. "/usr/src/term112/client.a" |
| 105 |
@@ -472,7 +476,7 @@ LDFLAGS += |
| 106 |
# Linux |
| 107 |
# add -lresolv if you use libc6 (aka glibc 2) |
| 108 |
# remove -lresolv if you use libc5 |
| 109 |
-LIBS = -lgdbm -lresolv |
| 110 |
+LIBS = -lgdbm -lgdbm_compat -lresolv |
| 111 |
# SunOS: |
| 112 |
#LIBS = |
| 113 |
# 386BSD, FreeBSD: |
| 114 |
@@ -488,7 +492,7 @@ LIBS = -lgdbm -lresolv |
| 115 |
# NeXTSTEP |
| 116 |
#LIBS = -lgdbm -lposix |
| 117 |
|
| 118 |
-INCLUDES = -I${INCDIR} |
| 119 |
+INCLUDES = -iquote . -iquote ${INCDIR} -I/usr/include |
| 120 |
# ISC |
| 121 |
#INCLUDES = -I/usr/include/rpcsvc -I${INCDIR} |
| 122 |
|
| 123 |
@@ -499,7 +503,7 @@ INCLUDES = -I${INCDIR} |
| 124 |
#NEEDED = strcasestr.o strncasecmp.o strcasecmp.o rename.o mkdir.o usleep.o \ |
| 125 |
# regexpr.o strerror.o |
| 126 |
# Linux |
| 127 |
-NEEDED = strcasestr.o |
| 128 |
+#NEEDED = strcasestr.o |
| 129 |
# SVR4 |
| 130 |
#NEEDED = regexpr.o strcasestr.o |
| 131 |
# Solaris |
| 132 |
--- a/ifcico/Makefile |
| 133 |
+++ b/ifcico/Makefile |
| 134 |
@@ -46,7 +46,7 @@ OTHER = README README.mxlookup README.TE |
| 135 |
ftscprod.090 mkprod.awk \ |
| 136 |
ifcico.8 ifcico.8.fr ifindex.8 ifinfo.8 ifroute.8 nlpatch.8 \ |
| 137 |
ifreq.8 |
| 138 |
-ALL = ifcico ifindex ifinfo ifreq ifroute nlpatch nlookup |
| 139 |
+ALL = ifcico ifindex ifinfo ifreq nlpatch nlookup #ifroute |
| 140 |
|
| 141 |
ifeq (yes,${SHARED}) |
| 142 |
UTLIB = |
| 143 |
@@ -133,7 +133,7 @@ nlookup: ${OBJLOOKUP} ${UTLIB} |
| 144 |
${CC} ${LDFLAGS} ${OBJLOOKUP} ${UTLIB} -o nlookup ${LIBS} |
| 145 |
|
| 146 |
lastmtime: lastmtime.c |
| 147 |
- ${CC} ${CFLAGS} lastmtime.c -o lastmtime |
| 148 |
+ ${CC} ${LDFLAGS} ${CFLAGS} lastmtime.c -o lastmtime |
| 149 |
|
| 150 |
tar: ifcico.tar.z |
| 151 |
|
| 152 |
--- a/ifgate/Makefile |
| 153 |
+++ b/ifgate/Makefile |
| 154 |
@@ -101,7 +101,7 @@ ifpack: ${OBJPACK} ${UTLIB} |
| 155 |
${CC} ${LDFLAGS} ${OBJPACK} ${UTLIB} -o ifpack ${LIBS} |
| 156 |
|
| 157 |
lastmtime: lastmtime.c |
| 158 |
- ${CC} ${CFLAGS} lastmtime.c -o lastmtime |
| 159 |
+ ${CC} ${LDFLAGS} ${CFLAGS} lastmtime.c -o lastmtime |
| 160 |
|
| 161 |
tar: ifmail.tar.z |
| 162 |
|