blob: 248dd6383edb7f98ce642f4b54fcac60ff22b67e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
# $FreeBSD$
PORTNAME= smtprc
PORTVERSION= 2.0.3
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= mich@FreeBSD.org
COMMENT= A scanner for open SMTP relays
.if defined(WITH_GUI)
RUN_DEPENDS= p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
PLIST_SUB+= WITHGUI=""
.else
PLIST_SUB+= WITHGUI="@comment "
.endif
NO_STAGE= yes
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${PREFIX}/etc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/auto.conf ${PREFIX}/etc/${PORTNAME}/auto.conf.sample
${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>
|