1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/www/dalbum/Makefile
Antoine Brodin 7f288c0d6a - Do not copy ports cookies etc. to stagedir
- Make packaging as a regular user work
2014-06-05 21:22:29 +00:00

37 lines
952 B
Makefile

# Created by: Sergey Matveychuk <sem@FreeBSD.org>
# $FreeBSD$
PORTNAME= dalbum
PORTVERSION= 140.152
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.dalbum.org/
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
MAINTAINER= sem@FreeBSD.org
COMMENT= Free, highly customizable PHP photo album
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick
USE_PHP= session pcre
NO_BUILD= yes
DALBUM_DIR?= www/photo
NO_WRKSUBDIR= yes
PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
SUB_LIST+= DALBUM_DIR=${DALBUM_DIR}
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKSRC}/config/config.php
@${RM} ${WRKSRC}/config/config.php.*
do-install:
@${MKDIR} -m 0775 ${STAGEDIR}${PREFIX}/${DALBUM_DIR}
@cd ${WRKSRC} && ${FIND} .htaccess .private config images include pictures *.css *.js *.php *.txt -print | \
${CPIO} --quiet -pdum \
${STAGEDIR}${PREFIX}/${DALBUM_DIR}
.include <bsd.port.mk>