2010-01-31 00:43:31 +00:00
|
|
|
# New ports collection makefile for: yourls
|
|
|
|
# Date created: 2010-01-28
|
|
|
|
# Whom: Joe Horn <joehorn@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= yourls
|
2012-09-13 16:07:28 +00:00
|
|
|
DISTVERSION= 1.5.1
|
2010-01-31 00:43:31 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
|
|
|
|
MAINTAINER= joehorn@gmail.com
|
|
|
|
COMMENT= Your Own URL Shortener
|
|
|
|
|
2012-09-13 16:07:28 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2010-01-31 00:43:31 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
|
|
|
|
|
|
|
|
USE_ZIP= YES
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
2012-09-13 16:07:28 +00:00
|
|
|
USE_PHP= bcmath curl json mysql pcre xml
|
2010-01-31 00:43:31 +00:00
|
|
|
|
|
|
|
SUB_LIST+= PKGNAME=${PKGNAME}
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
|
|
|
|
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
|
|
|
|
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
|
|
|
|
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
|
|
|
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
|
|
|
|
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|