summaryrefslogtreecommitdiff
path: root/mail/spamdyke/Makefile
blob: 606665515f8bf0d06a3d09c4a1bd224f9f85699a (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
# $NetBSD: Makefile,v 1.23 2008/12/25 16:43:35 schmonz Exp $
#

DISTNAME=	spamdyke-4.0.10
CATEGORIES=	mail
MASTER_SITES=	${HOMEPAGE}releases/
EXTRACT_SUFX=	.tgz

MAINTAINER=	schmonz@NetBSD.org
HOMEPAGE=	http://www.spamdyke.org/
COMMENT=	Monitors and intercept incoming SMTP connections to qmail

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}/${PKGBASE}

GNU_CONFIGURE=	yes
BUILD_TARGET=	${PKGBASE}

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	spamdyke.h
SUBST_SED.paths=	-e 's,@LOCALBASE@,${LOCALBASE: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"