2003-09-30 13:49:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-04-04 17:37:38 +02:00
|
|
|
PORTNAME= ldap-account-manager
|
2013-09-18 16:10:09 +02:00
|
|
|
PORTVERSION= 4.3
|
2013-11-03 01:12:27 +01:00
|
|
|
PORTREVISION= 1
|
2003-09-30 13:49:06 +02:00
|
|
|
CATEGORIES= sysutils www
|
2011-10-15 17:23:39 +02:00
|
|
|
MASTER_SITES= SF/${SHORTNAME}/LAM/${PORTVERSION}
|
2003-09-30 13:49:06 +02:00
|
|
|
|
2013-09-18 16:10:09 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
2008-02-07 10:23:39 +01:00
|
|
|
MAINTAINER= basil@vpm.net.ua
|
2003-09-30 13:49:06 +02:00
|
|
|
COMMENT= Webfrontend for managing accounts stored in an OpenLDAP server
|
|
|
|
|
2011-10-15 17:23:39 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-30 14:25:05 +02:00
|
|
|
RUN_DEPENDS= p5-Quota>=0:${PORTSDIR}/sysutils/p5-Quota \
|
|
|
|
p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
|
2003-09-30 13:49:06 +02:00
|
|
|
|
2008-07-13 22:42:29 +02:00
|
|
|
NO_BUILD= yes
|
2013-09-16 09:29:08 +02:00
|
|
|
USES= gettext perl5
|
2013-11-03 01:12:27 +01:00
|
|
|
USE_PHP= gettext hash iconv ldap mcrypt pcre session simplexml spl xml json zip openssl
|
2004-03-21 23:57:27 +01:00
|
|
|
WANT_PHP_WEB= yes
|
2008-12-12 00:59:17 +01:00
|
|
|
DEFAULT_PHP_VER= 5
|
2003-09-30 13:49:06 +02:00
|
|
|
|
2011-10-15 17:23:39 +02:00
|
|
|
SHORTNAME= lam
|
2012-12-19 22:00:03 +01:00
|
|
|
PORTDOCS= docs HISTORY README copyright
|
2009-01-29 21:54:15 +01:00
|
|
|
LAMDATA= config graphics help lib locale sess style templates tmp VERSION index.html
|
2011-10-15 17:23:39 +02:00
|
|
|
WWWDIR?= ${PREFIX}/www/${SHORTNAME}
|
2012-12-19 22:00:03 +01:00
|
|
|
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
2008-07-13 22:42:29 +02:00
|
|
|
SUB_FILES= pkg-message
|
2006-08-29 14:44:02 +02:00
|
|
|
|
2013-09-21 01:05:58 +02:00
|
|
|
NO_STAGE= yes
|
2013-01-07 10:18:08 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-08-29 14:44:02 +02:00
|
|
|
|
2003-09-30 13:49:06 +02:00
|
|
|
do-install:
|
2008-07-13 22:42:29 +02:00
|
|
|
-@${MKDIR} ${WWWDIR}
|
2009-01-29 21:54:15 +01:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${LAMDATA}" ${WWWDIR}
|
2013-01-07 10:18:08 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-07-13 22:42:29 +02:00
|
|
|
-@${MKDIR} ${DOCSDIR}
|
2009-01-29 21:54:15 +01:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}
|
2003-09-30 13:49:06 +02:00
|
|
|
.endif
|
2006-05-10 22:30:23 +02:00
|
|
|
|
|
|
|
post-install:
|
2012-12-19 22:00:03 +01:00
|
|
|
@${MKDIR} ${WWWDIR}/config/pdf
|
|
|
|
@${MKDIR} ${WWWDIR}/config/profiles
|
2009-03-13 02:06:27 +01:00
|
|
|
@if [ ! -f ${WWWDIR}/config/config.cfg ]; then \
|
2009-01-29 21:54:15 +01:00
|
|
|
${CP} -p ${WWWDIR}/config/config.cfg_sample ${WWWDIR}/config/config.cfg ; \
|
|
|
|
fi
|
|
|
|
@if [ ! -f ${WWWDIR}/config/lam.conf ]; then \
|
|
|
|
${CP} -p ${WWWDIR}/config/lam.conf_sample ${WWWDIR}/config/lam.conf ; \
|
|
|
|
fi
|
2008-07-13 22:42:29 +02:00
|
|
|
@${FIND} ${WWWDIR} -type f -exec ${CHMOD} 644 {} \;
|
|
|
|
@${FIND} ${WWWDIR} -type d -exec ${CHMOD} 755 {} \;
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/config ${WWWDIR}/sess ${WWWDIR}/tmp
|
2009-03-13 02:06:27 +01:00
|
|
|
@${CHMOD} 755 ${WWWDIR}/lib/lamdaemon.pl
|
2008-07-13 22:42:29 +02:00
|
|
|
@${LN} -sf /etc/shells ${WWWDIR}/config/shells
|
2004-06-02 11:17:18 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-09-30 13:49:06 +02:00
|
|
|
|
2013-01-07 10:18:08 +01:00
|
|
|
.include <bsd.port.mk>
|