* debian/rules.real: Symlink scripts dir from kbuild package.

* debian/templates/control.headers.in: Depend on kbuild package.

svn path=/dists/trunk/linux-2.6/; revision=6324
This commit is contained in:
Bastian Blank 2006-03-28 21:40:01 +00:00
parent e4d031cccc
commit 202e4dc8f9
2 changed files with 5 additions and 10 deletions

13
debian/rules.real vendored
View File

@ -228,6 +228,7 @@ install-header-$(ARCH)-$(SUBARCH): $(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): REAL_VERSION = $(UPSTREAMVERSION)$(ABINAME)$(LOCALVERSION)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): PACKAGE_NAME = linux-headers-$(REAL_VERSION)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): PACKAGE_NAME_HEADERS = linux-headers-$(UPSTREAMVERSION)$(ABINAME)$(LOCALVERSION_HEADERS)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): PACKAGE_NAME_KBUILD = linux-kbuild-$(VERSION)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): DH_OPTIONS = -p$(PACKAGE_NAME)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): BASE_DIR = /usr/src/$(PACKAGE_NAME)
install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): SOURCE_DIR = $(BUILD_DIR)/build-$(ARCH)-$(SUBARCH)-$(FLAVOUR)
@ -291,15 +292,9 @@ install-header-$(ARCH)-$(SUBARCH)-$(FLAVOUR): $(STAMPS_DIR)/build-$(ARCH)-$(SUBA
mkdir -p "${PACKAGE_DIR}/lib/modules/${REAL_VERSION}"
ln -s "/usr/src/${PACKAGE_NAME}" "${PACKAGE_DIR}/lib/modules/${REAL_VERSION}/build"
# Populate the scripts directory. The strategy here is to specify what
# *not* to copy, to make things a little bit more robust. We first create
# a file with exclude patterns, then copy everything minus excluded files.
#
cd $(SOURCE_DIR); \
tar $(foreach t, *.c *.cc *.h *.l *.o *.y *.cmd *.glade *.gperf *POTFILES.in .gitignore *lxdialog* *package* *_shipped, --exclude=$(t)) -chf - scripts | \
(cd "${DIR}"; umask 000; tar -xvsf -)
ln -s "../${PACKAGE_NAME_KBUILD}/scripts" "${DIR}"
$(MAKE) -f debian/rules.real install-base
install-headers-all: PACKAGE_NAME = linux-headers-$(VERSION)

View File

@ -1,7 +1,7 @@
Package: linux-headers-@upstreamversion@@abiname@@localversion@
Section: devel
Priority: optional
Depends: linux-headers-@upstreamversion@@abiname@@localversion_headers@ (= ${Source-Version})
Depends: linux-headers-@upstreamversion@@abiname@@localversion_headers@ (= ${Source-Version}), linux-kbuild-@version@
Provides: linux-headers, linux-headers-@major@
Description: Header files for Linux kernel @upstreamversion@ on @class@ machines
This package provides the architecture-specific kernel header files