summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2007-05-28 16:45:38 +0000
committerBart De Schuymer <bdschuym@pandora.be>2007-05-28 16:45:38 +0000
commit22d8f5f0c4e68653a38a99f26a77c66d5843b98f (patch)
treead19d5e15ec4fab507bce8c13c2e9a73e8449ef6
parentbb791d98eb92718068eafc1fcff9070ad5366fb5 (diff)
downloadebtables-22d8f5f0c4e68653a38a99f26a77c66d5843b98f.tar.gz
ebtables-22d8f5f0c4e68653a38a99f26a77c66d5843b98f.tar.bz2
ebtables-22d8f5f0c4e68653a38a99f26a77c66d5843b98f.zip
fix rpmbuild
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 33aa9ac..1b09c14 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,9 @@
# ebtables Makefile
PROGNAME:=ebtables
-PROGRELEASE:=
+PROGRELEASE:=1
PROGVERSION_:=2.0.8
-ifneq ($(PROGRELEASE),)
PROGVERSION:=$(PROGVERSION_)-$(PROGRELEASE)
-else
-PROGVERSION:=$(PROGVERSION_)
-endif
PROGDATE:=May\ 2007
# default paths
@@ -203,10 +199,14 @@ clean:
rm -f extensions/*.o extensions/*.c~ extensions/*.so include/*~
DIR:=$(PROGNAME)-v$(PROGVERSION)
+CVSDIRS:=CVS extensions/CVS examples/CVS examples/perf_test/CVS \
+examples/ulog/CVS include/CVS
# This is used to make a new userspace release, some files are altered so
# do this on a temporary version
.PHONY: release
release:
+ rm -f extensions/ebt_inat.c
+ rm -rf $(CVSDIRS)
mkdir -p include/linux/netfilter_bridge
install -m 0644 -o root -g root \
$(KERNEL_INCLUDES)/linux/netfilter_bridge.h include/linux/
@@ -229,7 +229,7 @@ release:
touch include/linux/netfilter_bridge/*
sed -i 's/$$(VERSION)/$(PROGVERSION)/' ebtables.8
sed -i 's/$$(DATE)/$(PROGDATE)/' ebtables.8
- sed -i 's/$$(VERSION)/$(PROGVERSION)/' ebtables.spec
+ sed -i 's/$$(VERSION)/$(PROGVERSION_)/' ebtables.spec
sed -i 's/$$(RELEASE)/$(PROGRELEASE)/' ebtables.spec
cd ..;tar -c $(DIR) | gzip >$(DIR).tar.gz; cd -
rm -rf include/linux