[kernel] r6497 - people/jurij/sample-module-package/debian/source
Jurij Smakov
jurij-guest at costa.debian.org
Sat Apr 29 23:23:40 UTC 2006
Author: jurij-guest
Date: Sat Apr 29 23:23:39 2006
New Revision: 6497
Modified:
people/jurij/sample-module-package/debian/source/postinst.modules.in
people/jurij/sample-module-package/debian/source/postrm.modules.in
people/jurij/sample-module-package/debian/source/rules
Log:
Polished rules, postinst and postrm for the foo-source
package.
Modified: people/jurij/sample-module-package/debian/source/postinst.modules.in
==============================================================================
--- people/jurij/sample-module-package/debian/source/postinst.modules.in (original)
+++ people/jurij/sample-module-package/debian/source/postinst.modules.in Sat Apr 29 23:23:39 2006
@@ -1,5 +1,9 @@
#!/bin/sh
set -e
+
DEPMOD=$(which depmod)
test -x "${DEPMOD}" || exit 0
-${DEPMOD} _KVERS_
+
+if [ "$1" = 'configure' ]; then
+ ${DEPMOD} _KVERS_
+fi
Modified: people/jurij/sample-module-package/debian/source/postrm.modules.in
==============================================================================
--- people/jurij/sample-module-package/debian/source/postrm.modules.in (original)
+++ people/jurij/sample-module-package/debian/source/postrm.modules.in Sat Apr 29 23:23:39 2006
@@ -1,5 +1,9 @@
#!/bin/sh
set -e
+
DEPMOD=$(which depmod)
test -x "${DEPMOD}" || exit 0
-${DEPMOD} _KVERS_
+
+if [ "$1" = 'remove' ] || [ "$1" = 'purge' ]; then
+ ${DEPMOD} _KVERS_
+fi
Modified: people/jurij/sample-module-package/debian/source/rules
==============================================================================
--- people/jurij/sample-module-package/debian/source/rules (original)
+++ people/jurij/sample-module-package/debian/source/rules Sat Apr 29 23:23:39 2006
@@ -10,10 +10,17 @@
-include $(MA_DIR)/include/generic.make
-include $(MA_DIR)/include/common-rules.make
+binary: binary-arch binary-indep
+binary-arch: build
+binary-indep: build
+build: build-stamp
+build-stamp: binary_modules
+ touch build-stamp
#
# This rule is going to be invoked by m-a to build
# the modules for the custom kernel. The KVERS variable
-# will be set and should be used.
+# will be set to the version string of the kernel, and
+# KSRC will point to the source tree we are building for.
#
binary-modules: binary_modules
binary_modules: prep-deb-files
@@ -35,3 +42,12 @@
dh_gencontrol
dh_md5sums
dh_builddeb --destdir=$(DEB_DESTDIR)
+
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean
+ rm -f build-stamp
+ # Commands to clean up the upstream stuff,
+ # feel free to customize for your package.
+ rm -rf *.o *.ko *.mod.c .*.cmd .tmp_versions
More information about the Kernel-svn-changes
mailing list