[kernel] r6469 - people/jurij/sample-module-package/debian
Jurij Smakov
jurij-guest at costa.debian.org
Fri Apr 21 04:41:44 UTC 2006
Author: jurij-guest
Date: Fri Apr 21 04:41:42 2006
New Revision: 6469
Modified:
people/jurij/sample-module-package/debian/rules.real
Log:
Basic functionality is there (builds first the
source package, then all the binary packages),
now need to polish everything a bit and document.
Modified: people/jurij/sample-module-package/debian/rules.real
==============================================================================
--- people/jurij/sample-module-package/debian/rules.real (original)
+++ people/jurij/sample-module-package/debian/rules.real Fri Apr 21 04:41:42 2006
@@ -8,8 +8,17 @@
#
# You should define the following targets here:
#
-binary-arch-flavour:
- @echo "binary-arch-flavour called"
+binary-arch-flavour: TARBALL := $(PWD)/debian/$(PKGSRC)/usr/src/$(PACKAGE).tar.gz
+binary-arch-flavour: $(STAMPDIR)/install-source-stamp
+ dh_testdir
+ dh_testroot
+ rm -rf $(BUILDDIR)/modules
+ cd $(BUILDDIR) && tar xzf $(TARBALL)
+ # We have to remove debian/control.modules.in, otherwise m-a
+ # will regenerate debian/control, overwriting our correct file
+ rm -f $(BUILDDIR)/modules/$(PACKAGE)/debian/control.modules.in
+ cp -a debian/changelog debian/control $(BUILDDIR)/modules/$(PACKAGE)/debian
+ m-a -i -l $(VERSION)$(ABINAME)$(LOCALVERSION) -u $(BUILDDIR) build $(PACKAGE)
build:
$(MAKE) -f debian/rules.real build-source VERSION='$(VERSION)' ABINAME='$(ABINAME)'
@@ -48,9 +57,10 @@
dh_installdocs -p$(PKGSRC)
# Install the source files
dh_install -p$(PKGSRC) -Xdebian $(wildcard *) usr/src/modules/$(PACKAGE)
- dh_install -p$(PKGSRC) $(wildcard debian/source/*) \
+ dh_install -p$(PKGSRC) debian/compat \
+ debian/copyright \
+ $(wildcard debian/source/*) \
$(wildcard $(BUILDDIR)/source/*) \
- debian/compat \
usr/src/modules/$(PACKAGE)/debian
cd debian/$(PKGSRC)/usr/src && \
tar -czf $(PACKAGE).tar.gz modules && \
More information about the Kernel-svn-changes
mailing list