summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoris <is>2003-02-15 22:11:24 +0000
committeris <is>2003-02-15 22:11:24 +0000
commite9bc9c838ba3f4cfd9280c8eba0a096e01d12d15 (patch)
treef05b25b8b2ff1255af255d35ee5fbce4b09eba9d
parent0f1d3e8ad82771718fce0095f9c207a25d63b9d6 (diff)
downloadpkgsrc-e9bc9c838ba3f4cfd9280c8eba0a096e01d12d15.tar.gz
mini_sendmail by Jef Poskanzer. Useful to get mail out of a chroot setup,
or from a diskless client to it's smart mailer.
-rw-r--r--mail/mini_sendmail/PLIST4
-rw-r--r--mail/mini_sendmail/distinfo6
-rw-r--r--mail/mini_sendmail/files/mailer.conf6
-rw-r--r--mail/mini_sendmail/patches/patch-aa23
-rw-r--r--mail/mini_sendmail/patches/patch-ab35
5 files changed, 74 insertions, 0 deletions
diff --git a/mail/mini_sendmail/PLIST b/mail/mini_sendmail/PLIST
new file mode 100644
index 00000000000..952c3975995
--- /dev/null
+++ b/mail/mini_sendmail/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2003/02/15 22:11:24 is Exp $
+etc/mailer.conf.mini_sendmail
+man/man8/mini_sendmail.8
+sbin/mini_sendmail
diff --git a/mail/mini_sendmail/distinfo b/mail/mini_sendmail/distinfo
new file mode 100644
index 00000000000..913fc403373
--- /dev/null
+++ b/mail/mini_sendmail/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2003/02/15 22:11:25 is Exp $
+
+SHA1 (mini_sendmail-1.3.2.tar.gz) = 1e297ae27135f0f83f09c7be8a911ebfd9e2f966
+Size (mini_sendmail-1.3.2.tar.gz) = 7329 bytes
+SHA1 (patch-aa) = 86f5d32a093194f3ccb69c6068eac8611a586962
+SHA1 (patch-ab) = f96d22be2f94445a6f8b249cdd823dcfbd1528de
diff --git a/mail/mini_sendmail/files/mailer.conf b/mail/mini_sendmail/files/mailer.conf
new file mode 100644
index 00000000000..b8f9bb182ab
--- /dev/null
+++ b/mail/mini_sendmail/files/mailer.conf
@@ -0,0 +1,6 @@
+# $NetBSD: mailer.conf,v 1.1 2003/02/15 22:11:27 is Exp $
+#
+# Use "mini_sendmail" as replacement for "sendmail".
+#
+sendmail @@PREFIX@@/sbin/mini_sendmail -srelayhost
+send-mail @@PREFIX@@/sbin/mini_sendmail -srelayhost
diff --git a/mail/mini_sendmail/patches/patch-aa b/mail/mini_sendmail/patches/patch-aa
new file mode 100644
index 00000000000..50c59a81fc4
--- /dev/null
+++ b/mail/mini_sendmail/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1 2003/02/15 22:11:28 is Exp $
+
+--- mini_sendmail.c.orig Thu Nov 21 21:27:55 2002
++++ mini_sendmail.c
+@@ -575,14 +575,16 @@
+ sock_family = PF_INET6;
+
+ #ifdef DO_MINUS_S
+- if ( inet_pton( PF_INET, server, (void*) &sa4.sin_addr ) == 0 )
++
++ (void) memset( (void*) &sa4, 0, sizeof(sa4) );
++ if ( inet_pton( AF_INET, server, (void*) &sa4.sin_addr ) == 1 )
+ {
+ sock_family = PF_INET;
+ sa4.sin_port = htons( SMTP_PORT );
+ sa_len = sizeof(sa4);
+ (void) memmove( &sa, &sa4, sa_len );
+ }
+- else if ( inet_pton( PF_INET6, server, (void*) &sa.sin6_addr ) == -1 )
++ else if ( inet_pton( AF_INET6, server, (void*) &sa.sin6_addr ) != 1 )
+ {
+ #ifdef DO_DNS
+ (void) memset( &hints, 0, sizeof(hints) );
diff --git a/mail/mini_sendmail/patches/patch-ab b/mail/mini_sendmail/patches/patch-ab
new file mode 100644
index 00000000000..c2f530237f8
--- /dev/null
+++ b/mail/mini_sendmail/patches/patch-ab
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.1 2003/02/15 22:11:28 is Exp $
+
+--- Makefile.orig Fri Jan 4 07:05:25 2002
++++ Makefile
+@@ -4,12 +4,12 @@
+ # Solaris, you will need to uncomment this definition.
+ #SYSV_LIBS = -lnsl -lsocket
+
+-BINDIR = /usr/local/sbin
+-MANDIR = /usr/local/man
+-CC = gcc
+-CFLAGS = -O
++BINDIR = $(PREFIX)/sbin
++MANDIR = $(PREFIX)/man
++#CC = gcc
++#CFLAGS = -O
+ #CFLAGS = -g
+-LDFLAGS = -s -static
++#LDFLAGS = -s -static
+ #LDFLAGS = -g -static
+ LDLIBS = $(SYSV_LIBS)
+
+@@ -30,10 +30,8 @@
+
+
+ install: all
+- rm -f $(BINDIR)/mini_sendmail
+- cp mini_sendmail $(BINDIR)
+- rm -f $(MANDIR)/man8/mini_sendmail.8
+- cp mini_sendmail.8 $(MANDIR)/man8
++ $(BSD_INSTALL_PROGRAM) mini_sendmail $(BINDIR)
++ $(BSD_INSTALL_MAN) mini_sendmail.8 $(MANDIR)/man8
+
+ clean:
+ rm -f mini_sendmail *.o core core.* *.core