[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / ports / www / owncloud

File: [local] / ports / www / owncloud / Makefile (download)

Revision 1.6, Sat Oct 7 08:25:11 2023 UTC (6 months, 4 weeks ago) by kirby
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines

update to 10.10.0

# $OpenBSD: Makefile,v 1.137 2018/10/17 14:15:56 sthen Exp $

COMMENT=		easy and universal access to shared and/or personal files

V=			10.10.0
DISTNAME=		owncloud-${V}
EXTRACT_SUFX=		.tar.bz2

CATEGORIES=		www

HOMEPAGE=		https://owncloud.org/

MAINTAINER=		Antoine Jacoutot <ajacoutot@openbsd.org>

# AGPLv3 (GNU Affero Public License)
# jQuery: MIT / GPLv3
# HTTP: 3 clause BSD
# MDB2: BSD-like
# User: AGPL
# XML/RPC: MIT / PHP
# Silk icons: Creative Commons Attribution
PERMIT_PACKAGE=	Yes

MASTER_SITES=		https://download.owncloud.com/server/stable/

MODULES=		lang/php
MODPHP_VERSION=		7.4

NO_BUILD=		Yes
NO_TEST=		Yes
PKG_ARCH=		*

WRKDIST=		${WRKDIR}/owncloud

PREFIX=			${VARBASE}/www
INSTDIR=		${PREFIX}/owncloud
TINSTDIR=		${TRUEPREFIX}/owncloud
VR=			${V:R}
SUBST_VARS=		INSTDIR TINSTDIR MODPHP_BIN VR

RUN_DEPENDS=		lang/php/${MODPHP_VERSION},-gd \
			lang/php/${MODPHP_VERSION},-zip \
			${MODPHP_PDO_DEPENDS}

# http user authentication
RUN_DEPENDS +=		lang/php/${MODPHP_VERSION},-curl

# apps extraction
RUN_DEPENDS +=		lang/php/${MODPHP_VERSION},-bz2

# sorting of non-ASCII characters
RUN_DEPENDS +=		lang/php/${MODPHP_VERSION},-intl

# distributed caching and Transactional File Locking
RUN_DEPENDS +=		databases/pecl-redis${MODPHP_FLAVOR}

do-install:
	cp -Rp ${WRKSRC} ${INSTDIR}
	mv ${INSTDIR}/.htaccess ${INSTDIR}/.htaccess.dist
	find ${INSTDIR} -name '*.orig' -print0 | xargs -r0 rm
	chown -R ${BINOWN}:${BINGRP} ${INSTDIR}

	chmod +x ${INSTDIR}/occ
	perl -pi -e '$$. == 1 && s|^.*env php.*$$|\#!${MODPHP_BIN}|;' \
		-e 'close ARGV if eof;' \
		${INSTDIR}/occ

	${INSTALL_DATA_DIR} ${PREFIX}/conf/modules.sample
	${SUBST_CMD} -m 0644 -c ${FILESDIR}/apache-httpd-owncloud.conf.dist.in \
		${PREFIX}/conf/modules.sample/apache-httpd-owncloud.conf.dist
	${INSTALL_DATA} ${FILESDIR}/config.php.dist.in \
		${INSTDIR}/config/config.php.dist

.include <bsd.port.mk>