openbsd-ports/mail/maildrop/Makefile

105 lines
2.8 KiB
Makefile
Raw Normal View History

2011-06-09 09:24:13 -04:00
# $OpenBSD: Makefile,v 1.40 2011/06/09 13:24:13 giovanni Exp $
2001-04-09 20:23:01 -04:00
COMMENT-main= mail delivery agent with filtering abilities
COMMENT-utils= quota tools for the Courier mail suite
2011-06-09 09:24:13 -04:00
V= 2.5.4
2006-11-26 06:35:12 -05:00
DISTNAME= maildrop-$V
2010-11-11 05:54:02 -05:00
PKGNAME-main= maildrop-${V}
2010-04-21 03:23:58 -04:00
FULLPKGNAME-utils= courier-utils-$V
2010-02-26 13:52:57 -05:00
FULLPKGPATH-utils= mail/maildrop,-utils
CATEGORIES= mail
HOMEPAGE= http://www.courier-mta.org/maildrop/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX= .tar.bz2
FLAVORS= postfix
FLAVOR?=
2006-11-26 06:35:12 -05:00
MULTI_PACKAGES= -main -utils
2009-10-28 10:21:38 -04:00
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="${CFLAGS:C/ *$//} -I${LOCALBASE}/include" \
ac_cv_header_fam_h=no ac_cv_lib_fam_FAMOpen=no
MAKE_ENV= INCLUDES="-I${LOCALBASE}/include"
2010-11-11 05:54:02 -05:00
USE_GROFF = Yes
SUBST_VARS= MAILDROPCONF
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR}/courier \
--with-etcdir=${SYSCONFDIR}/courier \
--datadir=${PREFIX}/share/doc \
--enable-static \
--with-db=gdbm \
--enable-maildrop-gid=_courier \
--enable-maildrop-uid=_courier \
--enable-syslog=1 \
--enable-restrict-trusted=1 \
--enable-keep-fromline=1 \
--enable-use-flock=1 \
--enable-use-dotlock=1 \
--enable-authlib \
--with-dirsync \
--enable-maildirquota \
--with-default-maildrop="./Maildir"
DOCFILES= ${WRKSRC}/README \
${WRKSRC}/INSTALL \
${WRKSRC}/UPGRADE \
${WRKSRC}/README.postfix \
${WRKSRC}/maildroptips.txt \
${WRKSRC}/maildir/README.sharedfolders.txt \
${WRKSRC}/maildir/README.maildirquota.txt \
${WRKSRC}/maildir/quotawarnmsg
.if ${FLAVOR:L:Mpostfix}
CONFIGURE_ARGS+= --enable-sendmail=/usr/local/sbin/sendmail
CONFIGURE_ARGS+= --enable-trusted-users="root _courier _postfix"
CONFIGURE_ARGS+= --enable-trusted-groups="wheel _courier _postdrop"
2010-11-19 02:23:05 -05:00
RUN_DEPENDS= mail/postfix/stable
.else
CONFIGURE_ARGS+= --enable-sendmail=/usr/sbin/sendmail
CONFIGURE_ARGS+= --enable-trusted-users="root _courier"
CONFIGURE_ARGS+= --enable-trusted-groups="wheel _courier"
.endif
MODULES= converters/libiconv \
devel/gettext
2010-11-19 02:23:05 -05:00
LIB_DEPENDS= devel/libidn
2010-11-11 05:54:02 -05:00
WANTLIB = c idn
2006-11-26 06:35:12 -05:00
2010-11-19 02:23:05 -05:00
WANTLIB-main= ${WANTLIB} gdbm m stdc++ gdbm>=3 pcre>=1 courierauth
LIB_DEPENDS-main= ${LIB_DEPENDS} \
2010-11-19 02:23:05 -05:00
databases/gdbm \
devel/pcre \
mail/courier-authlib
2010-04-21 03:23:58 -04:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/maildrop
@for i in ${DOCFILES}; do \
if [ -f $$i ]; then \
${INSTALL_DATA} $$i ${PREFIX}/share/doc/maildrop ;\
fi \
done
${INSTALL_DATA} ${WRKSRC}/unicode/README \
${PREFIX}/share/doc/maildrop/README.unicode.txt
@sed -e s#!!PREFIX!!#${TRUEPREFIX}#g ${FILESDIR}/SECURITY > \
${WRKBUILD}/SECURITY
${INSTALL_DATA} ${WRKBUILD}/SECURITY \
${PREFIX}/share/doc/maildrop/
.include <bsd.port.mk>