modem/samsungipcd: upgrade to 0.2.2 (MR 3585)

This commit is contained in:
Sergey Lisov 2023-01-18 19:55:37 +03:00 committed by Oliver Smith
parent 4bbd01460d
commit 304b1764ed
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 17 additions and 13 deletions

View file

@ -1,2 +1,6 @@
KERNEL=="ttywc", ENV{ID_MM_DEVICE_PROCESS}="1"
KERNEL=="ttywc", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
KERNEL=="ttywc", ENV{ID_MM_PHYSDEV_UID}="samsungipcd"
KERNEL=="ttywd", ENV{ID_MM_DEVICE_PROCESS}="1"
KERNEL=="ttywd", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1"
KERNEL=="ttywd", ENV{ID_MM_PHYSDEV_UID}="samsungipcd"

View file

@ -1,19 +1,20 @@
# Maintainer: sleirsgoevy <sleirsgoevy@gmail.com>
pkgname=samsungipcd
pkgver=0.1
pkgrel=1
pkgver=0.2.2
pkgrel=0
pkgdesc="AT modem emulation using libsamsung-ipc"
url="https://gitlab.com/sleirsgoevy/samsungipcd"
arch="all"
license="GPL-2.0-or-later"
depends="libsamsung-ipc"
depends="libsamsung-ipc ppp networkmanager-ppp"
makedepends="libsamsung-ipc gcc make"
subpackages="$pkgname-openrc"
source="
samsungipcd-v$pkgver.tgz::$url/-/archive/v$pkgver/samsungipcd-v$pkgver.tar.gz
samsungipcd.post-install
samsungipcd.sh
90-ttywc.rules
"
install="$pkgname.post-install"
builddir="$srcdir/samsungipcd-v$pkgver"
options="!check"
@ -24,17 +25,13 @@ build() {
package() {
make PREFIX="$pkgdir/usr" install
}
openrc() {
install -Dm755 "$srcdir/samsungipcd.sh" "$subpkgdir/etc/init.d/samsungipcd"
install -Dm644 "$srcdir/90-ttywc.rules" "$subpkgdir/lib/udev/rules.d/90-ttywc.rules"
mkdir -p "$subpkgdir/etc/runlevels/sysinit"
ln -s /etc/init.d/samsungipcd "$subpkgdir/etc/runlevels/sysinit"
install -Dm755 "$srcdir/samsungipcd.sh" "$pkgdir/etc/init.d/samsungipcd"
install -Dm644 "$srcdir/90-ttywc.rules" "$pkgdir/lib/udev/rules.d/90-ttywc.rules"
}
sha512sums="
7a10e382fcd8fd454a94f650d08f30b3e4a7356952cdc68b85ee08bd1bd7d2e2ed1ea0ac4e144d998702fcfc94a5b13add7b9894ba0d05870d441521ebbe1242 samsungipcd-v0.1.tgz
4d80d103f0fb694619606478e5041a238a7840303cdd5fdd6a479af86cc50aab0947e242fb7d7ccedab619b0082f2dba23d87af8480f3fa44f32fb24426e6cf4 samsungipcd-v0.2.2.tgz
c1935d7421eb6d529fb827c438902fdcd47ced974b237c0d63403b8b70d8f53966c29585f4ebc89c66f261dfa97e893f2816a43cf69ed69ca5bb1b1798c22a1d samsungipcd.post-install
7bdc6cbc4a9add0f4a5a5d4584fbf4fc64cf4a1f0d93a85e97229eba47bbe66a8e0bd8958b4606141a0189422e13af252d3c0301f61069dc75a64e0a3b59d959 samsungipcd.sh
580cb6ea86e81f85e73259d1738c2d2376f3c215e5cdb6691df39a17fb665931738b35ce4af0f7d983e795a9ea03d9ff05109302d04726f3482cb31f0e229661 90-ttywc.rules
2c93b98260a8b89d25bfc6bf554dc66f198846f35ed839069212aea2204b9cc92710ea7aa5c77003bd6952085018af1083640052094a115ba67257f9745f80bf 90-ttywc.rules
"

View file

@ -0,0 +1,3 @@
#!/bin/sh
rc-update add samsungipcd sysinit