summaryrefslogtreecommitdiff
path: root/www/p5-HTTPD-User-Manage/Makefile
blob: 28380ca87cfa50eaf2d5c8fedd25ae0f3712fd8c (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
# $NetBSD: Makefile,v 1.6 2002/09/25 14:03:53 seb Exp $

DISTNAME=	HTTPD-User-Manage-1.58
PKGNAME=	p5-${DISTNAME}
SVR4_PKGNAME=	p5hum
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=HTTPD/}

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://stein.cshl.org/~lstein/user_manage/
COMMENT=	Perl script/modules for managing web access control

USE_BUILDLINK2=		YES
PERL5_PACKLIST=         ${PERL5_SITEARCH}/auto/HTTPD-User-Manage/.packlist
REPLACE_PERL=		user_manage

PKG_SYSCONFSUBDIR?=	httpd

post-patch:
	cd ${WRKSRC}; for file in user_manage; do			\
		${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"	\
			$${file} > $${file}.fixed;			\
		if [ -x $${file} ]; then				\
			${CHMOD} +x $${file}.fixed;			\
		fi;							\
		${MV} -f $${file}.fixed $${file};			\
	done

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/user_manage ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/user_manage ${PREFIX}/libexec/cgi-bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/user_manage
	${INSTALL_DATA} ${WRKSRC}/user_manage.html \
		${PREFIX}/share/doc/user_manage/user_manage.html

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