Page MenuHomeFreeBSD

www/py-graphite-api: clean up rc.d script - fix ordering in rc.d script - ensure rc.d script returns on startup - ensure working directories are re-created on startup if required submitted by Horst Kapfenberger via BZ223264 https://bugs.freebsd.
ClosedPublic

Authored by dch on Dec 21 2017, 11:29 PM.
Tags
None
Referenced Files
F80166628: D13581.diff
Thu, Mar 28, 7:33 PM
Unknown Object (File)
Tue, Mar 5, 5:33 PM
Unknown Object (File)
Tue, Mar 5, 5:32 PM
Unknown Object (File)
Tue, Mar 5, 5:32 PM
Unknown Object (File)
Tue, Mar 5, 5:32 PM
Unknown Object (File)
Tue, Mar 5, 5:32 PM
Unknown Object (File)
Tue, Mar 5, 5:20 PM
Unknown Object (File)
Jan 7 2024, 3:37 AM
Subscribers

Details

Summary

...sd.org/bugzilla/show_bug.cgi?id=223264

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 17844
Build 17614: arc lint + arc unit

Event Timeline

I'm not yet familiar with python & flavours so this may need reworking of the dependencies but at least Horst's changes are finally up for review...

Makefile
5–6

DISTVERSION while you are here?

27–28

Update blocks/order to conform to Chapter 15. of the Porter's Handbook?

29

concurrent?

files/graphiteapi.in
23

Include a description?

40

This shouldn't be hard coded. Maybe PYTHON_CMD or PYTHON_VERSION?

42

%%GRAPHITEAPI_PIDFILE%% ?

Makefile
5–6

PORTREVISION=1

Makefile
5–6

Do not change PORTVERSION to DISTVERSION if the version itself does not change.

dch marked 5 inline comments as done.

www/py-graphite-api: clean up rc.d script and Makefile

Updating D13581: www/py-graphite-api: clean up rc.d script

  • fix ordering in rc.d script
  • ensure rc.d script returns on startup
  • ensure working directories are re-created on startup if required

submitted by Horst Kapfenberger via BZ223264

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223264

Makefile
35–37

Remove PORTNAME and PREFIX from SUB_LIST?

44–45

Remove PORTNAME and PORTVERSION from pkg-plist?

Makefile
44–45

In pkg-plist, PREFIX is called %D. But as PREFIX is not used in there, I guess you can just remove this.

dch marked 6 inline comments as done.

www/py-graphite-api: clean up rc.d script

  • teach rc.d to behave when installing with multiple python & gunicorn versions
  • clean up substitutions in SUB_LIST, pkg-list and *.in script

Updating D13581: www/py-graphite-api: clean up rc.d script

  • fix ordering in rc.d script
  • ensure rc.d script returns on startup
  • ensure working directories are re-created on startup if required

submitted by Horst Kapfenberger via BZ223264

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223264

Makefile
27–28

AFAICT this entails just moving NO_ARCH? Nothing else seems to need changing.

Makefile
29

It doesn't support concurrent?

dch marked 2 inline comments as done.Jul 5 2018, 6:37 AM
dch added inline comments.
Makefile
29

weird, this got lost between resurrecting from backup while my main computer is getting repairs...

Makefile
29

So I'm happy with this as-is *without* concurrent. Concurrent doesn't do POLA here very well and making further changes to allow people to install side-by-side versions of a daemon doesn't make much sense to me as a sysadmin (convince me otherwise). If concurrent is /on/ then %%ETCDIR%% becomes graphiteapi_config="/usr/local/etc/py27-graphite-api/graphiteapi.yaml" (which we can obviously fix) but would clearly break anybody updating from previous port version to current port version. It seems less evil to skip concurrent, and require people to choose their FLAVOR of python to install, vs hacking ETCDIR out to do what was previously the most intuitive thing. When they update to py3 the port would still share the same config file. Thoughts?

This revision is now accepted and ready to land.Jul 5 2018, 8:29 AM
This revision was automatically updated to reflect the committed changes.
dch marked an inline comment as done.