|
|
29ecbd |
commit 42notupstreamyet
|
|
|
29ecbd |
Author: Jesper Dangaard Brouer <brouer@redhat.com>
|
|
|
29ecbd |
Date: Thu Nov 14 13:37:39 2013 +0100
|
|
|
29ecbd |
|
|
|
29ecbd |
arptables: Add man pages for arptables-{save,restore}
|
|
|
29ecbd |
|
|
|
29ecbd |
Also fixed up the Makefile to install these man pages.
|
|
|
29ecbd |
|
|
|
29ecbd |
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
|
|
|
29ecbd |
|
|
|
29ecbd |
|
|
|
29ecbd |
diff --git a/userspace/arptables/Makefile b/userspace/arptables/Makefile
|
|
|
29ecbd |
index 38158d9..7bead0d 100644
|
|
|
29ecbd |
--- a/userspace/arptables/Makefile
|
|
|
29ecbd |
+++ b/userspace/arptables/Makefile
|
|
|
29ecbd |
@@ -6,10 +6,13 @@ PREFIX:=/usr/local
|
|
|
29ecbd |
LIBDIR:=$(PREFIX)/lib
|
|
|
29ecbd |
BINDIR:=$(PREFIX)/sbin
|
|
|
29ecbd |
MANDIR:=$(PREFIX)/man
|
|
|
29ecbd |
+man8dir=$(MANDIR)/man8
|
|
|
29ecbd |
INITDIR:=/etc/rc.d/init.d
|
|
|
29ecbd |
SYSCONFIGDIR:=/etc/sysconfig
|
|
|
29ecbd |
DESTDIR:=
|
|
|
29ecbd |
|
|
|
29ecbd |
+MANS = arptables.8 arptables-save.8 arptables-restore.8
|
|
|
29ecbd |
+
|
|
|
29ecbd |
COPT_FLAGS:=-O2
|
|
|
29ecbd |
CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DARPTC_DEBUG
|
|
|
29ecbd |
|
|
|
29ecbd |
@@ -36,10 +39,6 @@ libarptc/libarptc.a: libarptc/libarptc.o
|
|
|
29ecbd |
arptables: arptables-standalone.o arptables.o libarptc/libarptc.o $(EXT_OBJS)
|
|
|
29ecbd |
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
29ecbd |
|
|
|
29ecbd |
-$(DESTDIR)$(MANDIR)/man8/arptables.8: arptables.8
|
|
|
29ecbd |
- mkdir -p $(@D)
|
|
|
29ecbd |
- install -m 0644 $< $@
|
|
|
29ecbd |
-
|
|
|
29ecbd |
$(DESTDIR)$(BINDIR)/arptables: arptables
|
|
|
29ecbd |
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
29ecbd |
install -m 0755 $< $@
|
|
|
29ecbd |
@@ -57,8 +56,13 @@ scripts: arptables-save arptables-restore arptables.sysv
|
|
|
29ecbd |
if test -d $(DESTDIR)$(INITDIR); then install -m 0755 arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi
|
|
|
29ecbd |
rm -f arptables-save_ arptables-restore_ arptables.sysv_
|
|
|
29ecbd |
|
|
|
29ecbd |
+.PHONY: install-man
|
|
|
29ecbd |
+install-man: $(MANS)
|
|
|
29ecbd |
+ [ -d "$(DESTDIR)$(man8dir)" ] || mkdir -p "$(DESTDIR)$(man8dir)"
|
|
|
29ecbd |
+ install -m 0644 $^ $(DESTDIR)$(man8dir)/
|
|
|
29ecbd |
+
|
|
|
29ecbd |
.PHONY: install
|
|
|
29ecbd |
-install: $(DESTDIR)$(MANDIR)/man8/arptables.8 $(DESTDIR)$(BINDIR)/arptables scripts
|
|
|
29ecbd |
+install: install-man $(DESTDIR)$(BINDIR)/arptables scripts
|
|
|
29ecbd |
|
|
|
29ecbd |
.PHONY: clean
|
|
|
29ecbd |
clean:
|