blob: acef03805bb55bc65a057750297fcd3368eb1dbe (
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
|
# $NetBSD: Makefile,v 1.6 2013/07/12 10:45:05 jperkin Exp $
#
DISTNAME= sencha-sns-1.3.0
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://ryo-on.users.sourceforge.net/distrib/
EXTRACT_SUFX= .zip
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://oss.icz.co.jp/sns/
COMMENT= Social Networking Service software that supports Timeline
LICENSE= gnu-gpl-v2 AND mit
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=5.2.0:../../databases/php-mysql
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.0:../../converters/php-mbstring
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= # none
NO_BUILD= yes
USE_TOOLS+= pax
BUILD_DEFS+= APACHE_GROUP APACHE_USER
SENCHADIR= share/sencha-sns
INSTALLATION_DIRS= ${SENCHADIR}
.include "../../mk/bsd.prefs.mk"
APACHE_USER?= www
APACHE_GROUP?= www
PKG_GROUPS= ${APACHE_GROUP}
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
PKG_USERS_VARS= APACHE_USER
PKG_GROUPS_VARS= APACHE_GROUP
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
SENCHADIR=${SENCHADIR}
REPLACE_SH= cake/console/cake
FIND_PREFIX:= PHPDIR=php
.include "../../mk/find-prefix.mk"
REPLACE_INTERPRETER+= php
REPLACE.php.old= /usr/bin/php
REPLACE.php.new= ${PHPDIR}/bin/php
REPLACE_FILES.php= cake/console/cake.php
CONF_FILES_PERMS= ${PREFIX}/share/sencha-sns/app/config/core.php-dist \
${PREFIX}/share/sencha-sns/app/config/core.php \
${APACHE_USER} ${APACHE_GROUP} 640
CONF_FILES_PERMS+= ${PREFIX}/share/sencha-sns/cake/console/templates/skel/config/database.php.default \
${PREFIX}/share/sencha-sns/cake/console/templates/skel/config/database.php \
${APACHE_USER} ${APACHE_GROUP} 640
pre-install:
cd ${WRKSRC} && \
${MV} app/config/core.php app/config/core.php-dist
do-install:
cd ${WRKSRC} && pax -rw -pmp * .htaccess \
${DESTDIR}${PREFIX}/${SENCHADIR}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
|