2013-09-21 01:36:50 +02:00
|
|
|
# Created by: ijliao
|
2004-07-15 10:20:05 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nanoblogger
|
2010-03-06 02:37:24 +01:00
|
|
|
PORTVERSION= 3.4.2
|
2011-07-02 14:30:59 +02:00
|
|
|
PORTREVISION= 1
|
2004-07-15 10:20:05 +02:00
|
|
|
CATEGORIES= www
|
2010-03-06 02:37:24 +01:00
|
|
|
MASTER_SITES= http://nanoblogger.sourceforge.net/downloads/
|
2004-07-15 10:20:05 +02:00
|
|
|
|
2009-07-08 01:49:47 +02:00
|
|
|
MAINTAINER= tobias.rehbein@web.de
|
2007-01-16 11:47:19 +01:00
|
|
|
COMMENT= Small weblog engine written in Bash for the command line
|
2004-07-15 10:20:05 +02:00
|
|
|
|
2005-07-06 22:58:51 +02:00
|
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
2004-07-15 10:20:05 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2005-09-15 23:24:17 +02:00
|
|
|
SUB_FILES= pkg-message
|
2004-07-15 10:20:05 +02:00
|
|
|
|
|
|
|
post-patch:
|
2005-07-06 22:58:51 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/nb
|
2009-07-08 01:49:47 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/nb
|
|
|
|
@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/nb
|
|
|
|
@${REINPLACE_CMD} -e "s,%%DOCSDIR%%,${DOCSDIR},g" ${WRKSRC}/nb
|
2011-07-02 14:30:59 +02:00
|
|
|
@${RM} ${WRKSRC}/plugins/page/format/*.orig
|
|
|
|
@${RM} ${WRKSRC}/plugins/entry/format/*.orig
|
2004-07-15 10:20:05 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-02-17 15:46:28 +01:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/nb ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/nb.conf ${STAGEDIR}${PREFIX}/etc/nb.conf.sample
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2009-07-08 01:49:47 +02:00
|
|
|
.for data in default lang lib moods plugins
|
2014-02-17 15:46:28 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/${data} && \
|
2008-06-13 21:07:32 +02:00
|
|
|
( cd ${WRKSRC}/${data} && \
|
2014-02-17 15:46:28 +01:00
|
|
|
${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${data} "! -name *.orig" )
|
2004-07-15 10:20:05 +02:00
|
|
|
.endfor
|
2014-02-17 15:46:28 +01:00
|
|
|
@${CP} ${WRKSRC}/welcome-to-nb.txt ${STAGEDIR}${DATADIR}
|
2005-09-15 23:24:17 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-02-17 15:46:28 +01:00
|
|
|
@if [ ! -f ${STAGEDIR}${PREFIX}/etc/nb.conf ]; then \
|
|
|
|
${CP} -p ${STAGEDIR}${PREFIX}/etc/nb.conf.sample ${STAGEDIR}${PREFIX}/etc/nb.conf; \
|
2007-01-16 11:47:19 +01:00
|
|
|
fi
|
2014-02-17 15:46:28 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2009-07-08 01:49:47 +02:00
|
|
|
.for doc in COPYING ChangeLog README TODO copyright
|
2014-02-17 15:46:28 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
|
2007-01-16 11:47:19 +01:00
|
|
|
.endfor
|
2014-02-17 15:46:28 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/nanoblogger.html ${STAGEDIR}${DOCSDIR}/html
|
2004-07-15 10:20:05 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|