pkgsrc/www/p5-HTTPD-User-Manage/Makefile
jlam cc4128d97e Buildlinkify, in the sense that only the perl headers are found in
${PREFIX} -- everything else is pickup up from ${BUILDLINK_DIR}.
2001-11-26 06:49:36 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2001/11/26 06:50:38 jlam 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_BUILDLINK_ONLY= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/HTTPD-User-Manage/.packlist
REPLACE_PERL= user_manage
PKG_SYSCONFSUBDIR?= httpd
do-configure:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
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/buildlink.mk"
.include "../../mk/bsd.pkg.mk"