mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
Configuration tuning
This commit is contained in:
parent
f472cce261
commit
354e14d45e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48382
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= drweb
|
||||
PORTVERSION= 4.26
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.drweb.ru/ftp/web_pub/
|
||||
DISTNAME= ${PORTNAME}d-${PORTVERSION}-freebsd4
|
||||
@ -25,15 +26,22 @@ do-install:
|
||||
-@${MKDIR} -v ${DRWEB_PREFIX}
|
||||
@cd ${DRWEB_PREFIX}; ${RM} -f drw*.txt drw*.vdb drweb drwebd
|
||||
${TAR} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} --exclude *.ini
|
||||
${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini | \
|
||||
${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini \
|
||||
> ${DRWEB_PREFIX}/drweb32.ini-tmpl
|
||||
cd ${DRWEB_PREFIX}; \
|
||||
${PATCH} -s < ${FILESDIR}/ini-patch && \
|
||||
${RM} drweb32.ini-tmpl.orig
|
||||
cd ${DRWEB_PREFIX}; \
|
||||
${SED} 's#__INSTALL_DIR__#${DRWEB_PREFIX}#' \
|
||||
> ${DRWEB_PREFIX}/drweb32.ini-dist
|
||||
< drweb32.ini-tmpl > drweb32.ini-dist && \
|
||||
${RM} drweb32.ini-tmpl
|
||||
if [ ! -f ${DRWEB_PREFIX}/drweb32.ini ] ; then \
|
||||
${CP} ${DRWEB_PREFIX}/drweb32.ini-dist \
|
||||
${DRWEB_PREFIX}/drweb32.ini; \
|
||||
fi
|
||||
${SED} 's#!!PREFIX!!#${DRWEB_PREFIX}#' < ${FILESDIR}/drwebd.sh >${WRKSRC}/drwebd.sh
|
||||
cd ${DRWEB_PREFIX}/update; patch -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig
|
||||
${INSTALL_DATA} ${WRKSRC}/drwebd.sh ${PREFIX}/etc/rc.d/drwebd.sh-dist
|
||||
cd ${DRWEB_PREFIX}/update; \
|
||||
${PATCH} -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/drwebd.sh ${PREFIX}/etc/rc.d/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -9,11 +9,12 @@ start)
|
||||
if [ -x $drwebd ]; then
|
||||
echo -n ' drwebd'
|
||||
$drwebd
|
||||
/bin/chmod 660 /var/run/drwebd.sock
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
/usr/bin/killall drwebd
|
||||
/bin/rm -f /var/run/drwebd
|
||||
/bin/rm -f /var/run/drwebd.sock
|
||||
echo -n ' drwebd'
|
||||
;;
|
||||
*)
|
||||
|
50
security/drweb/files/ini-patch
Normal file
50
security/drweb/files/ini-patch
Normal file
@ -0,0 +1,50 @@
|
||||
--- drweb32.ini-tmpl.orig Wed Oct 3 10:27:06 2001
|
||||
+++ drweb32.ini-tmpl Wed Oct 3 10:31:53 2001
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[BSD]
|
||||
Key = "__INSTALL_DIR__/drweb.key"
|
||||
-LogFileName = "/var/log/drweb.log"
|
||||
+LogFileName = "/dev/null"
|
||||
RenameFilesTo = #??
|
||||
FilesTypes = EXE,COM,SYS,OV?,BAT,BIN,DRV,PRG,BOO,SCR,CMD,VXD,386,DLL,FON,DO?
|
||||
FilesTypes = XL?,WIZ,RTF,CL*,HT*,VB*,JS*,INF,AR?,ZIP,R??,PP?,OBJ,LIB,HLP,MD?
|
||||
@@ -37,7 +37,7 @@
|
||||
PromptOnAction = No
|
||||
PromptFloppy = No
|
||||
LimitLog = No
|
||||
-MaxLogSize = 512
|
||||
+;MaxLogSize = 512
|
||||
OutputMode = Color
|
||||
FollowLinks = No
|
||||
|
||||
@@ -47,22 +47,23 @@
|
||||
FilesTypes = XL?,WIZ,RTF,CL*,HT*,VB*,JS*,INF,AR?,ZIP,R??,PP?,OBJ,LIB,HLP,MD?
|
||||
FilesTypes = INI,MBR,IMG,CSC,CPL,MBP,SHS,SHB,PIF
|
||||
LogTime = Yes
|
||||
-LogFileName = "syslog"
|
||||
+LogFileName = "/var/log/drwebd.log"
|
||||
;BusyFile = "/var/run/drwebd.bsy"
|
||||
-SocketMode = TCP
|
||||
-;SocketMode = Unix
|
||||
+;SocketMode = TCP
|
||||
+SocketMode = Unix
|
||||
+SocketFile = "/var/run/drwebd.sock"
|
||||
DaemonPort = 3000
|
||||
SocketTimeout = 40
|
||||
SocketReuseAddr = Yes
|
||||
FileTimeout = 40
|
||||
-OutputMode = Terminal
|
||||
-LimitLog = No
|
||||
+OutputMode = Quiet
|
||||
+LimitLog = Yes
|
||||
MaxLogSize = 512
|
||||
LogScanned = Yes
|
||||
LogInfo = Yes
|
||||
LogPacked = Yes
|
||||
Interfaces = "localhost"
|
||||
-;User = drweb
|
||||
+User = root
|
||||
;UserID =
|
||||
;GroupID =
|
||||
ScanFiles = All
|
@ -93,11 +93,9 @@ drweb/russian.dwl
|
||||
drweb/update/readme.update
|
||||
drweb/update/readme.update.rus
|
||||
drweb/update/update.pl
|
||||
etc/rc.d/drwebd.sh-dist
|
||||
etc/rc.d/drwebd.sh
|
||||
@dirrm drweb/clients/cgp
|
||||
@dirrm drweb/clients/demo
|
||||
@dirrm drweb/clients/drwebdc/include
|
||||
@dirrm drweb/clients/drwebdc/lib
|
||||
@dirrm drweb/clients/drwebdc/src
|
||||
@dirrm drweb/clients/drwebdc
|
||||
@dirrm drweb/clients/exim
|
||||
|
Loading…
Reference in New Issue
Block a user