pkgsrc/mail/mailfront/Makefile
2020-03-08 16:47:24 +00:00

51 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2020/03/08 16:50:23 wiz Exp $
#
DISTNAME= mailfront-2.22
PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}archive/
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://untroubled.org/mailfront/
COMMENT= Mail server network protocol front-ends
LICENSE= gnu-gpl-v2
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
DEPENDS+= qmail>=1.03nb8:../../mail/qmail
DJB_RESTRICTED= NO
DJB_MAKE_TARGETS= NO
BUILD_TARGET= all
DJB_CONFIG_CMDS+= ${ECHO} ${PREFIX}/include > conf-include; \
${ECHO} ${PREFIX}/lib/${PKGBASE} > conf-modules;
FILES_SUBST+= QMAIL_DAEMON_USER=${QMAIL_DAEMON_USER:Q}
FILES_SUBST+= QMAIL_LOG_USER=${QMAIL_LOG_USER:Q}
RCD_SCRIPTS= smtpfront
INSTALLATION_DIRS= share/doc/mailfront
INSTALL_ENV+= install_prefix=${DESTDIR:Q}
BUILD_DEFS+= QMAIL_DAEMON_USER QMAIL_LOG_USER
USE_LIBTOOL= yes
MAKE_JOBS_SAFE= no # due to hacky libtoolization
PKG_SYSCONFSUBDIR= qmail
.include "options.mk"
post-install:
cd ${WRKSRC}; \
for f in ANNOUNCEMENT NEWS README *.html; do \
${INSTALL_DATA} $${f} \
${DESTDIR}${PREFIX}/share/doc/mailfront; \
done
BUILDLINK_API_DEPENDS.bglibs+= bglibs>=2.01
.include "../../devel/bglibs/buildlink3.mk"
BUILDLINK_API_DEPENDS.cvm+= cvm>=0.97
.include "../../security/cvm/buildlink3.mk"
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"