[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / phpldapadmin

File: [cvs.NetBSD.org] / pkgsrc / databases / phpldapadmin / Makefile (download)

Revision 1.24, Thu Jun 8 15:31:08 2006 UTC (13 years, 6 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2
Changes since 1.23: +3 -3 lines

Removed the leading "@" from a shell command line to fix pkglint warnings.

# $NetBSD: Makefile,v 1.24 2006/06/08 15:31:08 rillig Exp $

DISTNAME=	phpldapadmin-${VERSION}
CATEGORIES=	databases www
PKGREVISION=	3
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=phpldapadmin/}

MAINTAINER=	rasputnik@hellooperator.net
HOMEPAGE=	http://phpldapadmin.sourceforge.net/
COMMENT=	Set of PHP-scripts to administer an LDAP directory over the WWW

.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/phpversion.mk"

DEPENDS+=	${PHP_PKG_PREFIX}-ldap>=4.1.2:../../databases/php-ldap
DEPENDS+=	${PHP_PKG_PREFIX}-gettext>=4.1.2:../../devel/php-gettext
.if ${PKG_PHP_VERSION} == "4"
DEPENDS+=	${PHP_PKG_PREFIX}-domxml>=4.1.2:../../textproc/php4-domxml
.elif ${PKG_PHP_VERSION} == "5"
DEPENDS+=	${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php5-dom
.endif

VERSION=	0.9.8.3
NO_BUILD=	YES

CONF_FILES_PERMS+=  ${PREFIX}/share/examples/phpldapadmin/config.php.example \
		${PREFIX}/share/phpldapadmin/config/config.php		 \
		${ROOT_USER} ${ROOT_GROUP} 0644
CONF_FILES+=	${PREFIX}/share/examples/phpldapadmin/phpldapadmin.conf \
		${PKG_SYSCONFDIR}/phpldapadmin.conf
PAX_DIRS=	config doc htdocs lib locale templates tools

do-configure:
	${SED} -e "s|@LDAPADMINDIR@|${PREFIX}/share/phpldapadmin/htdocs|g" \
		${FILESDIR}/phpldapadmin.conf > ${WRKDIR}/phpldapadmin.conf

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/phpldapadmin
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/phpldapadmin
	${INSTALL_DATA_DIR} ${PREFIX}/share/phpldapadmin
	${INSTALL_DATA_DIR} ${PREFIX}/share/phpldapadmin/config

	${INSTALL_DATA} ${WRKSRC}/config/config.php.example \
		${PREFIX}/share/examples/phpldapadmin/config.php.example
	${INSTALL_DATA} ${WRKDIR}/phpldapadmin.conf \
		${PREFIX}/share/examples/phpldapadmin/phpldapadmin.conf

	${RM} ${WRKSRC}/.cvsignore
	${RM} ${WRKSRC}/config/.cvsignore

	${INSTALL_DATA} ${WRKSRC}/index.php ${PREFIX}/share/phpldapadmin

.for i in ${PAX_DIRS}
	cd ${WRKSRC}/${i:Q} && ${PAX} \
		-rwppm . ${PREFIX}/share/phpldapadmin/${i:Q}
.endfor

	${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/phpldapadmin
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/phpldapadmin
	${INSTALL_DATA} ${WRKSRC}/VERSION ${PREFIX}/share/phpldapadmin

	${FIND} ${PREFIX}/share/phpldapadmin -type d | \
		${XARGS} ${CHMOD} ${PKGDIRMODE}

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