blob: deecbd2b2641e400cbb7d4c27079b772740c343c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $Id: Makefile,v 1.29 2003/05/15 08:20:05 in2 Exp $
.include "../pttbbs.mk"
UTIL_OBJS= \
util_cache.o util_record.o util_passwd.o
CPROG_WITH_UTIL= \
bbsmail BM_money post poststat \
jungo account birth deluserfile \
expire mandex rmuid horoscope \
openvice parse_news openticket topusr \
indexuser yearsold toplazyBM toplazyBBM \
reaper buildAnnounce inndBM shmctl
CPROG_WITHOUT_UTIL= \
shmsweep uhash_loader showboard antispam \
countalldice webgrep bbsrf initbbs \
userlist tunepasswd buildir merge_passwd \
merge_board xchatd outmail
PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \
BM_money.sh backpasswd.sh mailog.sh opendice.sh \
openticket.sh stock.sh topsong.sh weather.sh \
stock.perl weather.perl toplazyBM.sh toplazyBBM.sh \
dailybackup.pl tarqueue.pl waterball.pl filtermail.pl \
getbackup.pl udnnews.pl rebuildaloha.pl railway_wrapper.pl
all: ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${PROGS}
.for fn in ${CPROG_WITH_UTIL}
${fn}: ${fn}.c ${UTIL_OBJS}
${CC} ${CFLAGS} -o ${fn} ${fn}.c ${UTIL_OBJS}
.endfor
xchatd: xchatd.c $(OBJS) descrypt.c
$(CC) $(CFLAGS) -o $@ $@.c $(OBJS) descrypt.c $(LIBCHAT)
outmail: outmail.c
$(CC) $(CFLAGS) -o $@ $@.c $(LIBMAIL)
install: $(PROGS)
install -d $(BBSHOME)/bin/
install -c -m 755 $(PROGS) $(BBSHOME)/bin/
chmod 4755 $(BBSHOME)/bin/post
clean:
rm -f *.o $(CPROGS) $(CPROG_WITH_UTIL) $(CPROG_WITHOUT_UTIL)
installfiltermail:
mv $(BBSHOME)/bin/bbsmail $(BBSHOME)/bin/realbbsmail
ln -s $(BBSHOME)/bin/filtermail.pl $(BBSHOME)/bin/bbsmail
# for diskstat(FreeBSD 4.x only) .
# diskstat should be compiled with bbs and installed with root
diskstat: diskstat.c
$(CC) $(CFLAGS) -o diskstat diskstat.c -ldevstat -lkvm
installdiskstat: diskstat
cp -f diskstat /usr/local/bin/
chgrp kmem /usr/local/bin/diskstat
chmod 2755 /usr/local/bin/diskstat
# for bbsctl. bbsctl should be compiled with bbs and installed with root
bbsctl: bbsctl.c
$(CC) $(CFLAGS) -o $@ $@.c
installbbsctl: bbsctl
rm -f /home/bbs/bin/bbsctl
cp /home/bbs/pttbbs/util/bbsctl /home/bbs/bin/bbsctl
chown root /home/bbs/bin/bbsctl
chmod 4755 /home/bbs/bin/bbsctl
|