summaryrefslogtreecommitdiff
path: root/devel/RTx-Shredder/Makefile
blob: fa94cccf710fc5b0c74b8f7d33472655203bdc7b (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
# $NetBSD: Makefile,v 1.9 2012/10/03 21:54:26 wiz Exp $
#

DISTNAME=	RTx-Shredder-0.03
PKGREVISION=	4
CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=RTx/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://search.cpan.org/~ruz/RTx-Shredder/
COMMENT=	Utility to clean a RT database

BROKEN=		PLIST overlap with dependency (rt3)

DEPENDS+=	rt>=3.4.5:../../devel/rt3
BUILD_DEPENDS+=	p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
BUILD_DEPENDS+=	p5-DBD-SQLite-[0-9]*:../../databases/p5-DBD-SQLite

PKG_DESTDIR_SUPPORT=	user-destdir
MAKE_ENV+=		DESTDIR=${DESTDIR}

.include "../../devel/rt3/dirs.mk"

PKG_USERS_VARS+=	APACHE_USER

OWN_DIRS_PERMS+=	${RT_VAR_DIR}/data/RTx-Shredder ${APACHE_USER}	${APACHE_GROUP} 0770
PLIST_SUBST+=		RT_SHARE_DIR=share/rt3

SUBST_CLASSES+=		etcpath
SUBST_FILES.etcpath=	t/utils.pl
SUBST_SED.etcpath=	-e 's,\$$RT::EtcPath,"${RT_SHARE_DIR}/etc",'
SUBST_STAGE.etcpath=	post-patch

PERL5_PACKLIST=		auto/RTx/Shredder/.packlist

REPLACE_PERL+=		sbin/rtx-shredder sbin/rtx-validator

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"