- Add OPTION to only update mailer.conf(5) on demand

- Update COMMENT so it complies with guidelines in Porter's
  Handbook

PR:		198375
Submitted by:	adamw
This commit is contained in:
Ashish SHUKLA 2015-03-29 05:17:43 +00:00
parent 6014ebaef2
commit 1bef36aa0c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382567
6 changed files with 14 additions and 9 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= opensmtpd
PORTVERSION= 201502012312
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://www.opensmtpd.org/archives/ \
@ -12,19 +12,20 @@ PKGNAMESUFFIX= -devel
DISTNAME= ${PORTNAME}-${PORTVERSION}p1
MAINTAINER= ashish@FreeBSD.org
COMMENT= OpenSMTPD is a free MTA (development snapshot)
COMMENT= Security- and simplicity-focused SMTP server from OpenBSD
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
OPTIONS_DEFINE= CA_BUNDLE LIBASR
OPTIONS_DEFINE= CA_BUNDLE LIBASR MAILERCONF
OPTIONS_DEFAULT= CA_BUNDLE PAM
CA_BUNDLE_DESC= Install CA bundle for OpenSSL
LIBASR_DESC= Use stable version of libasr
MAILERCONF_DESC= Activate OpenSMTPD in mailer.conf(5)
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libevent-dir=${LOCALBASE} --sysconfdir=${PREFIX}/etc/mail/ \
@ -38,6 +39,8 @@ CONFLICTS_INSTALL= postfix-[0-9]* sendmail-[0-9]* opensmtpd-[0-9]*
USERS= _smtpd _smtpq
GROUPS= _smtpd
OPTIONS_SUB= yes
LIBASR_LIB_DEPENDS_OFF= libasr.so:${PORTSDIR}/dns/libasr-devel
LIBASR_LIB_DEPENDS= libasr.so:${PORTSDIR}/dns/libasr

View file

@ -5,7 +5,7 @@ TARGET=$2
PREFIX=$(echo %%PREFIX%% |sed -e 's,/,\\/,g')
if [ "$TARGET" = POST-DEINSTALL ]; then
if [ "$TARGET" = POST-DEINSTALL -a -z "%%MAILERCONF%%" ]; then
sed -e '/[[:space:]]'$PREFIX'\/sbin\/smtpctl/d' \
-e '/[[:space:]]'$PREFIX'\/libexec\/opensmtpd\/makemap/d' \
-e 's/^### opensmtpd: //g' -i '' /etc/mail/mailer.conf

View file

@ -3,7 +3,7 @@
PKGNAME=$1
TARGET=$2
if [ "$TARGET" = POST-INSTALL ]; then
if [ "$TARGET" = POST-INSTALL -a -z "%%MAILERCONF%%" ]; then
sed -e '/^[^#]/s/^/### opensmtpd: /g' -i '' /etc/mail/mailer.conf
cat >>/etc/mail/mailer.conf <<EOF
sendmail %%PREFIX%%/sbin/smtpctl

View file

@ -11,18 +11,20 @@ MASTER_SITES= http://www.opensmtpd.org/archives/ \
DISTNAME= ${PORTNAME}-${PORTVERSION}p1
MAINTAINER= ashish@FreeBSD.org
COMMENT= OpenSMTPD is a free MTA
COMMENT= Security- and simplicity-focused SMTP server from OpenBSD
LICENSE= ISCL
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
OPTIONS_DEFINE= CA_BUNDLE PAM SQLITE MYSQL PGSQL LDAP REDIS LIBASRDEVEL
OPTIONS_DEFINE= CA_BUNDLE PAM SQLITE MYSQL PGSQL LDAP REDIS LIBASRDEVEL \
MAILERCONF
OPTIONS_DEFAULT= CA_BUNDLE PAM
CA_BUNDLE_DESC= Install CA bundle for OpenSSL
LIBASRDEVEL_DESC= Use development version of libasr
MAILERCONF_DESC= Activate OpenSMTPD in mailer.conf(5)
USES= libtool
USE_OPENSSL= yes

View file

@ -5,7 +5,7 @@ TARGET=$2
PREFIX=$(echo %%PREFIX%% |sed -e 's,/,\\/,g')
if [ "$TARGET" = POST-DEINSTALL ]; then
if [ "$TARGET" = POST-DEINSTALL -a -z "%%MAILERCONF%%" ]; then
sed -e '/[[:space:]]'$PREFIX'\/sbin\/smtpctl/d' \
-e '/[[:space:]]'$PREFIX'\/libexec\/opensmtpd\/makemap/d' \
-e 's/^### smtpd: //g' -i '' /etc/mail/mailer.conf

View file

@ -3,7 +3,7 @@
PKGNAME=$1
TARGET=$2
if [ "$TARGET" = POST-INSTALL ]; then
if [ "$TARGET" = POST-INSTALL -a -z "%%MAILERCONF%%" ]; then
sed -e '/^[^#]/s/^/### smtpd: /g' -i '' /etc/mail/mailer.conf
cat >>/etc/mail/mailer.conf <<EOF
sendmail %%PREFIX%%/sbin/smtpctl