wrong directory, sorry
This commit is contained in:
parent
147f8f1da5
commit
1fa876901e
@ -1,33 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2016/05/27 16:23:33 giovanni Exp $
|
||||
|
||||
COMMENT = perl implementation of email authentication standards
|
||||
|
||||
V = 1.0.1
|
||||
DISTNAME = Mail-Milter-Authentication-v${V}
|
||||
PKGNAME = p5-Mail-Milter-Authentication-${V}
|
||||
CATEGORIES = mail
|
||||
|
||||
# Perl
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODULES = cpan
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/bin/authentication_milter
|
||||
|
||||
CONFIGURE_STYLE = modinst
|
||||
|
||||
RUN_DEPENDS = devel/p5-List-MoreUtils \
|
||||
converters/p5-JSON \
|
||||
mail/p5-Email-Address \
|
||||
mail/p5-Email-Date-Format \
|
||||
mail/p5-Mail-DMARC>=1.20150908 \
|
||||
sysutils/p5-Proc-ProcessTable
|
||||
|
||||
TEST_DEPENDS = devel/p5-Test-CheckManifest \
|
||||
devel/p5-Test-File-Contents \
|
||||
devel/p5-Test-Perl-Critic \
|
||||
devel/p5-Test-Pod \
|
||||
devel/p5-Test-Pod-Coverage
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (Mail-Milter-Authentication-v1.0.1.tar.gz) = j7QfhT008f0ZJ03gIAIphg1ouCY3WLcgZsrzUOFnNq0=
|
||||
SIZE (Mail-Milter-Authentication-v1.0.1.tar.gz) = 78119
|
@ -1,21 +0,0 @@
|
||||
$OpenBSD: patch-bin_authentication_milter,v 1.1.1.1 2016/05/27 16:23:33 giovanni Exp $
|
||||
--- bin/authentication_milter.orig Thu Sep 10 05:37:11 2015
|
||||
+++ bin/authentication_milter Wed Apr 27 15:57:09 2016
|
||||
@@ -14,7 +14,7 @@ use Module::Load;
|
||||
use Pod::Usage;
|
||||
|
||||
# CONFIG
|
||||
-my $pid_file = '/run/authentication_milter.pid';
|
||||
+my $pid_file = '/var/run/authentication_milter.pid';
|
||||
my $daemon = 0;
|
||||
my $help = 0;
|
||||
my $prefix;
|
||||
@@ -145,7 +145,7 @@ __END__
|
||||
=item -p|--pidfile <file>
|
||||
|
||||
Write the process PID to the given file.
|
||||
- defaults to /run/authentication_milter.pid
|
||||
+ defaults to /var/run/authentication_milter.pid
|
||||
|
||||
=item --prefix <dir>
|
||||
|
@ -1,29 +0,0 @@
|
||||
$OpenBSD: patch-lib_Mail_Milter_Authentication_Client_pm,v 1.1.1.1 2016/05/27 16:23:33 giovanni Exp $
|
||||
--- lib/Mail/Milter/Authentication/Client.pm.orig Thu Sep 10 05:37:11 2015
|
||||
+++ lib/Mail/Milter/Authentication/Client.pm Wed Apr 27 16:05:37 2016
|
||||
@@ -212,7 +212,7 @@ sub load_mail {
|
||||
else {
|
||||
if ( $value ) {
|
||||
my ( $hkey, $hvalue ) = split ( ':', $value, 2 );
|
||||
- $hvalue =~ s/^ //;
|
||||
+ $hvalue =~ s/^ // if defined $hvalue;
|
||||
push @header_pairs , $hkey;
|
||||
push @header_pairs , $hvalue;
|
||||
}
|
||||
@@ -221,7 +221,7 @@ sub load_mail {
|
||||
}
|
||||
if ( $value ) {
|
||||
my ( $hkey, $hvalue ) = split ( ':', $value, 2 );
|
||||
- $hvalue =~ s/^ //;
|
||||
+ $hvalue =~ s/^ // if defined $hvalue;
|
||||
push @header_pairs , $hkey;
|
||||
push @header_pairs , $hvalue;
|
||||
}
|
||||
@@ -310,6 +310,7 @@ sub process {
|
||||
while ( @process_header ) {
|
||||
my $key = shift @process_header;
|
||||
my $value = shift @process_header;
|
||||
+ $value //= '';
|
||||
$header_string .= "$key: $value\015\012";
|
||||
}
|
||||
my $header_obj = Email::Simple::Header->new( $header_string );
|
@ -1,23 +0,0 @@
|
||||
$OpenBSD: patch-share_authentication_milter_json,v 1.1.1.1 2016/05/27 16:23:33 giovanni Exp $
|
||||
--- share/authentication_milter.json.orig Fri Jan 16 06:33:40 2015
|
||||
+++ share/authentication_milter.json Wed Oct 14 19:37:15 2015
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
"connection" : "inet:12345@localhost",
|
||||
"umask" : "0000",
|
||||
- "runas" : "nobody",
|
||||
- "rungroup" : "nogroup",
|
||||
+ "runas" : "_milter-auth",
|
||||
+ "rungroup" : "_milter-auth",
|
||||
"chroot" : "",
|
||||
|
||||
"listen_backlog" : 20,
|
||||
@@ -65,7 +65,7 @@
|
||||
"100.200.100.2",
|
||||
"2001:44c2:3881:aa00::/56",
|
||||
"2001:44b8:3021:123:dead:beef:abcd:1234"
|
||||
- ],
|
||||
+ ]
|
||||
},
|
||||
|
||||
"!AddID" : {},
|
@ -1,11 +0,0 @@
|
||||
A Perl implementation of email authentication standards rolled up
|
||||
into a single easy to use milter.
|
||||
|
||||
This milter verifies using the following standards.
|
||||
|
||||
- SPF
|
||||
- SenderID
|
||||
- DKIM (including ADSP)
|
||||
- DMARC
|
||||
- IPRev
|
||||
- Check HELO matches it's IP address
|
@ -1,60 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/05/27 16:23:33 giovanni Exp $
|
||||
@newgroup _milter-auth:770
|
||||
@newuser _milter-auth:770:_milter-auth:daemon:Milter Authentication Daemon:/var/empty:/sbin/nologin
|
||||
bin/authentication_milter
|
||||
bin/authentication_milter_client
|
||||
${P5SITE}/Mail/Milter/
|
||||
${P5SITE}/Mail/Milter/Authentication/
|
||||
${P5SITE}/Mail/Milter/Authentication.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Client.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Config.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Constants.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/DNSCache.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/AddID.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/Auth.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/DKIM.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/DMARC.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/IPRev.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/LocalIP.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/PTR.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/ReturnOK.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/SPF.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/Sanitize.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/SenderID.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/TLS.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Handler/TrustedIP.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Protocol/
|
||||
${P5SITE}/Mail/Milter/Authentication/Protocol/Milter.pm
|
||||
${P5SITE}/Mail/Milter/Authentication/Protocol/SMTP.pm
|
||||
${P5SITE}/auto/share/dist/Mail-Milter-Authentication/
|
||||
@comment ${P5SITE}/auto/share/dist/Mail-Milter-Authentication/authentication_milter.init
|
||||
${P5SITE}/auto/share/dist/Mail-Milter-Authentication/authentication_milter.json
|
||||
@sample ${SYSCONFDIR}/authentication_milter.json
|
||||
${P5SITE}/auto/share/dist/Mail-Milter-Authentication/mail-dmarc.ini
|
||||
@sample ${SYSCONFDIR}/mail-dmarc.ini
|
||||
@man man/man1/authentication_milter.1
|
||||
@man man/man1/authentication_milter_client.1
|
||||
@man man/man3p/Mail::Milter::Authentication.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Client.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Config.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Constants.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::DNSCache.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::AddID.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::Auth.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::DKIM.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::DMARC.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::IPRev.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::LocalIP.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::PTR.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::ReturnOK.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::SPF.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::Sanitize.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::SenderID.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::TLS.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Handler::TrustedIP.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Protocol::Milter.3p
|
||||
@man man/man3p/Mail::Milter::Authentication::Protocol::SMTP.3p
|
||||
@rcscript ${RCDIR}/mail_milter_authentication
|
@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: mail_milter_authentication.rc,v 1.1.1.1 2016/05/27 16:23:33 giovanni Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/authentication_milter"
|
||||
daemon_flags="-d"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="perl: authentication_milter:master"
|
||||
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user