blob: 332ed9e18b0b11d273ac0b959f102c3109903eab (
plain)
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
|
# $FreeBSD$
PORTNAME= owncloud
PORTVERSION= 9.0.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://download.owncloud.org/community/
MAINTAINER= kevlo@FreeBSD.org
COMMENT= Personal cloud which runs on your own server
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING-AGPL
USES= cpe tar:bzip2
USE_PHP= bz2 ctype curl dom fileinfo filter gd hash iconv json \
mbstring pdo posix session simplexml xml xmlreader xmlwriter \
xsl wddx zip zlib
WANT_PHP_WEB= yes
USE_OPENSSL= yes
OWNCLOUD_USERNAME?= ${WWWOWN}
OWNCLOUD_GROUPNAME?= ${WWWGRP}
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
NO_ARCH= yes
SUB_FILES= pkg-message
PLIST_SUB= OWNCLOUD_USERNAME=${OWNCLOUD_USERNAME} \
OWNCLOUD_GROUPNAME=${OWNCLOUD_GROUPNAME}
OPTIONS_DEFINE= EXIF LDAP MP3INFO SSL
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= EXIF LDAP MP3INFO MYSQL SSL
EXIF_DESC= Image rotation support
MP3INFO_DESC= MP3 ID3 tags support
EXIF_USE= PHP=exif
LDAP_USE= PHP=ldap
MP3INFO_BUILD_DEPENDS= mp3info:${PORTSDIR}/audio/mp3info
MP3INFO_RUN_DEPENDS= ${MP3INFO_BUILD_DEPENDS}
MYSQL_USE= MYSQL=client PHP=pdo_mysql
PGSQL_USES= pgsql
PGSQL_USE= PHP=pdo_pgsql,pgsql
SQLITE_USE= PHP=pdo_sqlite,sqlite3
SSL_USE= PHP=openssl
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1002000
WITH_OPENSSL_PORT= yes
.endif
do-install:
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
post-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}/data
.include <bsd.port.mk>
|