[Pkg-fglrx-devel] r314 - fglrx-driver/trunk/debian
Patrick Matthäi
pmatthaei at alioth.debian.org
Mon Nov 2 21:19:12 UTC 2009
Author: pmatthaei
Date: 2009-11-02 21:19:12 +0000 (Mon, 02 Nov 2009)
New Revision: 314
Modified:
fglrx-driver/trunk/debian/rules
Log:
Declare DKMSSRCDIR.
Generate on-the-fly the dkms.conf.
Modified: fglrx-driver/trunk/debian/rules
===================================================================
--- fglrx-driver/trunk/debian/rules 2009-11-02 21:10:29 UTC (rev 313)
+++ fglrx-driver/trunk/debian/rules 2009-11-02 21:19:12 UTC (rev 314)
@@ -26,6 +26,7 @@
UPSTREAM_VERSION := $(shell dpkg-parsechangelog|egrep '^Version:'|cut -d' ' -f2|cut -d':' -f2|sed 's/-.+*$//')
KSRCDIR := usr/src/modules/fglrx
+DKMSSRCDIR := usr/src/fglrx-$(UPSTREAM_VERSION)
ifeq ($(DEB_BUILD_ARCH),amd64)
ARCH := arch/x86_64
@@ -44,6 +45,7 @@
PKG_source := fglrx-source
PKG_control := fglrx-control
PKG_daemon := fglrx-atieventsd
+PKG_dkms := fglrx-modules-dkms
ifneq (,$(filter VER=%,$(DEB_BUILD_OPTIONS)))
NEW_UPSTREAM_VERSION := $(subst VER=,,$(filter VER=%,$(DEB_BUILD_OPTIONS)))
@@ -71,8 +73,9 @@
clean: unpatch
dh_testdir
dh_clean
- rm -fr usr lib etc opt
- rm -fr extra_src
+ rm -rf usr lib etc opt
+ rm -rf extra_src
+ rm -f debian/dkms/dkms.conf
# Clean manpages.
[ ! -f debian/man/Makefile ] || $(MAKE) -C debian/man distclean
@@ -115,6 +118,9 @@
'/usr/lib/dri\0!!!!!!!!!!!!!!' \
debian/$(PKG_glx)/usr/lib/libGL.so.1.2
endif
+ # Generate dkms.conf.
+ cat debian/dkms/dkms.conf.template|sed "s/_VERSION_/$(UPSTREAM_VERSION)/g" \
+ > debian/dkms/dkms.conf
# Create symlinks to shared libs; fixes a lintian error.
/sbin/ldconfig -n debian/$(PKG_glx)/usr/lib
/sbin/ldconfig -n debian/$(PKG_glx_ia32)/usr/lib32
More information about the Pkg-fglrx-devel
mailing list