summaryrefslogtreecommitdiffstats
path: root/mail/queue-fix/Makefile
blob: 72ecf0efa9aa74d316cce17a84519aee1fb32208 (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
# $FreeBSD$

PORTNAME=	queue-fix
PORTVERSION=	1.4
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://www.netmeridian.com/e-huss/ \
		${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=	distfiles

MAINTAINER=	bdrewery@FreeBSD.org
COMMENT=	Repairs or generates a qmail queue structure

USES=		qmail:run

PREFIX?=	${QMAIL_PREFIX}

OPTIONS_DEFINE=	DOCS BIG_TODO

BIG_TODO_DESC=	Use big_todo patch

CONFIGURE_SCRIPT=
ALL_TARGET=

PLIST_FILES=	bin/queue-fix

PORTDOCS=	README

.include <bsd.port.pre.mk>

.if (${PREFIX} == ${LOCALBASE})
DOCSDIR=	${PREFIX}/share/doc/qmail/queue-fix
.else
DOCSDIR=	${PREFIX}/doc/queue-fix
.endif

.if ${PORT_OPTIONS:MBIG_TODO}
PATCH_SITES+=		http://www.qmail.org/
PATCHFILES+=		queue-fix-todo.patch
PATCH_DIST_STRIP+=	-p1
.endif

post-patch:
	${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
	${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/queue-fix ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud