--- ipvsadm-1.29.orig/Makefile 2019-02-04 11:28:18.864254590 +0100 +++ ipvsadm-1.29/Makefile 2019-02-04 11:29:05.360666391 +0100 @@ -38,6 +38,8 @@ CC = gcc INCLUDE = SBIN = $(BUILD_ROOT)/sbin +LIBDIR = $(BUILD_ROOT)/usr/lib +INCLIBIPVS = $(BUILD_ROOT)/usr/lib/libipvs MANDIR = usr/man MAN = $(BUILD_ROOT)/$(MANDIR)/man8 INIT = $(BUILD_ROOT)/etc/rc.d/init.d @@ -91,6 +93,8 @@ install: all if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi + if [ ! -d $(LIBDIR) ]; then $(MKDIR) -p $(LIBDIR); fi + if [ ! -d $(INCLIBIPVS) ]; then $(MKDIR) -p $(INCLIBIPVS); fi $(INSTALL) -m 0755 ipvsadm $(SBIN) $(INSTALL) -m 0755 ipvsadm-save $(SBIN) $(INSTALL) -m 0755 ipvsadm-restore $(SBIN) @@ -100,6 +104,8 @@ $(INSTALL) -m 0644 ipvsadm-restore.8 $(MAN) [ -d $(INIT) ] || $(MKDIR) -p $(INIT) $(INSTALL) -m 0755 ipvsadm.sh $(INIT)/ipvsadm + $(INSTALL) -m 0644 libipvs/libipvs.so $(LIBDIR) + $(INSTALL) -m 0644 libipvs/libipvs.h $(INCLIBIPVS) clean: rm -f ipvsadm $(NAME).spec $(NAME)-$(VERSION).tar.gz