summaryrefslogtreecommitdiff
path: root/mail/drac/patches/patch-aa
diff options
context:
space:
mode:
authorgroo <groo@pkgsrc.org>2000-04-11 23:39:29 +0000
committergroo <groo@pkgsrc.org>2000-04-11 23:39:29 +0000
commitc9e071e3eb4eafb5cc8073d176f48df9fb692e5a (patch)
treeed75e03568228ee57bca70f39fbe94c99d29c85f /mail/drac/patches/patch-aa
parentbb3acfbf1063f132c7ca07d421700ba0f33d858a (diff)
downloadpkgsrc-c9e071e3eb4eafb5cc8073d176f48df9fb692e5a.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/patches/patch-aa')
-rw-r--r--mail/drac/patches/patch-aa68
1 files changed, 68 insertions, 0 deletions
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