summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2010-03-08 15:20:44 +0000
committerBart De Schuymer <bdschuym@pandora.be>2010-03-08 15:20:44 +0000
commit469e79f3c98e587b566bd5f326dcf6311e928302 (patch)
tree2175515aef37626615813b0b2564d8bdac3b8066 /Makefile
parent5b13e8a44d1da44d9d4bd5bcc513ef235628cbc1 (diff)
bump to v0.0.3-4, test for existence of the sysconfig dir, use the header files from the repository
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 89fd6e7..4222a21 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-ARPTABLES_VERSION:=0.0.3-3
+ARPTABLES_VERSION:=0.0.3-4
KERNEL_DIR:=./
# default paths
@@ -50,7 +50,7 @@ scripts: arptables-save arptables-restore arptables.sysv
cat arptables-restore | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-restore_
install -m 0755 -o root -g root arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore
cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_
- install -m 0755 -o root -g root arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables
+ if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi
rm -f arptables-save_ arptables-restore_ arptables.sysv_
.PHONY: install
@@ -65,18 +65,10 @@ clean:
rm -f include/*~ include/libarptc/*~
DIR:=arptables-v$(ARPTABLES_VERSION)
-CVSDIRS:=CVS extensions/CVS libarptc/CVS include/CVS include/libarptc/CVS
+CVSDIRS:=CVS extensions/CVS libarptc/CVS include/CVS include/libarptc/CVS include/linux/CVS include/linux/netfilter_arp/CVS
# This is used to make a new userspace release
.PHONY: release
release:
rm -rf $(CVSDIRS)
- mkdir -p include/linux/netfilter_arp
- install -m 0644 -o root -g root \
- $(KERNEL_DIR)/include/linux/netfilter_arp.h include/linux/
- install -m 0644 -o root -g root \
- $(KERNEL_DIR)/include/linux/netfilter_arp/*.h \
- include/linux/netfilter_arp/
- install -m 0644 -o root -g root \
- include/arp_tables.h include/linux/netfilter_arp/arp_tables.h
make clean
cd ..;tar -c $(DIR) | gzip >$(DIR).tar.gz