/usr/src/openvswitch-1.4.0/debian/rules.modules is in openvswitch-datapath-dkms 1.4.0-1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #! /usr/bin/make -f
PACKAGE=openvswitch-datapath-module
MA_DIR ?= /usr/share/modass
-include $(MA_DIR)/include/generic.make
-include $(MA_DIR)/include/common-rules.make
DATAPATH_CONFIGURE_OPTS =
# Official build number. Leave set to 0 if not an official build.
BUILD_NUMBER = 0
kdist_clean:
dh_testdir
dh_testroot
dh_clean
rm -rf openvswitch
.PHONY: kdist_config
kdist_config: prep-deb-files
.PHONY: binary-modules
binary-modules: DSTDIR = $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel
binary-modules: prep-deb-files
dh_testdir
dh_testroot
dh_clean -k
tar xzf openvswitch.tar.gz
cd openvswitch && ./configure --with-linux=$(KSRC) $(DATAPATH_CONFIGURE_OPTS) --with-build-number=$(BUILD_NUMBER)
cd openvswitch && $(MAKE) -C datapath/linux
install -d -m755 $(DSTDIR)
install -m644 openvswitch/datapath/linux/*_mod.ko $(DSTDIR)/
dh_installmodules
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb --destdir=$(DEB_DESTDIR)
|