summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/drwebd/Makefile40
-rw-r--r--security/drwebd/files/drweb-0.sh22
-rw-r--r--security/drwebd/pkg-comment1
-rw-r--r--security/drwebd/pkg-plist3
5 files changed, 67 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 8e52f9a..2755e69 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -39,6 +39,7 @@
SUBDIR += donkey
SUBDIR += drweb
SUBDIR += drweb-sendmail
+ SUBDIR += drwebd
SUBDIR += dsniff
SUBDIR += fakebo
SUBDIR += find-zlib
diff --git a/security/drwebd/Makefile b/security/drwebd/Makefile
new file mode 100644
index 0000000..05b9f14
--- /dev/null
+++ b/security/drwebd/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: drwebd
+# Date created: 10.05.2002
+# Whom: Andrey A. Chernov <ache@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= drwebd
+PORTVERSION= 1.0
+CATEGORIES= security
+EXTRACT_ONLY=
+
+MAINTAINER= ache@FreeBSD.org
+
+DESCR= ${PORTSDIR}/security/drweb/pkg-descr
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+RUN_DEPENDS= ${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb
+
+checksum:
+ @${DO_NADA}
+
+do-fetch:
+ @${DO_NADA}
+
+do-patch:
+ ${SED} "s#%PREFIX%#${PREFIX}#g" < ${FILESDIR}/drweb-0.sh \
+ > ${WRKSRC}/drweb-0.sh
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/drweb-0.sh \
+ ${PREFIX}/etc/rc.d/drweb-0.sh-dist
+ if [ ! -f ${PREFIX}/etc/rc.d/drweb-0.sh ]; then \
+ ${INSTALL_SCRIPT} ${WRKSRC}/drweb-0.sh \
+ ${PREFIX}/etc/rc.d/drweb-0.sh; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/security/drwebd/files/drweb-0.sh b/security/drwebd/files/drweb-0.sh
new file mode 100644
index 0000000..e38ed7c
--- /dev/null
+++ b/security/drwebd/files/drweb-0.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+case "$1" in
+start)
+ if [ -x %PREFIX%/drweb/drwebd ]; then
+ rm -f %PREFIX%/drweb/run/drwebd.sock;
+ %PREFIX%/drweb/drwebd -ini:%PREFIX%/drweb/drweb32.ini && \
+ echo -n ' drwebd';
+ fi
+ ;;
+stop)
+ if [ -r %PREFIX%/drweb/run/drwebd.pid ]; then
+ kill `cat %PREFIX%/drweb/run/drwebd.pid` >/dev/null 2>& 1;
+ echo -n ' drwebd';
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/security/drwebd/pkg-comment b/security/drwebd/pkg-comment
new file mode 100644
index 0000000..99cf2fb
--- /dev/null
+++ b/security/drwebd/pkg-comment
@@ -0,0 +1 @@
+Satellite port to activate DrWeb daemon
diff --git a/security/drwebd/pkg-plist b/security/drwebd/pkg-plist
new file mode 100644
index 0000000..b4127ec
--- /dev/null
+++ b/security/drwebd/pkg-plist
@@ -0,0 +1,3 @@
+@unexec if cmp -s %D/etc/rc.d/drweb-0.sh %D/etc/rc.d/drweb-0.sh-dist; then rm -f %D/etc/rc.d/drweb-0.sh; fi
+etc/rc.d/drweb-0.sh
+@exec [ -f %B/drweb-0.sh ] || ( cp %B/%f %B/drweb-0.sh; chmod 755 %B/drweb-0.sh )
OpenPOWER on IntegriCloud