mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00:00
Create /etc/finit.d at install and update README with v1.3 changes.
Updates to README include changed environment variables and a clarification of why there is no default /etc/finit.conf after make install. Also, the /etc/finit.d directory is now created, as expected, by make install. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
b373e199a8
commit
14a1fb9cde
2 files changed
+28
-20
No files matched your search
@@ -75,7 +75,7 @@ $(OBJS): Makefile
|
|||||||
$(EXEC): $(OBJS)
|
$(EXEC): $(OBJS)
|
||||||
|
|
||||||
install-exec: all
|
install-exec: all
|
||||||
@$(INSTALL) -d $(DESTDIR)$(sysconfdir)
|
@$(INSTALL) -d $(DESTDIR)$(FINIT_RCSD)
|
||||||
@$(INSTALL) -d $(DESTDIR)$(sbindir)
|
@$(INSTALL) -d $(DESTDIR)$(sbindir)
|
||||||
@for file in $(EXEC); do \
|
@for file in $(EXEC); do \
|
||||||
printf " INSTALL $(DESTDIR)$(sbindir)/$$file\n"; \
|
printf " INSTALL $(DESTDIR)$(sbindir)/$$file\n"; \
|
||||||
@@ -106,7 +106,7 @@ uninstall-exec:
|
|||||||
rm $(DESTDIR)$(sbindir)/$$file 2>/dev/null; \
|
rm $(DESTDIR)$(sbindir)/$$file 2>/dev/null; \
|
||||||
done
|
done
|
||||||
-@rmdir $(DESTDIR)$(sbindir) 2>/dev/null
|
-@rmdir $(DESTDIR)$(sbindir) 2>/dev/null
|
||||||
-@rmdir $(DESTDIR)$(sysconfdir) 2>/dev/null
|
-@rmdir $(DESTDIR)$(FINIT_RCSD) 2>/dev/null
|
||||||
$(MAKE) -C plugins uninstall
|
$(MAKE) -C plugins uninstall
|
||||||
|
|
||||||
uninstall-data:
|
uninstall-data:
|
||||||
|
|||||||
+26
-18
@@ -45,7 +45,9 @@ Contrary to most script based init alternatives (SysV init_, upstart_, OpenRC_
|
|||||||
and the likes) finit reads its configuration from /etc/finit.conf, see the
|
and the likes) finit reads its configuration from /etc/finit.conf, see the
|
||||||
source code for available options.
|
source code for available options.
|
||||||
|
|
||||||
Try out the examples/finit.conf for a Debian 6.0 example configuration
|
When running ''make install'' no default ''/etc/finit.conf'' will be
|
||||||
|
provided since the system requirements differ too much. Try out the
|
||||||
|
Debian 6.0 example /usr/share/doc/finit/finit.conf configuration that is
|
||||||
capable of service monitoring SSH, sysklogd, gdm and a console getty!
|
capable of service monitoring SSH, sysklogd, gdm and a console getty!
|
||||||
|
|
||||||
|
|
||||||
@@ -80,15 +82,8 @@ what is built and where resulting binaries are installed.
|
|||||||
**ROOTDIR=**
|
**ROOTDIR=**
|
||||||
Top directory for building complete system, used in pretty printing
|
Top directory for building complete system, used in pretty printing
|
||||||
|
|
||||||
**PLUGINS=**
|
|
||||||
List of stock finit plugins to build and install.
|
|
||||||
|
|
||||||
**PLUGIN_DIR=**
|
|
||||||
Absolute path to where finit should look for dynamically loadable plugins
|
|
||||||
at runtime. At installation prepended by ''DESTDIR'' and ''prefix''-
|
|
||||||
|
|
||||||
**VERSION=**
|
**VERSION=**
|
||||||
Defaults to the currently released version of finit, e.g., 1.2 but can
|
Defaults to the currently released version of finit, e.g., 1.3 but can
|
||||||
be overridden by packages to add a suffix or completely alter the version.
|
be overridden by packages to add a suffix or completely alter the version.
|
||||||
|
|
||||||
**CFLAGS=**
|
**CFLAGS=**
|
||||||
@@ -104,12 +99,25 @@ what is built and where resulting binaries are installed.
|
|||||||
Standard LIBLIBS are inherited from the build enviornmant.
|
Standard LIBLIBS are inherited from the build enviornmant.
|
||||||
|
|
||||||
**prefix=**
|
**prefix=**
|
||||||
|
Base prefix path for all files, except ''sbinbdir'' and ''sysconfdir''.
|
||||||
|
Used in concert with the ''DESTDIR'' variable. Defaults to /usr
|
||||||
|
|
||||||
|
**sbindir=**
|
||||||
Path to where resulting binaries should install to. Used in concert
|
Path to where resulting binaries should install to. Used in concert
|
||||||
with the ''DESTDIR'' variable. Defaults to /usr/local
|
with the ''DESTDIR'' variable. Defaults to /sbin
|
||||||
|
|
||||||
**sysconfdir=**
|
**sysconfdir=**
|
||||||
Used after ''prefix'' to create the path to finit.conf configuration
|
Path to where finit configuration files should install to. Used in
|
||||||
file. Defaults to /etc
|
concert with the ''DESTDIR'' variable. Defaults to /etc, but is
|
||||||
|
currently unused.
|
||||||
|
|
||||||
|
**PLUGINS=**
|
||||||
|
List of stock finit plugins to build and install.
|
||||||
|
|
||||||
|
**plugindir=**
|
||||||
|
Absolute path to where finit should look for dynamically loadable plugins
|
||||||
|
at runtime. At installation prepended by ''DESTDIR'' and ''prefix''.
|
||||||
|
Defaults to /lib/finit/plugins
|
||||||
|
|
||||||
**DESTDIR=**
|
**DESTDIR=**
|
||||||
Used by packagers and distributions when building a relocatable
|
Used by packagers and distributions when building a relocatable
|
||||||
@@ -118,10 +126,10 @@ what is built and where resulting binaries are installed.
|
|||||||
|
|
||||||
**Example**::
|
**Example**::
|
||||||
|
|
||||||
$ tar xfJ finit-1.2.tar.xz
|
$ tar xfJ finit-1.3.tar.xz
|
||||||
$ PLUGINS="initctl.so hwclock.so" prefix= DESTDIR=/tmp/finit/dst \
|
$ PLUGINS="initctl.so hwclock.so" DESTDIR=/tmp/finit/dst \
|
||||||
make -C finit-1.2/ clean install
|
make -C finit-1.3/ clean install
|
||||||
make: Entering directory `/home/troglobit/finit-1.2'
|
make: Entering directory `/home/troglobit/finit-1.3'
|
||||||
CC finit.o
|
CC finit.o
|
||||||
CC conf.o
|
CC conf.o
|
||||||
CC helpers.o
|
CC helpers.o
|
||||||
@@ -137,9 +145,9 @@ what is built and where resulting binaries are installed.
|
|||||||
INSTALL /tmp/finit/dst/sbin/finit
|
INSTALL /tmp/finit/dst/sbin/finit
|
||||||
INSTALL /tmp/finit/dst/lib/finit/plugins/initctl.so
|
INSTALL /tmp/finit/dst/lib/finit/plugins/initctl.so
|
||||||
INSTALL /tmp/finit/dst/lib/finit/plugins/hwclock.so
|
INSTALL /tmp/finit/dst/lib/finit/plugins/hwclock.so
|
||||||
make: Leaving directory `/home/troglobit/finit-1.2'
|
make: Leaving directory `/home/troglobit/finit-1.3'
|
||||||
|
|
||||||
In this example the finit-1.2.tar.xz archive is unpacked to the user's
|
In this example the finit-1.3.tar.xz archive is unpacked to the user's
|
||||||
home directory, built and installed to a temporary staging directory.
|
home directory, built and installed to a temporary staging directory.
|
||||||
The enviroment variables ''prefix'', ''DESTDIR'' and ''PLUGINS'' are all
|
The enviroment variables ''prefix'', ''DESTDIR'' and ''PLUGINS'' are all
|
||||||
changed to suit this particular build.
|
changed to suit this particular build.
|
||||||
|
|||||||
Reference in new issue
Block a user