- Switch to github

- Fix shebang
- Cosmetic fixes
- Update WWW
This commit is contained in:
Dmitry Marakasov 2017-04-13 19:45:48 +00:00
parent eda5d3b735
commit 7cb492172d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438472
3 changed files with 12 additions and 9 deletions

View file

@ -5,7 +5,6 @@ PORTNAME= twms
PORTVERSION= 0.02w
PORTREVISION= 2
CATEGORIES= www astro
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Tiny WMS server
@ -17,7 +16,11 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyproj/__init__.py:graphics/py-pyproj \
${PYTHON_SITELIBDIR}/web/__init__.py:www/webpy \
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow
USES= python tar:bzip2
USE_GITHUB= yes
GH_ACCOUNT= Komzpa
USES= python shebangfix tar:bzip2
SHEBANG_FILES= twms.py
NO_BUILD= yes
NO_ARCH= yes
@ -26,7 +29,7 @@ TWMS_GROUP?= twms
TWMS_CACHEDIR?= /var/cache/twms
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST+= USER=${TWMS_USER} GROUP=${TWMS_GROUP} CACHEDIR=${TWMS_CACHEDIR}
SUB_LIST= USER=${TWMS_USER} GROUP=${TWMS_GROUP} CACHEDIR=${TWMS_CACHEDIR}
USE_RC_SUBR= twms
@ -34,7 +37,6 @@ USERS= ${TWMS_USER}
GROUPS= ${TWMS_GROUP}
post-patch:
@${REINPLACE_CMD} -e '1,1 s|/usr/bin/python|/usr/bin/env python|' ${WRKSRC}/twms.py
@${REINPLACE_CMD} -e 's|/etc/twms/twms.conf|${PREFIX}/etc/twms.conf|' ${WRKSRC}/twms/twms.py
@${REINPLACE_CMD} -e '/tiles_cache =/ s|".*"|"${TWMS_CACHEDIR}/cache/"|; \
/install_path =/ s|".*"|"${DATADIR}/"|; \
@ -42,10 +44,10 @@ post-patch:
s|import fetchers|from twms &|' ${WRKSRC}/twms/twms.conf
do-install:
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms
${INSTALL_DATA} ${WRKSRC}/twms/*.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/twms/
${INSTALL_SCRIPT} ${WRKSRC}/twms.py ${STAGEDIR}${PREFIX}/bin/twms
${MKDIR} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.jpg ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/twms/twms.conf ${STAGEDIR}${PREFIX}/etc/twms.conf.default

View file

@ -1,2 +1,3 @@
SHA256 (twms-0.02w.tar.bz2) = 085f0635e0535387e5e343106740be60e7f49ac75483dfc4f461b1d1c4c207c1
SIZE (twms-0.02w.tar.bz2) = 35010
TIMESTAMP = 1476144541
SHA256 (Komzpa-twms-0.02w_GH0.tar.gz) = a93f66a06be76d541747f370cc17e9568060cb4d4d9b9b41d135ce46d60a2c38
SIZE (Komzpa-twms-0.02w_GH0.tar.gz) = 36022

View file

@ -1,4 +1,4 @@
tWMS is a tiny WMS server written in Python and using tiles as a
backend storage
WWW: http://code.google.com/p/twms/
WWW: https://github.com/Komzpa/twms