Giter Site home page Giter Site logo

finit-plugins's Introduction

Finit Plugin Repository

This repository is for external plugins not part of mainline Finit.

Note: contributions to this repo are expected to follow the coding style of 1) an existing plugin, or 2) coding style of Finit. It is also expected that contributions are tested against the latest release of Finit, or current mainline. Please describe your changes, or what a new plugin does (code is not self documenting) in the PR and also describe how you have verified the change or tested a new plugin.

Finit v4.4, and later, is required for these plugins. Earlier versions of Finit did not export all required header files. Loading of external plugins is supported as of Finit v4.4 from (in order) /usr/lib/finit and /usr/local/lib/finit. This in addition to the main search path for native plugins (/lib/finit).

Build & Install

This assumes Finit header files are installed in /usr/include/finit.

./autogen.sh
./configure --prefix=/usr
make
sudo make install

The build system is based on GNU autotools so it honors the DESTDIR environment variable.

Notice

The plugins used to depend on an optional Finit plugin called mdevd.so, this has been replaced in upstream Finit with two .conf lines:

service [S12345789] cgroup.system notify:s6 @root:root mdevd -O 4 -D %n -- Extended Hotplug Daemon (mdevd)
task [S] <service/mdevd/ready> @root:root mdevd-coldplug -- Replaying hotplug events to mdevd

Any services that today are plugins and depend on mdevd should be started as plain services instead. With an additional condition to ensure they are started after mdevd, e.g.

service [S12345789] <service/mdevd/ready> ...

Disclaimer

All boiler-plate files, e.g., build system files, are copyright free and in the public domain. Each plugin, however, is copyright the respective author(s), and they are all licensed under the same MIT license as Finit, due to runtime linking.

finit-plugins's People

Contributors

troglobit avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hongkongkiwi

finit-plugins's Issues

warnings during compile

When building, I'm getting these warnings.... anyway I can clear it up?

  CC       chronyd.lo
chronyd.c: In function ‘setup’:
chronyd.c:61:3: warning: implicit declaration of function ‘_d’ [-Wimplicit-function-declaration]
   61 |   _d("Skipping %s plugin in rescue mode.", __FILE__);
      |   ^~
chronyd.c:88:3: warning: implicit declaration of function ‘_pe’ [-Wimplicit-function-declaration]
   88 |   _pe("Failed registering %s", CHRONYD_DAEMON);
      |   ^~~
  CCLD     chronyd.la
  CC       qmi-proxy.lo
qmi-proxy.c: In function ‘setup’:
qmi-proxy.c:61:3: warning: implicit declaration of function ‘_d’ [-Wimplicit-function-declaration]
   61 |   _d("Skipping %s plugin in rescue mode.", __FILE__);
      |   ^~
qmi-proxy.c:80:3: warning: implicit declaration of function ‘_pe’ [-Wimplicit-function-declaration]
   80 |   _pe("Failed registering %s", QMI_PROXY_DAEMON);
      |   ^~~
  CCLD     qmi-proxy.la
  CC       co6-dev2mqtt-notify.lo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.