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> |