]>
Commit | Line | Data |
---|---|---|
5b31f8d4 JB |
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 | |
4 | @@ -0,0 +1,64 @@ | |
5 | +SHELL = /bin/sh | |
6 | +MAKE = make | |
7 | +CC = cc | |
8 | + | |
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 | |
13 | +LIBS= | |
14 | + | |
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 | |
28 | +# WITH setjmp() | |
29 | + | |
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 | |
36 | + | |
37 | +OPTCFLAGS=-O2 | |
38 | +CFLAGS=$(OPTCFLAGS) -D&BBOSTYPE -DGETTIMEOFDAY -DSIGSETJMP -DREGEXEC -DTIMEH | |
39 | + | |
40 | +all: bb bbd bbnet touchtime dumphostsvc getipaddr bbstat | |
41 | + | |
42 | +bb: bb.o bbsend.o utils.o bb.h | |
43 | + ${CC} ${CFLAGS} -o $@ bb.o bbsend.o utils.o ${LIBS} | |
44 | + | |
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} | |
47 | + | |
48 | +bbnet: bbnet.o utils.o bb.h | |
49 | + ${CC} ${CFLAGS} -o $@ bbnet.o utils.o ${LIBS} | |
50 | + | |
51 | +touchtime: touchtime.o bb.h | |
52 | + ${CC} ${CFLAGS} -o $@ touchtime.o ${LIBS} | |
53 | + | |
54 | +dumphostsvc: dohostsvc.o utils.o dumphostsvc.o bb.h | |
55 | + ${CC} ${CFLAGS} -o $@ dumphostsvc.o dohostsvc.o utils.o ${LIBS} | |
56 | + | |
57 | +getipaddr: utils.o getipaddr.o bb.h | |
58 | + ${CC} ${CFLAGS} -o $@ getipaddr.o utils.o ${LIBS} | |
59 | + | |
60 | +bbstat: bbstat.o bb.h | |
61 | + ${CC} ${CFLAGS} -o $@ bbstat.o ${LIBS} | |
62 | + | |
63 | +install: | |
64 | + rm -f *.o | |
65 | + mv bb bbd bbnet touchtime dumphostsvc getipaddr bbstat ../bin | |
66 | + | |
67 | +clean: | |
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 | |
72 | @@ -117,6 +117,11 @@ | |
73 | in | |
74 | linux ) | |
75 | # ARE WE A REDHAT MACHINE? | |
76 | + grep "PLD" /etc/issue >/dev/null | |
77 | + if test "$?" = "0" | |
78 | + then | |
79 | + MACHINE="pld" | |
80 | + fi | |
81 | grep "Red" /etc/issue >/dev/null | |
82 | if test "$?" = "0" | |
83 | then | |
84 | @@ -185,7 +190,7 @@ | |
85 | ;; | |
86 | esac | |
87 | ||
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" | |
90 | ||
91 | #-------------------------------------------------------- | |
92 | # SET UP BBHOME | |
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 | |
96 | @@ -0,0 +1,28 @@ | |
97 | +# | |
98 | +# bbsys.pld (Linux) | |
99 | +# | |
100 | +# BIG BROTHER | |
101 | +# OPERATING SYSTEM DEPENDENT THINGS THAT ARE NEEDED | |
102 | +# | |
103 | + | |
104 | +PS="/bin/ps axww" # | |
105 | +DF="/bin/df -k" | |
106 | +MSGFILE="/var/log/messages" | |
385addf3 | 107 | +PING="/bin/ping" |
5b31f8d4 JB |
108 | +SED="/bin/sed" |
109 | +MAIL="/bin/mail -s" | |
110 | +GREP="/bin/grep" | |
111 | +EGREP="/bin/egrep" | |
112 | +LYNX="/usr/bin/lynx -dump -head" | |
113 | +AWK="/bin/awk" | |
114 | +PINGPAR1="-n -c1" # ADDED BY ROB. DON'T RESOLVE NAME | |
115 | + # IF -n NOT THERE THAN NEW NETKIT (RH7) PING MAY FAIL | |
116 | +# | |
117 | +# From: Martin Richard <martin@europa.collegebdeb.qc.ca> | |
118 | +# and others... took forever to make this change! | |
119 | +# | |
120 | +TOUCH="/bin/touch" # ADDED | |
121 | +SORT="/bin/sort" # ADDED | |
122 | + | |
123 | +ID="/bin/id" | |
124 | + | |
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 | |
127 | @@ -73,7 +73,7 @@ | |
128 | # | |
129 | # LOCATION OF BBOUT FILE | |
130 | # | |
131 | -BBOUT="$BBHOME/BBOUT" | |
132 | +BBOUT="$BBTMP/BBOUT" | |
133 | export BBOUT | |
134 | ||
135 | # | |
136 | @@ -308,7 +308,7 @@ | |
137 | # | |
138 | # What NET services to check (don't put in dns/dig/http) | |
139 | # | |
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" | |
142 | export BBNETSVCS | |
143 | ||
144 | # |