ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.21k stars 348 forks source link

Install executable scripts into <prefix>/etc/init.d #6014

Open maxim092001 opened 3 weeks ago

maxim092001 commented 3 weeks ago

Hi.

I believe it is common practice to put start scripts into /etc/init.d. However, currently opam <pkgname>.install drops executable bit for etc. Is it possible to set executable bit or create a new path (suppose name it init.d?) that would lead to <prefix>/etc/init.d/.

Basically, I'd like to have ability to install executables into /etc/init.d. And then if dune team agrees to expose it via dune install stanza.

Opam docs

kit-ty-kate commented 3 weeks ago

There is an open PR for this in https://github.com/ocaml/opam/pull/3958 however it is currently stuck on planning a release that upgrades the file format version, which takes a huge amount of time and we are currently busy with the release of opam 2.2

maxim092001 commented 3 weeks ago

Thanks, will track that PR