openbsd-ports/mail/postfix/Makefile.inc

105 lines
3.1 KiB
PHP
Raw Normal View History

2001-11-28 04:35:14 -05:00
# $OpenBSD: Makefile.inc,v 1.14 2001/11/28 09:35:14 jakob Exp $
COMMENT= fast, secure sendmail replacement
CATEGORIES= mail
2001-11-15 02:36:35 -05:00
NEED_VERSION= 1.491
MASTER_SITES= ftp://ftp.merit.edu/postfix/%SUBDIR%/ \
ftp://ftp.sunet.se/pub/unix/mail/postfix/%SUBDIR%/ \
ftp://ftp.tau.ac.il/pub/unix/mail/postfix/%SUBDIR%/ \
ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/%SUBDIR%/
DIST_SUBDIR= postfix
HOMEPAGE= http://www.postfix.org/
2001-11-28 04:35:14 -05:00
TLSHOMEPAGE= http://www.aet.tu-cottbus.de/personen/jaenicke/pfixtls/
SUBST_VARS+= TLSHOMEPAGE
PERMIT_PACKAGE_CDROM= yes
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= yes
PERMIT_DISTFILES_FTP= yes
2001-05-29 02:11:36 -04:00
MAKE_DEBUG?=
MAKE_CCARGS?=
MAKE_AUXLIBS?=
ALL_TARGET= default
2001-10-25 17:35:38 -04:00
FLAVORS+= pcre sasl ldap mysql tls
FLAVOR?=
.if ${FLAVOR:L:Mpcre}
LIB_DEPENDS+= pcre::devel/pcre
MAKE_CCARGS+= -I${LOCALBASE}/include -DHAS_PCRE
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
.if ${FLAVOR:L:Msasl}
LIB_DEPENDS+= sasl::security/cyrus-sasl
MAKE_CCARGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl -DUSE_SASL_AUTH
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lsasl -lkrb
.endif
.if ${FLAVOR:L:Mldap}
2001-10-24 08:22:45 -04:00
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
MAKE_CCARGS+= -I${LOCALBASE}/include -DHAS_LDAP
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
.endif
2001-09-28 19:35:18 -04:00
.if ${FLAVOR:L:Mmysql}
2001-11-11 08:48:16 -05:00
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-3.23.*:databases/mysql
2001-09-28 19:35:18 -04:00
MAKE_CCARGS+= -I${LOCALBASE}/include/mysql -DHAS_MYSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
.endif
2001-10-25 17:35:38 -04:00
.if ${FLAVOR:L:Mtls}
MASTER_SITES0= ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/ \
ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/old/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${TLSDISTNAME}${EXTRACT_SUFX}:0
MAKE_CCARGS+= -DHAS_SSL
MAKE_AUXLIBS+= -lssl -lcrypto
post-patch:
mv ${WRKDIST}/conf/master.cf ${WRKDIST}/conf/master.cf.save
cp ${WRKDIST}/conf/master.cf.orig ${WRKDIST}/conf/master.cf
cd ${WRKDIST} && patch -p1 < ${WRKDIR}/${TLSDISTNAME}/pfixtls.diff
mv ${WRKDIST}/conf/master.cf.save ${WRKDIST}/conf/master.cf
cd ${WRKDIST} && patch -p0 < ${FILESDIR}/patch-tls-master.cf
rm ${WRKDIST}/conf/*.orig
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix/tls
${INSTALL_DATA} ${WRKDIR}/${TLSDISTNAME}/doc/* \
${PREFIX}/share/doc/postfix/tls
.else
post-patch:
rm ${WRKDIST}/conf/*.orig
.endif
do-configure:
cd ${WRKSRC}; ${MAKE_PROGRAM} makefiles \
2001-05-29 02:11:36 -04:00
CC="${CC}" OPT="${CFLAGS}" DEBUG="${MAKE_DEBUG}" \
CCARGS="${MAKE_CCARGS}" AUXLIBS="${MAKE_AUXLIBS}"
do-install:
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/postfix
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/postfix
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/sbin
${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/libexec/* ${PREFIX}/libexec/postfix
${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/share/examples/postfix
@(cd ${WRKSRC}/man; \
for mandir in man[0-9]; do \
${INSTALL_MAN} $$mandir/* ${PREFIX}/man/$$mandir; \
done)
${INSTALL_DATA} ${WRKSRC}/html/*.html ${PREFIX}/share/doc/postfix
${INSTALL_DATA} ${WRKSRC}/html/*.gif ${PREFIX}/share/doc/postfix