aboutsummaryrefslogblamecommitdiffstats
path: root/main/devicemaster-linux/APKBUILD
blob: e07c489b042294a488595b671b7a3bed256be357 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   

           




                                                                                            
                           

                          
                                                                           


                      









                                                                                           














                                                             
                                                                     









                                              


                                                                    




                                                                        

                                                                         
                                               

                                                                                                            
                                                                               

                                                                                                                                                                            
                                                                                                                                               
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=devicemaster-linux
pkgver=7.11
pkgrel=0
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="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
	makefile.patch
	nslink.initd
	"
srcurl="ftp://ftp.comtrol.com/dev_mstr/rts/drivers/linux/devicemaster-linux-$pkgver.tar.gz"
disturl="dev.alpinelinux.org:/archive/$pkgname/"

snapshot() {
	cd "$_builddir"
	curl -ss -o "$pkgname-$pkgver.tar.gz" "$srcurl"
	rsync --progress -La $pkgname-${pkgver}.tar.gz \
		$disturl || return 1
}

_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="0e79cf4afe5503087454d052f33847a9  devicemaster-linux-7.11.tar.gz
5abe5c53c437a90d2c50ac0a854b5f4c  makefile.patch
7697b0c2a3691a8338fc41bb5b0d7ce3  nslink.initd"
sha256sums="9901966cf6a696f07a7d3f79c8fc5d6dbc5340fd36ea785cf27577b1fcadfc04  devicemaster-linux-7.11.tar.gz
29da78b6805090e9dab062402f6cc815be8aacbd4baa3d3e1527568818866f8a  makefile.patch
426d6b404d9ac033c44ba46d87a53c76ceee7e69305fb7d946e6c97736697b1f  nslink.initd"
sha512sums="dade8220f25c32e38520fd9267f18f2af0bcc14e84b422f77d6cdf7a23d4f14512182176039686ec898d6e4c390751318bc0c7aa7f74e4aa9a94d411b3c774d8  devicemaster-linux-7.11.tar.gz
adadb7b6502b0b6fd2d72a1a453dcea2ff8800d08258b80c5df751bd9fc8de5e88760560c2ab1e911e994999db58882555b5ab6e72f466ed26a47b327f6a668a  makefile.patch
6e67a184ec73d5909d67b7d606d4789cad0e0b4134bb52bfd4019fd7f65b928c15c241dfe6f8a1c6e0854f4d509d7bb150beb9d41ae2a2315ebc040c240abc22  nslink.initd"