diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-10-09 08:20:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-10-09 08:28:10 +0000 |
commit | c653c42eb37ded50d1c09658b1bd559e61f79785 (patch) | |
tree | 57799d5823aae8e01c2dadaaa81be5fb3cc0e196 /main/devicemaster-linux/APKBUILD | |
parent | 652818211d804c15f1045fb81577966276e6986a (diff) | |
download | aports-c653c42eb37ded50d1c09658b1bd559e61f79785.tar.bz2 aports-c653c42eb37ded50d1c09658b1bd559e61f79785.tar.xz |
main/devicemaster-linux: upgrade to 7.34 and modernize
Diffstat (limited to 'main/devicemaster-linux/APKBUILD')
-rw-r--r-- | main/devicemaster-linux/APKBUILD | 49 |
1 files changed, 16 insertions, 33 deletions
diff --git a/main/devicemaster-linux/APKBUILD b/main/devicemaster-linux/APKBUILD index 5cf4424ac6..925586b4cb 100644 --- a/main/devicemaster-linux/APKBUILD +++ b/main/devicemaster-linux/APKBUILD @@ -1,63 +1,46 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=devicemaster-linux -pkgver=7.15 +pkgver=7.34 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="https://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz +source="https://dev.alpinelinux.org/archive/devicemaster-linux/devicemaster-linux-$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/" +_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 + mkdir -p "$srcdir"/tmp + cd "$srcdir"/tmp + curl -ss -o "$pkgname-$pkgver.tar.gz" "$_srcurl" + rsync --progress -La $pkgname-$pkgver.tar.gz \ + $_disturl } build() { - cd "$_builddir" - make nslinkd nslinkadmin nslinkrelease nslinktool || return 1 + make nslinkd nslinkadmin nslinkrelease nslinktool } package() { - cd "$_builddir" install -d \ "$pkgdir"/etc/init.d \ "$pkgdir"/sbin \ "$pkgdir"/usr/share/man/man5 \ - "$pkgdir"/usr/share/man/man8 \ - || reutrn 1 + "$pkgdir"/usr/share/man/man8 install -m700 nslinkadmin nslinktool nslinkrelease nslinkd \ - "$pkgdir"/sbin/ || return 1 - install nslink.conf "$pkgdir"/etc/ || return 1 + "$pkgdir"/sbin/ + install nslink.conf "$pkgdir"/etc/ 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 + install -m644 *.8 "$pkgdir"/usr/share/man/man8 + install -m644 *.5 "$pkgdir"/usr/share/man/man5 } -sha512sums="794f680613db6462f1452e32f17ab7e30e637d0a77d4c7c5cf43650776f5ec0d3c5144ebdf92fc5bf0f2f0fba456c2710d2cd2280981a208ff936b472388c3ba devicemaster-linux-7.15.tar.gz +sha512sums="a7af54fde5812256b4a04f13d41c064dcb7f702cac18e4929d1a9669c49294eb62fc6e55e7b873bae63a795c3148dbca74ab39f337e26962bdee021f5fb2119c devicemaster-linux-7.34.tar.gz adadb7b6502b0b6fd2d72a1a453dcea2ff8800d08258b80c5df751bd9fc8de5e88760560c2ab1e911e994999db58882555b5ab6e72f466ed26a47b327f6a668a makefile.patch 6e67a184ec73d5909d67b7d606d4789cad0e0b4134bb52bfd4019fd7f65b928c15c241dfe6f8a1c6e0854f4d509d7bb150beb9d41ae2a2315ebc040c240abc22 nslink.initd" |