1998-12-24 07:27:15 +00:00
|
|
|
# New ports collection makefile for: maildrop
|
1999-11-23 08:41:13 +00:00
|
|
|
# Version required: 0.64
|
1998-12-24 07:27:15 +00:00
|
|
|
# Date created: 16 November 1998
|
|
|
|
# Whom: Tom Hukins <tom@eborcom.com>
|
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1998-12-24 07:27:15 +00:00
|
|
|
#
|
|
|
|
|
1999-11-23 08:41:13 +00:00
|
|
|
DISTNAME= maildrop-0.64
|
1998-12-24 07:27:15 +00:00
|
|
|
CATEGORIES= mail
|
1999-04-07 14:08:47 +00:00
|
|
|
MASTER_SITES= http://www.flounder.net/~mrsam/maildrop/ \
|
|
|
|
${MASTER_SITE_SUNSITE}
|
1998-12-24 07:27:15 +00:00
|
|
|
MASTER_SITE_SUBDIR= system/mail/mailhandlers
|
|
|
|
|
|
|
|
MAINTAINER= tom@eborcom.com
|
|
|
|
|
1999-03-15 01:32:32 +00:00
|
|
|
# Maildrop is usually installed with gdbm extensions. If you do not
|
|
|
|
# want these extensions installed, NO_GDBM must be defined.
|
|
|
|
#
|
|
|
|
.if !defined(NO_GDBM)
|
|
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libgdbm.a:${PORTSDIR}/databases/gdbm
|
|
|
|
.endif
|
|
|
|
|
1999-11-23 08:41:13 +00:00
|
|
|
ALL_TARGET= config.h xconfig.h all
|
|
|
|
INSTALL_TARGET= install-strip
|
1998-12-24 07:27:15 +00:00
|
|
|
|
|
|
|
# Maildrop will be installed with suid permissions for MAILDROP_SUID,
|
|
|
|
# and sgid permissions for MAILDROP_SGID. If undefined, these values
|
|
|
|
# default to "root" and "mail" respectively, which should be suitable
|
|
|
|
# for most systems.
|
|
|
|
#
|
1999-03-15 01:32:32 +00:00
|
|
|
MAILDROP_SUID?= root
|
|
|
|
MAILDROP_SGIG?= mail
|
1998-12-24 07:27:15 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-syslog=1 \
|
1999-03-15 01:32:32 +00:00
|
|
|
--with-docdir="${PREFIX}/share/doc/maildrop" \
|
|
|
|
--with-etcdir="${PREFIX}/etc" \
|
1998-12-24 07:27:15 +00:00
|
|
|
--enable-maildrop-uid="${MAILDROP_SUID}" \
|
|
|
|
--enable-maildrop-gid="${MAILDROP_SGID}"
|
1999-03-15 01:32:32 +00:00
|
|
|
CONFIGURE_ENV= CXX="${CXX}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
|
1998-12-24 07:27:15 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
INSTALL_TARGET= install-exec all
|
|
|
|
.else
|
1999-03-15 01:32:32 +00:00
|
|
|
MAN1= dotlock.1 maildrop.1 maildrop.makegdbm.1 reformail.1 reformime.1
|
|
|
|
MAN5= maildropex.5 maildropfilter.5 maildropgdbm.5
|
1998-12-24 07:27:15 +00:00
|
|
|
MANCOMPRESSED= yes
|
|
|
|
.endif
|
|
|
|
|
1999-03-15 01:32:32 +00:00
|
|
|
.if defined(NO_GDBM)
|
|
|
|
CONFIGURE_ARGS+= --without-gdbm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
1998-12-24 07:27:15 +00:00
|
|
|
post-patch:
|
1999-03-15 01:32:32 +00:00
|
|
|
@${CP} ${PKGDIR}/PLIST ${WRKDIR}
|
|
|
|
.if !defined(NO_GDBM)
|
|
|
|
@${CAT} ${PKGDIR}/PLIST.gdbm >> ${WRKDIR}/PLIST
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${CAT} ${PKGDIR}/PLIST.docs >> ${WRKDIR}/PLIST
|
|
|
|
.endif
|
1998-12-24 07:27:15 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|