61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.32 2012/12/03 14:13:00 ajacoutot Exp $
|
|
|
|
COMMENT= easy and universal access to shared and/or personnal files
|
|
|
|
V= 4.5.4
|
|
DISTNAME= owncloud-${V}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://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_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}releases/
|
|
|
|
# Yubikey support
|
|
MASTER_SITES0= http://nerd.hu/
|
|
PATCHFILES= owncloud-4.5.1-yubikey.patch:0
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MODULES= lang/php
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
PKG_ARCH= *
|
|
|
|
WRKDIST= ${WRKDIR}/owncloud
|
|
|
|
PREFIX= /var/www
|
|
INSTDIR= ${PREFIX}/owncloud
|
|
TINSTDIR= ${TRUEPREFIX}/owncloud
|
|
SUBST_VARS= INSTDIR TINSTDIR MODPHP_BIN
|
|
|
|
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-curl \
|
|
lang/php/${MODPHP_VERSION},-gd \
|
|
lang/php/${MODPHP_VERSION},-xmlrpc \
|
|
lang/php/${MODPHP_VERSION},-zip
|
|
|
|
do-install:
|
|
cp -Rp ${WRKSRC} ${INSTDIR}
|
|
${SUBST_CMD} -c ${FILESDIR}/owncloud.conf \
|
|
${INSTDIR}/owncloud.conf.dist
|
|
mv ${INSTDIR}/.htaccess ${INSTDIR}/.htaccess.dist
|
|
find ${INSTDIR} -name '*.orig' -exec rm {} \;
|
|
chown -R ${BINOWN}:${BINGRP} ${INSTDIR}
|
|
|
|
.include <bsd.port.mk>
|