summaryrefslogtreecommitdiff
path: root/databases/phpldapadmin/Makefile
blob: 217270d4f9343de8d83056f6fe782bef21846e90 (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.9 2005/08/30 15:28:48 adrianp Exp $

DISTNAME=	phpldapadmin-${VERSION}
PKGREVISION=	2
CATEGORIES=	databases www
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

DEPENDS+=	php-ldap>=4.1.2:../../databases/php-ldap

VERSION=	0.9.6c
NO_BUILD=	YES
USE_PKGINSTALL=	YES
APACHE_USER?=	www

CONF_FILES=	${PREFIX}/share/examples/phpldapadmin/config.php.example \
		${PREFIX}/share/phpldapadmin/config.php
CONF_FILES+=	${PREFIX}/share/examples/phpldapadmin/phpldapadmin.conf \
		${PKG_SYSCONFDIR}/httpd/phpldapadmin.conf		
SPECIAL_PERMS=	${PREFIX}/share/phpldapadmin/config.php \
		${APACHE_USER} wheel 0600

INSTALLATION_DIRS=	${PREFIX}/share/phpldapadmin

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

pre-install:
	@${RM} ${WRKSRC}/login.php.orig

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

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

	@${RM} ${WRKSRC}/config.php.example

	${INSTALL_DATA_DIR} ${PREFIX}/share/phpldapadmin
	cd ${WRKSRC} && ${PAX}		\
		-s /\.#//		\
		-s /\.cvsignore//	\
		-rwppm . ${PREFIX}/share/phpldapadmin

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