1 diff -Nur bb4-1.8c1.orig/bb18c1/install/Makefile.pld bb4-1.8c1/bb18c1/install/Makefile.pld
2 --- bb4-1.8c1.orig/bb18d/install/Makefile.pld Thu Jan 1 01:00:00 1970
3 +++ bb4-1.8c1/bb18d/install/Makefile.pld Wed Nov 14 13:41:21 2001
9 +# FLAGS REQUIRED FOR PORTING
10 +# HPUX 10.0, irix and LINUX NEED NOTHING DEFINED
11 +# EXCEPT MAYBE THE OPTIMIZER
12 +# LIBS = -ll -lnsl -lsocket # SOLARIS NEEDS THIS
15 +# MISC COMPILER DIRECTIVES
16 +# -DENABLE_DISABLE - INCLUDE CODE TO TEMPORARELY DISABLE NOTIFICATIONS ON A HOST
17 +# -DDATAMSG - TO ALLOW data MESSAGES
18 +# -DNOTESMSG - TO ALLOW notes MESSAGES
19 +# -DBZERO - IF YOU DON'T HAVE bzero()
20 +# -DZOMBIE - IF zombie PROCESSES ARE GENERATED
21 +# -DGETTIMEOFDAY - TO GET DURATION STATISTICS
22 +# -DREGEXEC - IF YOUR COMPILER SUPPORTS regexec(),regcomp()
23 +# -DREGEX - IF YOUR COMPILER SUPPORTS regex(),regcmp()
24 +# -DRE_EXEC - IF YOUR COMPILER SUPPORTS re_exec(),re_comp()
25 +# -DTIMEH - IF YOUR OS HAS time.h INSTEAD OF sys/time.h
26 +# -DSIGSETJMP - IF YOUR OS SUPPORTS sigsetjmp() AND
27 +# DOES NOT HANDLE SIGNALS PROPERLY
30 +# Fixed confusing CFLAGS
31 +# thanks to Adam Goryachev <adam@wesolveit.com.au>
32 +# SOME OS NEEDS SPECIAL ZOMBIE HANDLING (-DZOMBIE)
33 +# SOME OS DON'T HAVE bzero() (-DBZERO)
34 +# SOME OS NEEDS SIGSETJMP HANDLING (-DSIGSETJMP)
35 +# REDHAT NEEDS -DSIGSETJMP
38 +CFLAGS=$(OPTCFLAGS) -D&BBOSTYPE -DGETTIMEOFDAY -DSIGSETJMP -DREGEXEC -DTIMEH
40 +all: bb bbd bbnet touchtime dumphostsvc getipaddr bbstat
42 +bb: bb.o bbsend.o utils.o bb.h
43 + ${CC} ${CFLAGS} -o $@ bb.o bbsend.o utils.o ${LIBS}
45 +bbd: dohostsvc.o utils.o bbd.o bbpage.o bbsend.o bb.h
46 + ${CC} ${CFLAGS} -o $@ bbd.o dohostsvc.o bbpage.o bbsend.o utils.o ${LIBS}
48 +bbnet: bbnet.o utils.o bb.h
49 + ${CC} ${CFLAGS} -o $@ bbnet.o utils.o ${LIBS}
51 +touchtime: touchtime.o bb.h
52 + ${CC} ${CFLAGS} -o $@ touchtime.o ${LIBS}
54 +dumphostsvc: dohostsvc.o utils.o dumphostsvc.o bb.h
55 + ${CC} ${CFLAGS} -o $@ dumphostsvc.o dohostsvc.o utils.o ${LIBS}
57 +getipaddr: utils.o getipaddr.o bb.h
58 + ${CC} ${CFLAGS} -o $@ getipaddr.o utils.o ${LIBS}
60 +bbstat: bbstat.o bb.h
61 + ${CC} ${CFLAGS} -o $@ bbstat.o ${LIBS}
65 + mv bb bbd bbnet touchtime dumphostsvc getipaddr bbstat ../bin
68 + rm -f *.o bb bbd bbnet touchtime dumphostsvc getipaddr bbstat
69 diff -Nur bb4-1.8c1.orig/bb18d/install/bbconfig bb4-1.8c1/bb18c1/install/bbconfig
70 --- bb4-1.8c1.orig/bb18d/install/bbconfig Tue Sep 4 05:59:41 2001
71 +++ bb4-1.8c1/bb18d/install/bbconfig Wed Nov 14 13:44:23 2001
75 # ARE WE A REDHAT MACHINE?
76 + grep "PLD" /etc/issue >/dev/null
81 grep "Red" /etc/issue >/dev/null
88 -OS="bsdi bsdi4 sco3 sco freebsd solaris hpux9 hpux linux sunos netbsd osf ultrix irix unixware unixware7 redhat aix dynix debian dgux openbsd caldera mandrake sinix suse darwin"
89 +OS="bsdi bsdi4 sco3 sco freebsd solaris hpux9 hpux linux sunos netbsd osf ultrix irix unixware unixware7 pld redhat aix dynix debian dgux openbsd caldera mandrake sinix suse darwin"
91 #--------------------------------------------------------
93 diff -Nur bb4-1.8c1.orig/bb18d/install/bbsys.pld bb4-1.8c1/bb18c1/install/bbsys.pld
94 --- bb4-1.8c1.orig/bb18d/install/bbsys.pld Thu Jan 1 01:00:00 1970
95 +++ bb4-1.8c1/bb18d/install/bbsys.pld Wed Nov 14 14:07:28 2001
101 +# OPERATING SYSTEM DEPENDENT THINGS THAT ARE NEEDED
106 +MSGFILE="/var/log/messages"
112 +LYNX="/usr/bin/lynx -dump -head"
114 +PINGPAR1="-n -c1" # ADDED BY ROB. DON'T RESOLVE NAME
115 + # IF -n NOT THERE THAN NEW NETKIT (RH7) PING MAY FAIL
117 +# From: Martin Richard <martin@europa.collegebdeb.qc.ca>
118 +# and others... took forever to make this change!
120 +TOUCH="/bin/touch" # ADDED
121 +SORT="/bin/sort" # ADDED
125 --- bb4-1.8c1/bb18d/etc/bbdef.sh.DIST.orig Wed Oct 3 21:07:49 2001
126 +++ bb4-1.8c1/bb18d/etc/bbdef.sh.DIST Thu Nov 29 12:30:14 2001
129 # LOCATION OF BBOUT FILE
131 -BBOUT="$BBHOME/BBOUT"
132 +BBOUT="$BBTMP/BBOUT"
138 # What NET services to check (don't put in dns/dig/http)
140 -BBNETSVCS="smtp telnet ftp pop pop3 pop-3 ssh imap ssh1 ssh2 imap2 imap3 imap4 pop2 pop-2 nntp"
141 +BBNETSVCS="smtp telnet ftp pop pop3 pop-3 ssh imap ssh1 ssh2 imap2 imap3 imap4 pop2 pop-2 nntp smtps pop3s imaps nntps"