summaryrefslogtreecommitdiff
path: root/time/php-mrbs/Makefile
blob: f289729ad89cf6f8a215a30f41c86c1efe49cd76 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# $NetBSD: Makefile,v 1.1 2015/01/31 12:23:14 bouyer Exp $
#

DISTNAME=	mrbs-1.4.11
PKGNAME=	${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES=	www time
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=mrbs}/

MAINTAINER=	bouyer@NetBSD.org
HOMEPAGE=	http://mrbs.sourceforge.net/
COMMENT=	Meeting Room Booking System
LICENSE=	gnu-gpl-v2

DEPENDS+=	${PHP_PKG_PREFIX}-iconv>=5.3.0:../../converters/php-iconv

.include "options.mk"

USE_LANGUAGES=	# none
EGDIR=	${PREFIX}/share/examples/mrbs
CONF_FILES=	${EGDIR}/config.inc.php ${PREFIX}/share/mrbs/config.inc.php
CONF_FILES+=	${EGDIR}/site_faq/site_faq.html ${PREFIX}/share/mrbs/site_faq/site_faq.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_cs.html ${PREFIX}/share/mrbs/site_faq/site_faq_cs.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_de.html ${PREFIX}/share/mrbs/site_faq/site_faq_de.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_es.html ${PREFIX}/share/mrbs/site_faq/site_faq_es.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_fr.html ${PREFIX}/share/mrbs/site_faq/site_faq_fr.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_it.html ${PREFIX}/share/mrbs/site_faq/site_faq_it.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_nl.html ${PREFIX}/share/mrbs/site_faq/site_faq_nl.html
CONF_FILES+=	${EGDIR}/site_faq/site_faq_sv.html ${PREFIX}/share/mrbs/site_faq/site_faq_sv.html


NO_BUILD=	yes

.include "../../mk/bsd.prefs.mk"

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mrbs
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}/site_faq
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mrbs
	${INSTALL_DATA}	${WRKSRC}/web/config.inc.php  ${DESTDIR}${EGDIR}/
	${INSTALL_DATA}	${WRKSRC}/web/.htaccess  ${DESTDIR}${EGDIR}/
	for file in \
	    site_faq.html \
	    site_faq_cs.html \
	    site_faq_de.html \
	    site_faq_es.html \
	    site_faq_fr.html \
	    site_faq_it.html \
	    site_faq_nl.html \
	    site_faq_sv.html \
	    ; do ${INSTALL_DATA} ${WRKSRC}/web/site_faq/$$file ${DESTDIR}${EGDIR}/site_faq; \
	done


	for file in \
	    AUTHENTICATION \
	    COPYING \
	    ChangeLog \
	    INSTALL \
	    LANGUAGE \
	    NEWS \
	    README \
	    README.nwauth \
	    README.sqlapi \
	    UPGRADE \
	    auth_ldap.pl \
	    auth_ldapsearch.pl \
	    auth_pam.pl \
	    badpw.pl \
	    checklang.php \
	    convert_db_to_utf8.php \
	    crypt_passwd.example \
	    crypt_passwd.pl \
	    destroy.pg.sql \
	    grant.pg.sql \
	    help_report.html \
	    purge.my.sql \
	    purge.pg.sql \
	    sample-data.sql \
	    smb_auth.c \
	    tables.my.pre41.sql \
	    tables.my.sql \
	    tables.pg.pre73.sql \
	    tables.pg.sql \
	    testdata.php \
	    upgrade.my.sql \
	    upgrade2.my.sql \
	    upgrade2.pg.sql \
	    upgrade3.my.sql \
	    ; do ${INSTALL_DATA} ${WRKSRC}/$$file ${DESTDIR}${PREFIX}/share/doc/mrbs/; \
	done

	cd ${WRKSRC}/web && ${FIND} . -type f \
		\! -name '*.orig' \! -name config.inc.php  \! -name .htaccess \
		\! -path './site_faq/*' \
		-print | \
		pax -rw -pmp ${DESTDIR}${PREFIX}/share/mrbs

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"