mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
a785fe277d
- Add STAGE support PR: 190416 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com>
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# Created by: Wen heping <wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pligg
|
|
PORTVERSION= 2.0.1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Open Source Web2.0 CMS
|
|
|
|
LICENSE= CCA30
|
|
LICENSE_NAME= Creative Commons Attribution 3.0 Unported Copyright
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Pligg
|
|
GH_PROJECT= pligg-cms
|
|
GH_COMMIT= 1d72393
|
|
|
|
USE_PHP= mysql
|
|
|
|
NO_BUILD= yes
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
do-install:
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
post-install:
|
|
@if [ ! -f ${STAGEDIR}${WWWDIR}/settings.php ]; then \
|
|
${CP} -p ${STAGEDIR}${WWWDIR}/settings.php.default ${STAGEDIR}${WWWDIR}/settings.php; fi
|
|
|
|
@if [ ! -f ${STAGEDIR}${WWWDIR}/libs/dbconnect.php ]; then \
|
|
${CP} -p ${STAGEDIR}${WWWDIR}/libs/dbconnect.php.default \
|
|
${STAGEDIR}${WWWDIR}/libs/dbconnect.php; fi
|
|
|
|
@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/settings.php
|
|
@${ECHO_CMD} '@exec ${CHMOD} 666 ${STAGEDIR}${WWWDIR}/settings.php' \
|
|
>> ${TMPPLIST}
|
|
|
|
@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/libs/dbconnect.php
|
|
@${ECHO_CMD} '@exec ${CHMOD} 666 ${STAGEDIR}${WWWDIR}/libs/dbconnect.php' \
|
|
>> ${TMPPLIST}
|
|
|
|
@${CHMOD} 655 ${STAGEDIR}${WWWDIR}/config.php
|
|
@${ECHO_CMD} '@exec ${CHMOD} 655 ${STAGEDIR}${WWWDIR}/config.php' \
|
|
>> ${TMPPLIST}
|
|
|
|
.for d in admin/backup cache avatars/groups_uploaded avatars/user_uploaded languages
|
|
@${CHMOD} -R 777 ${STAGEDIR}${WWWDIR}/${d}
|
|
@${ECHO_CMD} '@exec ${CHMOD} 777 ${STAGEDIR}${WWWDIR}/${d}' >> ${TMPPLIST}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|