mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
ff90c4b957
- Install files on www/bblog - Install just necessary files to don't need to remove some after it - Add -v on ${CP} to show which files are being installed - Move pkg-message to files/pkg-message.in and use SUB_FILES/SUB_LIST PR: ports/93964 Submitted by: Jean-François BOEUF <jfb@minet.net> Reworked by: garga Approved by: portmgr (clement)
69 lines
1.9 KiB
Makefile
69 lines
1.9 KiB
Makefile
# New ports collection makefile for: bBlog
|
|
# Date created: 2005-04-16
|
|
# Whom: chinsan@mail2000.com.tw
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bBlog
|
|
PORTVERSION= 0.7.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A elegant personal publishing system with Smarty
|
|
|
|
USE_PHP= mysql pcre session
|
|
NO_BUILD= YES
|
|
WANT_PHP_WEB= YES
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:L}
|
|
WWWDOCROOT?= www
|
|
BBLOGURL?= ${PORTNAME:L}
|
|
WWWOWN?= www
|
|
WWWGRP?= www
|
|
BBLOGDIR?= ${WWWDOCROOT}/${BBLOGURL}
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= BBLOGURL=${BBLOGURL} BBLOGDIR=${BBLOGDIR}
|
|
PLIST_SUB= WWWDOCROOT=${WWWDOCROOT} BBLOGURL=${BBLOGURL}
|
|
|
|
OPTIONS= GD "With GD Support" on \
|
|
IMAGICK "With ImageMagick Support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_GD)
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/gd.so:${PORTSDIR}/${gd_DEPENDS}
|
|
.endif
|
|
|
|
.if defined(WITH_IMAGICK)
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/${imagick_DEPENDS}
|
|
.endif
|
|
|
|
.if defined(WITHOUT_GD) && !defined(WITH_IMAGICK)
|
|
pre-patch:
|
|
@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/${BBLOGDIR}/${PORTNAME:L}
|
|
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${BBLOGDIR}
|
|
@${CHGRP} -R ${WWWGRP} ${PREFIX}/${BBLOGDIR}
|
|
@${CHMOD} 755 ${PREFIX}/${BBLOGDIR}
|
|
.for f in archives.php documentation.txt htaccess-cleanurls index.php item rss.php search.php section
|
|
${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${BBLOGDIR}
|
|
.endfor
|
|
@${CP} -Rv ${WRKSRC}/* ${PREFIX}/${BBLOGDIR}/${PORTNAME:L}
|
|
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:L}/compiled_templates/
|
|
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:L}/cache/
|
|
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:L}/cache/favorites.xml
|
|
@${CHMOD} 775 ${PREFIX}/${BBLOGDIR}/${PORTNAME:L}/config.php
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|