mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
b7df065165
- Trim header Reviewed by: bapt
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# Created by: chinsan <chinsan@mail20000.com.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= b2evolution
|
|
PORTVERSION= 4.0.5
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/evocms/${PORTNAME}/b2evo%20${PORTVERSION}-stable
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVO_DATE}
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= A multilingual, multiuser, multi-blog engine
|
|
|
|
PATCH_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
USE_ZIP= YES
|
|
USE_DOS2UNIX= YES
|
|
|
|
B2EVO_DATE?= stable-2011-03-23
|
|
USE_PHP= mysql pcre session xml
|
|
NO_BUILD= YES
|
|
WANT_PHP_WEB= YES
|
|
|
|
TMPDIR?= ${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/${TMPDIR}
|
|
B2EVO_URL?= b2evo
|
|
B2EVO_DIR?= www/${B2EVO_URL}
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WARNING= ${PKGDIR}/pkg-warning
|
|
|
|
OPTIONS_DEFINE= MYSQL
|
|
OPTIONS_DEFAULT= MYSQL
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_MYSQL= server
|
|
.endif
|
|
|
|
pre-everything::
|
|
@${SH} ${WARNING}
|
|
|
|
pre-install:
|
|
@cd ${WRKSRC} && ${FIND} -s . -type f | \
|
|
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
|
|
&& ${FIND} -d * -type d | \
|
|
${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \
|
|
&& ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST}
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${B2EVO_DIR}
|
|
@${CHMOD} 755 ${PREFIX}/${B2EVO_DIR}
|
|
@${CP} -R ${WRKSRC}/ ${PREFIX}/${B2EVO_DIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${B2EVO_DIR}
|
|
@${CHMOD} 665 ${PREFIX}/${B2EVO_DIR}/blogs/conf/_config.php
|
|
|
|
post-install:
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
|
|
-e 's|%%B2EVO_DIR%%|${B2EVO_DIR}|; s|%%B2EVO_URL%%|${B2EVO_URL}|' \
|
|
${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|