pkgsrc/mail/spamdyke/Makefile
schmonz 554348b584 Fix build with PKGSRC_USE_SSP, and support PKGSRC_USE_FORTIFY.
While here, remove reference to LOCALBASE.
2017-07-09 16:16:32 +00:00

52 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2017/07/09 16:16:32 schmonz Exp $
#
DISTNAME= spamdyke-5.0.1
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}releases/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://www.spamdyke.org/
COMMENT= Filters incoming SMTP connections to qmail
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}/${PKGBASE}
GNU_CONFIGURE= yes
BUILD_TARGET= ${PKGBASE}
MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
# anonymous inner functions
ONLY_FOR_COMPILER= gcc
SUBST_CLASSES+= paths
SUBST_FILES.paths= spamdyke.h
SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX:Q},g'
SUBST_SED.paths+= -e 's,@QMAILDIR@,${QMAILDIR:Q},g'
SUBST_STAGE.paths= do-configure
BUILD_DEFS+= QMAILDIR
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES+= ${EGDIR}/spamdyke.conf.example ${PKG_SYSCONFDIR}/spamdyke.conf
INSTALLATION_DIRS= bin share/doc/${PKGBASE} share/examples/${PKGBASE}
.include "options.mk"
do-install:
cd ${WRKSRC}; \
for f in spamdyke; do \
${INSTALL_PROGRAM} $${f} ${DESTDIR}${PREFIX}/bin; \
done; \
cd ../documentation; \
${INSTALL_DATA} spamdyke.conf.example ${DESTDIR}${EGDIR}; \
for f in *.txt *.html; do \
${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE};\
done
.include "../../mk/resolv.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"