Lines 6-42
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= smail |
8 |
PORTNAME= smail |
9 |
PORTVERSION= 3.2.0.114 |
9 |
PORTVERSION= 3.2.0.121 |
10 |
CATEGORIES= mail |
10 |
CATEGORIES= mail |
11 |
MASTER_SITES= ftp://ftp.uu.net/networking/mail/smail/OLD/ \ |
11 |
MASTER_SITES= ftp://ftp.planix.com/pub/Smail/%SUBDIR%/ \ |
12 |
ftp://ftp.planix.com/pub/Smail/OLD/ \ |
12 |
ftp://ftp.fu-berlin.de/unix/mail/smail/%SUBDIR%/ |
13 |
ftp://ftp.fu-berlin.de/unix/mail/smail/OLD/ |
13 |
MASTER_SITE_SUBDIR= . OLD |
14 |
|
14 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= A program used for receiving and delivering mail |
16 |
COMMENT= A program used for receiving and delivering mail |
17 |
|
17 |
|
18 |
CONFLICTS= bsmtp-* |
|
|
19 |
|
20 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libident.a:${PORTSDIR}/security/libident |
18 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libident.a:${PORTSDIR}/security/libident |
|
|
19 |
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre |
21 |
|
20 |
|
22 |
CONFLICTS= courier-0.* postfix-1.* postfix-2.* sendmail-8.* sendmail-*-8.* zmailer-2.* |
21 |
CONFLICTS= bsmtp-1.* courier-0.* postfix-1.* postfix-2.* sendmail-8.* sendmail-*-8.* zmailer-2.* |
23 |
INSTALL_TARGET= install installman |
|
|
24 |
|
22 |
|
|
|
23 |
.if !defined(NO_INSTALL_MANPAGES) |
25 |
MAN1= pathto.1 uuwho.1 uupath.1 |
24 |
MAN1= pathto.1 uuwho.1 uupath.1 |
26 |
MAN5= smailconf.5 smail.5 smaildrct.5 smailmeth.5 smailqual.5 \ |
25 |
MAN5= smailconf.5 smail.5 smaildrct.5 smailmeth.5 smailqual.5 \ |
27 |
smailrtrs.5 smailrtry.5 smailtrns.5 |
26 |
smailrtrs.5 smailrtry.5 smailtrns.5 aliases.5 |
28 |
MAN8= pathalias.8 mkdbm.8 mkline.8 mksort.8 mkaliases.8 smail.8 \ |
27 |
MAN8= pathalias.8 mkdbm.8 mkline.8 mksort.8 mkaliases.8 smail.8 \ |
29 |
mkpath.8 pathmerge.8 checkerr.8 getmap.8 mkhpath.8 savelog.8 \ |
28 |
mkpath.8 pathmerge.8 checkerr.8 getmap.8 mkhpath.8 savelog.8 \ |
30 |
mkuuwho.8 mailq.8 sendmail.8 runq.8 rmail.8 rsmtp.8 smtpd.8 \ |
29 |
mkuuwho.8 mailq.8 sendmail.8 runq.8 rmail.8 rsmtp.8 smtpd.8 \ |
31 |
newaliases.8 smailbug.8 unfreezemail.8 bouncemail.8 |
30 |
newaliases.8 smailbug.8 unfreezemail.8 bouncemail.8 logsumm.8 |
|
|
31 |
.endif |
32 |
|
32 |
|
33 |
post-install: |
33 |
CFLAGS+= -I${LOCALBASE}/include |
34 |
@${ECHO_MSG} "If you want to replace sendmail with links to smail, type" |
34 |
LDFLAGS+= -L${LOCALBASE}/lib |
35 |
@${ECHO_MSG} "the following command as \"root\":" |
35 |
LIBS+= -lident -lwrap -lpcre |
36 |
@${ECHO_MSG} "" |
36 |
|
37 |
@${ECHO_MSG} " make replace" |
37 |
CYRUS_USER?= cyrus |
|
|
38 |
CYRUS_GROUP?= cyrus |
39 |
CYRUS_DELIVER_PATH?= ${LOCALBASE}/cyrus/bin/deliver |
40 |
|
41 |
OPTIONS= CYRUS22 "Use mail/cyrus-imapd22 as local transport" off \ |
42 |
CYRUS23 "Use mail/cyrus-imapd23 as local transport" off \ |
43 |
REPLACE_CONF "Replace /etc/mail/mailer.conf" off |
38 |
|
44 |
|
39 |
.include <bsd.port.pre.mk> |
45 |
.include <bsd.port.pre.mk> |
|
|
46 |
|
47 |
.if defined(WITH_CYRUS22) && defined(WITH_CYRUS23) |
48 |
IGNORE= WITH_CYRUS22 and WITH_CYRUS23 are mutually exclusive. Please run make options again |
49 |
.endif |
50 |
|
51 |
.if defined(WITH_CYRUS22) |
52 |
CYRUS_PORT= ${PORTSDIR}/mail/cyrus-imapd22 |
53 |
.else |
54 |
CYRUS_PORT= ${PORTSDIR}/mail/cyrus-imapd23 |
55 |
.endif |
56 |
|
57 |
.if defined(WITH_CYRUS22) || defined(WITH_CYRUS23) |
58 |
RUN_DEPENDS+= cyrus/bin/deliver:${CYRUS_PORT} |
59 |
CYRUS_IMAPD= USE_CYRUS_IMAPD |
60 |
PLIST_SUB+= CYRUS_DELIVER="" |
61 |
.else |
62 |
PLIST_SUB+= CYRUS_DELIVER="@comment " |
63 |
.endif |
64 |
|
65 |
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64" |
66 |
ARCH_TYPE=64bit |
67 |
.else |
68 |
ARCH_TYPE=32bit |
69 |
.endif |
70 |
|
71 |
do-configure: |
72 |
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ |
73 |
-e 's|%%MANPREFIX%%|${MANPREFIX}|g' \ |
74 |
-e 's|%%CFLAGS%%|${CFLAGS}|g' \ |
75 |
-e 's|%%CPPFLAGS%%|${CPPFLAGS}|g' \ |
76 |
-e 's|%%LDFLAGS%%|${LDFLAGS}|g' \ |
77 |
-e 's|%%LIBS%%|${LIBS}|g' \ |
78 |
-e 's|%%ARCH_TYPE%%|${ARCH_TYPE}|g' \ |
79 |
-e 's|%%CYRUS_IMAPD%%|${CYRUS_IMAPD}|g' \ |
80 |
${FILESDIR}/freebsd5.in > ${WRKSRC}/conf/os/freebsd5 |
81 |
@${ECHO_CMD} OS_TYPE=freebsd5 > ${WRKSRC}/conf/EDITME |
82 |
@${ECHO_CMD} STRIP=yes >> ${WRKSRC}/conf/EDITME |
83 |
@${ECHO_CMD} CYRUS_USER="${CYRUS_USER}" >> ${WRKSRC}/conf/EDITME |
84 |
@${ECHO_CMD} CYRUS_GROUP="${CYRUS_GROUP}" >> ${WRKSRC}/conf/EDITME |
85 |
@${ECHO_CMD} CYRUS_DELIVER_PATH="${CYRUS_DELIVER_PATH}" >> ${WRKSRC}/conf/EDITME |
86 |
@${LN} -sf ${WRKSRC}/conf/Make.local-BSD ${WRKSRC}/conf/Make.local |
87 |
@${REINPLACE_CMD} -e 's|defs install|defs|g' \ |
88 |
${WRKSRC}/man/Makefile |
89 |
@${ECHO_CMD} >> ${WRKSRC}/man/Makefile |
90 |
@${ECHO_CMD} install: >> ${WRKSRC}/man/Makefile |
91 |
|
92 |
pre-install: |
93 |
@${MKDIR} ${PREFIX}/etc/smail |
94 |
|
95 |
post-install: |
96 |
.if defined(WITH_REPLACE_CONF) |
97 |
@make replace |
98 |
.endif |
99 |
|
100 |
.if defined(WITH_CYRUS22) || defined(WITH_CYRUS23) |
101 |
@cd ${WRKSRC}/util && make install-cyrus-bins |
102 |
.endif |
103 |
|
104 |
.if !defined(NO_INSTALL_MANPAGES) |
105 |
@cd ${WRKSRC}/man && make installman |
106 |
.endif |
40 |
|
107 |
|
41 |
replace: |
108 |
replace: |
42 |
.if ${OSVERSION} >= 400014 |
109 |
.if ${OSVERSION} >= 400014 |