Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts: commit ed71cbf commit 6ad941c (part) commit eb57613 commit 9e78c68 commit 93418d2 commit 524cced try if innbbsd still works. XD
- Loading branch information
Showing
64 changed files
with
12,977 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
SUBDIR= common mbbsd util | ||
SUBDIR= common mbbsd util innbbsd | ||
|
||
.include <bsd.subdir.mk> | ||
|
||
.ORDER: all-common all-mbbsd | ||
.ORDER: all-common all-util | ||
.ORDER: all-common all-innbbsd | ||
|
||
# XXX innbbsd depends on util | ||
.ORDER: all-util all-innbbsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Author: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> | ||
# Start Date: Thu Feb 25 1999 +0800 | ||
# Project: INNBBSD - NoCeM | ||
# File: nocem.c nocem.h | ||
# | ||
# Copyright: Copyright (c) 2000 by Yen-Ming Lee | ||
# | ||
# Permission to use, copy, modify, and distribute this | ||
# software for any purpose with or without fee is hereby | ||
# granted, provided that the above copyright notice and this | ||
# permission notice appear in all copies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# $Id$ | ||
SRCROOT= .. | ||
.include "${SRCROOT}/pttbbs.mk" | ||
|
||
VERSION= 0.50-pttpatch | ||
ADMINUSER?= root@your.domain.name | ||
|
||
.if $(OSTYPE) == "FreeBSD" | ||
# FreeBSD為了 innbbsd額外需加的參數 | ||
inn_CFLAGS= -DMMAP -DGETRUSAGE | ||
inn_LDFLAGS= -L/usr/local/lib | ||
.else | ||
# Linux為了 innbbsd額外需加的參數 | ||
inn_CFLAGS= -DGETRUSAGE | ||
inn_LDFLAGS= | ||
.endif | ||
|
||
CFLAGS+= -DVERSION=\"${VERSION}\" \ | ||
-DADMINUSER=\"${ADMINUSER}\" \ | ||
-DMapleBBS -DDBZDEBUG -I. \ | ||
${inn_CFLAGS} -DHMM_USE_ANTI_SPAM | ||
|
||
LDFLAGS+= ${inn_LDFLAGS} | ||
|
||
PROGS= bbslink bbsnnrp ctlinnbbsd \ | ||
innbbsd mkhistory | ||
|
||
all: ${PROGS} | ||
|
||
# bbs util | ||
UTIL_DIR= $(SRCROOT)/util | ||
UTIL_OBJS= util_var.o | ||
|
||
.for fn in ${UTIL_OBJS} | ||
LINK_UTIL_OBJS+= ${UTIL_DIR}/${fn} | ||
|
||
${UTIL_DIR}/${fn}: # FIXME: dependency | ||
cd ${UTIL_DIR}; make ${fn} | ||
.endfor | ||
|
||
LDLIBS:=$(SRCROOT)/common/bbs/libcmbbs.a \ | ||
$(SRCROOT)/common/sys/libcmsys.a \ | ||
$(SRCROOT)/common/osdep/libosdep.a \ | ||
$(LDLIBS) | ||
|
||
echobbslib.o: echobbslib.c | ||
${CC} ${CFLAGS} -DWITH_ECHOMAIL -c echobbslib.c | ||
|
||
innbbsd: inndchannel.o innbbsd.o connectsock.o rfc931.o daemon.o \ | ||
file.o pmain.o his.o dbz.o closeonexec.o dbztool.o \ | ||
inntobbs.o receive_article.o echobbslib.o nocem.o | ||
${CC} -o $@ ${LDFLAGS} $> ${LINK_UTIL_OBJS} $(LDLIBS) | ||
|
||
bbslink: bbslink.o pmain.o inntobbs.o echobbslib.o connectsock.o \ | ||
file.o port.o | ||
${CC} -o $@ ${LDFLAGS} $> ${LINK_UTIL_OBJS} $(LDLIBS) | ||
|
||
bbsnnrp: bbsnnrp.o pmain.o bbslib.o connectsock.o file.o | ||
${CC} -o $@ ${LDFLAGS} $> ${LINK_UTIL_OBJS} $(LDLIBS) | ||
|
||
ctlinnbbsd: ctlinnbbsd.o pmain.o bbslib.o connectsock.o file.o | ||
${CC} -o $@ ${LDFLAGS} $> ${LINK_UTIL_OBJS} $(LDLIBS) | ||
|
||
mkhistory: mkhistory.o bbslib.o file.o his.o dbz.o port.o closeonexec.o | ||
${CC} -o $@ ${LDFLAGS} $> ${LINK_UTIL_OBJS} $(LDLIBS) | ||
|
||
install: ${PROGS} | ||
install -d ${BBSHOME}/innd/ | ||
install -c -m 755 ${PROGS} ${BBSHOME}/innd/ | ||
|
||
clean: | ||
rm -f *.o ${PROGS} core *.core | ||
|
||
reset: | ||
cd $(SRCROOT)/util/; ${MAKE} clean shmctl | ||
${MAKE} clean ; ${MAKE} ; ${MAKE} install | ||
killall innbbsd | ||
cd ~; nohup innd/innbbsd 7777 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "bbs.h" | ||
#define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c) | ||
|
||
#if 0 /* string.h , libc */ | ||
int | ||
strcasestr(str, tag) | ||
char *str, *tag; /* tag : lower-case string */ | ||
{ | ||
char buf[256]; | ||
|
||
str_lower(buf, str); | ||
return (int)strstr(buf, tag); | ||
} | ||
#endif | ||
|
||
int | ||
bad_subject(char *subject) | ||
{ | ||
char *badkey[] = {"µL½X", "avcd", "mp3", NULL}; | ||
int i; | ||
for (i = 0; badkey[i]; i++) | ||
if (strcasestr(subject, badkey[i])) | ||
return 1; | ||
return 0; | ||
} |
Oops, something went wrong.