summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebRmv2016-07-17 12:04:53 +0200
committerSebRmv2016-07-17 12:04:53 +0200
commitfa619136559adce4692ee060bd6b4ed2b311b249 (patch)
tree13ac83797de48b55b6eaa3c632cdd744da68eda9
parentb7d20c360b7ac8a9e293c40698f31cae5b7e6af7 (diff)
downloadaur-binfmt_aout.tar.gz
Fix installation of package: avoid to break everything...
-rw-r--r--.SRCINFO4
-rw-r--r--Makefile7
-rw-r--r--PKGBUILD14
3 files changed, 12 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5a9afa037c7..c994690a480 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = binfmt_aout
pkgdesc = binfmt_aout kernel module, for running an a.out binary format
pkgver = 4.0
- pkgrel = 1
+ pkgrel = 2
url = https://www.kernel.org
install = binfmt_aout.install
arch = i686
@@ -13,7 +13,7 @@ pkgbase = binfmt_aout
source = https://raw.githubusercontent.com/torvalds/linux/v{4.0}/fs/binfmt_aout.c
source = Makefile
sha1sums = 461efd1c09b0b2420c1544ba5ec94952ecef4255
- sha1sums = 24969cd0bfe0eba16b15a714839891615001842f
+ sha1sums = bb9af2aea2fe37ec2e54820762b862d02668bed6
pkgname = binfmt_aout
diff --git a/Makefile b/Makefile
index 8e17a99c514..09090b298de 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,6 @@
obj-m := binfmt_aout.o
-KDIR := /lib/modules/$(shell uname -r)/build
+KDIR := /usr/lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
-default:
+all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
-
-install:
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
diff --git a/PKGBUILD b/PKGBUILD
index 3e5cb484184..c6cd9cd26e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: SebRmv
pkgname=binfmt_aout
pkgver=4.0
-pkgrel=1
+pkgrel=2
pkgdesc='binfmt_aout kernel module, for running an a.out binary format'
arch=('i686')
makedepends=('linux-headers' 'linux-api-headers' 'gzip')
@@ -11,17 +11,19 @@ options=('!strip')
source=("https://raw.githubusercontent.com/torvalds/linux/v{$pkgver}/fs/binfmt_aout.c"
"Makefile")
sha1sums=('461efd1c09b0b2420c1544ba5ec94952ecef4255'
- '24969cd0bfe0eba16b15a714839891615001842f')
+ 'bb9af2aea2fe37ec2e54820762b862d02668bed6')
install=binfmt_aout.install
+_kernel_version_i686=4.6
+
build(){
-cd "$srcdir"
+ cd "$srcdir"
make
}
package() {
cd "$srcdir"
- mkdir -p "${pkgdir}"/lib/modules
- make install INSTALL_MOD_PATH="${pkgdir}"
-# gzip "${pkgdir}/lib/modules/`uname -r`/extra/binfmt_aout.ko"
+ mkdir -p "${pkgdir}"/usr/lib/modules/extramodules-"${_kernel_version_i686}"-ARCH
+ install "${pkgname}".ko "${pkgdir}"/usr/lib/modules/extramodules-"${_kernel_version_i686}"-ARCH
+ gzip "${pkgdir}"/usr/lib/modules/extramodules-"${_kernel_version_i686}"-ARCH/"${pkgname}".ko
}