1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/lilurl/Makefile
Antoine Brodin fc70523ecf - Allow staging as a regular user
- Bump portrevision as files were not packaged with intended owner
2014-09-12 16:56:48 +00:00

44 lines
1.2 KiB
Makefile

# Created by: chinsan <chinsan.tw@gmail.com>
# $FreeBSD$
PORTNAME= lilurl
PORTVERSION= 0.1.1
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple PHP/MySQL script for generating lil? URLs
USE_PHP= mysql pcre
NO_BUILD= yes
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
LILURL_DIR?= www/lilurl
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
PLIST= ${WRKDIR}/pkg-plist
post-extract:
@${MV} ${WRKSRC}/includes/conf.php ${WRKSRC}/includes/conf.php.sample
pre-install:
@${ECHO_CMD} -e "@owner ${WWWOWN}\n@group ${WWWGRP}" > ${PLIST}
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${LILURL_DIR}/|' >> ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${LILURL_DIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${LILURL_DIR} >> ${PLIST}
@${ECHO_CMD} -e "@owner root\n@group wheel" >> ${PLIST}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${LILURL_DIR}
@${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${LILURL_DIR}
post-install:
@${SED} -e 's,%%PREFIX%%,${PREFIX},; s,%%LILURL_DIR%%,${LILURL_DIR},g' \
${PKGMESSAGE}
.include <bsd.port.mk>