www/py-puppetboard: Improve sample settings file

Install a new settings.py sample file which contain a better description
of it's expected content and has a file name that better match what it
is used for.

Copying default_settings.py from the project was a leftover from a
previous version of PuppetBoard which does not make much sense nowadays.
This commit is contained in:
Romain Tartière 2021-08-13 07:49:31 -10:00
parent ba7c3756bb
commit 42359e9810
No known key found for this signature in database
GPG key ID: BA4D1D955112336F
2 changed files with 10 additions and 3 deletions

View file

@ -1,9 +1,14 @@
PORTNAME= puppetboard
PORTVERSION= 3.1.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PATCHFILES= a9b1903bf0fd71c8d2c0d100396646856ff8fbe4.patch
PATCH_SITES= https://github.com/voxpupuli/puppetboard/commit/
PATCH_DIST_STRIP=-p1
MAINTAINER= puppet@FreeBSD.org
COMMENT= Web interface to PuppetDB
@ -25,7 +30,7 @@ USE_PYTHON= autoplist distutils
CONFLICTS_INSTALL=puppetboard02-* puppetboard03-*
GH_ACCOUNT= voxpupuli
PLIST_FILES= "@sample etc/puppetboard/default_settings.py.sample"
PLIST_FILES= "@sample etc/puppetboard/settings.py.sample"
post-patch:
${REINPLACE_CMD} -e '/requirements_for_tests/,+2d' \
@ -33,6 +38,6 @@ post-patch:
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/puppetboard
${CP} ${WRKSRC}/puppetboard/default_settings.py ${STAGEDIR}${PREFIX}/etc/puppetboard/default_settings.py.sample
${CP} ${WRKSRC}/settings.py.sample ${STAGEDIR}${PREFIX}/etc/puppetboard/settings.py.sample
.include <bsd.port.mk>

View file

@ -1,3 +1,5 @@
TIMESTAMP = 1621020310
TIMESTAMP = 1628875502
SHA256 (voxpupuli-puppetboard-v3.1.0_GH0.tar.gz) = 651991af5536d9d92db4450255f08aceca8b541397f419d5bf094ee5d4a371ad
SIZE (voxpupuli-puppetboard-v3.1.0_GH0.tar.gz) = 2668033
SHA256 (a9b1903bf0fd71c8d2c0d100396646856ff8fbe4.patch) = 763eb62ab0e4ee3ea698cc3011fe0be2b9e1096f5775da2ad9c5e499a36a708b
SIZE (a9b1903bf0fd71c8d2c0d100396646856ff8fbe4.patch) = 1376