mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2026-03-28 10:18:45 +00:00
This commit is based on the work of:
Signed-off-by: Michael H. Warfield <mhw@WittsEnd.com>
A generic changelog would be:
- Bring support for lxcbr0 to all distributions
- Share the container startup and network configuration logic across
distributions and init systems.
- Have all the init scripts call the helper script.
- Support for the various different distro-specific configuration
locations to configure lxc-net and container startup.
Changes on top of Mike's original version:
- Remove sysconfig/lxc-net as it's apparently only there as a
workaround for an RPM limitation and is breaking Debian systems by
including a useless file which will get registered as a package provided
conffile in the dpkg database and will therefore cause conffile prompts
on upgrades...
- Go with a consistant coding style in the various init scripts.
- Split out the common logic from the sysvinit scripts and ship both in
their respective location rather than have them be copies.
- Fix the upstart jobs so they actually work (there's no such thing as
libexec on Debian systems).
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
26 lines
732 B
Makefile
26 lines
732 B
Makefile
EXTRA_DIST = lxc-containers.in lxc-net.in
|
|
|
|
if INIT_SCRIPT_SYSV
|
|
# If we're installing for sysv init, install the helper scripts
|
|
# directly to the rc directory under the appropriate name.
|
|
|
|
if HAVE_DEBIAN
|
|
initdir = "init.d"
|
|
else
|
|
initdir = "rc.d/init.d"
|
|
endif
|
|
|
|
install-sysvinit: lxc-containers lxc-net
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(initdir)
|
|
$(INSTALL_SCRIPT) lxc-containers $(DESTDIR)$(sysconfdir)/$(initdir)/lxc
|
|
$(INSTALL_SCRIPT) lxc-net $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net
|
|
|
|
uninstall-sysvinit:
|
|
rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc
|
|
rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net
|
|
rmdir $(DESTDIR)$(sysconfdir)/$(initdir) || :
|
|
|
|
install-data-local: install-sysvinit
|
|
uninstall-local: uninstall-sysvinit
|
|
endif
|