summaryrefslogtreecommitdiff
path: root/www/contao/Makefile.example
blob: f0f098e571f218d4f2f07d68b23784bba635b6bc (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
# $NetBSD: Makefile.example,v 1.19 2014/05/31 02:19:58 taca Exp $
#
# used by www/contao211-example/Makefile
# used by www/contao32-example/Makefile
#

DISTNAME?=	contao-${CT_PKGVER}
PKGNAME=	contao${CT_VER}-example-${CT_PKGVER}
CATEGORIES=	www
MASTER_SITES=	${CT_MASTER_SITE}

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.contao.org/
COMMENT=	Sample site data for Contao Open Source CMS ${CT_VERBASE}

DEPENDS+=	contao${CT_VER}>=${CT_PKGVER}:../../www/contao${CT_VER}

DISTINFO_FILE=	${.CURDIR}/../../www/contao${CT_VER}/distinfo

USE_TOOLS=	pax
NO_BUILD=	yes
NO_CONFIGURE=	yes

WWW_EG_FILES=	${CT_FILES}/music_academy
WWW_FILE=	templates/music_academy.sql

.include "../../www/contao/Makefile.common"

.for f in ${WWW_EG_FILES} ${WWW_FILE}
EXTRACT_ELEMENTS+=	core-${CT_VERSION}/${f}
.endfor

PKG_GROUPS_VARS+=	APACHE_GROUP
PKG_USERS_VARS+=	APACHE_USER

INSTALLATION_DIRS+=	${CT_EGDIR} ${CT_WEBDIR}/templates

do-install:
	cd ${WRKSRC}; \
		pax -rw -pm ${WWW_EG_FILES} ${DESTDIR}${PREFIX}/${CT_EGDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} ${WWW_FILE} \
		${DESTDIR}${PREFIX}/${CT_WEBDIR}/templates