From: Mathieu BĂ©rard Date: Thu, 10 Aug 2006 13:58:10 +0000 (+0000) Subject: Debian package was broken: the module was directly installed X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=31efe2ead3dce913d9ceb7fff331587aa6648cf3;p=omnibook.git Debian package was broken: the module was directly installed during the build process and was not in the package. Fix that ! --- diff --git a/Makefile b/Makefile index 7ac0208..52547e3 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ MODDIR = $(DESTDIR)/lib/modules KVERS = $(shell uname -r) KVER = $(KVERS) VMODDIR = $(MODDIR)/$(KVER) -INSTDIR = $(VMODDIR)/kernel/drivers/misc/omnibook +INSTDIR = extra #KSRC = /usr/src/linux KSRC = $(VMODDIR)/build KMODDIR = $(KSRC)/drivers/misc/omnibook @@ -68,9 +68,10 @@ clean: install: all - # Removing module from old location + # Removing module from old possible locations $(RM) $(VMODDIR)/kernel/drivers/char/$(MODULE_NAME).ko - make -C $(KSRC) M=$(PWD) modules_install + $(RM) $(VMODDIR)/kernel/drivers/misc/$(MODULE_NAME).ko + make INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=$(INSTDIR) -C $(KSRC) M=$(PWD) modules_install unload: $(RMMOD) $(MODULE_NAME) || : diff --git a/debian/rules b/debian/rules index bb43e5f..d9a4b5d 100755 --- a/debian/rules +++ b/debian/rules @@ -85,15 +85,15 @@ build-arch-stamp: binary-modules: prep-deb-files dh_testroot dh_clean -k - dh_installdirs lib/modules/$(KVERS)/kernel/drivers/misc/omnibook + dh_installdirs lib/modules/$(KVERS)/extra # Build the module #$(MAKE) -C drivers KERNEL_DIR=$(KSRC) KVERS=$(KVERS) $(MAKE) KSRC=$(KSRC) KVERS=$(KVERS) # Install the module - $(MAKE) install KSRC=$(KSRC) DESTDIR=$(CURDIR)/debian/$(PKGNAME) DEPMOD="" - + $(MAKE) install KSRC=$(KSRC) DESTDIR=$(CURDIR)/debian/$(PKGNAME) INSTDIR=extra DEPMOD="" + dh_installdocs dh_installchangelogs dh_compress