2005-09-15 21:06:52 -04:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.52 2005/09/16 01:06:52 brad Exp $
|
2001-03-24 14:55:27 -05:00
|
|
|
|
2003-04-10 14:08:56 -04:00
|
|
|
COMMENT= "fast, secure sendmail replacement"
|
2000-09-25 17:02:29 -04:00
|
|
|
|
2005-03-07 13:26:39 -05:00
|
|
|
DISTNAME= postfix-${VERSION}
|
2005-05-06 12:35:41 -04:00
|
|
|
PKGNAME?= postfix-${VERSION:S/-/./}
|
2000-09-25 17:02:29 -04:00
|
|
|
CATEGORIES= mail
|
|
|
|
|
2002-05-15 02:20:04 -04:00
|
|
|
MASTER_SITE_POSTFIX=\
|
|
|
|
ftp://ftp.porcupine.org/mirrors/postfix-release/ \
|
|
|
|
ftp://ftp.merit.edu/postfix/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/mail/postfix/ \
|
|
|
|
ftp://ftp.tau.ac.il/pub/unix/mail/postfix/ \
|
|
|
|
ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/
|
2000-09-25 17:02:29 -04:00
|
|
|
|
|
|
|
DIST_SUBDIR= postfix
|
2004-01-02 06:26:19 -05:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2004-11-24 02:40:54 -05:00
|
|
|
|
2000-09-25 17:02:29 -04:00
|
|
|
HOMEPAGE= http://www.postfix.org/
|
|
|
|
|
2005-03-07 13:26:39 -05:00
|
|
|
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
|
|
|
|
2003-03-16 00:55:51 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= "cannot be sold, see section 4 of license"
|
2000-09-25 17:02:29 -04:00
|
|
|
PERMIT_PACKAGE_FTP= yes
|
2003-03-16 00:55:51 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= "cannot be sold, see section 4 of license"
|
2000-09-25 17:02:29 -04:00
|
|
|
PERMIT_DISTFILES_FTP= yes
|
|
|
|
|
2001-05-29 02:11:36 -04:00
|
|
|
MAKE_DEBUG?=
|
2002-01-25 03:14:29 -05:00
|
|
|
MAKE_CCARGS?= -DFD_SETSIZE=2048
|
2004-01-02 06:26:19 -05:00
|
|
|
MAKE_CCARGS+= -DDEF_CONFIG_DIR=\"${SYSCONFDIR}/postfix\"
|
2005-03-07 13:26:39 -05:00
|
|
|
MAKE_CCARGS+= -DUSE_TLS
|
2004-06-10 17:22:25 -04:00
|
|
|
MAKE_AUXLIBS+= -lssl -lcrypto
|
|
|
|
|
2004-12-28 04:27:13 -05:00
|
|
|
WANTLIB= c crypto ssl
|
|
|
|
|
2000-09-25 17:02:29 -04:00
|
|
|
ALL_TARGET= default
|
|
|
|
|
2002-10-27 12:21:39 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2004-04-25 06:36:39 -04:00
|
|
|
# always include pcre
|
2001-09-28 19:32:47 -04:00
|
|
|
LIB_DEPENDS+= pcre::devel/pcre
|
2003-01-13 10:44:36 -05:00
|
|
|
MAKE_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
|
2001-09-28 19:32:47 -04:00
|
|
|
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
|
2004-04-25 06:36:39 -04:00
|
|
|
|
|
|
|
FLAVORS+= sasl2 ldap mysql pgsql
|
|
|
|
FLAVOR?=
|
2001-09-28 19:32:47 -04:00
|
|
|
|
2002-12-25 06:48:46 -05:00
|
|
|
.if ${FLAVOR:L:Msasl2}
|
|
|
|
LIB_DEPENDS+= sasl2::security/cyrus-sasl2
|
|
|
|
MAKE_CCARGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl -DUSE_SASL_AUTH
|
|
|
|
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2
|
|
|
|
.endif
|
|
|
|
|
2001-09-28 19:32:47 -04:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
2001-10-24 08:22:45 -04:00
|
|
|
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
|
2001-09-28 19:32:47 -04:00
|
|
|
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}
|
2004-01-02 00:11:08 -05:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10::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
|
|
|
|
|
2004-04-25 06:36:39 -04:00
|
|
|
.if ${FLAVOR:L:Mpgsql}
|
2004-07-26 18:44:40 -04:00
|
|
|
LIB_DEPENDS+= pq.3:postgresql-client-*:databases/postgresql
|
2004-04-25 06:36:39 -04:00
|
|
|
MAKE_CCARGS+= -I${LOCALBASE}/include/postgresql -DHAS_PGSQL
|
|
|
|
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpq
|
2004-02-16 02:37:46 -05:00
|
|
|
.endif
|
|
|
|
|
2000-10-05 17:08:38 -04:00
|
|
|
do-configure:
|
2004-04-25 06:36:39 -04:00
|
|
|
@cd ${WRKSRC}; ${MAKE_PROGRAM} makefiles \
|
2001-05-29 02:11:36 -04:00
|
|
|
CC="${CC}" OPT="${CFLAGS}" DEBUG="${MAKE_DEBUG}" \
|
2003-05-01 11:46:38 -04:00
|
|
|
CCARGS='${MAKE_CCARGS}' AUXLIBS="${MAKE_AUXLIBS}"
|
2000-10-05 17:08:38 -04:00
|
|
|
|
2000-09-25 17:02:29 -04:00
|
|
|
do-install:
|
2004-04-25 06:36:39 -04:00
|
|
|
@(cd ${WRKSRC}; sh postfix-install \
|
2002-01-25 03:14:29 -05:00
|
|
|
-non-interactive \
|
2004-04-25 06:36:39 -04:00
|
|
|
mail_owner=_postfix \
|
|
|
|
setgid_group=_postdrop \
|
2002-01-25 03:14:29 -05:00
|
|
|
install_root=${WRKINST} \
|
|
|
|
daemon_directory=${TRUEPREFIX}/libexec/postfix \
|
|
|
|
command_directory=${TRUEPREFIX}/sbin \
|
|
|
|
sendmail_path=${TRUEPREFIX}/sbin/sendmail \
|
2004-10-18 02:48:31 -04:00
|
|
|
newaliases_path=${TRUEPREFIX}/sbin/newaliases \
|
2002-01-25 03:14:29 -05:00
|
|
|
mailq_path=${TRUEPREFIX}/sbin/mailq \
|
|
|
|
manpage_directory=${TRUEPREFIX}/man \
|
|
|
|
readme_directory=${TRUEPREFIX}/share/doc/postfix/readme \
|
2004-04-25 06:36:39 -04:00
|
|
|
html_directory=${TRUEPREFIX}/share/doc/postfix/html \
|
2002-01-25 03:14:29 -05:00
|
|
|
)
|
2004-04-25 06:36:39 -04:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
|
2004-06-22 01:20:12 -04:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl ${PREFIX}/sbin/qshape
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 ${PREFIX}/man/man1
|
2004-04-25 06:36:39 -04:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/postfix
|
|
|
|
@mv ${WRKINST}${SYSCONFDIR}/postfix/* ${PREFIX}/share/examples/postfix
|
|
|
|
@rm -fr ${WRKINST}/var/spool/postfix
|
2005-04-08 16:16:31 -04:00
|
|
|
@chown -h ${BINOWN}:${BINGRP} ${PREFIX}/{sbin,libexec/postfix}/*
|
|
|
|
@chown -R ${MANOWN}:${MANGRP} ${PREFIX}/man
|
|
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
|