blob: 7254b5f4859dc3ff34acba8db1b206c56374093a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Ports collection makefile for: Gollem
# Date created: Sun Dec 16, 2001
# Whom: Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#
PORTNAME= gollem
PORTVERSION= 1.0
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>
|