X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Frules;h=4a0e8b583749168e288f2586a9af8907cd3c4103;hb=8a07709cb80462edb32fc11d056bfc08ce90f62d;hp=24c9850fef3f995d7501fc78b8a4bb2278e92428;hpb=8a5b3cfd91841c97fbc8a003857cacbd602646ed;p=sliver-openvswitch.git diff --git a/debian/rules b/debian/rules index 24c9850fe..4a0e8b583 100755 --- a/debian/rules +++ b/debian/rules @@ -10,9 +10,6 @@ # Modified to make a template file for a multi-binary package with separated # build-arch and build-indep targets by Bill Allombert 2001 -# Official build number. Leave set to 0 if not an official build. -BUILD_NUMBER = 0 - PACKAGE=openvswitch pdkms=openvswitch-datapath-dkms DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]:)*([^-]+).*,\2,p') @@ -31,12 +28,6 @@ else CFLAGS += -O2 endif -ifeq ($(BUILD_NUMBER),0) -BUILD_NUMBER_OPTION = -else -BUILD_NUMBER_OPTION = --with-build-number=$(BUILD_NUMBER) -endif - configure: configure-stamp configure-stamp: dh_testdir @@ -47,8 +38,8 @@ configure-stamp: cd _debian && ( \ test -e Makefile || \ ../configure --prefix=/usr --localstatedir=/var --enable-ssl \ - --sysconfdir=/etc $(BUILD_NUMBER_OPTION) \ - CFLAGS="$(CFLAGS)" $(DATAPATH_CONFIGURE_OPTS)) + --sysconfdir=/etc CFLAGS="$(CFLAGS)" \ + $(DATAPATH_CONFIGURE_OPTS)) touch configure-stamp #Architecture @@ -88,9 +79,7 @@ install-indep: build-indep dh_installdirs -i $(MAKE) -C _debian DESTDIR=$(CURDIR)/debian/tmp install dh_install -i - sed 's/^BUILD_NUMBER = .*/BUILD_NUMBER = $(BUILD_NUMBER)/' \ - < debian/rules.modules \ - > debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules + cp debian/rules.modules debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules chmod 755 debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules cd debian/openvswitch-datapath-source/usr/src && tar -c modules | bzip2 -9 > openvswitch-datapath.tar.bz2 && rm -rf modules