freebsd-ports/sysutils/ldap-account-manager/Makefile
Ion-Mihai Tetcu 588344bf5e Mark broken, the plist is worng in more that one way.
Poinyhat to:	lippe (nice, big shinny one)
2008-06-26 08:06:29 +00:00

78 lines
2.6 KiB
Makefile

# New ports collection makefile for: ldap-account-manager
# Date created: August, 2nd 2003
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#
PORTNAME= ldap-account-manager
PORTVERSION= 2.3.0
CATEGORIES= sysutils www
MASTER_SITES= SF/lam
DISTNAME= ${PORTNAME:L}-${PORTVERSION}
MAINTAINER= basil@vpm.net.ua
COMMENT= Webfrontend for managing accounts stored in an OpenLDAP server
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Quota.pm:${PORTSDIR}/sysutils/p5-Quota\
${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
USE_PERL5= yes
USE_PHP= pcre xml gettext session mcrypt ldap mhash iconv
WANT_PHP_WEB= yes
NO_BUILD= YES
WRKSRC= ${WRKDIR}/${PORTNAME:L}-${PORTVERSION}
BROKEN= bad plist
WWW_ROOT?= www/lam
PKGINSTALL= ${WRKDIR}/pkg-install
PLIST_SUB+= WWWROOT=${WWW_ROOT}
WWW_DATA= index.html VERSION config graphics help lib locale sess style templates tmp
.include <bsd.port.pre.mk>
MYPORTDOCS= COPYING HISTORY INSTALL README copyright \
docs/README.Kolab.txt docs/README.fpdf.htm \
docs/README.hosts.txt docs/README.lamdaemon.txt \
docs/README.openldap.txt docs/README.schema.txt \
docs/README.security.txt docs/README.upgrade.txt
LAM_SCRIPTS= lib/lamdaemon.pl
HTMLPORTDOCS= docs/devel
do-configure:
@${RM} ${WRKSRC}/config/shells
do-install:
@${MKDIR} ${PREFIX}/${WWW_ROOT}
@cd ${WRKSRC} && ${TAR} cf - ${WWW_DATA} | ${TAR} xf - -C ${PREFIX}/${WWW_ROOT}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${TAR} cf - ${MYPORTDOCS} | ${TAR} xf - -C ${DOCSDIR}
@${MKDIR} ${PREFIX}/${WWW_ROOT}/html
cd ${WRKSRC} && ${TAR} -C ${HTMLPORTDOCS} -cf - . | ${TAR} xf - -C ${PREFIX}/${WWW_ROOT}/html
.endif
@${MKDIR} ${PREFIX}/${WWW_ROOT}/tmp
@[ -e ${PREFIX}/${WWW_ROOT}/config/config.cfg ] || \
${INSTALL_DATA} ${WRKSRC}/config/config.cfg_sample ${PREFIX}/${WWW_ROOT}/config/config.cfg
@[ -e ${PREFIX}/${WWW_ROOT}/config/lam.conf ] || \
${INSTALL_DATA} ${WRKSRC}/config/lam.conf_sample ${PREFIX}/${WWW_ROOT}/config/lam.conf
post-patch:
@${SED} -e "s;%%WWWOWN%%;${WWWOWN};g" \
-e "s;%%WWWGRP%%;${WWWGRP};g" \
-e "s;%%WWW_ROOT%%;${WWW_ROOT};g" \
${.CURDIR}/pkg-install > ${PKGINSTALL}
post-install:
@${ECHO_MSG} "===> Setting correct permissions"
@${FIND} ${PREFIX}/${WWW_ROOT} -type f -exec ${CHMOD} 644 {} \;
@${FIND} ${PREFIX}/${WWW_ROOT} -type d -exec ${CHMOD} 755 {} \;
@cd ${PREFIX}/${WWW_ROOT} ; ${CHMOD} 755 ${LAM_SCRIPTS}
@${LN} -sf /etc/shells ${PREFIX}/${WWW_ROOT}/config/shells
@PKG_PREFIX=${PREFIX} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} WWW_ROOT=${WWW_ROOT} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>