aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicemaster-linux/APKBUILD
blob: 1e0f728e36102d0e9775a42ce1f71646740499ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=devicemaster-linux
pkgver=7.06
pkgrel=3
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
7697b0c2a3691a8338fc41bb5b0d7ce3  nslink.initd"
sha256sums="6b11295952d1d74a6102a295a6ed5651ec040a0d8c30838cd23a1f3f7c95a4e7  devicemaster-linux-7.06.tar.gz
36b5a4eab09929805e146445cb704e6be6ba8d15704846330c4dd39229a1b80b  makefile.patch
426d6b404d9ac033c44ba46d87a53c76ceee7e69305fb7d946e6c97736697b1f  nslink.initd"
sha512sums="496144ee40464c96442ce655424db886cb5b4df1701e30cc8d059fc918e8916cb6c3b0b57cead2d0e9d50e4618ee13efa5f3630765545ea45e29f8080101800b  devicemaster-linux-7.06.tar.gz
aeafcaa2b15f1ebb4b5dc1eed87bd528cb5fa0be0d82177e9e70a85b7f74c5000af05d82f4927b25a8cbf2254e4fae7f89cb7d3b18bef2be45feb80c409c9ea4  makefile.patch
6e67a184ec73d5909d67b7d606d4789cad0e0b4134bb52bfd4019fd7f65b928c15c241dfe6f8a1c6e0854f4d509d7bb150beb9d41ae2a2315ebc040c240abc22  nslink.initd"