summaryrefslogtreecommitdiff
path: root/mail/drac
diff options
context:
space:
mode:
authorgroo <groo>2000-04-11 23:39:29 +0000
committergroo <groo>2000-04-11 23:39:29 +0000
commit764295d7d14837af04ed058a2f735874dd7b5fcf (patch)
treeed75e03568228ee57bca70f39fbe94c99d29c85f /mail/drac
parent5017266048557c179becd8d67ff042cf35d8d97f (diff)
downloadpkgsrc-764295d7d14837af04ed058a2f735874dd7b5fcf.tar.gz
DRAC is a daemon that dynamically updates a relay authorization map for
sendmail. It provides a way to allow legitimate users to relay mail through an SMTP server, while still preventing others from using it as a spam relay. User's IP addresses are added to the map immediately after they have authenticated to the POP or IMAP server. By default, map entries expire after 30 minutes, but can be renewed by additional authentication. Periodically checking mail on a POP server is sufficient to do this. The POP and SMTP servers can be on different hosts.
Diffstat (limited to 'mail/drac')
-rw-r--r--mail/drac/Makefile14
-rw-r--r--mail/drac/files/md53
-rw-r--r--mail/drac/files/patch-sum3
-rw-r--r--mail/drac/patches/patch-aa68
-rw-r--r--mail/drac/pkg/COMMENT1
-rw-r--r--mail/drac/pkg/DESCR8
-rw-r--r--mail/drac/pkg/MESSAGE2
-rw-r--r--mail/drac/pkg/PLIST12
8 files changed, 111 insertions, 0 deletions
diff --git a/mail/drac/Makefile b/mail/drac/Makefile
new file mode 100644
index 00000000000..5fb5f0014e4
--- /dev/null
+++ b/mail/drac/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/04/11 23:39:29 groo Exp $
+#
+
+DISTNAME= drac
+PKGNAME= drac-1.10
+NO_WRKSUBDIR= yes
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.cc.umanitoba.ca/src/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= groo@netbsd.org
+HOMEPAGE= http://mail.cc.umanitoba.ca/drac/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/drac/files/md5 b/mail/drac/files/md5
new file mode 100644
index 00000000000..57d3df48721
--- /dev/null
+++ b/mail/drac/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/04/11 23:39:29 groo Exp $
+
+MD5 (drac.tar.Z) = a055817de7dcdb97b7ddd980d24f68f5
diff --git a/mail/drac/files/patch-sum b/mail/drac/files/patch-sum
new file mode 100644
index 00000000000..f3322bb63e0
--- /dev/null
+++ b/mail/drac/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/04/11 23:39:29 groo Exp $
+
+MD5 (patch-aa) = 051011755f569caff23175ffaef6cb93
diff --git a/mail/drac/patches/patch-aa b/mail/drac/patches/patch-aa
new file mode 100644
index 00000000000..5fc1be3ff5c
--- /dev/null
+++ b/mail/drac/patches/patch-aa
@@ -0,0 +1,68 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/04/11 23:39:29 groo Exp $
+
+--- Makefile.orig Tue Dec 28 21:46:19 1999
++++ Makefile Tue Apr 11 19:01:56 2000
+@@ -5,9 +5,11 @@
+
+ # Paths
+
+-INSTALL = /usr/ucb/install
+-EBIN = /usr/local/sbin
+-MAN = /usr/local/man/man
++MKDIR = /bin/mkdir
++INSTALL = /usr/bin/install
++EBIN = $(LOCALBASE)/libexec
++MAN = $(LOCALBASE)/man/man
++EXAMPLES = $(LOCALBASE)/share/examples/drac
+
+ # OS-Dependant settings
+
+@@ -33,22 +35,24 @@
+ # -DCIDR_KEY # keys in CIDR format
+ # -DTERM_KD # keys and data nul-terminated
+
+-DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO
++# DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO
++DEFS = -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C
+
+ # Compiler flags
+ CC = cc
+-RANLIB = :
+-CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-2.4.14/Unix
++RANLIB = ranlib
++#CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-2.4.14/Unix
++CFLAGS = $(DEFS)
+ #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db.1.85/PORT/sunos.5.2/include
+-LDLIBS = -L/usr/local/src/db/db-2.4.14/Unix -lnsl -ldb
++LDLIBS =
+ #LDLIBS = -L/usr/local/src/db/db.1.85/PORT/sunos.5.2 -lnsl -ldb
+-TSTLIBS = -L. -ldrac -lnsl
+-RPCGENFLAGS =
++TSTLIBS = -L. -ldrac
++RPCGENFLAGS = -I -C
+ #RPCGENFLAGS = -C
+
+ # Man sections
+ MANLIB = 3
+-MANADM = 1m
++MANADM = 8
+
+ ## Nothing to change after this point
+
+@@ -117,8 +121,13 @@
+
+ install: $(SERVER)
+ $(INSTALL) -c -o bin -g bin -m 0755 $(SERVER) $(EBIN)
+-
+-install-man: $(SERVER).1m dracauth.3
+ $(INSTALL) -c -m 0444 $(SERVER).1m $(MAN)$(MANADM)/$(SERVER).$(MANADM)
+ $(INSTALL) -c -m 0444 dracauth.3 $(MAN)$(MANLIB)/dracauth.$(MANLIB)
+-
++ $(MKDIR) -p $(EXAMPLES)
++ $(INSTALL) -c -m 0444 README $(EXAMPLES)/README
++ $(INSTALL) -c -m 0444 INSTALL $(EXAMPLES)/INSTALL
++ $(INSTALL) -c -m 0444 testing.c $(EXAMPLES)/testing.c
++ $(INSTALL) -c -m 0444 dracd-setup $(EXAMPLES)/dracd-setup
++ $(INSTALL) -c -m 0444 dracd.allow-sample $(EXAMPLES)/dracd.allow-sample
++ $(INSTALL) -c -m 0444 drac.h $(LOCALBASE)/include/drac.h
++ $(INSTALL) -c -m 0444 libdrac.a $(LOCALBASE)/lib/libdrac.a
diff --git a/mail/drac/pkg/COMMENT b/mail/drac/pkg/COMMENT
new file mode 100644
index 00000000000..f0a12c221b1
--- /dev/null
+++ b/mail/drac/pkg/COMMENT
@@ -0,0 +1 @@
+Dynamic Relay Authorization Control
diff --git a/mail/drac/pkg/DESCR b/mail/drac/pkg/DESCR
new file mode 100644
index 00000000000..ad18cfc8da8
--- /dev/null
+++ b/mail/drac/pkg/DESCR
@@ -0,0 +1,8 @@
+DRAC is a daemon that dynamically updates a relay authorization map for
+sendmail. It provides a way to allow legitimate users to relay mail through an
+SMTP server, while still preventing others from using it as a spam relay.
+User's IP addresses are added to the map immediately after they have
+authenticated to the POP or IMAP server. By default, map entries expire after
+30 minutes, but can be renewed by additional authentication. Periodically
+checking mail on a POP server is sufficient to do this. The POP and SMTP
+servers can be on different hosts.
diff --git a/mail/drac/pkg/MESSAGE b/mail/drac/pkg/MESSAGE
new file mode 100644
index 00000000000..8e001667d1b
--- /dev/null
+++ b/mail/drac/pkg/MESSAGE
@@ -0,0 +1,2 @@
+You will need to modify a POP or IMAP server for this software to
+work. Please see share/examples/drac/INSTALL for details.
diff --git a/mail/drac/pkg/PLIST b/mail/drac/pkg/PLIST
new file mode 100644
index 00000000000..da62176b929
--- /dev/null
+++ b/mail/drac/pkg/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/04/11 23:39:29 groo Exp $
+libexec/rpc.dracd
+include/drac.h
+lib/libdrac.a
+man/man3/dracauth.3
+man/man8/rpc.dracd.8
+share/examples/drac/README
+share/examples/drac/INSTALL
+share/examples/drac/testing.c
+share/examples/drac/dracd-setup
+share/examples/drac/dracd.allow-sample
+@dirrm share/examples/drac