Remove DrWeb suite and companion packages. The packages are too
outdated and there are nobody who want to take a maintanership.
This commit is contained in:
parent
7f7a0c0bed
commit
886c97c562
36 changed files with 2 additions and 1096 deletions
8
Makefile
8
Makefile
|
@ -1,5 +1,5 @@
|
|||
# $Id: Makefile,v 1.1538 2004/11/15 07:07:14 xmor61 Exp $
|
||||
# $NetBSD: Makefile,v 1.1538 2004/11/15 07:07:14 xmor61 Exp $
|
||||
# $Id: Makefile,v 1.1539 2004/11/15 16:11:13 bubuchka Exp $
|
||||
# $NetBSD: Makefile,v 1.1539 2004/11/15 16:11:13 bubuchka Exp $
|
||||
|
||||
COMMENT= WIP pkgsrc packages
|
||||
|
||||
|
@ -120,10 +120,6 @@ SUBDIR+= doorman
|
|||
SUBDIR+= dovecot-nightly
|
||||
SUBDIR+= drow
|
||||
SUBDIR+= drpython
|
||||
SUBDIR+= drweb
|
||||
SUBDIR+= drweb-clients-shared
|
||||
SUBDIR+= drweb-dc
|
||||
SUBDIR+= drweb-smf
|
||||
SUBDIR+= dumb
|
||||
SUBDIR+= dxmake
|
||||
SUBDIR+= e16keyedit
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
This package contains common parts of various clients to DrWeb
|
||||
AntiVirus daemon, shipped by Dialogue Science. It's no any sence
|
||||
to install it as standalone package, and normally it should be
|
||||
installed by dependency only.
|
|
@ -1,61 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.5 2004/04/07 10:01:03 bubuchka Exp $
|
||||
|
||||
DRW_CLIENT_NAME= clients-shared
|
||||
|
||||
MAINTAINER= tech-pkg@NetBSD.org
|
||||
COMMENT= Shared files of clients to DrWeb Daemon antivirus
|
||||
|
||||
NO_CONFIGURE= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DRW_TEMPL_DIR= ${WRKSRC}/etc/templates/en
|
||||
|
||||
# ATTENTION: the MIO (etc/mio) have it's own notification templates
|
||||
CONF_FILES= \
|
||||
${EGDIR}/admin-archive.msg ${PKG_SYSCONFDIR}/admin-archive.msg \
|
||||
${EGDIR}/admin-error.msg ${PKG_SYSCONFDIR}/admin-error.msg \
|
||||
${EGDIR}/admin-rule.msg ${PKG_SYSCONFDIR}/admin-rule.msg \
|
||||
${EGDIR}/admin-virus.msg ${PKG_SYSCONFDIR}/admin-virus.msg \
|
||||
${EGDIR}/rcpts-virus.msg ${PKG_SYSCONFDIR}/rcpts-virus.msg \
|
||||
${EGDIR}/sender-archive.msg ${PKG_SYSCONFDIR}/sender-archive.msg\
|
||||
${EGDIR}/sender-error.msg ${PKG_SYSCONFDIR}/sender-error.msg \
|
||||
${EGDIR}/sender-skip.msg ${PKG_SYSCONFDIR}/sender-skip.msg \
|
||||
${EGDIR}/sender-virus.msg ${PKG_SYSCONFDIR}/sender-virus.msg \
|
||||
${EGDIR}/addresses.conf ${PKG_SYSCONFDIR}/addresses.conf \
|
||||
${EGDIR}/users.conf ${PKG_SYSCONFDIR}/users.conf \
|
||||
${EGDIR}/viruses.conf ${PKG_SYSCONFDIR}/viruses.conf
|
||||
|
||||
do-install:
|
||||
# --> Common documentation
|
||||
${INSTALL_DATA_DIR} ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/Acknowledgements ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/LICENSE.RUS ${DOCDIR}
|
||||
|
||||
# --> Common configuration files
|
||||
${INSTALL_DATA_DIR} ${EGDIR}
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/admin_archive.msg \
|
||||
${EGDIR}/admin-archive.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/admin_error.msg \
|
||||
${EGDIR}/admin-error.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/admin_rule.msg \
|
||||
${EGDIR}/admin-rule.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/admin_virus.msg \
|
||||
${EGDIR}/admin-virus.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/rcpts_virus.msg \
|
||||
${EGDIR}/rcpts-virus.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/sender_archive.msg \
|
||||
${EGDIR}/sender-archive.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/sender_error.msg \
|
||||
${EGDIR}/sender-error.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/sender_skip.msg \
|
||||
${EGDIR}/sender-skip.msg
|
||||
${INSTALL_DATA} ${DRW_TEMPL_DIR}/sender_virus.msg \
|
||||
${EGDIR}/sender-virus.msg
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/addresses.conf ${EGDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/users.conf ${EGDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/viruses.conf ${EGDIR}
|
||||
|
||||
.include "../../wip/drweb-clients-shared/Makefile.common"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -1,69 +0,0 @@
|
|||
# $NetBSD: Makefile.common,v 1.9 2004/06/30 07:16:54 bubuchka Exp $
|
||||
#
|
||||
# This is installation framework to various clients to DrWeb daemon
|
||||
# antivirus shiped by Dialogue Science
|
||||
#
|
||||
# 1) The following variables MUST be defined in client's Makefile:
|
||||
# DRW_CLIENT_NAME - ID name of client
|
||||
# 2) The following variables are already defined in this file:
|
||||
# DISTNAME, PKGNAME, CATEGORIES, MASTER_SITES, HOMEPAGE
|
||||
# 3) Wrote the client's Makefile, using definitions from the
|
||||
# drweb-clients-shared/Makefile.common and drweb/Makefile.common files.
|
||||
# 4) Create the drweb-clients-shared/files/configure.answers.DRW_CLIENT_NAME
|
||||
# file and fill it correctly
|
||||
# 5) include at the end of Makefile following lines:
|
||||
# .include "../../wip/drweb-clients-shared/Makefile.common"
|
||||
# .include "../../mk/bsd.pkg.mk"
|
||||
# Note: the bsd.pkg.install.mk is already included by this file.
|
||||
|
||||
DRW_CLMVER= 4.31
|
||||
#DRW_CLSUBVER= # is not defined
|
||||
#DRW_CLSUBVERN= # is not defined
|
||||
DRW_CLVER= ${DRW_CLMVER} # ${DRW_CLSUBVER:D-${DRW_CLSUBVER}}
|
||||
DRW_CLVERN= ${DRW_CLMVER} # ${DRW_CLSUBVERN:D.${DRW_CLSUBVERN}}
|
||||
|
||||
.if !defined(DRW_CLIENT_NAME)
|
||||
DRW_CLIENT_NAME= UNKNOWN
|
||||
PKG_FAIL_REASON= \
|
||||
"The package (${PKGNAME}) in the following directory is" \
|
||||
"improperly configured or damaged:" \
|
||||
" ${.CURDIR}" \
|
||||
"Please define DRW_CLIENT_NAME variable before and look to the" \
|
||||
"drweb-clients-shared/Makefile.common and drweb/Makefile.common files."
|
||||
.endif
|
||||
|
||||
DISTNAME= drweb-clients-${DRW_CLVER}-sources
|
||||
PKGNAME= drweb-${DRW_CLIENT_NAME}-${DRW_CLVERN}
|
||||
CATEGORIES= wip security
|
||||
MASTER_SITES= ftp://ftp.drweb.ru/pub/unix/ \
|
||||
ftp://ftp.drweb.ru/pub/unix/archive/drweb-clients-${DRW_CLVER}/ \
|
||||
ftp://ftp.drweb.ru/pub/unix/archive/
|
||||
|
||||
HOMEPAGE= http://www.sald.com/
|
||||
|
||||
.if ${DRW_CLIENT_NAME} != "clients-shared"
|
||||
DEPENDS+= drweb-clients-shared-${DRW_CLVERN}:../../wip/drweb-clients-shared
|
||||
|
||||
CFLAGS+= -DPKG_SYSCONFDIR='\"${PKG_SYSCONFDIR}\"'
|
||||
|
||||
PTHREAD_OPTS+= required
|
||||
USE_BUILDLINK3= yes
|
||||
.include "../../mk/pthread.buildlink3.mk"
|
||||
.endif
|
||||
|
||||
DRW_EGDIR= ${_EGDIR}-${DRW_CLIENT_NAME}
|
||||
DRW_DOCDIR= ${_DOCDIR}-${DRW_CLIENT_NAME}
|
||||
PATCHDIR= ${.CURDIR}/../../wip/drweb-clients-shared/patches
|
||||
FILESDIR= ${.CURDIR}/../../wip/drweb-clients-shared/files
|
||||
DISTINFO_FILE= ${.CURDIR}/../../wip/drweb-clients-shared/distinfo
|
||||
|
||||
FILES_SUBST+= DRW_CLVER=${DRW_CLVER} DRW_CLVERN=${DRW_CLVERN}
|
||||
|
||||
pre-configure:
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${FILESDIR}/configure.answers.${DRW_CLIENT_NAME} \
|
||||
> ${WRKDIR}/configure.answers
|
||||
cd ${WRKSRC} && ${SH} configure < ${WRKDIR}/configure.answers
|
||||
|
||||
.include "../../wip/drweb/Makefile.common"
|
||||
.include "../../mk/bsd.pkg.install.mk"
|
|
@ -1,19 +0,0 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/13 12:58:40 bubuchka Exp $
|
||||
${DRW_DOCDIR}/Acknowledgements
|
||||
${DRW_DOCDIR}/ChangeLog
|
||||
${DRW_DOCDIR}/LICENSE
|
||||
${DRW_DOCDIR}/LICENSE.RUS
|
||||
${DRW_EGDIR}/admin-archive.msg
|
||||
${DRW_EGDIR}/admin-error.msg
|
||||
${DRW_EGDIR}/admin-rule.msg
|
||||
${DRW_EGDIR}/admin-virus.msg
|
||||
${DRW_EGDIR}/rcpts-virus.msg
|
||||
${DRW_EGDIR}/sender-archive.msg
|
||||
${DRW_EGDIR}/sender-error.msg
|
||||
${DRW_EGDIR}/sender-skip.msg
|
||||
${DRW_EGDIR}/sender-virus.msg
|
||||
${DRW_EGDIR}/addresses.conf
|
||||
${DRW_EGDIR}/users.conf
|
||||
${DRW_EGDIR}/viruses.conf
|
||||
@dirrm ${DRW_DOCDIR}
|
||||
@dirrm ${DRW_EGDIR}
|
|
@ -1,9 +0,0 @@
|
|||
$NetBSD: distinfo,v 1.4 2004/04/07 10:01:03 bubuchka Exp $
|
||||
|
||||
SHA1 (drweb-clients-4.31-sources.tar.gz) = f2811f637548f6086e24101d7df6ffdd0b01ae8e
|
||||
Size (drweb-clients-4.31-sources.tar.gz) = 537926 bytes
|
||||
SHA1 (patch-aa) = 45f057779c6661af165b03e3a6e1067b70ea9842
|
||||
SHA1 (patch-ab) = 89f06c38e3aa662d8e15c974d28ec52356a5d2af
|
||||
SHA1 (patch-ac) = 2dbb1622aeb51f6c8f028b685a3c393afd8c48c1
|
||||
SHA1 (patch-ad) = c4ad6464d8da07b6efcdd761932290bce0165a22
|
||||
SHA1 (patch-ae) = 5109f4235e1e286b5a306015742e8aa2086b9a39
|
|
@ -1,27 +0,0 @@
|
|||
@DRW_CLVER@
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
y
|
||||
|
||||
y
|
||||
|
||||
-------------------------------
|
||||
The questions are ordered as follows:
|
||||
1. software version (can be any)
|
||||
2. sendmail (y/n)
|
||||
2a. sendmail-8.11 (y/n, only if sendmail=y)
|
||||
2b. sendmail>=8.12.2 (y/n, only if sendmail=y)
|
||||
3. zmailer (y/n)
|
||||
4. mobico mio (y/n)
|
||||
5. exim (y/n)
|
||||
6. postfix (y/n)
|
||||
7. qmail (y/n)
|
||||
8. courier-mta (y/n)
|
||||
9. command line client (y/n)
|
||||
10. any flags to cc (can be empty, or cc(1) flags)
|
||||
11. confirmation (y/n, must be "y")
|
|
@ -1,29 +0,0 @@
|
|||
@DRW_CLVER@
|
||||
y
|
||||
n
|
||||
y
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
n
|
||||
|
||||
y
|
||||
|
||||
-------------------------------
|
||||
The questions are ordered as follows:
|
||||
1. software version (can be any)
|
||||
2. sendmail (y/n)
|
||||
2a. sendmail-8.11 (y/n, only if sendmail=y)
|
||||
2b. sendmail>=8.12.2 (y/n, only if sendmail=y)
|
||||
3. zmailer (y/n)
|
||||
4. mobico mio (y/n)
|
||||
5. exim (y/n)
|
||||
6. postfix (y/n)
|
||||
7. qmail (y/n)
|
||||
8. courier-mta (y/n)
|
||||
9. command line client (y/n)
|
||||
10. any flags to cc (can be empty, or cc(1) flags)
|
||||
11. confirmation (y/n, must be "y")
|
|
@ -1,26 +0,0 @@
|
|||
#!@SH@
|
||||
#
|
||||
# $NetBSD: drweb-smf.sh,v 1.5 2003/10/27 20:26:59 bubuchka Exp $
|
||||
|
||||
# PROVIDE: drweb_smf
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
|
||||
. @RCD_SUBR@
|
||||
|
||||
name="drweb_smf"
|
||||
rcvar=$name
|
||||
command="@PREFIX@/sbin/drweb-smf"
|
||||
procname="${command}"
|
||||
start_precmd="drweb_smf_clean"
|
||||
required_files="@PKG_SYSCONFDIR@/drweb-smf.conf"
|
||||
|
||||
drweb_smf_clean()
|
||||
{
|
||||
if [ -e @DRW_SMF_SOCKFILE@ ]; then
|
||||
rm -f @DRW_SMF_SOCKFILE@
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
|
@ -1,4 +0,0 @@
|
|||
# DrWeb antivirus sendmail filter
|
||||
MAIL_FILTER(`drweb-filter', `S=local:@DRW_SMF_SOCKFILE@, T=S:10m;R:10m;E:1h')
|
||||
define(`confINPUT_MAIL_FILTERS', `drweb-filter')
|
||||
define(`confMILTER_LOG_LEVEL',`1')
|
|
@ -1,24 +0,0 @@
|
|||
$NetBSD: patch-aa,v 1.4 2004/04/07 10:01:04 bubuchka Exp $
|
||||
|
||||
--- Makefile.nix.tmpl.orig 2004-02-27 15:21:38.000000000 +0200
|
||||
+++ Makefile.nix.tmpl
|
||||
@@ -48,6 +48,7 @@ DEFFLAGS = ___POLL_DEF___ -D__UNI
|
||||
INCFLAGS = -Isrc
|
||||
ADD_CFLAGS = $(OPTFLAGS) $(DEFFLAGS) $(INCFLAGS) $(ADDFLAGS)
|
||||
#ADD_CFLAGS = $(OPTFLAGS) $(DEFFLAGS) $(INCFLAGS) $(ADDFLAGS) -DXED_VER
|
||||
+ADD_CFLAGS += ${CFLAGS} ${PTHREAD_CFLAGS}
|
||||
|
||||
# Multihtreaded libraries
|
||||
# Hack - under Linux we use in drweb-cgp fork, not threads
|
||||
@@ -65,7 +66,10 @@ ADDLIB_Solaris = -lnsl -lsocket -lresol
|
||||
|
||||
# Linking flags
|
||||
LINKLIB = -Llib -ldwclient-$(VERSION) $(ADDLIB_$(OS))
|
||||
-LINKLIBMT = -Llib -ldwclient-$(VERSION)_r $(ADDLIB_$(OS)) $(MTLIB_$(OS)$(ENV))
|
||||
+LINKLIB += ${LDFLAGS}
|
||||
+LINKLIBMT = -Llib -ldwclient-$(VERSION)_r $(ADDLIB_$(OS))
|
||||
+LINKLIBMT += ${LDFLAGS} ${PTHREAD_LDFLAGS}
|
||||
+
|
||||
|
||||
# Milter Library
|
||||
# Hack - add threads for drweb-smf under Linux
|
|
@ -1,58 +0,0 @@
|
|||
$NetBSD: patch-ab,v 1.4 2004/04/07 10:01:04 bubuchka Exp $
|
||||
|
||||
--- configure.orig 2004-02-27 15:21:38.000000000 +0200
|
||||
+++ configure
|
||||
@@ -42,6 +42,10 @@ case "`(uname -sr)2>/dev/null`" in
|
||||
OS="FreeBSD"
|
||||
BSD_MAKE="yes"
|
||||
;;
|
||||
+ "NetBSD"*)
|
||||
+ OS="FreeBSD"
|
||||
+ BSD_MAKE="yes"
|
||||
+ ;;
|
||||
"SunOS 5"*)
|
||||
OS="Solaris"
|
||||
echo
|
||||
@@ -139,42 +143,6 @@ if [ "$NEED_SM" = "y" ] ; then
|
||||
SM_LIB=""
|
||||
SM_LIB_CMD=""
|
||||
fi
|
||||
- NO_ADD="no"
|
||||
- if [ ! -f include/libmilter/mfapi.h ] ; then
|
||||
- echo "no include/libmilter/mfapi.h"
|
||||
- fi
|
||||
- if grep smfi_setbacklog include/libmilter/mfapi.h > /dev/null 2>&1 ; then
|
||||
- SM_BACKLOG="-DDW_HAVE_BACKLOG"
|
||||
- fi
|
||||
- if grep SMFI_DRWEB_PATCHED include/libmilter/mfapi.h > /dev/null 2>&1 ; then
|
||||
- SM_PATCH="yes"
|
||||
- fi
|
||||
- if [ "x$SM_HDR" != "x" -a ! -f "$SM_HDR" ] ; then
|
||||
- echo "no $SM_HDR"
|
||||
- NO_ADD="yes"
|
||||
- fi
|
||||
- if [ ! -f lib/libmilter.a ] ; then
|
||||
- echo "no lib/libmilter.a"
|
||||
- fi
|
||||
- if [ "x$SM_LIB" != "x" -a ! -f "$SM_LIB" ] ; then
|
||||
- echo "no $SM_LIB"
|
||||
- NO_ADD="yes"
|
||||
- fi
|
||||
- if [ ! -f include/libmilter/mfapi.h\
|
||||
- -o\
|
||||
- ! -f lib/libmilter.a\
|
||||
- -o\
|
||||
- $NO_ADD = "yes" ] ; then
|
||||
- echo
|
||||
- echo "So you should to have next files:"
|
||||
- echo "$SM_HDR"
|
||||
- echo "include/libmilter/mfapi.h"
|
||||
- echo "lib/libmilter.a"
|
||||
- echo "$SM_LIB"
|
||||
- echo
|
||||
- echo "Do it and try again"
|
||||
- exit 1
|
||||
- fi
|
||||
else
|
||||
DRWEB_SM=""
|
||||
fi
|
|
@ -1,87 +0,0 @@
|
|||
$NetBSD: patch-ac,v 1.4 2004/04/07 10:01:04 bubuchka Exp $
|
||||
|
||||
--- dw_options.c.orig 2004-02-27 15:21:38.000000000 +0200
|
||||
+++ dw_options.c
|
||||
@@ -76,7 +76,7 @@ static const char rcsid[] = "$Id: dw_opt
|
||||
#define PROG_NAME "drweb-smf"
|
||||
#define PROG_FULLNAME "DrWeb Sendmail Filter"
|
||||
#define PROG_NOTE ""
|
||||
-#define CONF_FNAME "drweb_smf.conf"
|
||||
+#define CONF_FNAME "drweb-smf.conf"
|
||||
#endif /* SENDMAIL */
|
||||
|
||||
#if defined(DW_CGP)
|
||||
@@ -84,7 +84,7 @@ static const char rcsid[] = "$Id: dw_opt
|
||||
#define PROG_NOTE "Note: plug-in will be started by CommuniGate Pro automatically"
|
||||
#if defined(__UNIX_DW)
|
||||
#define PROG_NAME "drweb-cgp"
|
||||
-#define CONF_FNAME "drweb_cgp.conf"
|
||||
+#define CONF_FNAME "drweb-cgp.conf"
|
||||
#endif /* UNIX */
|
||||
#if defined(__WIN32_DW)
|
||||
#define PROG_NAME "drweb-cgp.exe"
|
||||
@@ -96,48 +96,40 @@ static const char rcsid[] = "$Id: dw_opt
|
||||
#define PROG_NAME "drweb-mio"
|
||||
#define PROG_FULLNAME "DrWeb Plug-in for Mobico MIO Server"
|
||||
#define PROG_NOTE "Note: plug-in will be started by MIO automatically"
|
||||
-#define CONF_FNAME "drweb_mio.conf"
|
||||
+#define CONF_FNAME "drweb-mio.conf"
|
||||
#endif /* MIO */
|
||||
|
||||
#if defined(DW_ZMAILER)
|
||||
#define PROG_NAME "drweb-zmailer"
|
||||
#define PROG_FULLNAME "DrWeb Filter for ZMailer"
|
||||
#define PROG_NOTE "Note: filter will be started by ZMailer automatically"
|
||||
-#define CONF_FNAME "drweb_zmailer.conf"
|
||||
+#define CONF_FNAME "drweb-zmailer.conf"
|
||||
#endif /* ZMAILER */
|
||||
|
||||
#if defined(DW_QMAIL)
|
||||
#define PROG_NAME "qmail-queue"
|
||||
#define PROG_FULLNAME "DrWeb Filter for QMail"
|
||||
#define PROG_NOTE "Note: filter will be started by QMail system automatically after install"
|
||||
-#define CONF_FNAME "drweb_qmail.conf"
|
||||
+#define CONF_FNAME "drweb-qmail.conf"
|
||||
#endif /* QMAIL */
|
||||
|
||||
#if defined(DW_POSTFIX)
|
||||
#define PROG_NAME "drweb-postfix"
|
||||
#define PROG_FULLNAME "DrWeb Filter for Postfix"
|
||||
#define PROG_NOTE "Note: filter will be started by Postfix system automatically after install"
|
||||
-#define CONF_FNAME "drweb_postfix.conf"
|
||||
+#define CONF_FNAME "drweb-postfix.conf"
|
||||
#endif /* POSTFIX */
|
||||
|
||||
#if defined(DW_EXIM)
|
||||
#define PROG_NAME "drweb-exim"
|
||||
#define PROG_FULLNAME "DrWeb Filter for Exim"
|
||||
#define PROG_NOTE "Note: filter will be started by Exim system automatically after install"
|
||||
-#define CONF_FNAME "drweb_exim.conf"
|
||||
+#define CONF_FNAME "drweb-exim.conf"
|
||||
#endif /* EXIM */
|
||||
|
||||
#if defined(__UNIX_DW)
|
||||
-#if !defined(EMX_DW)
|
||||
-#if defined(FreeBSD_DW)
|
||||
-#define OS_SPEC_CONFNAME "/usr/local/etc/drweb/"CONF_FNAME
|
||||
-#else /* FreeBSD */
|
||||
-#define OS_SPEC_CONFNAME "/opt/drweb/"CONF_FNAME
|
||||
-#endif /* FreeBSD */
|
||||
-#else /* EMX */
|
||||
-#define OS_SPEC_CONFNAME "/emx/opt/drweb/etc/"CONF_FNAME
|
||||
-#endif /* EMX */
|
||||
-#define FHS_SPEC_CONFNAME "/etc/drweb/"CONF_FNAME
|
||||
+#define OS_SPEC_CONFNAME PKG_SYSCONFDIR"/"CONF_FNAME
|
||||
+#define FHS_SPEC_CONFNAME "./"CONF_FNAME
|
||||
#endif /* UNIX */
|
||||
|
||||
#if !defined(SMFI_DRWEB_PATCHED)
|
||||
@@ -148,7 +140,7 @@ static const char rcsid[] = "$Id: dw_opt
|
||||
|
||||
#else /* SAMBA */
|
||||
|
||||
-#define SMB_CONF_FILE "/etc/drweb/smb_spider.conf"
|
||||
+#define SMB_CONF_FILE "/etc/drweb/smb-spider.conf"
|
||||
|
||||
#endif /* not SAMBA */
|
||||
|
|
@ -1,129 +0,0 @@
|
|||
$NetBSD: patch-ad,v 1.4 2004/04/07 10:01:04 bubuchka Exp $
|
||||
|
||||
--- etc/drweb_smf.conf.orig 2004-02-27 15:21:37.000000000 +0200
|
||||
+++ etc/drweb_smf.conf
|
||||
@@ -15,10 +15,10 @@
|
||||
# pid - get daemon address from pidfile, then {ADDRESS} is {PIDFILE}
|
||||
# Examples:
|
||||
# Address = inet:3000@localhost
|
||||
-# Address = local:/usr/local/drweb/run/drwebd.skt
|
||||
-# Address = pid:/usr/local/drweb/run/drwebd.pid
|
||||
-# Address = pid:/var/drweb/run/drwebd.pid, inet:3000@backup_server.example.com
|
||||
-Address = inet:3000@localhost
|
||||
+# Address = local:@DRW_SOCKFILE@
|
||||
+# Address = pid:@DRW_PIDFILE@
|
||||
+# Address = pid:@DRW_PIDFILE@, inet:3000@backup_server.example.com
|
||||
+Address = local:@DRW_SOCKFILE@
|
||||
|
||||
# Enable/disable caching of the resolved daemon host
|
||||
# (useful only if daemon uses TCP/IP communications)
|
||||
@@ -59,13 +59,13 @@ ReportMaxSize = 8192
|
||||
# LocalScan affects only connection with first daemon in the Address list
|
||||
# If enabled then spool directory must be readable (writable for EVAL key)
|
||||
# for drwebd process (see drweb32.ini option User)
|
||||
-LocalScan = yes
|
||||
+LocalScan = no
|
||||
|
||||
# Enable or disable daemon rule filter (on/off)
|
||||
RuleFilter = on
|
||||
|
||||
# User account used by filter
|
||||
-FilterAccount = drweb
|
||||
+FilterAccount = @DRW_USER@
|
||||
|
||||
# If this parameter is set to "yes" filter will not become a daemon
|
||||
# (fork and go into background), it uses tools for monitoring filter state with
|
||||
@@ -91,10 +91,10 @@ DenyMode = byAllRecipients
|
||||
DenyByDefault = no
|
||||
|
||||
# List with rules for users or domains to block scanning
|
||||
-DenyList = /etc/drweb/users.conf
|
||||
+DenyList = @PKG_SYSCONFDIR@/users.conf
|
||||
|
||||
# Directory used to store temporary files
|
||||
-Spool = /var/drweb/spool
|
||||
+Spool = /tmp
|
||||
|
||||
# Permissions for created spool files
|
||||
SpoolFilesMode = 0600
|
||||
@@ -269,16 +269,16 @@ RedirectMail = postmaster
|
||||
FilterMail = DrWEB-DAEMON
|
||||
|
||||
# List of unnotificable viruses
|
||||
-UnnotificableVirusesList = /etc/drweb/viruses.conf
|
||||
+UnnotificableVirusesList = @PKG_SYSCONFDIR@/viruses.conf
|
||||
|
||||
# List of unnotificable addresses
|
||||
-UnnotificableAddressesList = /etc/drweb/addresses.conf
|
||||
+UnnotificableAddressesList = @PKG_SYSCONFDIR@/addresses.conf
|
||||
|
||||
# Quarantine directory.
|
||||
# The infected files could be moved in that dir
|
||||
# if you leave this field empty or commented out then
|
||||
# infected messages will not be stored
|
||||
-Quarantine = /var/drweb/infected
|
||||
+Quarantine = @DRW_INFECTDIR@
|
||||
|
||||
# Permissions for quarantined files
|
||||
QuarantineFilesMode = 0660
|
||||
@@ -317,15 +317,15 @@ AdminNotify = yes
|
||||
RcptsNotify = yes
|
||||
|
||||
# Files with notification templates
|
||||
-SenderTemplate = /etc/drweb/templates/en-ru/sendmail/virus-sender.msg
|
||||
-AdminTemplate = /etc/drweb/templates/en-ru/sendmail/virus-admin.msg
|
||||
-RcptsTemplate = /etc/drweb/templates/en-ru/sendmail/virus-rcpts.msg
|
||||
+SenderTemplate = @PKG_SYSCONFDIR@/sender-virus.msg
|
||||
+AdminTemplate = @PKG_SYSCONFDIR@/admin-virus.msg
|
||||
+RcptsTemplate = @PKG_SYSCONFDIR@/rcpts-virus.msg
|
||||
|
||||
[SkipNotifications]
|
||||
SenderNotify = yes
|
||||
AdminNotify = no
|
||||
RcptsNotify = no
|
||||
-SenderTemplate = /etc/drweb/templates/en-ru/sendmail/skip-sender.msg
|
||||
+SenderTemplate = @PKG_SYSCONFDIR@/sender-skip.msg
|
||||
AdminTemplate =
|
||||
RcptsTemplate =
|
||||
|
||||
@@ -333,16 +333,16 @@ RcptsTemplate =
|
||||
SenderNotify = yes
|
||||
AdminNotify = yes
|
||||
RcptsNotify = no
|
||||
-SenderTemplate = /etc/drweb/templates/en-ru/sendmail/archive-sender.msg
|
||||
-AdminTemplate = /etc/drweb/templates/en-ru/sendmail/archive-admin.msg
|
||||
+SenderTemplate = @PKG_SYSCONFDIR@/sender-archive.msg
|
||||
+AdminTemplate = @PKG_SYSCONFDIR@/admin-archive.msg
|
||||
RcptsTemplate =
|
||||
|
||||
[ErrorNotifications]
|
||||
SenderNotify = yes
|
||||
AdminNotify = yes
|
||||
RcptsNotify = no
|
||||
-SenderTemplate = /etc/drweb/templates/en-ru/sendmail/error-sender.msg
|
||||
-AdminTemplate = /etc/drweb/templates/en-ru/sendmail/error-admin.msg
|
||||
+SenderTemplate = @PKG_SYSCONFDIR@/sender-error.msg
|
||||
+AdminTemplate = @PKG_SYSCONFDIR@/admin-error.msg
|
||||
RcptsTemplate =
|
||||
|
||||
[RuleFilterNotifications]
|
||||
@@ -350,7 +350,7 @@ SenderNotify = no
|
||||
AdminNotify = yes
|
||||
RcptsNotify = no
|
||||
SenderTemplate =
|
||||
-AdminTemplate = /etc/drweb/templates/en-ru/sendmail/rule-admin.msg
|
||||
+AdminTemplate = @PKG_SYSCONFDIR@/admin-rule.msg
|
||||
RcptsTemplate =
|
||||
|
||||
###################
|
||||
@@ -390,8 +390,8 @@ Sendmail = /usr/sbin/sendmail
|
||||
|
||||
# Definition of Sendmail Milter Address according to sendmail.cf
|
||||
# Note: FAMILY pid is not valid
|
||||
-# MilterAddress = local:/usr/local/drweb/run/drweb-smf.skt
|
||||
-MilterAddress = inet:3001@localhost
|
||||
+# MilterAddress = inet:3001@localhost
|
||||
+MilterAddress = local:@DRW_SMF_SOCKFILE@
|
||||
|
||||
# Timeout for drweb-smf to sendmail connection
|
||||
# (Must be greater than any Timeout. parameter in sendmail.cf)
|
|
@ -1,12 +0,0 @@
|
|||
$NetBSD: patch-ae,v 1.4 2004/04/07 10:01:05 bubuchka Exp $
|
||||
|
||||
--- src/Makefile.nix.tmpl.orig 2004-02-27 15:21:38.000000000 +0200
|
||||
+++ src/Makefile.nix.tmpl
|
||||
@@ -33,6 +33,7 @@ OPTFLAGS = ___OPT_FLAGS___
|
||||
DEFFLAGS = ___POLL_DEF___ -D__UNIX_DW -D$(OS)_DW
|
||||
INCFLAGS =
|
||||
ADD_CFLAGS = $(OPTFLAGS) $(DEFFLAGS) $(INCFLAGS) $(ADDFLAGS)
|
||||
+ADD_CFLAGS += ${CFLAGS} ${PTHREAD_CFLAGS}
|
||||
|
||||
SRCS = \
|
||||
dwc_strings.c\
|
|
@ -1,2 +0,0 @@
|
|||
The drwebdc is a command line tool intended to control DrWeb
|
||||
AntiVirus daemon.
|
|
@ -1,12 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.3 2004/03/12 00:21:06 minskim Exp $
|
||||
|
||||
DRW_CLIENT_NAME= dc
|
||||
|
||||
MAINTAINER= tech-pkg@NetBSD.org
|
||||
COMMENT= Command line client for DrWeb Daemon antivirus
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/drwebdc ${PREFIX}/sbin
|
||||
|
||||
.include "../../wip/drweb-clients-shared/Makefile.common"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -1,2 +0,0 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/13 13:00:25 bubuchka Exp $
|
||||
sbin/drwebdc
|
|
@ -1,2 +0,0 @@
|
|||
The mail filter for DrWeb Daemon antivirus using Milter library
|
||||
from sendmail-8.12.2 or greater.
|
|
@ -1,22 +0,0 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE,v 1.3 2003/11/22 23:13:50 bubuchka Exp $
|
||||
|
||||
To enable this mail filter on your sendmail server, please add the
|
||||
contents of the following file to /etc/mail/sendmail.mc, and then
|
||||
rebuild last one:
|
||||
|
||||
${EGDIR}/sendmail.mc.addon
|
||||
|
||||
|
||||
*** IMPORTANT ***
|
||||
|
||||
If you are doing upgrade from drweb-smf version prior to 4.30, it is
|
||||
HIGHLY RECOMMENDED to use the new configuration file. Sample file is
|
||||
located on:
|
||||
|
||||
${EGDIR}/drweb-smf.conf
|
||||
|
||||
Please note also, the ${PKGNAME} is NOT compatible with
|
||||
DrWeb Daemon version prior to 4.30. Please upgrade it as well.
|
||||
|
||||
===========================================================================
|
|
@ -1,48 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.6 2004/05/09 20:48:25 blef Exp $
|
||||
|
||||
DRW_CLIENT_NAME= smf
|
||||
|
||||
MAINTAINER= tech-pkg@NetBSD.org
|
||||
COMMENT= Sendmail MTA filter for DrWeb Daemon antivirus
|
||||
|
||||
RCD_SCRIPTS= drweb-smf
|
||||
|
||||
PKG_GROUPS= ${DRW_GROUP}
|
||||
PKG_USERS= ${DRW_USER}:${PKG_GROUPS}::DrWeb\\ AntiVirus
|
||||
|
||||
OWN_DIRS_PERMS+= ${DRW_DIR} ${DRW_USER} ${DRW_GROUP} 0755
|
||||
OWN_DIRS_PERMS+= ${DRW_INFECTDIR} ${DRW_USER} ${DRW_GROUP} 0700
|
||||
|
||||
DRW_SMF_SOCKFILE= ${DRW_RUNDIR}/drweb-smf.sock
|
||||
FILES_SUBST+= DRW_SMF_SOCKFILE=${DRW_SMF_SOCKFILE}
|
||||
|
||||
CONF_FILES= ${EGDIR}/drweb-smf.conf ${PKG_SYSCONFDIR}/drweb-smf.conf
|
||||
|
||||
do-configure:
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${WRKSRC}/etc/drweb_smf.conf > ${WRKDIR}/drweb-smf.conf
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${FILESDIR}/sendmail.mc.addon > ${WRKDIR}/sendmail.mc.addon
|
||||
|
||||
do-install:
|
||||
# --> Executables
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/drweb-smf ${PREFIX}/sbin
|
||||
|
||||
# --> Configuration files
|
||||
${INSTALL_DATA_DIR} ${EGDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/drweb-smf.conf ${EGDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/sendmail.mc.addon ${EGDIR}
|
||||
|
||||
# --> Documentation
|
||||
${INSTALL_DATA_DIR} ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sendmail/addresses_list.txt ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sendmail/conf_file.txt ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sendmail/notify.txt ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sendmail/readme ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sendmail/users_list.txt ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/sendmail/viruses_list.txt ${DOCDIR}
|
||||
|
||||
.include "../../wip/drweb-clients-shared/Makefile.common"
|
||||
.include "../../mail/libmilter/buildlink3.mk"
|
||||
.include "../../wip/mk/rcd.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -1,12 +0,0 @@
|
|||
@comment $NetBSD: PLIST,v 1.2 2004/04/24 04:13:34 jeremy-c-reed Exp $
|
||||
sbin/drweb-smf
|
||||
${DRW_DOCDIR}/addresses_list.txt
|
||||
${DRW_DOCDIR}/conf_file.txt
|
||||
${DRW_DOCDIR}/notify.txt
|
||||
${DRW_DOCDIR}/readme
|
||||
${DRW_DOCDIR}/users_list.txt
|
||||
${DRW_DOCDIR}/viruses_list.txt
|
||||
${DRW_EGDIR}/drweb-smf.conf
|
||||
${DRW_EGDIR}/sendmail.mc.addon
|
||||
@dirrm ${DRW_DOCDIR}
|
||||
@dirrm ${DRW_EGDIR}
|
|
@ -1,4 +0,0 @@
|
|||
- It works within troubles on NetBSD version prior to 1.6ZD and
|
||||
just halts on NetBSD-stable (using devel/pth). Within
|
||||
devel/{unproven|mit}-pthreads it works like on NetBSD-current.
|
||||
The problem is covered by broken POSIX threads support.
|
12
drweb/DESCR
12
drweb/DESCR
|
@ -1,12 +0,0 @@
|
|||
This is a well known DrWeb antivirus suite for i386 machines running
|
||||
one of the following *nix like OS: FreeBSD, NetBSD, OpenBSD, Solaris,
|
||||
or Linux.
|
||||
|
||||
It is much alike traditional DrWeb for DOS, but in addition to
|
||||
virus disk scanner it includes DrWeb daemon, which can serve requests
|
||||
from network making this suite very flexible for many purposes,
|
||||
such as mail filtering or powerful dedicated antivirus servers.
|
||||
|
||||
Please note, this package provides an evaluation version. To achieve
|
||||
the complete functionality you must order the registration key from
|
||||
SalD Ltd. (see homepage for details).
|
|
@ -1,7 +0,0 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE.NetBSD,v 1.1 2003/09/11 15:20:28 bubuchka Exp $
|
||||
|
||||
WARNING!!! Be sure having compiled kernel with following option:
|
||||
options COMPAT_FREEBSD # binary compatibility with FreeBSD
|
||||
|
||||
===========================================================================
|
|
@ -1,17 +0,0 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE.common,v 1.4 2004/04/06 15:19:35 bubuchka Exp $
|
||||
|
||||
Add the similar to following to /etc/services:
|
||||
drwebd 3000/tcp # DrWeb daemon
|
||||
|
||||
Add the similar to following to crontab(5) file:
|
||||
* */2 * * * ${PREFIX}/sbin/drweb-update
|
||||
|
||||
|
||||
*** IMPORTANT ***
|
||||
|
||||
If you are doing upgrade from DrWeb version prior to 4.30, you MUST
|
||||
merge your existent "${PKG_SYSCONFDIR}/drweb32.ini" file within
|
||||
clean copy installed in "${EGDIR}/drweb32.ini".
|
||||
|
||||
===========================================================================
|
143
drweb/Makefile
143
drweb/Makefile
|
@ -1,143 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.17 2004/06/30 07:16:53 bubuchka Exp $
|
||||
#
|
||||
# Note: We'll not use drweb's own configuration / building / installation
|
||||
# facilities so as its all are very ugly.
|
||||
|
||||
DISTNAME= drweb-4.31.3-${DISTTYPE}
|
||||
PKGNAME= drweb-4.31.3
|
||||
CATEGORIES= wip security
|
||||
MASTER_SITES= ftp://ftp.drweb.ru/pub/unix/generic/ \
|
||||
ftp://ftp.drweb.ru/pub/unix/ \
|
||||
ftp://ftp.drweb.ru/pub/unix/archive/${PKGNAME}/ \
|
||||
ftp://ftp.drweb.ru/pub/unix/archive/
|
||||
|
||||
MAINTAINER= tech-pkg@NetBSD.org
|
||||
HOMEPAGE= http://www.sald.com/
|
||||
COMMENT= DrWeb Antivirus Suite
|
||||
|
||||
ONLY_FOR_PLATFORM= FreeBSD-[3-5].*-i386 OpenBSD-[3-9].*-i386 \
|
||||
NetBSD-1.[6-9]*-i386 NetBSD-[2-9].*-i386 \
|
||||
Linux-*-i[3-6]86 Solaris-*-i386
|
||||
|
||||
.include "../../wip/mk/rcd.mk"
|
||||
|
||||
.if ${OPSYS} == "FreeBSD" && ${MAJOR_OS_VERSION} >= 5.0
|
||||
DISTTYPE= freebsd5
|
||||
.elif ${OPSYS} == "FreeBSD" && ${MAJOR_OS_VERSION} >= 4.0
|
||||
DISTTYPE= freebsd4
|
||||
.elif ${OPSYS} == "FreeBSD" && ${MAJOR_OS_VERSION} >= 3.0
|
||||
DISTTYPE= freebsd3
|
||||
.elif ${OPSYS} == "OpenBSD" && ${MAJOR_OS_VERSION} >= 3.4
|
||||
DISTTYPE= openbsd34
|
||||
.elif ${OPSYS} == "OpenBSD" && ${MAJOR_OS_VERSION} >= 3.0
|
||||
DISTTYPE= openbsd3
|
||||
.elif ${OPSYS} == "NetBSD"
|
||||
DISTTYPE= freebsd4
|
||||
.elif ${OPSYS} == "Solaris"
|
||||
DISTTYPE= solaris
|
||||
.elif ${OPSYS} == "Linux"
|
||||
GLIBC_VERSION?= 2.3
|
||||
. if empty(GLIBC_VERSION:tW:M2.[1-3])
|
||||
PKG_FAIL_REASON="Unknown glibc version (must be one of 2.[1-3], but set to ${GLIBC_VERSION})."
|
||||
. endif
|
||||
BUILD_DEFS+= GLIBC_VERSION
|
||||
DISTTYPE= glibc.${GLIBC_VERSION}
|
||||
.endif
|
||||
|
||||
# The following used by drweb-update script only
|
||||
.if ${OPSYS} != "FreeBSD" # FreeBSD have a fetch(1)
|
||||
DEPENDS= wget>=1.7:../../net/wget
|
||||
.endif
|
||||
USE_PERL5= YES
|
||||
|
||||
NO_BUILD= YES
|
||||
|
||||
BUILD_DEFS+= DRW_DIR DRW_BASESDIR DRW_INFECTDIR \
|
||||
DRW_LOGDIR DRW_RUNDIR \
|
||||
DRW_PIDFILE DRW_SOCKFILE
|
||||
|
||||
PKG_GROUPS= ${DRW_GROUP}
|
||||
PKG_USERS= ${DRW_USER}:${PKG_GROUPS}::DrWeb\\ AntiVirus
|
||||
|
||||
OWN_DIRS_PERMS= ${DRW_DIR} ${DRW_USER} ${DRW_GROUP} 0755 \
|
||||
${DRW_BASESDIR} ${DRW_USER} ${DRW_GROUP} 0755 \
|
||||
${DRW_INFECTDIR} ${DRW_USER} ${DRW_GROUP} 0700 \
|
||||
${DRW_LOGDIR} ${DRW_USER} ${DRW_GROUP} 0755 \
|
||||
${DRW_RUNDIR} ${DRW_USER} ${DRW_GROUP} 0755
|
||||
|
||||
CONF_FILES= ${EGDIR}/drweb32.ini ${PKG_SYSCONFDIR}/drweb32.ini
|
||||
SUPPORT_FILES= ${EGDIR}/drweb.key ${PKG_SYSCONFDIR}/drweb.key \
|
||||
${EGDIR}/drwebd.key ${PKG_SYSCONFDIR}/drwebd.key \
|
||||
${EGDIR}/drweb32.dll ${DRW_BASESDIR}/drweb32.dll \
|
||||
${EGDIR}/drwebase.vdb ${DRW_BASESDIR}/drwebase.vdb \
|
||||
${EGDIR}/drw43101.vdb ${DRW_BASESDIR}/drw43101.vdb
|
||||
|
||||
RCD_SCRIPTS= drwebd
|
||||
RCD_SCRIPT_SRC.drwebd= ${FILESDIR}/drwebd-rcd.src
|
||||
|
||||
.if ${OPSYS:C/^.*BSD.*$/BSD/} == "BSD"
|
||||
WRKSRC_BIN= ${WRKSRC}/usr/local/drweb
|
||||
WRKSRC_INI= ${WRKSRC}/usr/local/etc/drweb
|
||||
.else
|
||||
WRKSRC_BIN= ${WRKSRC}/opt/drweb
|
||||
WRKSRC_INI= ${WRKSRC}/etc/drweb
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${PATCH} ${WRKSRC_INI}/drweb32.ini < ${FILESDIR}/drweb32-ini.patch
|
||||
|
||||
do-configure:
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${FILESDIR}/drweb-sh.src > ${WRKDIR}/drweb-sh
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${FILESDIR}/drwebd-sh.src > ${WRKDIR}/drwebd-sh
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${WRKSRC_BIN}/update/update.pl > ${WRKDIR}/drweb-update
|
||||
@${SED} ${FILES_SUBST_SED} \
|
||||
${WRKSRC_INI}/drweb32.ini > ${WRKDIR}/drweb32-ini
|
||||
.if ${OPSYS} == "NetBSD"
|
||||
${MV} ${WRKSRC_BIN}/drweb.static ${WRKDIR}/drweb-bin
|
||||
${MV} ${WRKSRC_BIN}/drwebd.static ${WRKDIR}/drwebd-bin
|
||||
.else
|
||||
${MV} ${WRKSRC_BIN}/drweb ${WRKDIR}/drweb-bin
|
||||
${MV} ${WRKSRC_BIN}/drwebd ${WRKDIR}/drwebd-bin
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
# --> Executables
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/drweb-bin ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/drwebd-bin ${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/drweb-sh ${PREFIX}/bin/drweb
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/drwebd-sh ${PREFIX}/sbin/drwebd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/drweb-update ${PREFIX}/sbin
|
||||
|
||||
${INSTALL_DATA_DIR} ${EGDIR}
|
||||
|
||||
# --> Configuration files & evaluation keys
|
||||
${INSTALL_DATA} ${WRKDIR}/drweb32-ini ${EGDIR}/drweb32.ini
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/drweb.key ${EGDIR}/drweb.key
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/drwebd.key ${EGDIR}/drwebd.key
|
||||
|
||||
# --> Minimal set of antivirus bases
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/lib/drweb32.dll ${EGDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/var/drweb/bases/drwebase.vdb ${EGDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/var/drweb/bases/drw43101.vdb ${EGDIR}
|
||||
|
||||
# --> Documentation
|
||||
${INSTALL_DATA_DIR} ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/README ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/ChangeLog ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/doc/readme.daemon ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/doc/readme.scanner ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/doc/readme.eicar ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC_BIN}/update/readme.update ${DOCDIR}
|
||||
|
||||
post-install:
|
||||
# --> Remove old antivirus databases
|
||||
${RM} -f ${DRW_BASESDIR}/drw4[0-2]*.vdb
|
||||
${RM} -f ${DRW_BASESDIR}/drw430*.vdb
|
||||
${RM} -f ${DRW_BASESDIR}/drwtoday.vdb
|
||||
|
||||
.include "../../wip/drweb/Makefile.common"
|
||||
.include "../../mk/bsd.pkg.install.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -1,48 +0,0 @@
|
|||
# $NetBSD: Makefile.common,v 1.6 2004/06/10 06:31:20 bubuchka Exp $
|
||||
#
|
||||
# This part of Makefile should be also used in DrWeb AV companion software
|
||||
|
||||
DRWEB= drweb
|
||||
|
||||
DRW_USER= ${DRWEB}
|
||||
DRW_GROUP= ${DRWEB}
|
||||
|
||||
DRW_DIR?= ${VARBASE}/${DRWEB}
|
||||
DRW_BASESDIR?= ${DRW_DIR}/bases
|
||||
DRW_INFECTDIR?= ${DRW_DIR}/infected
|
||||
DRW_LOGDIR?= ${DRW_DIR}
|
||||
DRW_RUNDIR?= ${DRW_DIR}
|
||||
_EGDIR= share/examples/${DRWEB}
|
||||
_DOCDIR= share/doc/${DRWEB}
|
||||
DRW_EGDIR?= ${_EGDIR}
|
||||
DRW_DOCDIR?= ${_DOCDIR}
|
||||
EGDIR= ${PREFIX}/${DRW_EGDIR}
|
||||
DOCDIR= ${PREFIX}/${DRW_DOCDIR}
|
||||
|
||||
DRW_LOGFILE= ${DRW_LOGDIR}/drwebd.log
|
||||
DRW_LOGFILE_SCANNER= ${DRW_LOGDIR}/drweb.log
|
||||
DRW_PIDFILE?= ${DRW_RUNDIR}/drwebd.pid
|
||||
DRW_SOCKFILE?= ${DRW_RUNDIR}/drwebd.sock
|
||||
|
||||
PKG_SYSCONFSUBDIR?= ${DRWEB}
|
||||
|
||||
DRW_SUBST+= DRWEB=${DRWEB} \
|
||||
DRW_DIR=${DRW_DIR} \
|
||||
DRW_BASESDIR=${DRW_BASESDIR} \
|
||||
DRW_DOCDIR=${DRW_DOCDIR} \
|
||||
DRW_EGDIR=${DRW_EGDIR} \
|
||||
DRW_INFECTDIR=${DRW_INFECTDIR} \
|
||||
DRW_LOGDIR=${DRW_LOGDIR} \
|
||||
DRW_RUNDIR=${DRW_RUNDIR} \
|
||||
DRW_USER=${DRW_USER} \
|
||||
DRW_GROUP=${DRW_GROUP} \
|
||||
DRW_LOGFILE=${DRW_LOGFILE} \
|
||||
DRW_LOGFILE_SCANNER=${DRW_LOGFILE_SCANNER} \
|
||||
DRW_PIDFILE=${DRW_PIDFILE} \
|
||||
DRW_SOCKFILE=${DRW_SOCKFILE} \
|
||||
EGDIR=${EGDIR} \
|
||||
DOCDIR=${DOCDIR}
|
||||
|
||||
FILES_SUBST+= ${DRW_SUBST}
|
||||
PLIST_SUBST+= ${DRW_SUBST}
|
||||
MESSAGE_SUBST+= ${DRW_SUBST}
|
20
drweb/PLIST
20
drweb/PLIST
|
@ -1,20 +0,0 @@
|
|||
@comment $NetBSD: PLIST,v 1.7 2004/04/24 04:13:34 jeremy-c-reed Exp $
|
||||
bin/drweb
|
||||
bin/drweb-bin
|
||||
sbin/drweb-update
|
||||
sbin/drwebd
|
||||
sbin/drwebd-bin
|
||||
${DRW_DOCDIR}/ChangeLog
|
||||
${DRW_DOCDIR}/README
|
||||
${DRW_DOCDIR}/readme.daemon
|
||||
${DRW_DOCDIR}/readme.eicar
|
||||
${DRW_DOCDIR}/readme.scanner
|
||||
${DRW_DOCDIR}/readme.update
|
||||
${DRW_EGDIR}/drw43101.vdb
|
||||
${DRW_EGDIR}/drweb.key
|
||||
${DRW_EGDIR}/drweb32.dll
|
||||
${DRW_EGDIR}/drweb32.ini
|
||||
${DRW_EGDIR}/drwebase.vdb
|
||||
${DRW_EGDIR}/drwebd.key
|
||||
@dirrm ${DRW_DOCDIR}
|
||||
@dirrm ${DRW_EGDIR}
|
13
drweb/TODO
13
drweb/TODO
|
@ -1,13 +0,0 @@
|
|||
$Id: TODO,v 1.9 2004/04/07 07:51:09 bubuchka Exp $
|
||||
|
||||
- [jmmv] Several cleanup.
|
||||
|
||||
- [jmmv] Test if it works properly (use the wip/drweb-* clients).
|
||||
|
||||
- Wait until DrWeb 4.30.x for NetBSD will released, then support
|
||||
it. Just at this moment it runs under FreeBSD binary emulation.
|
||||
|
||||
Please also note that all precomplied software available (at least
|
||||
tested) for i386 only. The sources (clients) have all chances to
|
||||
work on other architectures (someone has reported running sendmail
|
||||
filter on Solaris/UltraSPARC and I've tested drweb-dc on NetBSD/macppc).
|
|
@ -1,21 +0,0 @@
|
|||
$NetBSD: distinfo,v 1.5 2004/04/07 06:58:47 bubuchka Exp $
|
||||
|
||||
SHA1 (drweb-4.31.3-glibc.2.1.tar.gz) = af2eaa8b0ee6b93ed7071bf1e40ec01a54edc76a
|
||||
Size (drweb-4.31.3-glibc.2.1.tar.gz) = 1663783 bytes
|
||||
SHA1 (drweb-4.31.3-glibc.2.2.tar.gz) = 1c6f7ec80f0831672fa1a7bf08a4757ac4542e4d
|
||||
Size (drweb-4.31.3-glibc.2.2.tar.gz) = 1666436 bytes
|
||||
SHA1 (drweb-4.31.3-glibc.2.3.tar.gz) = 912e2f569242e0ebeedc0acf97b0b5a20e8dd8a5
|
||||
Size (drweb-4.31.3-glibc.2.3.tar.gz) = 1666870 bytes
|
||||
SHA1 (drweb-4.31.3-freebsd3.tar.gz) = cbb70709f0cefb0e1516bfe4968c6335b5f97129
|
||||
Size (drweb-4.31.3-freebsd3.tar.gz) = 1962571 bytes
|
||||
SHA1 (drweb-4.31.3-freebsd4.tar.gz) = e68923963630f38379ea81deda3a3bfcbfc175f4
|
||||
Size (drweb-4.31.3-freebsd4.tar.gz) = 2045333 bytes
|
||||
SHA1 (drweb-4.31.3-freebsd5.tar.gz) = 0e137f33488e778525f252d888546fd5441b52fd
|
||||
Size (drweb-4.31.3-freebsd5.tar.gz) = 2350075 bytes
|
||||
SHA1 (drweb-4.31.3-openbsd3.tar.gz) = dbc63b44d4b10ff08ac65ce8539c3d70f8bc1abb
|
||||
Size (drweb-4.31.3-openbsd3.tar.gz) = 2114457 bytes
|
||||
SHA1 (drweb-4.31.3-openbsd34.tar.gz) = d36637faee553d174149ebf8bcbe3bc2454eed0a
|
||||
Size (drweb-4.31.3-openbsd34.tar.gz) = 2049808 bytes
|
||||
SHA1 (drweb-4.31.3-solaris.tar.gz) = 02d8a655a37b87d94e8b40db278a5cb754a1276a
|
||||
Size (drweb-4.31.3-solaris.tar.gz) = 1904928 bytes
|
||||
SHA1 (patch-aa) = 2ba10fe5d01124c224b3d5772a494986bb9d0517
|
|
@ -1,6 +0,0 @@
|
|||
#!@SH@
|
||||
#
|
||||
# $NetBSD: drweb-sh.src,v 1.2 2003/10/17 19:13:29 bubuchka Exp $
|
||||
# This file used for start drweb with default path to ini file.
|
||||
|
||||
exec @PREFIX@/bin/drweb-bin -ini=@PKG_SYSCONFDIR@/drweb32.ini "$@"
|
|
@ -1,69 +0,0 @@
|
|||
# $Id: drweb32-ini.patch,v 1.1 2003/10/17 19:13:29 bubuchka Exp $
|
||||
# This is an ed(1) patch to drweb32.ini. Unfortunately, it is not
|
||||
# possible to use normal patch methods within system independent
|
||||
# package installation. Thus, apply drweb32.ini patches manually.
|
||||
470c
|
||||
UpdatePath = "@DRW_BASESDIR@"
|
||||
.
|
||||
424c
|
||||
LogFileName = "@DRW_LOGFILE_SCANNER@"
|
||||
.
|
||||
413c
|
||||
MoveFilesTo = "@DRW_INFECTDIR@"
|
||||
.
|
||||
337c
|
||||
Key = "@PKG_SYSCONFDIR@/drweb.key"
|
||||
.
|
||||
331c
|
||||
; Note: there is no DWLs installed within this package.
|
||||
;LngFileName = "/path/to/russian.dwl"
|
||||
.
|
||||
327c
|
||||
VirusBase = "@DRW_BASESDIR@/*.vdb", "@DRW_BASESDIR@/*.VDB"
|
||||
.
|
||||
321c
|
||||
EnginePath = "@DRW_BASESDIR@/drweb32.dll"
|
||||
.
|
||||
260c
|
||||
UpdatePath = "@DRW_BASESDIR@"
|
||||
.
|
||||
255c
|
||||
MoveFilesTo = "@DRW_INFECTDIR@"
|
||||
.
|
||||
208c
|
||||
|
||||
.
|
||||
201c
|
||||
;MaxChildren = "value"
|
||||
.
|
||||
199c
|
||||
;BusyFile = "@DRW_RUNDIR@/drwebd.bsy"
|
||||
.
|
||||
190c
|
||||
PidFile = "@DRW_PIDFILE@"
|
||||
.
|
||||
176c
|
||||
Socket = @DRW_SOCKFILE@
|
||||
.
|
||||
154c
|
||||
User = @DRW_USER@
|
||||
.
|
||||
144c
|
||||
OutputMode = Quiet
|
||||
.
|
||||
99c
|
||||
LogFileName = "@DRW_LOGFILE@"
|
||||
.
|
||||
26c
|
||||
Key = "@PKG_SYSCONFDIR@/drwebd.key"
|
||||
.
|
||||
20c
|
||||
; Note: there is no DWLs installed within this package.
|
||||
;LngFileName = "/path/to/russian.dwl"
|
||||
.
|
||||
16c
|
||||
VirusBase = "@DRW_BASESDIR@/*.vdb"
|
||||
.
|
||||
10c
|
||||
EnginePath = "@DRW_BASESDIR@/drweb32.dll"
|
||||
.
|
|
@ -1,22 +0,0 @@
|
|||
#!@SH@
|
||||
#
|
||||
# $NetBSD: drwebd-rcd.src,v 1.3 2003/10/17 19:13:29 bubuchka Exp $
|
||||
|
||||
# PROVIDE: drwebd
|
||||
# REQUIRE: SERVERS
|
||||
# BEFORE: DAEMON
|
||||
|
||||
. @RCD_SUBR@
|
||||
|
||||
name="drwebd"
|
||||
rcvar=$name
|
||||
command="@PREFIX@/sbin/${name}-bin"
|
||||
procname="${command}"
|
||||
drw_inifile="@PKG_SYSCONFDIR@/drweb32.ini"
|
||||
required_files="${drw_inifile}"
|
||||
command_args="-ini=${drw_inifile}"
|
||||
|
||||
extra_commands="reload"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
|
@ -1,6 +0,0 @@
|
|||
#!@SH@
|
||||
#
|
||||
# $NetBSD: drwebd-sh.src,v 1.2 2003/10/17 19:13:29 bubuchka Exp $
|
||||
# This file used for start drweb daemon with default path to ini file.
|
||||
|
||||
exec @PREFIX@/sbin/drwebd-bin -ini=@PKG_SYSCONFDIR@/drweb32.ini "$@"
|
|
@ -1,44 +0,0 @@
|
|||
$NetBSD: patch-aa,v 1.3 2003/10/17 19:13:29 bubuchka Exp $
|
||||
|
||||
--- usr/local/drweb/update/update.pl.orig 2003-10-09 10:06:24.000000000 +0300
|
||||
+++ usr/local/drweb/update/update.pl
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/perl
|
||||
+#! @PERL5@ -w
|
||||
#------------------------------------------------------------------------------
|
||||
# drwebd update script, version 1.01
|
||||
#------------------------------------------------------------------------------
|
||||
@@ -39,11 +39,7 @@ my @urls =
|
||||
);
|
||||
|
||||
my $ini = $ARGV[0];
|
||||
-if( $ini eq '' )
|
||||
-{
|
||||
- $ini = '/usr/local/etc/drweb/drweb32.ini' if $^O =~ /BSD/i;
|
||||
- $ini = '/etc/drweb/drweb32.ini' if $ini eq '';
|
||||
-}
|
||||
+$ini = "@PKG_SYSCONFDIR@/drweb32.ini" unless (defined($ini));
|
||||
|
||||
my $fetch = `which fetch 2>&1`;
|
||||
|
||||
@@ -79,7 +75,7 @@ my $pidFile = '';
|
||||
die "Bases path is not defined!" unless $bases;
|
||||
die "Update path is not defined!" unless $update;
|
||||
|
||||
- $pidFile = "/var/drweb/run/drwebd.pid" if( $pidFile eq '' );
|
||||
+ $pidFile = "@DRW_PIDFILE@" if( $pidFile eq '' );
|
||||
|
||||
my $version = readVersion( $engine );
|
||||
die "Engine version error (invalid engine?)" unless $version;
|
||||
@@ -165,8 +161,10 @@ my %Paths = ();
|
||||
$updated++;
|
||||
}
|
||||
|
||||
- if( $updated > 0 )
|
||||
+ if( $updated > 0 && -f "$pidFile" )
|
||||
{
|
||||
+ # There is no error, if pid isn't existent - in this case
|
||||
+ # daemon isn't running, but scanner may be updated as well.
|
||||
open( FH, "$pidFile" ) || die "Can not open $pidFile: $!\n";
|
||||
my $pid = <FH>;
|
||||
close( FH );
|
Loading…
Reference in a new issue