1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/news/papercut/Makefile
Dmitry Marakasov 3974cd978b - Add LICENSE
- Add NO_ARCH
- Modernize plist
2015-06-08 01:17:14 +00:00

40 lines
1.2 KiB
Makefile

# Created by: Clement Laforet <sheepkiller@cultdeadsheep.org>
# $FreeBSD$
PORTNAME= papercut
PORTVERSION= 0.9.13
CATEGORIES= news python
MASTER_SITES= http://pessoal.org/papercut/
MAINTAINER= ports@FreeBSD.org
COMMENT= Papercut is a news server written in Python, using a MySQL backend
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
USES= python
NO_BUILD= yes
NO_ARCH= yes
do-configure:
${CP} ${FILESDIR}/papercut-wrapper ${WRKDIR}/papercut-wrapper
${REINPLACE_CMD} -e "s,__DATADIR__,${DATADIR}," ${WRKDIR}/papercut-wrapper
${REINPLACE_CMD} -e "s,__PYTHON__,${PYTHON_CMD}," ${WRKDIR}/papercut-wrapper
${REINPLACE_CMD} "s,/home/papercut,${DATADIR}," ${WRKSRC}/settings.py
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}/cache
@${MKDIR} ${STAGEDIR}${DATADIR}/logs
.for DIR in auth storage
@${MKDIR} ${STAGEDIR}${DATADIR}/${DIR}
${INSTALL_SCRIPT} ${WRKSRC}/${DIR}/* ${STAGEDIR}${DATADIR}/${DIR}
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/papercut-wrapper ${STAGEDIR}${PREFIX}/bin/papercut
${MV} ${STAGEDIR}${DATADIR}/settings.py ${STAGEDIR}${DATADIR}/settings.py.sample
.include <bsd.port.mk>