[arch-commits] Commit in dkms/repos (7 files)
Date: Sunday, May 27, 2018 @ 18:59:02 Author: seblu Revision: 325049 archrelease: copy trunk to testing-any Added: dkms/repos/testing-any/ dkms/repos/testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch (from rev 325048, dkms/trunk/0001-Revert-Make-newly-installed-modules-available-immedi.patch) dkms/repos/testing-any/PKGBUILD (from rev 325048, dkms/trunk/PKGBUILD) dkms/repos/testing-any/dkms.install (from rev 325048, dkms/trunk/dkms.install) dkms/repos/testing-any/hook.install (from rev 325048, dkms/trunk/hook.install) dkms/repos/testing-any/hook.remove (from rev 325048, dkms/trunk/hook.remove) dkms/repos/testing-any/hook.sh (from rev 325048, dkms/trunk/hook.sh) -+ 0001-Revert-Make-newly-installed-modules-available-immedi.patch | 31 + PKGBUILD| 66 +++ dkms.install| 13 hook.install| 14 hook.remove | 16 hook.sh | 198 ++ 6 files changed, 338 insertions(+) Copied: dkms/repos/testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch (from rev 325048, dkms/trunk/0001-Revert-Make-newly-installed-modules-available-immedi.patch) === --- testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch (rev 0) +++ testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch 2018-05-27 18:59:02 UTC (rev 325049) @@ -0,0 +1,31 @@ +From ca38ccd38c69a096dafa51c426ee3548980d5e2a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= +Date: Sat, 8 Jul 2017 15:50:55 +0200 +Subject: [PATCH] Revert "Make newly installed modules available immediately" +To: dkms-de...@dell.com + +This reverts commit f5bfb12fef1fc06e56355cdba500eaa98d4e6aa8. +--- + dkms | 6 -- + 1 file changed, 6 deletions(-) + +diff --git a/dkms b/dkms +index a6cedc8..3ff71d5 100644 +--- a/dkms b/dkms +@@ -1522,12 +1522,6 @@ install_module() + exit 6 + } + +-# Make the newly installed modules available immediately +-find /sys/devices -name modalias -print0 | xargs -0 cat | xargs modprobe -a -b -q +-if [ -f /lib/systemd/system/systemd-modules-load.service ]; then +-systemctl restart systemd-modules-load.service +-fi +- + # Do remake_initrd things (save old initrd) + [[ $remake_initrd ]] && ! make_initrd "$kernelver" "$arch" && { + do_uninstall "$kernelver" "$arch" +-- +Sébastien "Seblu" Luttringer + Copied: dkms/repos/testing-any/PKGBUILD (from rev 325048, dkms/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2018-05-27 18:59:02 UTC (rev 325049) @@ -0,0 +1,66 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) + +pkgname=dkms +pkgver=2.5 +pkgrel=2 +pkgdesc='Dynamic Kernel Modules System' +arch=('any') +url='https://github.com/dell/dkms' +license=('GPL2') +depends=('bash' 'kmod' 'gcc' 'make' 'patch') +makedepends=('git') +optdepends=('linux-headers: build modules against the Arch kernel' +'linux-lts-headers: build modules against the LTS kernel' +'linux-zen-headers: build modules against the ZEN kernel' +'linux-hardened-headers: build modules against the HARDENED kernel') +backup=('etc/dkms/framework.conf') +install=$pkgname.install +source=("git+https://github.com/dell/dkms.git#tag=v$pkgver"; +'hook.install' +'hook.remove' +'hook.sh' +'0001-Revert-Make-newly-installed-modules-available-immedi.patch') +md5sums=('SKIP' + '90f1486e0af9aab85e8c60d456802c63' + '2e8ffd0c2ddec02872d0234befd129fd' + 'acdc173fed3cfe3b109d1e08f24a0d81' + 'd3b91ef709f567a375f4bbdbd3291d2b') + +prepare() { + cd dkms + + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do +if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "$srcdir/${filename##*/}" +fi + done + + # /usr move + msg2 '/usr move patching' + for i in dkms{,_framework.conf,.bash-completion,.8,_common.postinst}; do +sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i" + done +} + +package() { + # alpm hook + install -D -m 644 hook.install "$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook" + install -D -m 644 hook.remove "$pkgdir/usr/share/libalpm/hooks/70-dkms-remove.hook" + install -D -m 755 hook.sh "$pkgdir/usr/lib/dkms/alpm-hook" + # upstream ins
[arch-commits] Commit in dkms/repos (7 files)
Date: Sunday, May 27, 2018 @ 18:58:03 Author: seblu Revision: 325047 archrelease: copy trunk to community-testing-any Added: dkms/repos/community-testing-any/ dkms/repos/community-testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch (from rev 325046, dkms/trunk/0001-Revert-Make-newly-installed-modules-available-immedi.patch) dkms/repos/community-testing-any/PKGBUILD (from rev 325046, dkms/trunk/PKGBUILD) dkms/repos/community-testing-any/dkms.install (from rev 325046, dkms/trunk/dkms.install) dkms/repos/community-testing-any/hook.install (from rev 325046, dkms/trunk/hook.install) dkms/repos/community-testing-any/hook.remove (from rev 325046, dkms/trunk/hook.remove) dkms/repos/community-testing-any/hook.sh (from rev 325046, dkms/trunk/hook.sh) -+ 0001-Revert-Make-newly-installed-modules-available-immedi.patch | 31 + PKGBUILD| 66 +++ dkms.install| 13 hook.install| 14 hook.remove | 16 hook.sh | 198 ++ 6 files changed, 338 insertions(+) Copied: dkms/repos/community-testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch (from rev 325046, dkms/trunk/0001-Revert-Make-newly-installed-modules-available-immedi.patch) === --- community-testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch (rev 0) +++ community-testing-any/0001-Revert-Make-newly-installed-modules-available-immedi.patch 2018-05-27 18:58:03 UTC (rev 325047) @@ -0,0 +1,31 @@ +From ca38ccd38c69a096dafa51c426ee3548980d5e2a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= +Date: Sat, 8 Jul 2017 15:50:55 +0200 +Subject: [PATCH] Revert "Make newly installed modules available immediately" +To: dkms-de...@dell.com + +This reverts commit f5bfb12fef1fc06e56355cdba500eaa98d4e6aa8. +--- + dkms | 6 -- + 1 file changed, 6 deletions(-) + +diff --git a/dkms b/dkms +index a6cedc8..3ff71d5 100644 +--- a/dkms b/dkms +@@ -1522,12 +1522,6 @@ install_module() + exit 6 + } + +-# Make the newly installed modules available immediately +-find /sys/devices -name modalias -print0 | xargs -0 cat | xargs modprobe -a -b -q +-if [ -f /lib/systemd/system/systemd-modules-load.service ]; then +-systemctl restart systemd-modules-load.service +-fi +- + # Do remake_initrd things (save old initrd) + [[ $remake_initrd ]] && ! make_initrd "$kernelver" "$arch" && { + do_uninstall "$kernelver" "$arch" +-- +Sébastien "Seblu" Luttringer + Copied: dkms/repos/community-testing-any/PKGBUILD (from rev 325046, dkms/trunk/PKGBUILD) === --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2018-05-27 18:58:03 UTC (rev 325047) @@ -0,0 +1,66 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) + +pkgname=dkms +pkgver=2.5 +pkgrel=2 +pkgdesc='Dynamic Kernel Modules System' +arch=('any') +url='https://github.com/dell/dkms' +license=('GPL2') +depends=('bash' 'kmod' 'gcc' 'make' 'patch') +makedepends=('git') +optdepends=('linux-headers: build modules against the Arch kernel' +'linux-lts-headers: build modules against the LTS kernel' +'linux-zen-headers: build modules against the ZEN kernel' +'linux-hardened-headers: build modules against the HARDENED kernel') +backup=('etc/dkms/framework.conf') +install=$pkgname.install +source=("git+https://github.com/dell/dkms.git#tag=v$pkgver"; +'hook.install' +'hook.remove' +'hook.sh' +'0001-Revert-Make-newly-installed-modules-available-immedi.patch') +md5sums=('SKIP' + '90f1486e0af9aab85e8c60d456802c63' + '2e8ffd0c2ddec02872d0234befd129fd' + 'acdc173fed3cfe3b109d1e08f24a0d81' + 'd3b91ef709f567a375f4bbdbd3291d2b') + +prepare() { + cd dkms + + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do +if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "$srcdir/${filename##*/}" +fi + done + + # /usr move + msg2 '/usr move patching' + for i in dkms{,_framework.conf,.bash-completion,.8,_common.postinst}; do +sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i" + done +} + +package() { + # alpm hook + install -D -m 644 hook.install "$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook" + install -D -m
[arch-commits] Commit in dkms/repos (7 files)
Date: Thursday, November 3, 2016 @ 21:04:13 Author: seblu Revision: 279820 archrelease: copy trunk to testing-any Added: dkms/repos/testing-any/ dkms/repos/testing-any/02-no-kernel-hook.patch (from rev 279819, dkms/trunk/02-no-kernel-hook.patch) dkms/repos/testing-any/PKGBUILD (from rev 279819, dkms/trunk/PKGBUILD) dkms/repos/testing-any/dkms.install (from rev 279819, dkms/trunk/dkms.install) dkms/repos/testing-any/hook.install (from rev 279819, dkms/trunk/hook.install) dkms/repos/testing-any/hook.remove (from rev 279819, dkms/trunk/hook.remove) dkms/repos/testing-any/hook.sh (from rev 279819, dkms/trunk/hook.sh) -+ 02-no-kernel-hook.patch | 13 PKGBUILD| 64 ++ dkms.install| 13 hook.install| 14 hook.remove | 16 + hook.sh | 133 ++ 6 files changed, 253 insertions(+) Copied: dkms/repos/testing-any/02-no-kernel-hook.patch (from rev 279819, dkms/trunk/02-no-kernel-hook.patch) === --- testing-any/02-no-kernel-hook.patch (rev 0) +++ testing-any/02-no-kernel-hook.patch 2016-11-03 21:04:13 UTC (rev 279820) @@ -0,0 +1,13 @@ +# Author: Sébastien Luttringer +--- a/Makefile 2011-12-07 19:23:51.0 +0100 b/Makefile 2013-05-13 00:48:19.62000 +0200 +@@ -46,9 +46,6 @@ + gzip -c -9 dkms.8 > $(MAN)/dkms.8.gz + chmod 0644 $(MAN)/dkms.8.gz + touch --reference=dkms.8 $(MAN)/dkms.8.gz +- mkdir -p -m 0755 $(KCONF)/prerm.d $(KCONF)/postinst.d +- install -p -m 0755 kernel_prerm.d_dkms $(KCONF)/prerm.d/dkms +- install -p -m 0755 kernel_postinst.d_dkms $(KCONF)/postinst.d/dkms + + DOCFILES=sample.spec sample.conf AUTHORS COPYING README.dkms sample-suse-9-mkkmp.spec sample-suse-10-mkkmp.spec + Copied: dkms/repos/testing-any/PKGBUILD (from rev 279819, dkms/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2016-11-03 21:04:13 UTC (rev 279820) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) + +pkgname=dkms +pkgver=2.3 +pkgrel=1 +pkgdesc='Dynamic Kernel Modules System' +arch=('any') +url='https://github.com/dell/dkms' +license=('GPL2') +depends=('bash' 'kmod' 'gcc' 'make' 'patch') +makedepends=('git') +optdepends=('linux-headers: build modules against the Arch kernel' +'linux-lts-headers: build modules against the LTS kernel' +'linux-zen-headers: build modules against the ZEN kernel' +'linux-grsec-headers: build modules against the GRSEC kernel') +backup=('etc/dkms/framework.conf') +install=$pkgname.install +source=("git+https://github.com/dell/dkms.git#tag=$pkgver"; +'02-no-kernel-hook.patch' +'hook.install' +'hook.remove' +'hook.sh') +md5sums=('SKIP' + '82d520c39c99c34977e48b313a189c6c' + '2dfc9905738199bf1fdbaa08d306e265' + '4d959fdd4f168b5a6921712404066566' + 'c3971151a2945e5491b786579810cd15') + +prepare() { + cd dkms + + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do +if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "$srcdir/${filename##*/}" +fi + done + + # /usr move + msg2 '/usr move patching' + for i in dkms{,_framework.conf,.bash-completion,.8,_common.postinst}; do +sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i" + done +} + +package() { + # alpm hook + install -D -m 644 hook.install "$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook" + install -D -m 644 hook.remove "$pkgdir/usr/share/libalpm/hooks/70-dkms-remove.hook" + install -D -m 755 hook.sh "$pkgdir/usr/lib/dkms/alpm-hook" + # upstream installer + cd dkms + make \ +DESTDIR="$pkgdir" \ +SBIN="$pkgdir/usr/bin" \ +BASHDIR="$pkgdir/usr/share/bash-completion/completions" \ +install +} + +# vim:set ts=2 sw=2 et: Copied: dkms/repos/testing-any/dkms.install (from rev 279819, dkms/trunk/dkms.install) === --- testing-any/dkms.install(rev 0) +++ testing-any/dkms.install2016-11-03 21:04:13 UTC (rev 279820) @@ -0,0 +1,13 @@ +#!/bin/bash + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if (( "$(vercmp $2 '2.2.0.3+git151023-2')" < 0 )); then +echo '===> dkms systemd startup service has been removed' +echo '===> modules building is now handled by alpm hooks at install time' +echo '===> startup modules loading must be done via modules-load.d' + fi +} + +# vim:set ts=2 sw=2 ft=sh e
[arch-commits] Commit in dkms/repos (7 files)
Date: Monday, June 20, 2016 @ 22:37:44 Author: seblu Revision: 270412 archrelease: copy trunk to community-any Added: dkms/repos/community-any/ dkms/repos/community-any/02-no-kernel-hook.patch (from rev 270411, dkms/trunk/02-no-kernel-hook.patch) dkms/repos/community-any/PKGBUILD (from rev 270411, dkms/trunk/PKGBUILD) dkms/repos/community-any/dkms.install (from rev 270411, dkms/trunk/dkms.install) dkms/repos/community-any/hook.install (from rev 270411, dkms/trunk/hook.install) dkms/repos/community-any/hook.remove (from rev 270411, dkms/trunk/hook.remove) dkms/repos/community-any/hook.sh (from rev 270411, dkms/trunk/hook.sh) -+ 02-no-kernel-hook.patch | 13 + PKGBUILD| 64 + dkms.install| 13 + hook.install| 15 ++ hook.remove | 15 ++ hook.sh | 115 ++ 6 files changed, 235 insertions(+) Copied: dkms/repos/community-any/02-no-kernel-hook.patch (from rev 270411, dkms/trunk/02-no-kernel-hook.patch) === --- community-any/02-no-kernel-hook.patch (rev 0) +++ community-any/02-no-kernel-hook.patch 2016-06-20 22:37:44 UTC (rev 270412) @@ -0,0 +1,13 @@ +# Author: Sébastien Luttringer +--- a/Makefile 2011-12-07 19:23:51.0 +0100 b/Makefile 2013-05-13 00:48:19.62000 +0200 +@@ -46,9 +46,6 @@ + gzip -c -9 dkms.8 > $(MAN)/dkms.8.gz + chmod 0644 $(MAN)/dkms.8.gz + touch --reference=dkms.8 $(MAN)/dkms.8.gz +- mkdir -p -m 0755 $(KCONF)/prerm.d $(KCONF)/postinst.d +- install -p -m 0755 kernel_prerm.d_dkms $(KCONF)/prerm.d/dkms +- install -p -m 0755 kernel_postinst.d_dkms $(KCONF)/postinst.d/dkms + + DOCFILES=sample.spec sample.conf AUTHORS COPYING README.dkms sample-suse-9-mkkmp.spec sample-suse-10-mkkmp.spec + Copied: dkms/repos/community-any/PKGBUILD (from rev 270411, dkms/trunk/PKGBUILD) === --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2016-06-20 22:37:44 UTC (rev 270412) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) + +pkgname=dkms +pkgver=2.2.0.3+git151023 +pkgrel=11 +pkgdesc='Dynamic Kernel Modules System' +arch=('any') +url='http://linux.dell.com/dkms/' +license=('GPL2') +depends=('bash' 'kmod' 'gcc' 'make' 'patch') +makedepends=('git') +optdepends=('linux-headers: build modules against the Arch kernel' +'linux-lts-headers: build modules against the LTS kernel' +'linux-zen-headers: build modules against the ZEN kernel' +'linux-grsec-headers: build modules against the GRSEC kernel') +backup=('etc/dkms/framework.conf') +install=$pkgname.install +source=('git+git://linux.dell.com/dkms.git#commit=7b6e78f' +'02-no-kernel-hook.patch' +'hook.install' +'hook.remove' +'hook.sh') +md5sums=('SKIP' + '82d520c39c99c34977e48b313a189c6c' + 'e6eada07fc3a56a491e14dfeafec746f' + 'e5954138fe309c446a9efb24edf8b267' + 'f2a86ab70daba2e8623156f5221152a9') + +prepare() { + cd dkms + + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do +if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch $filename" + patch -p1 -N -i "$srcdir/$filename" +fi + done + + # /usr move + msg2 '/usr move patching' + for i in dkms{,_framework.conf,.bash-completion,.8,_common.postinst}; do +sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i" + done +} + +package() { + # alpm hook + install -D -m 644 hook.install "$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook" + install -D -m 644 hook.remove "$pkgdir/usr/share/libalpm/hooks/70-dkms-remove.hook" + install -D -m 755 hook.sh "$pkgdir/usr/lib/dkms/alpm-hook" + # upstream installer + cd dkms + make \ +DESTDIR="$pkgdir" \ +SBIN="$pkgdir/usr/bin" \ +BASHDIR="$pkgdir/usr/share/bash-completion/completions" \ +install +} + +# vim:set ts=2 sw=2 et: Copied: dkms/repos/community-any/dkms.install (from rev 270411, dkms/trunk/dkms.install) === --- community-any/dkms.install (rev 0) +++ community-any/dkms.install 2016-06-20 22:37:44 UTC (rev 270412) @@ -0,0 +1,13 @@ +#!/bin/bash + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if (( "$(vercmp $2 '2.2.0.3+git151023-2')" < 0 )); then +echo '===> dkms systemd startup service has been removed' +echo '===> modules building is now handled by alpm hooks at install time' +echo '===> startup modules loading must be done via modules-load
[arch-commits] Commit in dkms/repos (7 files)
Date: Thursday, February 25, 2016 @ 09:34:45 Author: seblu Revision: 260240 archrelease: copy trunk to extra-any Added: dkms/repos/extra-any/ dkms/repos/extra-any/02-no-kernel-hook.patch (from rev 260239, dkms/trunk/02-no-kernel-hook.patch) dkms/repos/extra-any/PKGBUILD (from rev 260239, dkms/trunk/PKGBUILD) dkms/repos/extra-any/dkms.install (from rev 260239, dkms/trunk/dkms.install) dkms/repos/extra-any/hook.install (from rev 260239, dkms/trunk/hook.install) dkms/repos/extra-any/hook.remove (from rev 260239, dkms/trunk/hook.remove) dkms/repos/extra-any/hook.sh (from rev 260239, dkms/trunk/hook.sh) -+ 02-no-kernel-hook.patch | 13 + PKGBUILD| 60 ++ dkms.install| 13 + hook.install| 13 + hook.remove | 13 + hook.sh | 60 ++ 6 files changed, 172 insertions(+) Copied: dkms/repos/extra-any/02-no-kernel-hook.patch (from rev 260239, dkms/trunk/02-no-kernel-hook.patch) === --- extra-any/02-no-kernel-hook.patch (rev 0) +++ extra-any/02-no-kernel-hook.patch 2016-02-25 08:34:45 UTC (rev 260240) @@ -0,0 +1,13 @@ +# Author: Sébastien Luttringer +--- a/Makefile 2011-12-07 19:23:51.0 +0100 b/Makefile 2013-05-13 00:48:19.62000 +0200 +@@ -46,9 +46,6 @@ + gzip -c -9 dkms.8 > $(MAN)/dkms.8.gz + chmod 0644 $(MAN)/dkms.8.gz + touch --reference=dkms.8 $(MAN)/dkms.8.gz +- mkdir -p -m 0755 $(KCONF)/prerm.d $(KCONF)/postinst.d +- install -p -m 0755 kernel_prerm.d_dkms $(KCONF)/prerm.d/dkms +- install -p -m 0755 kernel_postinst.d_dkms $(KCONF)/postinst.d/dkms + + DOCFILES=sample.spec sample.conf AUTHORS COPYING README.dkms sample-suse-9-mkkmp.spec sample-suse-10-mkkmp.spec + Copied: dkms/repos/extra-any/PKGBUILD (from rev 260239, dkms/trunk/PKGBUILD) === --- extra-any/PKGBUILD (rev 0) +++ extra-any/PKGBUILD 2016-02-25 08:34:45 UTC (rev 260240) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) + +pkgname=dkms +pkgver=2.2.0.3+git151023 +pkgrel=5 +pkgdesc='Dynamic Kernel Modules System' +arch=('any') +url='http://linux.dell.com/dkms/' +license=('GPL2') +depends=('bash' 'kmod' 'gcc' 'make' 'patch') +makedepends=('git') +optdepends=('linux-headers: build modules against Arch kernel' +'linux-lts-headers: build modules against LTS Arch kernel') +backup=('etc/dkms/framework.conf') +install=$pkgname.install +source=('git+git://linux.dell.com/dkms.git#commit=7b6e78f' +'02-no-kernel-hook.patch' +'hook.install' +'hook.remove' +'hook.sh') +md5sums=('SKIP' + '82d520c39c99c34977e48b313a189c6c' + '8fe2064106958bcfd386e83494c8959a' + '41fcecb1c2dfc59a4b648fddcd8b462f' + '7fdc44f8ecdd0ac0dc5e6bcf02901681') + +prepare() { + cd dkms + # patching + patches=("$srcdir"/*.patch) + if (( ${#patches[*]} > 0 )); then +for p in "${patches[@]}"; do + msg2 "Apply patch: ${p##*/}" + patch -p1 -i "$p" +done + fi + # /usr move + msg2 '/usr move patching' + for i in dkms{,_framework.conf,.bash-completion,.8,_common.postinst}; do +sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i" + done +} + +package() { + # alpm hook + install -D -m 644 hook.install "$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook" + install -D -m 644 hook.remove "$pkgdir/usr/share/libalpm/hooks/70-dkms-remove.hook" + install -D -m 755 hook.sh "$pkgdir/usr/lib/dkms/alpm-hook" + # upstream installer + cd dkms + make \ +DESTDIR="$pkgdir" \ +SBIN="$pkgdir/usr/bin" \ +BASHDIR="$pkgdir/usr/share/bash-completion/completions" \ +install +} + +# vim:set ts=2 sw=2 et: Copied: dkms/repos/extra-any/dkms.install (from rev 260239, dkms/trunk/dkms.install) === --- extra-any/dkms.install (rev 0) +++ extra-any/dkms.install 2016-02-25 08:34:45 UTC (rev 260240) @@ -0,0 +1,13 @@ +#!/bin/bash + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if (( "$(vercmp $2 '2.2.0.3+git151023-2')" < 0 )); then +echo '===> dkms systemd startup service has been removed' +echo '===> modules building is now handled by alpm hooks at install time' +echo '===> startup modules loading must be done via modules-load.d' + fi +} + +# vim:set ts=2 sw=2 ft=sh et: Copied: dkms/repos/extra-any/hook.install (from rev 260239, dkms/trunk/hook.install) === --- extra-any/hook.install (rev 0
[arch-commits] Commit in dkms/repos (7 files)
Date: Friday, October 23, 2015 @ 18:50:21 Author: seblu Revision: 144801 archrelease: copy trunk to community-testing-any Added: dkms/repos/community-testing-any/ dkms/repos/community-testing-any/02-no-kernel-hook.patch (from rev 144800, dkms/trunk/02-no-kernel-hook.patch) dkms/repos/community-testing-any/PKGBUILD (from rev 144800, dkms/trunk/PKGBUILD) dkms/repos/community-testing-any/dkms.default (from rev 144800, dkms/trunk/dkms.default) dkms/repos/community-testing-any/dkms.install (from rev 144800, dkms/trunk/dkms.install) dkms/repos/community-testing-any/dkms.service (from rev 144800, dkms/trunk/dkms.service) dkms/repos/community-testing-any/dkms.systemd (from rev 144800, dkms/trunk/dkms.systemd) -+ 02-no-kernel-hook.patch | 13 + PKGBUILD| 60 + dkms.default|9 ++ dkms.install| 13 + dkms.service| 11 dkms.systemd| 61 ++ 6 files changed, 167 insertions(+) Copied: dkms/repos/community-testing-any/02-no-kernel-hook.patch (from rev 144800, dkms/trunk/02-no-kernel-hook.patch) === --- community-testing-any/02-no-kernel-hook.patch (rev 0) +++ community-testing-any/02-no-kernel-hook.patch 2015-10-23 16:50:21 UTC (rev 144801) @@ -0,0 +1,13 @@ +# Author: Sébastien Luttringer +--- a/Makefile 2011-12-07 19:23:51.0 +0100 b/Makefile 2013-05-13 00:48:19.62000 +0200 +@@ -46,9 +46,6 @@ + gzip -c -9 dkms.8 > $(MAN)/dkms.8.gz + chmod 0644 $(MAN)/dkms.8.gz + touch --reference=dkms.8 $(MAN)/dkms.8.gz +- mkdir -p -m 0755 $(KCONF)/prerm.d $(KCONF)/postinst.d +- install -p -m 0755 kernel_prerm.d_dkms $(KCONF)/prerm.d/dkms +- install -p -m 0755 kernel_postinst.d_dkms $(KCONF)/postinst.d/dkms + + DOCFILES=sample.spec sample.conf AUTHORS COPYING README.dkms sample-suse-9-mkkmp.spec sample-suse-10-mkkmp.spec + Copied: dkms/repos/community-testing-any/PKGBUILD (from rev 144800, dkms/trunk/PKGBUILD) === --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2015-10-23 16:50:21 UTC (rev 144801) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) + +pkgname=dkms +pkgver=2.2.0.3+git151023 +pkgrel=1 +pkgdesc='Dynamic Kernel Modules System' +arch=('any') +url='http://linux.dell.com/dkms/' +license=('GPL2') +depends=('bash' 'kmod' 'gcc' 'make' 'patch') +makedepends=('git') +optdepends=('linux-headers: build modules against Arch kernel' +'linux-lts-headers: build modules against LTS Arch kernel') +backup=('etc/dkms/framework.conf' 'etc/default/dkms') +install=$pkgname.install +source=('git+git://linux.dell.com/dkms.git#commit=7b6e78f' +'02-no-kernel-hook.patch' +"$pkgname.default" +"$pkgname.service" +"$pkgname.systemd") +md5sums=('SKIP' + '82d520c39c99c34977e48b313a189c6c' + '33be2fbf1bcc1b3fb2f38d9e7eaa809d' + '02e9744e3fdc3d2f68e46966fb32e260' + '0158265dace30b6cdd06244e844b3e5f') + +prepare() { + cd dkms + # patching + patches=("$srcdir"/*.patch) + if (( ${#patches[*]} > 0 )); then +for p in "${patches[@]}"; do + msg2 "Apply patch: ${p##*/}" + patch -p1 -i "$p" +done + fi + # /usr move + msg2 '/usr move patching' + for i in dkms{,_framework.conf,.bash-completion,.8,_common.postinst}; do +sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i" + done +} + +package() { + # systemd + install -D -m 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service" + install -D -m 755 $pkgname.systemd "$pkgdir/usr/lib/systemd/scripts/$pkgname" + install -D -m 644 $pkgname.default "$pkgdir/etc/default/$pkgname" + # upstream installer + cd dkms + make \ +DESTDIR="$pkgdir" \ +SBIN="$pkgdir/usr/bin" \ +BASHDIR="$pkgdir/usr/share/bash-completion/completions" \ +install +} + +# vim:set ts=2 sw=2 et: Copied: dkms/repos/community-testing-any/dkms.default (from rev 144800, dkms/trunk/dkms.default) === --- community-testing-any/dkms.default (rev 0) +++ community-testing-any/dkms.default 2015-10-23 16:50:21 UTC (rev 144801) @@ -0,0 +1,9 @@ +# vim:set ts=2 sw=2 ft=sh noet: + +# With LOAD set to yes, modules listed as installed will be loaded with +# systemctl start dkms.service. Default is yes. +LOAD=yes + +# With UNLOAD set to yes, modules listed as installed will be unloaded with +# systemctl stop dkms.service. Default is no. +UNLOAD=no Copied: dkms/repos/community-testing-any/dkms.install (from rev 144800, dkms/t