mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
90bbdd3c80
Reported by: pointyhat via Kris
77 lines
2.1 KiB
Makefile
77 lines
2.1 KiB
Makefile
# Ports collection makefile for: Gollem
|
|
# Date created: Sun Dec 16, 2001
|
|
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gollem
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= ftp www
|
|
MASTER_SITES= ftp://ftp.horde.org/pub/gollem/ \
|
|
ftp://ftp.planetmirror.com/pub/horde/gollem/ \
|
|
ftp://ftp.be.horde.org/gollem/ \
|
|
ftp://ftp.es.horde.org/pub/gollem/ \
|
|
ftp://ftp.it.horde.org/pub/mirror/horde.org/gollem/ \
|
|
ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/gollem/ \
|
|
ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/gollem/\
|
|
http://ftp.horde.org/pub/gollem/
|
|
DISTNAME= ${PORTNAME}-h3-${PORTVERSION}
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Gollem is the Horde web-based File Manager
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde
|
|
|
|
NO_BUILD= yes
|
|
USE_REINPLACE= yes
|
|
|
|
PLIST_SUB= GOLLEMDIR=${LGOLLEMDIR}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= GOLLEMDIR=${GOLLEMDIR}
|
|
|
|
DOCS= README docs/CHANGES docs/CREDITS docs/INSTALL \
|
|
docs/RELEASE_NOTES docs/TODO
|
|
CONFFILE= backends.php credentials.php menu.php mime_drivers.php motd.php \
|
|
prefs.php
|
|
SUB_DIRS= config lib locale po templates themes
|
|
|
|
LHORDEDIR?= www/horde
|
|
LGOLLEMDIR?= ${LHORDEDIR}/gollem
|
|
|
|
GOLLEMDIR= ${PREFIX}/${LGOLLEMDIR}
|
|
CONFDIR= ${GOLLEMDIR}/config
|
|
|
|
HORDE_INC= ${LOCALBASE}/etc/horde
|
|
|
|
pre-configure:
|
|
@${SED} -e "s:/home/httpd/html/horde/gollem:${GOLLEMDIR}:g" \
|
|
${FILESDIR}/httpd.conf.gollem > ${WRKDIR}/httpd.conf.gollem
|
|
|
|
do-install:
|
|
@${MKDIR} ${GOLLEMDIR}
|
|
@${CP} -Rp ${SUB_DIRS:S|^|${WRKSRC}/|} ${GOLLEMDIR}
|
|
@${CP} -p ${WRKSRC}/*.php ${GOLLEMDIR}
|
|
.for FILE in ${CONFFILE}
|
|
@if [ ! -f ${CONFDIR}/${FILE} ]; then \
|
|
${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
|
|
fi
|
|
.endfor
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${GOLLEMDIR}
|
|
@${CHMOD} -R o-rwx ${CONFDIR}
|
|
@${INSTALL_DATA} ${WRKDIR}/httpd.conf.gollem ${HORDE_INC}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_MSG}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
.include <bsd.port.mk>
|