diff -u lirc-0.8.7/debian/control lirc-0.8.7/debian/control --- lirc-0.8.7/debian/control +++ lirc-0.8.7/debian/control @@ -60,21 +60,14 @@ Package: lirc-modules-source Architecture: all -Depends: ${misc:Depends}, dkms -Recommends: libc6-dev, linux-headers-generic | linux-headers -Suggests: kernel-source +Depends: ${misc:Depends} Conflicts: lirc (<<0.6.3-1) -Description: infra-red remote control support - kernel modules - LIRC stands for 'Linux Infra-red Remote Control'. +Description: Transitional package for DKMS LIRC modules + This package used to provide DKMS versions of LIRC modules, but + those no longer work with modern (2.6.38+) kernels such as those + shipped with Ubuntu 11.04 or later. . - This package provides the source for the kernel modules to support - infra-red remote controls under Linux. - . - The kernel sources must be installed to compile these modules. - . - Also, note that this package is not necessary for usage on Ubuntu since - the modules are shipped in linux-ubuntu-modules. It is soley here in - the case that a local patch needs to be applied. + This package can be safely removed as the in-kernel modules supercede it. Package: liblircclient-dev Architecture: any reverted: --- lirc-0.8.7/debian/lirc-modules-source.postrm +++ lirc-0.8.7.orig/debian/lirc-modules-source.postrm @@ -1,14 +0,0 @@ -#!/bin/sh -set -e - -#DEBHELPER# - -case "$1" in - purge) - if [ -x /usr/bin/ucf ]; then - /usr/bin/ucf --purge /etc/lirc/lirc-modules-source.conf - fi - ;; -esac - -exit 0 reverted: --- lirc-0.8.7/debian/lirc-modules-source.postinst +++ lirc-0.8.7.orig/debian/lirc-modules-source.postinst @@ -1,51 +0,0 @@ -#!/bin/sh -# Copyright (C) 2007-2008 Mario Limonciello -set -e - -NAME=lirc -PACKAGE_NAME=$NAME-modules-source -CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` - -ARCH=`dpkg --print-architecture` -case $ARCH in - amd64) - ARCH="x86_64" - ;; - lpia) - ARCH="i686" - ;; - i386) - ARCH="i686" - ;; - *) - echo "WARNING: unsupported arch: $ARCH" - ARCH="$ARCH" - ;; -esac - -case "$1" in - configure) - for POSTINST in /usr/lib/dkms/common.postinst /usr/share/$PACKAGE_NAME/postinst; do - if [ -f $POSTINST ]; then - $POSTINST $NAME $CVERSION /usr/share/$PACKAGE_NAME $ARCH $2 - exit $? - fi - echo "WARNING: $POSTINST does not exist." - done - echo "ERROR: DKMS version is too old and $PACKAGE_NAME was not" - echo "built with legacy DKMS support." - echo "You must either rebuild $PACKAGE_NAME with legacy postinst" - echo "support or upgrade DKMS to a more current version." - exit 1 - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# reverted: --- lirc-0.8.7/debian/lirc-modules-source.install +++ lirc-0.8.7.orig/debian/lirc-modules-source.install @@ -1 +0,0 @@ -usr/src/* diff -u lirc-0.8.7/debian/changelog lirc-0.8.7/debian/changelog --- lirc-0.8.7/debian/changelog +++ lirc-0.8.7/debian/changelog @@ -1,3 +1,12 @@ +lirc (0.8.7-0ubuntu4.2) UNRELEASED; urgency=low + + * debian/control: + - Make lirc-modules-source a transitional package + * debian/lirc-modules-source.* + - Remove. (LP: #778026) + + -- Mario Limonciello Thu, 05 May 2011 14:59:30 -0500 + lirc (0.8.7-0ubuntu4.1) natty-proposed; urgency=low [ Ernst Sjöstrand ] reverted: --- lirc-0.8.7/debian/lirc-modules-source.prerm +++ lirc-0.8.7.orig/debian/lirc-modules-source.prerm @@ -1,17 +0,0 @@ -#!/bin/sh -# Copyright (C) 2007-2008 Mario Limonciello - -#DEBHELPER# -set -e - -CVERSION=`dpkg-query -W -f='${Version}' lirc-modules-source | awk -F "-" '{print $1}'` - -case "$1" in - remove|upgrade) - echo "Removing all DKMS Modules" - dkms remove -m lirc -v $CVERSION --all > /dev/null - echo "Done." - ;; -esac - -