summaryrefslogtreecommitdiff
path: root/mail/milter-regex/Makefile
blob: de9ccbbf06684992610973b7243b8834db7398cc (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
48
49
50
51
52
53
54
55
# $NetBSD: Makefile,v 1.24 2017/09/03 08:36:55 wiz Exp $

DISTNAME=	milter-regex-1.7
PKGREVISION=	2
CATEGORIES=	mail
MASTER_SITES=	http://www.benzedrine.cx/

MAINTAINER=	jdarrow@NetBSD.org
#HOMEPAGE=	http://www.benzedrine.cx/milter-regex.html
COMMENT=	Milter enabling regular expression filtering

USE_TOOLS+=		nroff yacc
INSTALLATION_DIRS=	${PKGMANDIR}/cat8 ${PKGMANDIR}/man8 sbin

PKG_GROUPS=		smmsp
PKG_USERS=		smmsp:smmsp
PKG_GECOS.smmsp=	Sendmail Message Submission Program

RCD_SCRIPTS=	milter-regex

SUBST_CLASSES+=		etc
SUBST_STAGE.etc=	do-configure
SUBST_FILES.etc=	milter-regex.8 milter-regex.c
SUBST_SED.etc=		-e 's|/etc|${PKG_SYSCONFDIR}|g'

SUBST_CLASSES+=		var
SUBST_STAGE.var=	do-configure
SUBST_FILES.var=	milter-regex.8 milter-regex.c
SUBST_SED.var=		-e 's|/var/spool|${VARBASE}|g'

.include "../../mk/bsd.prefs.mk"

.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
_WRAP_EXTRA_ARGS.CC+=	-Wno-unused-const-variable
CWRAPPERS_APPEND.cc+=	-Wno-unused-const-variable
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${DESTDIR}${PREFIX}/sbin
.if !empty(MANINSTALL:Mcatinstall)
.  if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
	${INSTALL_DATA} ${WRKSRC}/milter-regex.cat8 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/cat8/milter-regex.8
.  else
	${INSTALL_DATA} ${WRKSRC}/milter-regex.cat8 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/cat8/milter-regex.0
.  endif
.endif
	${INSTALL_DATA} ${WRKSRC}/milter-regex.8 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man8

.include "../../mail/libmilter/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"