aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-01-12 15:31:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-01-12 15:31:44 +0000
commitd113cbbc289e299d3809df9b7d1c4640c8540774 (patch)
tree1c2340fe879b828a4ef29f217fc426a6806ba783 /main
parentf840e3412d32bfe16144474d272204a27ad2da30 (diff)
downloadaports-d113cbbc289e299d3809df9b7d1c4640c8540774.tar.bz2
aports-d113cbbc289e299d3809df9b7d1c4640c8540774.tar.xz
main/devicemaster-linux-vanilla: new aport
Diffstat (limited to 'main')
-rw-r--r--main/devicemaster-linux-vanilla/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/main/devicemaster-linux-vanilla/APKBUILD b/main/devicemaster-linux-vanilla/APKBUILD
new file mode 100644
index 0000000000..45ad1f4b54
--- /dev/null
+++ b/main/devicemaster-linux-vanilla/APKBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+_flavor=vanilla
+_kpkg=linux-$_flavor
+_kver=4.14.13
+_kpkgrel=0
+_mypkgrel=0
+
+_kpkgver="$_kver-r$_kpkgrel"
+_abi_release=${_kver}
+_realname=devicemaster-linux
+
+pkgname=${_realname}-${_flavor}
+pkgver=$_kver
+# when changing _realver we *must* bump _mypkgrel
+_realver=7.26
+pkgrel=$(( $_kpkgrel + $_mypkgrel ))
+pkgdesc="NS-Link Device Drivers $_realver for linux-$_flavor"
+url="http://www.comtrol.com/resources/product-resources-white-papers/ns-link-device-drivers"
+arch="x86 x86_64 armhf"
+license="GPL"
+depends="linux-${_flavor}=${_kpkgver}"
+makedepends="linux-${_flavor}-dev=${_kpkgver} linux-headers"
+install=
+install_if="$_kpkg=$_kpkgver $_realname"
+subpackages=""
+provides="${_realname}-grsec=${pkgver}-r${pkgrel}"
+source="http://dev.alpinelinux.org/archive/devicemaster-linux/devicemaster-linux-$_realver.tar.gz
+ "
+
+builddir="$srcdir"/devicemaster-linux-$_realver
+prepare() {
+ # verify the kernel version
+ (if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then
+ _name=$pkgname
+ . ../../main/linux-${_flavor}/APKBUILD
+ pkgname=$_name
+ [ "$_kver" != "$pkgver" ] \
+ && die "please update _kver to $pkgver"
+ [ "$_kpkgrel" != "$pkgrel" ] \
+ && die "please update _kpkgrel to $pkgrel"
+ fi)
+ default_prepare
+}
+
+build() {
+ cd "$srcdir/$_realname-$_realver"
+ make -C /lib/modules/$_abi_release/build SUBDIRS="$PWD" modules \
+ V=1
+}
+
+package() {
+ cd "$srcdir/$_realname-$_realver"
+ mkdir -p "$pkgdir/lib/modules/${_abi_release}/misc/"
+ cp *.ko "$pkgdir/lib/modules/${_abi_release}/misc/"
+}
+
+sha512sums="5ae164645824018b99e8e8917d81f336fdef5745cb43fb93582c4e61f58a5c005202c19fcc8b13a4a24f4fc94287bf11f496b447db62bbf67b07da5793a9d8f7 devicemaster-linux-7.26.tar.gz"