mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 11:14:48 +02:00
The provided udev rules automatically start the service when a compatible device is detected, and attempt to stop it when all devices are unplugged. There are no reports of this working on Alpine; this automagically started service does not seem to work properly. Specifically, it won't allow interacting with iOS devices, which it the sole purpose of this package. Starting the service manually (or via OpenRC) does work. When this rule is present, the two instances seem to race each other, and the manually started usbmuxd only works _sometimes_. A manually started instance works every time with the udev rule is not present. Split the udev rule into a sub-package, allowing those who want to experiment using it to opt-in, while getting it out of the way for the typical use case. --- Footnote: I actually run usbmuxd building the latest master from source, since the latest stable release isn't compatible with devices from the last several years. Other tools pull usbmuxd as a dependency, and the rule interferes even in that case.
59 lines
1.4 KiB
Text
59 lines
1.4 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
maintainer="Krassy Boykinov <kboykinov@teamcentrixx.com>"
|
|
pkgname=usbmuxd
|
|
pkgver=1.1.1
|
|
pkgrel=9
|
|
pkgdesc="Socket Daemon to multiplex connections from iOS"
|
|
url="https://libimobiledevice.org"
|
|
arch="all"
|
|
makedepends="
|
|
autoconf
|
|
automake
|
|
libimobiledevice-dev
|
|
libplist-dev
|
|
libtool
|
|
libusb-dev
|
|
"
|
|
license="GPL-2.0-or-later"
|
|
install="$pkgname.post-install"
|
|
subpackages="$pkgname-doc $pkgname-udev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/libimobiledevice/usbmuxd/archive/$pkgver.tar.gz
|
|
001-confiure-no-udev.patch
|
|
libplist-2.3.0.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
autoreconf -fi
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--without-systemd
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
udev() {
|
|
install_if="eudev usbmuxd=$pkgver-r$pkgrel"
|
|
amove usr/lib/udev
|
|
}
|
|
|
|
sha512sums="
|
|
500e5f9a3500ad49bd8c195da71586db88964dd62dd716bb6a30827cc42bfdab38326b98204afdf606b1795d270d7f0261a59576558405de3540f6038a575856 usbmuxd-1.1.1.tar.gz
|
|
a8a4ed6877c691a44b53b2c554149c90034cbed8d48e0daf682aa7afbfb8f12cb05e4d99bd05dccc2e814f6001ccf19d61e9bff8c2da5e44ede386ea3565661f 001-confiure-no-udev.patch
|
|
03351f2cd20846f168e4ae5b4a44397bbca44994b3345d534de9d3c5b376d2e696ccd09e96d72b48ead068cd28f502e460443a736633c6bf7f5a603a7a0620d1 libplist-2.3.0.patch
|
|
"
|