py-graphite-web: convert to egg.mkdiff -r1.9 -r1.10 pkgsrc/www/py-graphite-web/Makefile
(wiz)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2020/09/03 15:46:06 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2022/01/10 22:46:03 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= graphite-web-0.9.15 | 3 | DISTNAME= graphite-web-0.9.15 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= www | 6 | CATEGORIES= www | |
6 | GITHUB_PROJECT= graphite-web | 7 | GITHUB_PROJECT= graphite-web | |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=graphite-project/} | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=graphite-project/} | |
8 | 9 | |||
9 | MAINTAINER= riz@NetBSD.org | 10 | MAINTAINER= riz@NetBSD.org | |
10 | HOMEPAGE= https://launchpad.net/graphite | 11 | HOMEPAGE= https://launchpad.net/graphite | |
11 | COMMENT= Enterprise scalable realtime graphing platform | 12 | COMMENT= Enterprise scalable realtime graphing platform | |
12 | LICENSE= apache-2.0 | 13 | LICENSE= apache-2.0 | |
13 | 14 | |||
14 | DEPENDS+= ${PYPKGPREFIX}-carbon>=${PKGREVISION_NOREV}:../../databases/py-carbon | 15 | DEPENDS+= ${PYPKGPREFIX}-carbon>=${PKGREVISION_NOREV}:../../databases/py-carbon | |
15 | DEPENDS+= ${PYPKGPREFIX}-django>=1.3.1:../../www/py-django | 16 | DEPENDS+= ${PYPKGPREFIX}-django>=1.3.1:../../www/py-django | |
16 | DEPENDS+= ${PYPKGPREFIX}-django-tagging>=0.3.1:../../www/py-django-tagging | 17 | DEPENDS+= ${PYPKGPREFIX}-django-tagging>=0.3.1:../../www/py-django-tagging | |
17 | DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz | 18 | DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz | |
@@ -50,29 +51,29 @@ MESSAGE_SUBST+= GRAPHITE_LOG_DIR=${GRAP | @@ -50,29 +51,29 @@ MESSAGE_SUBST+= GRAPHITE_LOG_DIR=${GRAP | |||
50 | MESSAGE_SUBST+= GRAPHITE_USER=${GRAPHITE_USER} | 51 | MESSAGE_SUBST+= GRAPHITE_USER=${GRAPHITE_USER} | |
51 | MESSAGE_SUBST+= WWW_USER=${WWW_USER} | 52 | MESSAGE_SUBST+= WWW_USER=${WWW_USER} | |
52 | 53 | |||
53 | PKG_SYSCONFSUBDIR= graphite | 54 | PKG_SYSCONFSUBDIR= graphite | |
54 | 55 | |||
55 | GRAPHITE_CONF_FILES= dashboard.conf graphite.wsgi graphTemplates.conf | 56 | GRAPHITE_CONF_FILES= dashboard.conf graphite.wsgi graphTemplates.conf | |
56 | 57 | |||
57 | .for file in ${GRAPHITE_CONF_FILES} | 58 | .for file in ${GRAPHITE_CONF_FILES} | |
58 | CONF_FILES+= ${GRAPHITE_EGDIR}/${file}.example \ | 59 | CONF_FILES+= ${GRAPHITE_EGDIR}/${file}.example \ | |
59 | ${PKG_SYSCONFDIR}/${file} | 60 | ${PKG_SYSCONFDIR}/${file} | |
60 | .endfor | 61 | .endfor | |
61 | 62 | |||
62 | PYSETUPINSTALLARGS= --prefix=${PREFIX} \ | 63 | PYSETUPINSTALLARGS= --prefix=${PREFIX} \ | |
63 | --install-lib=${PREFIX}/${PYSITELIB} | 64 | --install-lib=${PREFIX}/${PYSITELIB} | |
64 | PYTHON_VERSIONS_ACCEPTED= 27 # py-django-tagging | 65 | PYTHON_VERSIONS_ACCEPTED= 27 # py-django-tagging | |
65 | 66 | |||
66 | INSTALLATION_DIRS+= share/examples/graphite | 67 | INSTALLATION_DIRS+= share/examples/graphite | |
67 | 68 | |||
68 | pre-build: | 69 | pre-build: | |
69 | ${MKDIR} ${WRKSRC}/graphite/webapp | 70 | ${MKDIR} ${WRKSRC}/graphite/webapp | |
70 | ${CP} -LR ${WRKSRC}/webapp/content ${WRKSRC}/graphite/webapp | 71 | ${CP} -LR ${WRKSRC}/webapp/content ${WRKSRC}/graphite/webapp | |
71 | ${RM} -f ${WRKSRC}/bin/build-index.sh.orig | 72 | ${RM} -f ${WRKSRC}/bin/build-index.sh.orig | |
72 | 73 | |||
73 | post-install: | 74 | post-install: | |
74 | ${LN} -s ${PKG_SYSCONFDIR}/local_settings.py ${DESTDIR}${PREFIX}/${PYSITELIB}/graphite/ | 75 | ${LN} -s ${PKG_SYSCONFDIR}/local_settings.py ${DESTDIR}${PREFIX}/${PYSITELIB}/graphite/ | |
75 | 76 | |||
76 | .include "../../databases/py-carbon/Makefile.common" | 77 | .include "../../databases/py-carbon/Makefile.common" | |
77 | .include "../../lang/python/distutils.mk" | 78 | .include "../../lang/python/egg.mk" | |
78 | .include "../../mk/bsd.pkg.mk" | 79 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2015/12/11 21:45:07 riz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2022/01/10 22:46:03 wiz Exp $ | |
2 | bin/build-index.sh | 2 | bin/build-index.sh | |
3 | bin/run-graphite-devel-server.py | 3 | bin/run-graphite-devel-server.py | |
4 | graphite/webapp/content/css/cli.css | 4 | graphite/webapp/content/css/cli.css | |
5 | graphite/webapp/content/css/darkX.css | 5 | graphite/webapp/content/css/darkX.css | |
6 | graphite/webapp/content/css/darkX/button-close-focused.png | 6 | graphite/webapp/content/css/darkX/button-close-focused.png | |
7 | graphite/webapp/content/css/darkX/button-maximize-focused.png | 7 | graphite/webapp/content/css/darkX/button-maximize-focused.png | |
8 | graphite/webapp/content/css/darkX/button-minimize-focused.png | 8 | graphite/webapp/content/css/darkX/button-minimize-focused.png | |
9 | graphite/webapp/content/css/darkX/frame-bottom-left-focused.png | 9 | graphite/webapp/content/css/darkX/frame-bottom-left-focused.png | |
10 | graphite/webapp/content/css/darkX/frame-bottom-mid-focused.png | 10 | graphite/webapp/content/css/darkX/frame-bottom-mid-focused.png | |
11 | graphite/webapp/content/css/darkX/frame-bottom-right-focused.png | 11 | graphite/webapp/content/css/darkX/frame-bottom-right-focused.png | |
12 | graphite/webapp/content/css/darkX/frame-left-focused.png | 12 | graphite/webapp/content/css/darkX/frame-left-focused.png | |
13 | graphite/webapp/content/css/darkX/frame-right-focused.png | 13 | graphite/webapp/content/css/darkX/frame-right-focused.png | |
14 | graphite/webapp/content/css/darkX/titlebar-left-focused.png | 14 | graphite/webapp/content/css/darkX/titlebar-left-focused.png | |
@@ -746,19 +746,18 @@ ${PYSITELIB}/graphite/version/views.pyc | @@ -746,19 +746,18 @@ ${PYSITELIB}/graphite/version/views.pyc | |||
746 | ${PYSITELIB}/graphite/version/views.pyo | 746 | ${PYSITELIB}/graphite/version/views.pyo | |
747 | ${PYSITELIB}/graphite/views.py | 747 | ${PYSITELIB}/graphite/views.py | |
748 | ${PYSITELIB}/graphite/views.pyc | 748 | ${PYSITELIB}/graphite/views.pyc | |
749 | ${PYSITELIB}/graphite/views.pyo | 749 | ${PYSITELIB}/graphite/views.pyo | |
750 | ${PYSITELIB}/graphite/whitelist/__init__.py | 750 | ${PYSITELIB}/graphite/whitelist/__init__.py | |
751 | ${PYSITELIB}/graphite/whitelist/__init__.pyc | 751 | ${PYSITELIB}/graphite/whitelist/__init__.pyc | |
752 | ${PYSITELIB}/graphite/whitelist/__init__.pyo | 752 | ${PYSITELIB}/graphite/whitelist/__init__.pyo | |
753 | ${PYSITELIB}/graphite/whitelist/urls.py | 753 | ${PYSITELIB}/graphite/whitelist/urls.py | |
754 | ${PYSITELIB}/graphite/whitelist/urls.pyc | 754 | ${PYSITELIB}/graphite/whitelist/urls.pyc | |
755 | ${PYSITELIB}/graphite/whitelist/urls.pyo | 755 | ${PYSITELIB}/graphite/whitelist/urls.pyo | |
756 | ${PYSITELIB}/graphite/whitelist/views.py | 756 | ${PYSITELIB}/graphite/whitelist/views.py | |
757 | ${PYSITELIB}/graphite/whitelist/views.pyc | 757 | ${PYSITELIB}/graphite/whitelist/views.pyc | |
758 | ${PYSITELIB}/graphite/whitelist/views.pyo | 758 | ${PYSITELIB}/graphite/whitelist/views.pyo | |
759 | ${PYSITELIB}/${EGG_FILE} | |||
760 | share/examples/graphite/dashboard.conf.example | 759 | share/examples/graphite/dashboard.conf.example | |
761 | share/examples/graphite/example-client.py | 760 | share/examples/graphite/example-client.py | |
762 | share/examples/graphite/example-graphite-vhost.conf | 761 | share/examples/graphite/example-graphite-vhost.conf | |
763 | share/examples/graphite/graphTemplates.conf.example | 762 | share/examples/graphite/graphTemplates.conf.example | |
764 | share/examples/graphite/graphite.wsgi.example | 763 | share/examples/graphite/graphite.wsgi.example |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2021/10/26 11:30:41 nia Exp $ | 1 | $NetBSD: distinfo,v 1.4 2022/01/10 22:46:03 wiz Exp $ | |
2 | 2 | |||
3 | BLAKE2s (graphite-web-0.9.15.tar.gz) = 736a8e1b5bcd2cc4f2fea245fe53a7e9f9b4c3a6939b76e4ac47dfc073d6fe44 | 3 | BLAKE2s (graphite-web-0.9.15.tar.gz) = 736a8e1b5bcd2cc4f2fea245fe53a7e9f9b4c3a6939b76e4ac47dfc073d6fe44 | |
4 | SHA512 (graphite-web-0.9.15.tar.gz) = 055c0cf3e98db56ecd37c8926f83f82b38f88edbe795d183967dfe5e09391a8a838265afef6e426686a8dfbddd8e2164e445ca007b3454ec674142bbf8f693e2 | 4 | SHA512 (graphite-web-0.9.15.tar.gz) = 055c0cf3e98db56ecd37c8926f83f82b38f88edbe795d183967dfe5e09391a8a838265afef6e426686a8dfbddd8e2164e445ca007b3454ec674142bbf8f693e2 | |
5 | Size (graphite-web-0.9.15.tar.gz) = 2434438 bytes | 5 | Size (graphite-web-0.9.15.tar.gz) = 2434438 bytes | |
6 | SHA1 (patch-bin_build-index.sh) = 13ad11086c620bd65a7cf084a88ae0187fdae2d7 | 6 | SHA1 (patch-bin_build-index.sh) = 0373f48f64e254af25ab4b15747c18efafb3136c | |
7 | SHA1 (patch-setup.py) = 1f215025652d5d45302af8d13ee7ff7a91003cfc | 7 | SHA1 (patch-setup.py) = 1f215025652d5d45302af8d13ee7ff7a91003cfc |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-bin_build-index.sh,v 1.1 2015/12/11 21:45:07 riz Exp $ | 1 | $NetBSD: patch-bin_build-index.sh,v 1.2 2022/01/10 22:46:03 wiz Exp $ | |
2 | 2 | |||
3 | Fix default paths. | 3 | Fix default paths. | |
4 | ||||
4 | --- bin/build-index.sh.orig 2013-08-21 17:11:04.000000000 +0000 | 5 | --- bin/build-index.sh.orig 2013-08-21 17:11:04.000000000 +0000 | |
5 | +++ bin/build-index.sh | 6 | +++ bin/build-index.sh | |
6 | @@ -2,12 +2,12 @@ | 7 | @@ -2,12 +2,12 @@ | |
7 | 8 | |||
8 | if [ "$GRAPHITE_ROOT" = "" ] | 9 | if [ "$GRAPHITE_ROOT" = "" ] | |
9 | then | 10 | then | |
10 | - GRAPHITE_ROOT="/opt/graphite" | 11 | - GRAPHITE_ROOT="/opt/graphite" | |
11 | + GRAPHITE_ROOT="@PREFIX@/graphite" | 12 | + GRAPHITE_ROOT="@PREFIX@/graphite" | |
12 | fi | 13 | fi | |
13 | 14 | |||
14 | if [ "$GRAPHITE_STORAGE_DIR" = "" ] | 15 | if [ "$GRAPHITE_STORAGE_DIR" = "" ] | |
15 | then | 16 | then | |
16 | - GRAPHITE_STORAGE_DIR="${GRAPHITE_ROOT}/storage" | 17 | - GRAPHITE_STORAGE_DIR="${GRAPHITE_ROOT}/storage" |