diff options
author | pawel <pawel@FreeBSD.org> | 2014-02-02 03:35:39 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-02-02 03:35:39 +0800 |
commit | 7c0f41e2d7bda0fa17b0358af18453da472e67b1 (patch) | |
tree | a0154e54ae043de55391c133561c7d77aede28d9 | |
parent | fd5b4e7261960482c7f25b2819b9aae478a80d40 (diff) | |
download | freebsd-ports-gnome-7c0f41e2d7bda0fa17b0358af18453da472e67b1.tar.gz freebsd-ports-gnome-7c0f41e2d7bda0fa17b0358af18453da472e67b1.tar.zst freebsd-ports-gnome-7c0f41e2d7bda0fa17b0358af18453da472e67b1.zip |
- Add CRAMMD5 option [1]
- Add OPENSSL option [2]
- Change USE_GMAKE to USES=gmake
- Convert to option helpers
- Add support for staging
- Unmute install commands
- Fix WWW: line
PR: ports/181641 [1] [2]
Submitted by: Dewayne <dewayne.geraghty@heuristicsystems.com.au> [1]
maintainer [2]
Approved by: maintainer
-rw-r--r-- | mail/ssmtp/Makefile | 55 | ||||
-rw-r--r-- | mail/ssmtp/pkg-descr | 2 | ||||
-rw-r--r-- | mail/ssmtp/pkg-plist | 5 |
3 files changed, 29 insertions, 33 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile index a412f5d3b07a..9ba27595c1e5 100644 --- a/mail/ssmtp/Makefile +++ b/mail/ssmtp/Makefile @@ -3,6 +3,7 @@ PORTNAME= ssmtp PORTVERSION= 2.64 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL} DISTFILES= ${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX} @@ -13,44 +14,33 @@ COMMENT= Extremely simple MTA to get mail off the system to a mail hub USE_BZIP2= yes USE_OPENSSL= yes GNU_CONFIGURE= yes -USE_GMAKE= yes +USES= gmake GROUPS= ssmtp -SHAREGRP= ssmtp BINMODE= 2555 SHAREMODE= 640 -BINGRP= ssmtp SUB_FILES+= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message -CONFIGURE_ARGS= --enable-ssl --enable-md5auth MAKE_ENV+= TARGET_ARCH= CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} MAILERCONF= /etc/mail/mailer.conf -MAN8= ssmtp.8 -MAN5= ssmtp.conf.5 +OPTIONS_DEFINE= LOGFILE IPV6 USERPREFS XORIGIP CRAMMD5 OPENSSL +OPTIONS_DEFAULT= XORIGIP CRAMMD5 OPENSSL +LOGFILE_DESC= Log file +USERPREFS_DESC= User-defined revaliases +XORIGIP_DESC= X-Originating-IP header for REMOTE_ADDR envvar +CRAMMD5_DESC= CRAM-MD5 authentication support -OPTIONS_DEFINE= LOGFILE IPV6 USERPREFS XORIGIP -LOGFILE_DESC= log file -USERPREFS_DESC= user defined revaliases -XORIGIP_DESC= Add X-Originating-IP header +LOGFILE_CONFIGURE_ON= --enable-logfile +XORIGIP_EXTRA_PATCHES= ${FILESDIR}/remote-addr.patch +IPV6_CONFIGURE_ON= --enable-inet6 +CRAMMD5_CONFIGURE_ON= --enable-md5auth +OPENSSL_CONFIGURE_ON= --enable-ssl -NO_STAGE= yes .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MLOGFILE} -CONFIGURE_ARGS+= --enable-logfile -.endif - -.if ${PORT_OPTIONS:MXORIGIP} -EXTRA_PATCHES= ${FILESDIR}/remote-addr.patch -.endif - -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-inet6 -.endif - .if ${PORT_OPTIONS:MUSERPREFS} CFLAGS+= -DUSERPREFS pre-everything:: @@ -73,14 +63,15 @@ replace: @${ECHO_CMD} "purgestat /usr/bin/true" >> ${MAILERCONF} do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${PREFIX}/sbin/ssmtp - @${MKDIR} ${PREFIX}/etc/ssmtp - @${CHMOD} 750 ${PREFIX}/etc/ssmtp - @${CHGRP} ${SHAREGRP} ${PREFIX}/etc/ssmtp - @${INSTALL_DATA} ${WRKSRC}/revaliases ${PREFIX}/etc/ssmtp/revaliases.sample - @${INSTALL_DATA} ${WRKSRC}/ssmtp.conf ${PREFIX}/etc/ssmtp/ssmtp.conf.sample - @${INSTALL_MAN} ${WRKSRC}/ssmtp.8 ${MANPREFIX}/man/man8/ssmtp.8 - @${INSTALL_MAN} ${WRKSRC}/ssmtp.conf.5 ${MANPREFIX}/man/man5/ssmtp.conf.5 - @${CAT} ${PKGMESSAGE} + ${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${STAGEDIR}${PREFIX}/sbin/ssmtp + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/ssmtp + @${CHMOD} 750 ${STAGEDIR}${PREFIX}/etc/ssmtp + ${INSTALL_DATA} ${WRKSRC}/revaliases \ + ${STAGEDIR}${PREFIX}/etc/ssmtp/revaliases.sample + ${INSTALL_DATA} ${WRKSRC}/ssmtp.conf \ + ${STAGEDIR}${PREFIX}/etc/ssmtp/ssmtp.conf.sample + ${INSTALL_MAN} ${WRKSRC}/ssmtp.8 ${STAGEDIR}${MANPREFIX}/man/man8/ssmtp.8 + ${INSTALL_MAN} ${WRKSRC}/ssmtp.conf.5 \ + ${STAGEDIR}${MANPREFIX}/man/man5/ssmtp.conf.5 .include <bsd.port.mk> diff --git a/mail/ssmtp/pkg-descr b/mail/ssmtp/pkg-descr index 36e2d503c478..63740ae38ff4 100644 --- a/mail/ssmtp/pkg-descr +++ b/mail/ssmtp/pkg-descr @@ -7,4 +7,4 @@ WARNING: the above is all it does; it does not receive mail, expand aliases or manage a queue. That belongs on a mail hub with a system administrator. -WWW: http://packages.debian.org/stable/mail/ssmtp +WWW: http://packages.debian.org/stable/mail/ssmtp diff --git a/mail/ssmtp/pkg-plist b/mail/ssmtp/pkg-plist index 9d2dc6b4622c..23a5d1333215 100644 --- a/mail/ssmtp/pkg-plist +++ b/mail/ssmtp/pkg-plist @@ -1,4 +1,9 @@ +@group ssmtp sbin/ssmtp etc/ssmtp/revaliases.sample etc/ssmtp/ssmtp.conf.sample +@group +man/man5/ssmtp.conf.5.gz +man/man8/ssmtp.8.gz +@exec chown root:ssmtp %D/etc/ssmtp @dirrmtry etc/ssmtp |