aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-29 11:33:42 +0800
committeredwin <edwin@FreeBSD.org>2003-04-29 11:33:42 +0800
commit1640b73197b0a2834b4afe900e9e43a67b4358fb (patch)
treecdb4418ea32ae226672e347caed3d374c870b3a5
parent20d2234c09d8ae0056383b41a9e6da59443dd8e4 (diff)
downloadfreebsd-ports-gnome-1640b73197b0a2834b4afe900e9e43a67b4358fb.tar.gz
freebsd-ports-gnome-1640b73197b0a2834b4afe900e9e43a67b4358fb.tar.zst
freebsd-ports-gnome-1640b73197b0a2834b4afe900e9e43a67b4358fb.zip
[Maintainer Update]: mail/smtprc
Update to latest release. (feature enhancement) - Install GUI option added. PR: ports/51276 Submitted by: Michael L. Hostbaek <mich@freebsdcluster.org>
-rw-r--r--mail/smtprc/Makefile30
-rw-r--r--mail/smtprc/distinfo2
-rw-r--r--mail/smtprc/pkg-plist1
3 files changed, 31 insertions, 2 deletions
diff --git a/mail/smtprc/Makefile b/mail/smtprc/Makefile
index 719968626de2..96f949fa5cb1 100644
--- a/mail/smtprc/Makefile
+++ b/mail/smtprc/Makefile
@@ -7,18 +7,37 @@
#
PORTNAME= smtprc
-PORTVERSION= 0.9.6b
+PORTVERSION= 0.9.7
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}-.${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= mich@freebsdcluster.org
COMMENT= A scanner for open SMTP relays
+.if defined(WITH_GUI)
+RUN_DEPENDS= ${SITE_PERL}/mach/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk
+PLIST_SUB+= WITHGUI=""
+.else
+PLIST_SUB+= WITHGUI="@comment "
+.endif
+
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+pre-fetch:
+.if defined(WITH_GUI)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Installed with GUI"
+ @${ECHO_MSG} ""
+.else
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Press ctrl-c now, and define WITH_GUI for GUI"
+ @${ECHO_MSG} ""
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s,-Wall -g,${CFLAGS},g ; \
s,gcc,${CC},g" ${WRKSRC}/Makefile
@@ -30,11 +49,20 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/email.tmpl ${PREFIX}/etc/${PORTNAME}/email.tmpl.sample
${INSTALL_DATA} ${WRKSRC}/rcheck.conf ${PREFIX}/etc/${PORTNAME}/rcheck.conf.sample
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1
+.if defined(WITH_GUI)
+ ${INSTALL_SCRIPT} ${WRKSRC}/gsmtprc ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/gsmtprc.1 ${PREFIX}/man/man1
+.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
.endif
+.if defined(WITH_GUI)
+MAN1= smtprc.1 gsmtprc.1
+.else
MAN1= smtprc.1
+.endif
+
.include <bsd.port.mk>
diff --git a/mail/smtprc/distinfo b/mail/smtprc/distinfo
index 04bab0afee3e..450029db3d5a 100644
--- a/mail/smtprc/distinfo
+++ b/mail/smtprc/distinfo
@@ -1 +1 @@
-MD5 (smtprc-0.9.6b.tgz) = 37e043b0de36f60bf5ee1f1dd64c2ee8
+MD5 (smtprc-.0.9.7.tgz) = 95f26d0e45a1a6d6ca997bcec5919b76
diff --git a/mail/smtprc/pkg-plist b/mail/smtprc/pkg-plist
index c83cd36d7c0d..81918b88145d 100644
--- a/mail/smtprc/pkg-plist
+++ b/mail/smtprc/pkg-plist
@@ -3,5 +3,6 @@ etc/smtprc/auto.conf.sample
etc/smtprc/email.tmpl.sample
etc/smtprc/rcheck.conf.sample
@dirrm /etc/smtprc
+%%WITHGUI%%bin/gsmtprc
%%PORTDOCS%%share/doc/smtprc/README
%%PORTDOCS%%@dirrm /share/doc/smtprc