summaryrefslogtreecommitdiff
path: root/mail/maildrop/Makefile
blob: e4dcfef2149402c228de3a81b553ca695ef9a947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.23 2005/04/11 21:46:20 tv Exp $

DISTNAME=	maildrop-1.8.0
PKGBASE=	${DISTNAME:C/-[^-]*$//}
CATEGORIES=     security
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX=   .tar.bz2

MAINTAINER=	jlam@NetBSD.org
COMMENT=	Courier mail delivery agent with filtering abilities
HOMEPAGE=	http://www.courier-mta.org/maildrop/

DEPENDS+=	courier-maildir>=0.48.2:../../mail/courier-maildir

USE_GNU_TOOLS+=		make
USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes

PKG_SUPPORTED_OPTIONS+=	authlib
PKG_DEFAULT_OPTIONS+=	authlib

.include "../../mail/courier-maildir/Makefile.common"
.include "../../security/courier-authlib/Makefile.common"

# These are the users that may invoke maildrop with the "-d user"
# argument (mailbox delivery mode).
#
MAILDROP_TRUSTED_USERS?=	${ROOT_USER} ${COURIER_USER} qmaild

CONFIGURE_ARGS+=	--with-etcdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--enable-maildirquota
CONFIGURE_ARGS+=	--enable-maildrop-uid=${ROOT_USER}
CONFIGURE_ARGS+=	--enable-maildrop-gid=${COURIER_GROUP}
CONFIGURE_ARGS+=	--enable-trusted-users='${MAILDROP_TRUSTED_USERS}'
CONFIGURE_ARGS+=	--enable-trusted-groups='${COURIER_GROUP}'
CONFIGURE_ARGS+=	--enable-syslog=1

.if !empty(PKG_OPTIONS:Mauthlib)
CONFIGURE_ARGS+=	--enable-authlib
.  include "../../security/courier-authlib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-authlib
.endif

SPECIAL_PERMS=	${PREFIX}/bin/maildrop ${ROOT_USER} ${COURIER_GROUP} 4711

post-install:
	${INSTALL_DATA_DIR} ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/README.postfix ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/maildroptips.txt ${DOCDIR}

.include "../../mk/bsd.pkg.mk"