2008-01-04 13:08:41 +00:00
|
|
|
# New ports collection makefile for: gosa
|
|
|
|
# Date created: Wed Dec 26 18:41:49 MSK 2007
|
|
|
|
# Whom: Denis Shaposhnikov <dsh@wizard.volgograd.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gosa
|
2010-11-11 14:31:55 +00:00
|
|
|
PORTVERSION= 2.6.10
|
|
|
|
DISTVERSIONPREFIX= combined-
|
2011-02-25 01:32:17 +00:00
|
|
|
PORTREVISION= 1
|
2008-01-04 13:08:41 +00:00
|
|
|
CATEGORIES= sysutils www
|
2008-02-25 22:07:12 +00:00
|
|
|
MASTER_SITES= http://oss.gonicus.de/pub/gosa/ \
|
|
|
|
http://oss.gonicus.de/pub/gosa/archive/
|
2008-01-04 13:08:41 +00:00
|
|
|
|
|
|
|
MAINTAINER= dsh@wizard.volgograd.ru
|
|
|
|
COMMENT= Web Based LDAP Administration Program
|
|
|
|
|
2009-09-15 13:26:32 +00:00
|
|
|
RUN_DEPENDS= p5-Crypt-SmbHash>=0.12:${PORTSDIR}/security/p5-Crypt-SmbHash \
|
|
|
|
pecl-imagick>=2.2.2:${PORTSDIR}/graphics/pecl-imagick
|
2008-01-04 13:08:41 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2009-09-15 13:26:32 +00:00
|
|
|
USE_PHP= gettext iconv imap ldap mbstring mhash mysql pcre posix \
|
|
|
|
session spl xml zlib
|
2008-01-04 13:08:41 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
|
2009-09-15 13:26:32 +00:00
|
|
|
MAN1= update-gosa.1
|
|
|
|
MAN5= gosa.conf.5
|
|
|
|
|
2008-01-04 13:08:41 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's!"/etc/gosa"!"${ETCDIR}"!g' \
|
2009-09-15 13:26:32 +00:00
|
|
|
-e 's!"../contrib"!"${EXAMPLESDIR}/contrib"!g' \
|
|
|
|
-e 's!"/var/cache/gosa/tmp"!"/tmp"!g' \
|
2008-01-04 13:08:41 +00:00
|
|
|
${WRKSRC}/include/functions.inc
|
|
|
|
|
2009-09-15 13:26:32 +00:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's!/usr/bin/php!${PREFIX}/bin/php!g' \
|
|
|
|
-e 's!("GOSA_HOME", dirname(__FILE__));!("GOSA_HOME", "${WWWDIR}");!g' \
|
|
|
|
${WRKSRC}/update-gosa
|
|
|
|
|
|
|
|
.for i in doc/core/guide.xml html/helpviewer.php include/functions_helpviewer.inc
|
2008-01-04 13:08:41 +00:00
|
|
|
${REINPLACE_CMD} -e 's!"../doc/!"${DOCSDIR}/!g' ${WRKSRC}/$i
|
|
|
|
.endfor
|
|
|
|
|
2009-09-15 13:26:32 +00:00
|
|
|
${MV} -f ${WRKSRC}/contrib/gosa.conf.5 ${WRKSRC}
|
2010-11-11 14:31:55 +00:00
|
|
|
${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} +
|
2009-09-15 13:26:32 +00:00
|
|
|
|
2008-01-04 13:08:41 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${WWWDIR}
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
|
2009-09-15 13:26:32 +00:00
|
|
|
"html ihtml include locale plugins setup" ${WWWDIR})
|
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/update-gosa ${PREFIX}/sbin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/update-gosa.1 ${MANPREFIX}/man/man1/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/gosa.conf.5 ${MANPREFIX}/man/man5/
|
2008-01-04 13:08:41 +00:00
|
|
|
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "contrib" ${EXAMPLESDIR})
|
|
|
|
|
|
|
|
${MKDIR} ${ETCDIR}
|
|
|
|
${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} /var/spool/gosa
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR})
|
2009-09-15 13:26:32 +00:00
|
|
|
. for i in AUTHORS COPYING Changelog FAQ INSTALL README README.safemode
|
2008-01-04 13:08:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2009-09-15 13:26:32 +00:00
|
|
|
post-install:
|
2008-01-04 13:08:41 +00:00
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|