1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update to 2.0.1,1

- Add STAGE support

PR:		190416
Submitted by:	Muhammad Moinur Rahman <5u623l20@gmail.com>
This commit is contained in:
Wen Heping 2014-05-31 05:29:37 +00:00
parent a62348b3d4
commit a785fe277d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355939
3 changed files with 826 additions and 580 deletions

View File

@ -2,61 +2,55 @@
# $FreeBSD$
PORTNAME= pligg
PORTVERSION= 1.1.5
PORTVERSION= 2.0.1
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://forums.pligg.com/attachments/current-version/
DISTNAME= 3076d1308851225-pligg-content-management-system-${PORTVERSION:S/./-/g}-pligg-cms-${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= An Open Source Web2.0 CMS
MAINTAINER= ports@FreeBSD.org
COMMENT= Open Source Web2.0 CMS
PORTSCOUT= ignore:1
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
USES= zip
USE_PHP= mysql
WRKSRC= ${WRKDIR}/pligg
NO_BUILD= yes
SUB_FILES= pkg-message
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${CHMOD} -R 755 ${WWWDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
>> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${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}
@if [ ! -f ${WWWDIR}/settings.php ]; then \
${CP} -p ${WWWDIR}/settings.php.default ${WWWDIR}/settings.php; fi
@if [ ! -f ${WWWDIR}/libs/dbconnect.php ]; then \
${CP} -p ${WWWDIR}/libs/dbconnect.php.default \
${WWWDIR}/libs/dbconnect.php; fi
@${CHMOD} 666 ${WWWDIR}/settings.php
@${ECHO_CMD} '@exec ${CHMOD} 666 ${WWWDIR}/settings.php' \
@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/libs/dbconnect.php
@${ECHO_CMD} '@exec ${CHMOD} 666 ${STAGEDIR}${WWWDIR}/libs/dbconnect.php' \
>> ${TMPPLIST}
@${CHMOD} 666 ${WWWDIR}/libs/dbconnect.php
@${ECHO_CMD} '@exec ${CHMOD} 666 ${WWWDIR}/libs/dbconnect.php' \
>> ${TMPPLIST}
@${CHMOD} 655 ${WWWDIR}/config.php
@${ECHO_CMD} '@exec ${CHMOD} 655 ${WWWDIR}/config.php' \
@${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 ${WWWDIR}/${d}
@${ECHO_CMD} '@exec ${CHMOD} 777 ${WWWDIR}/${d}' >> ${TMPPLIST}
@${CHMOD} -R 777 ${STAGEDIR}${WWWDIR}/${d}
@${ECHO_CMD} '@exec ${CHMOD} 777 ${STAGEDIR}${WWWDIR}/${d}' >> ${TMPPLIST}
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (3076d1308851225-pligg-content-management-system-1-1-5-pligg-cms-1.1.5.zip) = 6033fef77c4fdd8f9ae49798a34ddd395a2b33ecf90504b9072def14d805371a
SIZE (3076d1308851225-pligg-content-management-system-1-1-5-pligg-cms-1.1.5.zip) = 1559517
SHA256 (pligg-2.0.1.tar.gz) = 0920f468c254cf803a167f9827b1670b7f5f0d9e5d24b5eb8750f2c5f773694e
SIZE (pligg-2.0.1.tar.gz) = 1886887

File diff suppressed because it is too large Load Diff