mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-26 08:59:58 +07:00
[PATCH] don't overwrite old config on install
Here is a patch for the Makefile to look for a already installed config and not to overwrite it.
This commit is contained in:
parent
a56ef38286
commit
7591c18a8f
25
Makefile
25
Makefile
@ -274,18 +274,31 @@ uninstall-dbus-policy:
|
|||||||
-
|
-
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: install-dbus-policy all $(GEN_CONFIGS)
|
install-config: $(GEN_CONFIGS)
|
||||||
$(INSTALL) -d $(DESTDIR)$(udevdir)
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(configdir)
|
$(INSTALL) -d $(DESTDIR)$(configdir)
|
||||||
|
@if [ ! -r $(DESTDIR)$(configdir)udev.conf ]; then \
|
||||||
|
echo $(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir); \
|
||||||
|
$(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir); \
|
||||||
|
fi
|
||||||
|
@if [ ! -r $(DESTDIR)$(configdir)udev.rules ]; then \
|
||||||
|
echo $(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir); \
|
||||||
|
$(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir); \
|
||||||
|
fi
|
||||||
|
@if [ ! -r $(DESTDIR)$(configdir)udev.permissions ]; then \
|
||||||
|
echo $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir); \
|
||||||
|
$(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
install: install-config install-dbus-policy all
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(udevdir)
|
||||||
$(INSTALL) -d $(DESTDIR)$(hotplugdir)
|
$(INSTALL) -d $(DESTDIR)$(hotplugdir)
|
||||||
$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
|
$(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
|
||||||
$(INSTALL_PROGRAM) -D etc/init.d/udev $(DESTDIR)$(initdir)/udev
|
$(INSTALL_PROGRAM) -D etc/init.d/udev $(DESTDIR)$(initdir)/udev
|
||||||
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
|
$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
|
||||||
$(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir)
|
|
||||||
$(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir)
|
|
||||||
$(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)
|
|
||||||
- rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
|
- rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
|
||||||
- ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
|
- ln -f -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
|
||||||
@extras="$(EXTRAS)" ; for target in $$extras ; do \
|
@extras="$(EXTRAS)" ; for target in $$extras ; do \
|
||||||
echo $$target ; \
|
echo $$target ; \
|
||||||
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
|
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
|
||||||
|
Loading…
Reference in New Issue
Block a user