mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
6b154644fb
PR: ports/121540 Submitted by: Denis Shaposhnikov <dsh@wizard.volgograd.ru> (maintainer) Approved by: thierry@ (mentor)
65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
# 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
|
|
PORTVERSION= 2.5.15
|
|
CATEGORIES= sysutils www
|
|
MASTER_SITES= http://oss.gonicus.de/pub/gosa/ \
|
|
http://oss.gonicus.de/pub/gosa/archive/
|
|
|
|
MAINTAINER= dsh@wizard.volgograd.ru
|
|
COMMENT= Web Based LDAP Administration Program
|
|
|
|
RUN_DEPENDS= p5-Crypt-SmbHash>=0.12:${PORTSDIR}/security/p5-Crypt-SmbHash
|
|
|
|
USE_BZIP2= yes
|
|
USE_PHP= gettext iconv imap ldap mhash posix
|
|
|
|
NO_BUILD= yes
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
REINPLACE_ARGS= -i ""
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} \
|
|
-e 's!"/etc/gosa"!"${ETCDIR}"!g' \
|
|
-e 's!"../contrib/"!"${EXAMPLESDIR}/contrib/"!g' \
|
|
${WRKSRC}/include/functions.inc
|
|
|
|
.for i in admin devel
|
|
${RM} -rf ${WRKSRC}/doc/guide/$i
|
|
.endfor
|
|
${RM} -rf ${WRKSRC}/doc/guide/user/*/lyx-source
|
|
${FIND} ${WRKSRC}/doc -name WARNINGS -exec ${RM} -f -- {} +
|
|
.for i in doc/guide.xml html/helpviewer.php include/functions_helpviewer.inc
|
|
${REINPLACE_CMD} -e 's!"../doc/!"${DOCSDIR}/!g' ${WRKSRC}/$i
|
|
.endfor
|
|
|
|
do-install:
|
|
${MKDIR} ${WWWDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
|
|
"ihtml plugins html include setup locale" ${WWWDIR})
|
|
|
|
${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})
|
|
. for i in AUTHORS COPYING Changelog FAQ INSTALL README
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
. endfor
|
|
.endif
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|