diff --git a/src/Makefile b/src/Makefile index 3008f1c..4f74157 100644 --- vzctl-3.0.11.orig/src/Makefile +++ vzctl-3.0.11/src/Makefile @@ -27,6 +27,7 @@ LIBSCRIPTSDIR = /usr/lib/vzctl/scripts/ NETSCRIPTDIR = /etc/sysconfig/network-scripts CRONDDIR = /etc/cron.d INITDDIR = /etc/init.d +UDEVRULESDIR = /etc/udev/rules.d VZDIR = /vz CACHEDIR = $(VZDIR)/template/cache VZLOCKDIR = $(VZDIR)/lock @@ -73,6 +74,7 @@ LIBS = $(LIB_vzctl) $(LIB_fs) INITSCRIPTS = vz CRONSCRIPTS = vpsreboot vpsnetclean +UDEVRULES = 60-vzctl.rules SCRIPTS = vpsreboot vpsnetclean NETSCRIPTS = ifcfg-venet0 ifdown-venet ifup-venet VE0CONFIG = 0.conf @@ -189,6 +191,11 @@ inst-cron: $(INSTALL) -m 644 ../etc/cron.d/$$file $(DESTDIR)$(CRONDDIR)/$$file; \ done +inst-udev: + for file in $(UDEVRULES); do \ + $(INSTALL) -m 644 ../etc/udev/$$file $(DESTDIR)$(UDEVDIR)/$$file; \ + done + inst-dirs: $(INSTALL) -d $(DESTDIR)$(CONFDIR) $(INSTALL) -d $(DESTDIR)$(SBINDIR) @@ -197,6 +204,7 @@ inst-dirs: $(INSTALL) -d $(DESTDIR)$(SCRIPTSDIR) $(INSTALL) -d $(DESTDIR)$(CRONDDIR) $(INSTALL) -d $(DESTDIR)$(INITDDIR) + $(INSTALL) -d $(DESTDIR)$(UDEVRULESDIR) $(INSTALL) -d $(DESTDIR)$(VZLOCKDIR) $(INSTALL) -d $(DESTDIR)$(VZDUMPDIR) $(INSTALL) -d $(DESTDIR)$(NAMESDIR)