summaryrefslogtreecommitdiff
path: root/net/p5-ispman/Makefile
blob: d079c930f4d933ca6ebb9a4d5f91ce7d55c92587 (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
# $NetBSD: Makefile,v 1.7 2002/10/27 20:48:59 seb Exp $
#

DISTNAME=		ispman-0.5
PKGNAME=		p5-${DISTNAME}
SVR4_PKGNAME=		p5isp
WRKSRC=			${WRKDIR}/ispman/Modules/ISPMan
CATEGORIES=		net perl5
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=ispman/}

MAINTAINER=		rh@netbsd.org
HOMEPAGE=		http://www.ispman.org/
COMMENT=		Perl module for ISPMan webAdministrator and command line utils

DEPENDS+=		{p5-CGI>=2.72,perl>=5.6.1nb2}:../../www/p5-CGI
DEPENDS+=		p5-Text-Template>=1.23:../../textproc/p5-Text-Template
DEPENDS+=		p5-perl-ldap>=0.22:../../databases/p5-perl-ldap
DEPENDS+=		p5-IMAP-Admin>=1.2.5:../../mail/p5-IMAP-Admin
DEPENDS+=		p5-Convert-ASN1>=0.07:../../textproc/p5-Convert-ASN1
DEPENDS+=		p5-IO-stringy>=1.213:../../devel/p5-IO-stringy

USE_BUILDLINK2=		YES
PERL5_PACKLIST=		${PERL5_SITEARCH}/auto/ISPMan/.packlist
PLIST_SRC=		${WRKDIR}/PLIST
PERL5_CONFIGURE_DIRS=	${WRKSRC} ${WRKSRC}/../IO-stringy-1.212_patched
BUILD_DIRS=		${PERL5_CONFIGURE_DIRS}
INSTALL_DIRS=		${WRKSRC}

MAKE_PARAMS+=		--noprompt

pre-configure:
	${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
	cd ${WRKSRC} &&							\
	for i in `${FIND} * -type f -print` ; do			\
		${CP} $$i $$i.old &&					\
		${SED} < $$i.old > $$i -e 's:/etc:${PREFIX}/etc:g' &&	\
		${RM} $$i.old ;						\
	done

post-build:
	${ECHO} >> ${PLIST_SRC}						\
	"`${GREP} ^INSTALLSITELIB					\
	   ${WRKSRC}/../IO-stringy-1.212_patched/Makefile		\
	   | ${CUT} -d/ -f2-`/IO/ScalarPatched.pm"

post-install:
	${INSTALL_DATA} ${WRKSRC}/../IO-stringy-1.212_patched/lib/IO/Scalar.pm \
		${PREFIX}/`${TAIL} -n 1 ${PLIST_SRC}`

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