--- Makefile +++ Makefile @@ -34,9 +34,9 @@ CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -O2 INCLUDE = -I/usr/src/linux/include -I.. -I. SBIN = $(BUILD_ROOT)/sbin -MANDIR = usr/man +MANDIR ?= usr/share/man MAN = $(BUILD_ROOT)/$(MANDIR)/man8 -INIT = $(BUILD_ROOT)/etc/rc.d/init.d +INIT ?= $(BUILD_ROOT)/etc/init.d MKDIR = mkdir INSTALL = install STATIC_LIBS = libipvs/libipvs.a @@ -87,7 +87,7 @@ install: all if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi - $(INSTALL) -m 0755 -s ipvsadm $(SBIN) + $(INSTALL) -m 0755 ipvsadm $(SBIN) $(INSTALL) -m 0755 ipvsadm-save $(SBIN) $(INSTALL) -m 0755 ipvsadm-restore $(SBIN) [ -d $(MAN) ] || $(MKDIR) -p $(MAN) @@ -95,7 +95,7 @@ $(INSTALL) -m 0644 ipvsadm-save.8 $(MAN) $(INSTALL) -m 0644 ipvsadm-restore.8 $(MAN) if [ -d $(INIT) ]; then \ - $(INSTALL) -m 0755 ipvsadm.sh $(INIT)/ipvsadm; \ + $(INSTALL) -m 0754 ipvsadm.sh $(INIT)/ipvsadm; \ fi clean: