2015-11-29 12:25:53 +01:00
|
|
|
# $NetBSD: Makefile,v 1.39 2015/11/29 11:25:53 taca Exp $
|
2004-08-29 17:56:34 +02:00
|
|
|
|
|
|
|
DISTNAME= phpldapadmin-${VERSION}
|
2015-03-24 17:34:12 +01:00
|
|
|
PKGREVISION= 1
|
2004-08-29 17:56:34 +02:00
|
|
|
CATEGORIES= databases www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=phpldapadmin/}
|
2011-06-17 17:40:33 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2004-08-29 17:56:34 +02:00
|
|
|
|
2007-10-03 16:45:41 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-08-29 17:56:34 +02:00
|
|
|
HOMEPAGE= http://phpldapadmin.sourceforge.net/
|
|
|
|
COMMENT= Set of PHP-scripts to administer an LDAP directory over the WWW
|
2011-06-17 17:40:33 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2004-08-29 17:56:34 +02:00
|
|
|
|
2006-05-23 22:51:44 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2006-05-19 00:13:46 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
|
2007-08-30 18:35:54 +02:00
|
|
|
REPLACE_SH= tools/po/make*
|
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-ldap>=4.1.2:../../databases/php-ldap
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=4.1.2:../../devel/php-gettext
|
2004-08-29 17:56:34 +02:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2013-04-02 18:00:10 +02:00
|
|
|
VERSION= 1.2.3
|
2004-08-29 17:56:34 +02:00
|
|
|
NO_BUILD= YES
|
2005-05-24 00:01:42 +02:00
|
|
|
|
2010-02-19 21:38:40 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/phpldapadmin/config.php.example \
|
|
|
|
${PREFIX}/share/phpldapadmin/config/config.php
|
2005-05-24 00:01:42 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/phpldapadmin/phpldapadmin.conf \
|
2005-09-06 23:47:09 +02:00
|
|
|
${PKG_SYSCONFDIR}/phpldapadmin.conf
|
2011-06-17 17:40:33 +02:00
|
|
|
PAX_DIRS= config doc hooks htdocs lib locale queries templates tools
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= \
|
|
|
|
share/doc/phpldapadmin share/examples/phpldapadmin \
|
|
|
|
share/phpldapadmin/config
|
2004-08-29 17:56:34 +02:00
|
|
|
|
2005-05-24 00:01:42 +02:00
|
|
|
do-configure:
|
2006-05-19 00:13:46 +02:00
|
|
|
${SED} -e "s|@LDAPADMINDIR@|${PREFIX}/share/phpldapadmin/htdocs|g" \
|
2005-05-24 00:01:42 +02:00
|
|
|
${FILESDIR}/phpldapadmin.conf > ${WRKDIR}/phpldapadmin.conf
|
2011-06-17 17:40:33 +02:00
|
|
|
${RM} -f ${WRKSRC}/.gitignore
|
|
|
|
${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} ${NONBINMODE}
|
2005-05-24 00:01:42 +02:00
|
|
|
|
2004-08-29 17:56:34 +02:00
|
|
|
do-install:
|
2006-05-19 00:13:46 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/config.php.example \
|
2008-03-03 16:21:07 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/phpldapadmin/config.php.example
|
2005-05-24 00:01:42 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/phpldapadmin.conf \
|
2008-03-03 16:21:07 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/phpldapadmin/phpldapadmin.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/index.php \
|
|
|
|
${DESTDIR}${PREFIX}/share/phpldapadmin
|
2006-05-19 00:13:46 +02:00
|
|
|
.for i in ${PAX_DIRS}
|
2013-10-18 13:41:17 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/phpldapadmin/${i:Q}
|
2013-01-21 13:43:23 +01:00
|
|
|
cd ${WRKSRC}/${i:Q} && ${FIND} . -type f \! -name '*.orig' -print | \
|
|
|
|
pax -rwppm ${DESTDIR}${PREFIX}/share/phpldapadmin/${i:Q}
|
2006-05-19 00:13:46 +02:00
|
|
|
.endfor
|
2008-03-03 16:21:07 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/phpldapadmin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/phpldapadmin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/VERSION \
|
|
|
|
${DESTDIR}${PREFIX}/share/phpldapadmin
|
2006-05-19 00:13:46 +02:00
|
|
|
|
2004-08-29 17:56:34 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|