summaryrefslogtreecommitdiff
path: root/mail/ezmlm-idx/Makefile
blob: 0b4e0d872a6b6eadeec88626fc70c12930e8ad2f (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
# $NetBSD: Makefile,v 1.3 2003/06/02 01:18:47 jschauma Exp $
#

.include "../../mail/ezmlm/Makefile.common"

DISTNAME=	ezmlm-idx-0.40
PKGREVISION=	1
MASTER_SITES+=	http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/ \
		ftp://ftp.ezmlm.org/pub/patches/

MAINTAINER=	tech-pkg@netbsd.org
HOMEPAGE=	http://www.ezmlm.org/
COMMENT=	ezmlm with enhancements by third parties

CONFLICTS=	ezmlm-[0-9]*

DISTFILES+=	${EZMLM_VERS}.tar.gz
PLIST_SRC+=	PLIST.idx

USE_PKGINSTALL=	YES

PKG_SYSCONFSUBDIR=	ezmlm
CFLAGS+=	-DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\"\\\"

EGDIR=		${PREFIX}/share/examples/ezmlm-idx
CONF_FILES=	${EGDIR}/ezcgirc ${PKG_SYSCONFDIR}/ezcgirc
CONF_FILES+=	${EGDIR}/ezmlmrc ${PKG_SYSCONFDIR}/ezmlmrc

pre-patch:
	@${MV} ${WRKSRC}/* ${WRKDIR}/${EZMLM_VERS}
	@${RMDIR} ${WRKSRC}
	@${MV} ${WRKDIR}/${EZMLM_VERS} ${WRKSRC}
	@cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < idx.patch

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/ezcgirc ${EGDIR}/ezcgirc
	${INSTALL_DATA} ${WRKSRC}/ezmlmrc ${EGDIR}/ezmlmrc
	${INSTALL_DATA} ${WRKSRC}/ezmlmglrc ${EGDIR}/ezmlmglrc
	${INSTALL_DATA} ${WRKSRC}/ezmlmsubrc ${EGDIR}/ezmlmsubrc

.include "../../mk/bsd.pkg.mk"