View | Details | Raw Unified | Return to bug 133318
Collapse All | Expand All

(-)mail/esmtp/Makefile (-17 / +15 lines)
Lines 6-16 Link Here
6
#
6
#
7
7
8
PORTNAME=	esmtp
8
PORTNAME=	esmtp
9
PORTVERSION=	0.5.1
9
PORTVERSION=	1.0
10
PORTREVISION=	1
11
CATEGORIES=	mail
10
CATEGORIES=	mail
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	SF
13
MASTER_SITE_SUBDIR=	${PORTNAME}
14
12
15
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	Relay-only Mail Transfer Agent with sendmail compatible syntax
14
COMMENT=	Relay-only Mail Transfer Agent with sendmail compatible syntax
Lines 28-61 Link Here
28
PORTDOCS=	README
26
PORTDOCS=	README
29
PLIST_FILES=	bin/esmtp etc/esmtprc.sample
27
PLIST_FILES=	bin/esmtp etc/esmtprc.sample
30
28
29
SUB_FILES=	pkg-message
30
31
CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
31
CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
32
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
32
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
33
33
34
post-patch:
34
post-patch:
35
	@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g' \
35
.for file in ${PORTNAME}.1
36
		${WRKSRC}/sample.esmtprc
36
	@${REINPLACE_CMD} -e \
37
	@${REINPLACE_CMD} -e 's|sendmail(1)|sendmail(8)|g ; \
37
		's|^/etc|${PREFIX}/etc|g' ${WRKSRC}/${file}
38
		s|/etc|${PREFIX}/etc|g' ${WRKSRC}/${PORTNAME}.1
38
.endfor
39
	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' \
39
.for file in esmtprc.5 sample.esmtprc
40
		${WRKSRC}/parser.c ${WRKSRC}/parser.y
40
	@${REINPLACE_CMD} -e \
41
		's|/usr/bin/|${LOCALBASE}/bin/|g ; \
42
		 s|/usr/lib/|/usr/libexec/|g' ${WRKSRC}/${file}
43
.endfor
41
44
42
do-install:
45
do-install:
43
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
46
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
44
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
47
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
45
	${INSTALL_MAN} ${WRKSRC}/esmtprc.5 ${MANPREFIX}/man/man5
48
	${INSTALL_MAN} ${WRKSRC}/esmtprc.5 ${MAN5PREFIX}/man/man5
46
	${INSTALL_DATA} ${WRKSRC}/sample.esmtprc \
49
	${INSTALL_DATA} ${WRKSRC}/sample.esmtprc \
47
		${PREFIX}/etc/esmtprc.sample
50
		${PREFIX}/etc/esmtprc.sample
48
	@${ECHO_MSG} "------------------------------------------------------------"
49
	@${ECHO_MSG} "Sample of configuration file placed at"
50
	@${ECHO_MSG} "${PREFIX}/etc/esmtprc.sample"
51
	@${ECHO_MSG} "------------------------------------------------------------"
52
53
post-install:
54
.if !defined(NOPORTDOCS)
51
.if !defined(NOPORTDOCS)
55
	@${MKDIR} ${DOCSDIR}
52
	@${MKDIR} ${DOCSDIR}
56
.for doc in ${PORTDOCS}
53
.for doc in ${PORTDOCS}
57
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
54
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
58
.endfor
55
.endfor
59
.endif
56
.endif
57
	@${CAT} ${PKGMESSAGE}
60
58
61
.include <bsd.port.mk>
59
.include <bsd.port.mk>
(-)mail/esmtp/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (esmtp-0.5.1.tar.bz2) = 9f0b809e891a548910f099efc4315b02
1
MD5 (esmtp-1.0.tar.bz2) = e4c4e00eecb70b528a9d772d2e633b29
2
SHA256 (esmtp-0.5.1.tar.bz2) = ae023107f8e0c872a2bb6f23a9a5f019b254e9b7eebd20a309af996d9cb7e38e
2
SHA256 (esmtp-1.0.tar.bz2) = b880708a52968ca9506ea8d9578ba1cfa8bb5586f51a421279803c8260dbb190
3
SIZE (esmtp-0.5.1.tar.bz2) = 127355
3
SIZE (esmtp-1.0.tar.bz2) = 122979
(-)mail/esmtp/files/patch-esmtprc.5 (-13 lines)
Lines 1-13 Link Here
1
--- esmtprc.5.orig     Wed Feb 16 04:07:57 2005
2
+++ esmtprc.5  Sun Apr 10 10:04:14 2005
3
@@ -137,8 +137,8 @@
4
 place a %T.  The mail message's \fBFrom\fR address will be inserted where you
5
 place an %F.
6
 
7
-Some common MDAs are "/usr/bin/procmail -d %T", "/usr/bin/deliver" and
8
-"/usr/lib/mail.local %T".
9
+Some common MDAs are "/usr/local/bin/procmail -d %T"
10
+and "/usr/libexec/mail.local %T".
11
 
12
 .SH SEE ALSO
13
 esmtp(1)
(-)mail/esmtp/files/pkg-message.in (+4 lines)
Line 0 Link Here
1
------------------------------------------------------------
2
Sample of configuration file placed at
3
%%PREFIX%%/etc/esmtprc.sample
4
------------------------------------------------------------

Return to bug 133318