2005-04-25 10:17:48 +02:00
|
|
|
# New ports collection makefile for: instiki
|
|
|
|
# Date created: 4 January 2005
|
|
|
|
# Whom: Kelley Reynolds <kelley@insidesystems.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= instiki
|
2010-01-06 14:24:46 +01:00
|
|
|
PORTVERSION= 0.17.3
|
2005-04-25 10:17:48 +02:00
|
|
|
CATEGORIES= www ruby
|
2010-01-06 14:24:46 +01:00
|
|
|
MASTER_SITES= LOCAL/wen
|
2005-04-25 10:17:48 +02:00
|
|
|
|
2010-01-06 14:24:46 +01:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2005-04-25 10:17:48 +02:00
|
|
|
COMMENT= Easy to set up wiki clone implemented in ruby
|
|
|
|
|
2006-10-03 02:59:47 +02:00
|
|
|
LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3
|
2010-01-06 14:24:46 +01:00
|
|
|
RUN_DEPENDS= ${RUBY_PKGNAMEPREFIX}iconv>=0:${PORTSDIR}/converters/ruby-iconv
|
2006-05-01 16:32:28 +02:00
|
|
|
|
2005-04-25 10:17:48 +02:00
|
|
|
USE_RUBY= yes
|
2008-04-06 10:58:21 +02:00
|
|
|
USE_RAKE= yes
|
2010-01-06 14:24:46 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/parasew-instiki-4176ef2
|
2006-05-01 16:32:28 +02:00
|
|
|
INSTIKIPORT?= 2500
|
2010-01-06 14:24:46 +01:00
|
|
|
INSTIKIDIR?= www/instiki
|
|
|
|
INSTIKILOGDIR= ${INSTIKIDIR}/log
|
|
|
|
INSTIKI_DB= db/production.db.sqlite3
|
|
|
|
INSTIKI_DB_FILE= ${INSTIKIDIR}/${INSTIKI_DB}
|
2006-06-09 10:58:56 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-24 00:40:03 +01:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2010-01-06 14:24:46 +01:00
|
|
|
PLIST= ${WRKDIR}/plist
|
|
|
|
SUB_LIST= INSTIKIPORT=${INSTIKIPORT}
|
|
|
|
SUB_FILES+= pkg-message
|
2006-06-09 10:58:56 +02:00
|
|
|
|
2008-03-19 03:46:25 +01:00
|
|
|
post-extract:
|
2010-01-06 14:24:46 +01:00
|
|
|
${MV} ${WRKSRC}/${INSTIKI_DB} ${WRKSRC}/${INSTIKI_DB}.sample
|
2006-06-09 10:58:56 +02:00
|
|
|
|
2010-01-06 14:24:46 +01:00
|
|
|
pre-install:
|
|
|
|
${FIND} -s -d ${WRKSRC} -type l | ${SED} "s?${WRKSRC}?${INSTIKIDIR}?g" >>${PLIST}
|
|
|
|
${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${INSTIKIDIR}?g" >>${PLIST}
|
2006-06-09 10:58:56 +02:00
|
|
|
|
2010-01-06 14:24:46 +01:00
|
|
|
@if [ ! -f ${PREFIX}/${INSTIKI_DB_FILE} ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/${INSTIKIDIR}/db ; \
|
|
|
|
${CP} ${WRKSRC}/${INSTIKI_DB}.sample ${PREFIX}/${INSTIKI_DB_FILE} ; \
|
|
|
|
${ECHO_CMD} "${INSTIKI_DB_FILE}" >> ${PLIST} ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
@${ECHO} @dirrm ${INSTIKILOGDIR} >> ${PLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${INSTIKIDIR}?g" >> ${PLIST}
|
2008-02-24 00:40:03 +01:00
|
|
|
|
|
|
|
do-install:
|
2010-01-06 14:24:46 +01:00
|
|
|
@${INSTALL} -d ${WWWDIR}
|
|
|
|
@${CP} -pR ${WRKSRC}/ ${WWWDIR}/
|
|
|
|
|
|
|
|
@${INSTALL} -d ${WWWDIR}/log
|
2008-02-24 00:40:03 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2006-06-09 10:58:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|