2001-02-12 03:08:53 +00:00
|
|
|
# New ports collection makefile for: qmail-mysql
|
|
|
|
# Date created: 6 Feb 2001
|
|
|
|
# Whom: Mario S F Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qmail
|
|
|
|
PORTVERSION= ${QMAIL_VERSION}.${MYSQL_PATCH_VERSION}
|
2001-02-22 18:15:18 +00:00
|
|
|
PORTREVISION= 1
|
2001-02-12 03:08:53 +00:00
|
|
|
CATEGORIES= mail
|
|
|
|
PKGNAMESUFFIX= -mysql
|
|
|
|
|
|
|
|
PATCH_SITES+= http://iain.cx/unix/qmail/download/
|
|
|
|
PATCHFILES+= qmail-mysql-${MYSQL_PATCH_VERSION}.patch
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
|
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
|
2001-02-22 18:15:18 +00:00
|
|
|
# patches from the master port that brake this one are now allowed
|
|
|
|
MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER= yes
|
|
|
|
|
2001-02-12 03:08:53 +00:00
|
|
|
MYSQL_PATCH_VERSION= 1.1.1
|
|
|
|
|
2001-02-14 01:26:03 +00:00
|
|
|
# Using default from master port, i.e., /var/qmail
|
|
|
|
PREFIX?= ${QMAIL_PORT_PREFIX}
|
|
|
|
#PREFIX= /var/qmail-mysql
|
|
|
|
|
2001-02-12 03:08:53 +00:00
|
|
|
.if !defined(PRE_MK_INCLUDED)
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.endif
|
|
|
|
|
2001-02-14 01:26:03 +00:00
|
|
|
#QMAIL_PORT= ${PORTSDIR}/mail/qmail
|
|
|
|
QMAIL_PORT= ${.CURDIR}/../qmail
|
|
|
|
QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
|
2001-02-12 03:08:53 +00:00
|
|
|
|
|
|
|
# Yet anther ugly hack (works due to code inside the main qmail port)
|
2001-02-22 18:15:18 +00:00
|
|
|
slaveport-post-patch: qmail-mysql-post-patch
|
2001-02-12 03:08:53 +00:00
|
|
|
|
|
|
|
qmail-mysql-post-patch:
|
|
|
|
@${PERL} -pi -ne \
|
|
|
|
"s|/usr/local/mysql/lib|${LOCALBASE}/lib|;s|/usr/local/mysql/include|${LOCALBASE}/include|;s|-lm|-lm -lz|" \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
# Local overrides
|
2001-02-14 01:26:03 +00:00
|
|
|
MASTERDIR= ${QMAIL_PORT}
|
2001-02-12 03:08:53 +00:00
|
|
|
PKGDIR_LOCAL= ${.CURDIR}
|
|
|
|
COMMENT= ${PKGDIR_LOCAL}/pkg-comment
|
|
|
|
DESCR= ${PKGDIR_LOCAL}/pkg-descr
|
|
|
|
PKGMESSAGE= ${PKGDIR_LOCAL}/pkg-message
|
|
|
|
|
|
|
|
PRE_MK_INCLUDED= yes
|
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|