mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
- 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:
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
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue