2007-09-23 13:42:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2007/09/23 11:42:43 jlam Exp $
|
2006-06-10 00:11:03 +02:00
|
|
|
|
|
|
|
DISTNAME= courier-${COURIER_VERSION}
|
|
|
|
PKGNAME= ${DISTNAME:S/-/tcpd-/}
|
2007-09-23 13:42:43 +02:00
|
|
|
PKGREVISION= 3
|
2006-06-10 00:11:03 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= jlam@pkgsrc.org
|
|
|
|
COMMENT= Courier TCP socket and TLS servers
|
|
|
|
HOMEPAGE= http://www.courier-mta.org/
|
|
|
|
|
|
|
|
CONFLICTS= courier-imap<4.11
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
2007-09-21 16:12:19 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.couriertcpd
|
|
|
|
PKG_SUPPORTED_OPTIONS= inet6
|
|
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --with-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ipv6
|
|
|
|
.endif
|
|
|
|
|
2006-06-10 00:11:03 +02:00
|
|
|
.include "../../mail/courier-mta/Makefile.common"
|
|
|
|
|
|
|
|
# This package doesn't need to depend on courier-authlib -- just fake
|
|
|
|
# out the top-level configure script that thinks it needs
|
|
|
|
# courierauthconfig.
|
|
|
|
#
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_COURIERAUTHCONFIG=${TRUE:Q}
|
|
|
|
|
|
|
|
# These are files required by the Courier configure scripts.
|
|
|
|
WRKSRC_FILES= courier/courier.c config.guess config.sub \
|
|
|
|
configure depcomp install-sh ltmain.sh missing \
|
|
|
|
sysconftool
|
|
|
|
WRKSRC_FILES+= Makefile.in courier.spec.in courier.lpspec.in \
|
|
|
|
dbobj.h.in dbobj.config.in courier.sysvinit.in
|
|
|
|
|
|
|
|
# These are subdirectories containing libraries used by couriertcpd.
|
|
|
|
WRKSRC_SUBDIRS= bdbobj numlib soxwrap md5 random128 rfc1035 \
|
|
|
|
liblock waitlib tcpd
|
|
|
|
|
|
|
|
EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//}
|
|
|
|
EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}
|
|
|
|
|
|
|
|
BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}
|
|
|
|
INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${DOCDIR}
|
|
|
|
|
|
|
|
REQD_DIRS= ${DOCDIR}
|
|
|
|
MAKE_DIRS+= ${VARBASE}/run ${COURIER_STATEDIR}
|
2007-02-15 22:51:51 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
2006-06-10 00:11:03 +02:00
|
|
|
|
2006-06-14 19:01:08 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
|
2006-06-10 00:11:03 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertcpd \
|
2006-06-26 07:21:17 +02:00
|
|
|
${PREFIX}/sbin/couriertcpd
|
2006-06-10 00:11:03 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tcpd/couriertcpd.1 \
|
|
|
|
${PREFIX}/${PKGMANDIR}/man1/couriertcpd.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcpd/couriertcpd.html \
|
|
|
|
${DOCDIR}/couriertcpd.html
|
|
|
|
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertls \
|
|
|
|
${PREFIX}/bin/couriertls
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tcpd/couriertls.1 \
|
|
|
|
${PREFIX}/${PKGMANDIR}/man1/couriertls.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcpd/couriertls.html \
|
|
|
|
${DOCDIR}/couriertls.html
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|