Skip to content
Permalink
Browse files

mail/smtprelay: Rename port and prepare for 1.2.0

  • Loading branch information
decke committed Dec 29, 2018
1 parent 9fae789 commit fbb84b0bdb95f7a8afe69858e1f3339ac42bd4aa

This file was deleted.

This file was deleted.

@@ -1,9 +1,9 @@
# $FreeBSD$

PORTNAME= smtp-proxy
PORTVERSION= 1.0.1
PORTNAME= smtprelay
PORTVERSION= 1.2.0
CATEGORIES= mail
MASTER_SITES= https://code.bluelife.at/decke/smtp-proxy/archive/
MASTER_SITES= https://code.bluelife.at/decke/smtprelay/archive/
DISTFILES= v${PORTVERSION}.tar.gz

MAINTAINER= decke@FreeBSD.org
@@ -13,20 +13,21 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= go
USE_RC_SUBR= smtpproxy
USE_RC_SUBR= smtprelay

USE_GITHUB= nodefault
GH_TUPLE= chrj:smtpd:v0.1.1:smtpd/vendor/github.com/chrj/smtpd \
vharitonsky:iniflags:a33cd0b5f3de:iniflags/vendor/github.com/vharitonsky/iniflags
GH_TUPLE= chrj:smtpd:v0.1.2:smtpd/vendor/github.com/chrj/smtpd \
vharitonsky:iniflags:a33cd0b5f3de:iniflags/vendor/github.com/vharitonsky/iniflags \
golang:crypto:505ab145d0a9:golang/vendor/golang.org/x/crypto

WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV+= GOFLAGS=-mod=vendor

PLIST_FILES= bin/${PORTNAME} \
"@sample ${ETCDIR}/smtp-proxy.ini.sample"
"@sample ${ETCDIR}/smtprelay.ini.sample"

post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/smtp-proxy.ini ${STAGEDIR}${ETCDIR}/smtp-proxy.ini.sample
${INSTALL_DATA} ${WRKSRC}/smtprelay.ini ${STAGEDIR}${ETCDIR}/smtprelay.ini.sample

.include <bsd.port.mk>
File renamed without changes.
@@ -0,0 +1,18 @@
#!/bin/sh
#
# PROVIDE: smtprelay
# REQUIRE: networking

. /etc/rc.subr

name="smtprelay"
rcvar="smtprelay_enable"

pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -r -f %%LOCALBASE%%/bin/smtprelay -config %%ETCDIR%%/smtprelay.ini"

load_rc_config $name
: ${smtprelay_enable:=no}

run_rc_command "$1"
@@ -0,0 +1,4 @@
Simple Golang SMTP relay/proxy server that accepts mail via
SMTP and forwards it directly to another SMTP server.

WWW: https://code.bluelife.at/decke/smtprelay

0 comments on commit fbb84b0

Please sign in to comment.
You can’t perform that action at this time.