aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicemaster-linux/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-10 11:29:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-10 11:29:25 +0000
commit609d7acd796c05a8458d898f11f3991d32d099ec (patch)
tree4478f1fde8386d87e442f67c0cfa6d3e2879ff67 /main/devicemaster-linux/APKBUILD
parent6d6d11d6dadd52c8f4337fa3adaefff4f91b7183 (diff)
downloadaports-609d7acd796c05a8458d898f11f3991d32d099ec.tar.bz2
aports-609d7acd796c05a8458d898f11f3991d32d099ec.tar.xz
main/devicemaster-linux*: move from testing
Diffstat (limited to 'main/devicemaster-linux/APKBUILD')
-rw-r--r--main/devicemaster-linux/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/main/devicemaster-linux/APKBUILD b/main/devicemaster-linux/APKBUILD
new file mode 100644
index 0000000000..d4a1ffc892
--- /dev/null
+++ b/main/devicemaster-linux/APKBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=devicemaster-linux
+pkgver=7.06
+pkgrel=2
+pkgdesc="Userspace tools for NS-Link Device Drivers"
+url="http://www.comtrol.com/resources/product-resources-white-papers/ns-link-device-drivers"
+arch="all"
+license="GPL"
+depends=""
+makedepends="linux-headers"
+install=
+subpackages="$pkgname-doc"
+source="ftp://ftp.comtrol.com/dev_mstr/rts/drivers/linux/devicemaster-linux-$pkgver.tar.gz
+ makefile.patch
+ nslink.initd
+ "
+_builddir="$srcdir"/devicemaster-linux-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch|*.diff)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make nslinkd nslinkadmin nslinkrelease nslinktool || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -d \
+ "$pkgdir"/etc/init.d \
+ "$pkgdir"/sbin \
+ "$pkgdir"/usr/share/man/man5 \
+ "$pkgdir"/usr/share/man/man8 \
+ || reutrn 1
+ install -m700 nslinkadmin nslinktool nslinkrelease nslinkd \
+ "$pkgdir"/sbin/ || return 1
+ install nslink.conf "$pkgdir"/etc/ || return 1
+ install -m755 "$srcdir"/nslink.initd "$pkgdir"/etc/init.d/nslink
+
+ install -m644 *.8 "$pkgdir"/usr/share/man/man8 || return 1
+ install -m644 *.5 "$pkgdir"/usr/share/man/man5 || return 1
+}
+
+md5sums="deded30023c8135c9beb06696e8c578f devicemaster-linux-7.06.tar.gz
+5be3c1860d3377f792a05cd15ae2c88e makefile.patch
+64634a815c270604033c5ec072aed8be nslink.initd"
+sha256sums="6b11295952d1d74a6102a295a6ed5651ec040a0d8c30838cd23a1f3f7c95a4e7 devicemaster-linux-7.06.tar.gz
+36b5a4eab09929805e146445cb704e6be6ba8d15704846330c4dd39229a1b80b makefile.patch
+8da3614cff29acb9691ef6f49f79c40f6356c75f03c21d98a60eba2a11a5fb21 nslink.initd"
+sha512sums="496144ee40464c96442ce655424db886cb5b4df1701e30cc8d059fc918e8916cb6c3b0b57cead2d0e9d50e4618ee13efa5f3630765545ea45e29f8080101800b devicemaster-linux-7.06.tar.gz
+aeafcaa2b15f1ebb4b5dc1eed87bd528cb5fa0be0d82177e9e70a85b7f74c5000af05d82f4927b25a8cbf2254e4fae7f89cb7d3b18bef2be45feb80c409c9ea4 makefile.patch
+1634eeae3269a38003deb46564e222b86fec7635b8fb3a282bc48c2d34766d27a778a651577ce1c34bb33376c2b2624a5b5ca0b3d974293e0a84c2e7c5ad3c06 nslink.initd"