diff options
author | SebRmv | 2018-05-16 10:53:24 +0200 |
---|---|---|
committer | SebRmv | 2018-05-16 11:07:34 +0200 |
commit | eb3191096d43cb362fcf951d6a0a07c5f4189ecd (patch) | |
tree | e7aeff05f0dbd746e7b9ba46b50ae6cdc0504972 | |
download | aur-eb3191096d43cb362fcf951d6a0a07c5f4189ecd.tar.gz |
DKMS version
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | dkms.conf | 7 |
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0acbe5464fbd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ia32_aout-dkms + pkgdesc = ia32_aout kernel module, for running an a.out binary format (DKMS) + pkgver = 4.0 + pkgrel = 1 + url = https://www.kernel.org + arch = x86_64 + license = GPLv3 + depends = dkms + provides = ia32_aout + conflicts = ia32_aout + options = !strip + source = https://raw.githubusercontent.com/torvalds/linux/v{4.0}/arch/x86/ia32/ia32_aout.c + source = Makefile + source = dkms.conf + sha1sums = c635114660009c57014eb2a38e50e3abbb5f2e5f + sha1sums = 615a88c88babaaa0a254a402bd359d52406c1cdb + sha1sums = 42244650cd11033033f49a7909e5825584afd0cb + +pkgname = ia32_aout-dkms + diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..a816299372bf --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +obj-m := ia32_aout.o +KDIR := /usr/lib/modules/$(KVERSION)/build +PWD := $(shell pwd) + +all: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..47573518bad7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: SebRmv +_pkgbase=ia32_aout +pkgname=ia32_aout-dkms +pkgver=4.0 +pkgrel=1 +pkgdesc='ia32_aout kernel module, for running an a.out binary format (DKMS)' +arch=('x86_64') +depends=('dkms') +url="https://www.kernel.org" +conflicts=("${_pkgbase}") +provides=("${_pkgbase}") +license=("GPLv3") +options=('!strip') +source=("https://raw.githubusercontent.com/torvalds/linux/v{$pkgver}/arch/x86/ia32/ia32_aout.c" + 'Makefile' + 'dkms.conf') +# updpkgsums +sha1sums=('c635114660009c57014eb2a38e50e3abbb5f2e5f' + '615a88c88babaaa0a254a402bd359d52406c1cdb' + '42244650cd11033033f49a7909e5825584afd0cb') + +package() { + # Copy dkms.conf + install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf + + # Copy sources (including Makefile) + cp -a ia32_aout.c Makefile dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/ + + # Set name and version + sed -e "s/@_PKGBASE@/${_pkgbase}/" \ + -e "s/@PKGVER@/${pkgver}/" \ + -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf +} diff --git a/dkms.conf b/dkms.conf new file mode 100644 index 000000000000..f655524834be --- /dev/null +++ b/dkms.conf @@ -0,0 +1,7 @@ +PACKAGE_NAME="@_PKGBASE@" +PACKAGE_VERSION="@PKGVER@" +MAKE[0]="make KVERSION=$kernelver" +CLEAN="make clean" +BUILT_MODULE_NAME[0]="@_PKGBASE@" +DEST_MODULE_LOCATION[0]="/kernel/drivers/misc" +AUTOINSTALL="yes" |