1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/www/eventum/Makefile
Edwin Groothuis 3545ae4c18 update port www/eventum - add tunables
PR:		ports/90985
Submitted by:	Babak Farrokhi <babak@farrokhi.net>
2005-12-27 21:28:05 +00:00

64 lines
1.6 KiB
Makefile

# New ports collection makefile for: eventum
# Date created: 2005-07-18
# Whom: Babak Farrokhi <babak@farrokhi.net>
#
# $FreeBSD$
#
PORTNAME= eventum
PORTVERSION= 1.6.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= eventum
MAINTAINER= babak@farrokhi.net
COMMENT= Eventum issue tracking system
NO_BUILD= YES
USE_PHP= pcre session mysql gd
WANT_PHP_WEB= YES
EVENTUM?= www/data-dist/eventum
PLIST= ${WRKDIR}/pkg-plist
PLIST_SUB+= EVENTUM=${EVENTUM}
SUB_LIST+= EVENTUM=${EVENTUM}
SUB_FILES= pkg-message
.if ${EVENTUM:M/*}
EVENTUM_DIST=${EVENTUM}
.else
EVENTUM_DIST=${PREFIX}/${EVENTUM}
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "This port has the following tunables"
@${ECHO_MSG} "EVENTUM path where Eventum will be installed"
@${ECHO_MSG} " either absolute or relative to the PREFIX"
@${ECHO_MSG} "WWWOWN eventum files owner"
@${ECHO_MSG} "WWWGRP eventum files group"
@${ECHO_MSG} ""
@${ECHO_MSG} "Current state is"
@${ECHO_MSG} "EVENTUM " ${EVENTUM}
@${ECHO_MSG} "WWWOWN " ${WWWOWN}
@${ECHO_MSG} "WWWGRP " ${WWWGRP}
@${ECHO_MSG} ""
pre-install:
@${MV} ${WRKSRC}/setup.conf.php ${WRKSRC}/setup.conf.php-dist
@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php-dist
@cd ${WRKSRC} && ${FIND} -s * -type f | \
${SED} -e 's|^|${EVENTUM}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${EVENTUM}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${EVENTUM} >> ${PLIST}
do-install:
@${MKDIR} ${EVENTUM_DIST}
@${CP} -R ${WRKSRC}/ ${EVENTUM_DIST}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EVENTUM_DIST}
@${CHMOD} -R 755 ${EVENTUM_DIST}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>