⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux.in

📁 一个UNIX/LINUX下的基于内容的过滤服务器源代码
💻 IN
字号:
CHKCONF = /sbin/chkconfigCHKCONFIG = /sbin/chkconfig --add dansguardianCHKCONFIGDEL = /sbin/chkconfig --del dansguardianDEB_RC = /usr/sbin/update-rc.d################################################################# Unless you know what you are doing, don't edit below this lineCPP = g++OBJ = String.o OptionContainer.o FDTunnel.o ConnectionHandler.o \      DataBuffer.o HTTPHeader.o NaughtyFilter.o RegExp.o Socket.o \      FatController.o UDSocket.o SysV.o ListContainer.o Ident.o \      HTMLTemplate.o LanguageContainer.o DynamicURLList.o ImageContainer.o \      FOptionContainer.o ListManager.o md5.o      LIBS = $(libdir)/libz.aPROG = dansguardianINSTALLFILES = dansguardian dansguardian.conf dansguardian.sysv \               bannedphraselist exceptionsitelist dansguardian.pl \               bannedextensionlist bannedmimetypelist pics exceptioniplist \               exceptionuserlist exceptionurllist contentregexplistCONFIGUREFILES = autoconf/platform.h confdefs.h config.log conftest.subs \                 dansguardian.conf config.cache Makefile logrotation weightedphraselist \                 bannedphraselist exceptionphraselist dansguardian.sysv \                 logrotate.dansguardian dansguardianf1.confPASSVARS = -DPROXYUSER=\"${PROXYUSER}\"#PASSVARS += -DLOGLOCATION=\"${LOGLOCATION}access.log\"PASSVARS += -DCONFFILELOCATION=\"${CONFFILELOCATION}dansguardian.conf\"#PASSVARS += -DPIDDIR=\"${PIDDIR}\"#Some advanced options:WARNING = -WallOPTIMISE = -O2#DEBUG += -DDGDEBUG#STATIC = -staticI = $(INSTALLPREFIX)CFLAGS = $(OPTIMISE) $(WARNING)DGCFLAGS = $(OPTIMISE) $(PASSVARS) -lz $(STATIC).cpp.o:	$(CPP) $(DEBUG) $(CFLAGS) -c $<all:    $(OBJ)	$(CPP) -o dansguardian $(DGCFLAGS) $(DEBUG) $(OBJ) $(LIBS) dansguardian.cppinstall:	@test -d $I$(SYSVLOCATION) || install -d $I$(SYSVLOCATION)	@test -d $I$(CONFFILELOCATION) || install -d $I$(CONFFILELOCATION)	@test -d $I$(CONFFILELOCATION)phraselists || install -d $I$(CONFFILELOCATION)phraselists	@test -d $I$(CONFFILELOCATION)languages || install -d $I$(CONFFILELOCATION)languages	@test -d $I$(CGIBINLOCATION) || install -d $I$(CGIBINLOCATION)	@test -d $I$(MANUALFILES)man8/ || install -d $I$(MANUALFILES)man8/	@test -d $I$(LOGLOCATION) || install -d $I$(LOGLOCATION)	@test -d $I$(BINARYLOCATION) || install -d $I$(BINARYLOCATION)	cp -f ./filtergroupslist $I$(CONFFILELOCATION)filtergroupslist	cp -f ./dansguardianf1.conf $I$(CONFFILELOCATION)dansguardianf1.conf	cp -f ./dansguardian $I$(BINARYLOCATION)dansguardian	cp -f ./dansguardian.conf $I$(CONFFILELOCATION)dansguardian.conf	cp -f ./bannedphraselist $I$(CONFFILELOCATION)bannedphraselist	cp -f ./exceptionphraselist $I$(CONFFILELOCATION)exceptionphraselist	cp -f ./weightedphraselist $I$(CONFFILELOCATION)weightedphraselist	cp -f -R ./phraselists/* $I$(CONFFILELOCATION)phraselists/	cp -f -R ./languages/* $I$(CONFFILELOCATION)languages/	cp -f ./bannediplist $I$(CONFFILELOCATION)bannediplist	cp -f ./banneduserlist $I$(CONFFILELOCATION)banneduserlist	cp -f ./bannedextensionlist $I$(CONFFILELOCATION)bannedextensionlist	cp -f ./bannedmimetypelist $I$(CONFFILELOCATION)bannedmimetypelist	cp -f ./bannedurllist $I$(CONFFILELOCATION)bannedurllist	cp -f ./bannedregexpurllist $I$(CONFFILELOCATION)bannedregexpurllist	cp -f ./bannedsitelist $I$(CONFFILELOCATION)bannedsitelist	cp -f ./contentregexplist $I$(CONFFILELOCATION)contentregexplist	cp -f ./greysitelist $I$(CONFFILELOCATION)greysitelist	cp -f ./greyurllist $I$(CONFFILELOCATION)greyurllist	cp -f ./exceptionsitelist $I$(CONFFILELOCATION)exceptionsitelist	cp -f ./exceptionurllist $I$(CONFFILELOCATION)exceptionurllist	cp -f ./exceptionuserlist $I$(CONFFILELOCATION)exceptionuserlist	cp -f ./exceptioniplist $I$(CONFFILELOCATION)exceptioniplist	cp -f ./pics $I$(CONFFILELOCATION)pics	cp -f ./transparent1x1.gif $I$(CONFFILELOCATION)transparent1x1.gif	cp -f ./logrotation $I$(CONFFILELOCATION)logrotation	cp -f ./dansguardian.sysv $I$(SYSVLOCATION)dansguardian	cp -f ./dansguardian.pl $I$(CGIBINLOCATION)dansguardian.pl	chmod o+x $I$(CGIBINLOCATION)dansguardian.pl	cp -f ./dansguardian.8.gz $I$(MANUALFILES)man8/dansguardian.8.gz	chown -R $(PROXYUSER):$(PROXYGROUP) $I$(LOGLOCATION)	chmod -R u+wr $I$(LOGLOCATION)	chmod -R og-w $I$(LOGLOCATION)	chmod u+wrx $I$(LOGLOCATION)	if [ -f $(CHKCONF) ]; then $(CHKCONFIG); fi	if [ -f $(DEB_RC) ]; then $(DEB_RC) dansguardian defaults 50; fi	if [ -d $(LOGROTATELOCATION) ]; then cp -f ./logrotate.dansguardian $I$(LOGROTATELOCATION)dansguardian; fiuninstall:	if [ -f $(CHKCONF) ] ; then $(CHKCONFIGDEL); fi	rm -f $(BINARYLOCATION)dansguardian	rm -f $(SYSVLOCATION)dansguardian	rm -f $(CGIBINLOCATION)dansguardian.pl	rm -f $(MANUALFILES)man8/dansguardian.8.gz	rm -fr $(CONFFILELOCATION)	rm -fr $(LOGLOCATION)	if [ -f $(DEB_RC) ] ; then $(DEB_RC) dansguardian remove ; fi	if [ -f $(LOGROTATELOCATION)dansguardian ]; then rm -f $(LOGROTATELOCATION)dansguardian; ficlean:	rm -f $(OBJ) $(PROG)	distclean:	rm -f $(OBJ) $(PROG) $(CONFIGUREFILES)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -