Browse Source

mail/smtprelay: Rename port and prepare for 1.2.0

master
Bernhard Fröhlich 8 months ago
parent
commit
fbb84b0bdb
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333

+ 0
- 18
mail/smtp-proxy/files/smtpproxy.in View File

@@ -1,18 +0,0 @@
#!/bin/sh
#
# PROVIDE: smtpproxy
# REQUIRE: networking

. /etc/rc.subr

name="smtpproxy"
rcvar="smtpproxy_enable"

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

load_rc_config $name
: ${smtpproxy_enable:=no}

run_rc_command "$1"

+ 0
- 4
mail/smtp-proxy/pkg-descr View File

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

WWW: https://code.bluelife.at/decke/smtp-proxy

mail/smtp-proxy/Makefile → mail/smtprelay/Makefile View File

@@ -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>

mail/smtp-proxy/distinfo → mail/smtprelay/distinfo View File


+ 18
- 0
mail/smtprelay/files/smtprelay.in View File

@@ -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"

+ 4
- 0
mail/smtprelay/pkg-descr View File

@@ -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

Loading…
Cancel
Save