diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-29 03:33:42 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-29 03:33:42 +0000 |
commit | ced66e531b509b1522ac73316259c8e16c47065d (patch) | |
tree | ff29ae99a07f6448438d975d022b5d8820a6b297 /mail/smtprc | |
parent | 6cfa6812482a4ae301080088f490e7b8c8901033 (diff) | |
download | ports-ced66e531b509b1522ac73316259c8e16c47065d.tar.gz ports-ced66e531b509b1522ac73316259c8e16c47065d.zip |
Notes
Diffstat (limited to 'mail/smtprc')
-rw-r--r-- | mail/smtprc/Makefile | 30 | ||||
-rw-r--r-- | mail/smtprc/distinfo | 2 | ||||
-rw-r--r-- | mail/smtprc/pkg-plist | 1 |
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 |