[arch-commits] Commit in usbmuxd/repos (10 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sat Nov 15 15:12:19 UTC 2014
Date: Saturday, November 15, 2014 @ 16:12:19
Author: bpiotrowski
Revision: 226297
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
usbmuxd/repos/staging-i686/
usbmuxd/repos/staging-i686/39-usbmuxd.rules
(from rev 226296, usbmuxd/trunk/39-usbmuxd.rules)
usbmuxd/repos/staging-i686/PKGBUILD
(from rev 226296, usbmuxd/trunk/PKGBUILD)
usbmuxd/repos/staging-i686/usbmuxd.install
(from rev 226296, usbmuxd/trunk/usbmuxd.install)
usbmuxd/repos/staging-i686/usbmuxd.service
(from rev 226296, usbmuxd/trunk/usbmuxd.service)
usbmuxd/repos/staging-x86_64/
usbmuxd/repos/staging-x86_64/39-usbmuxd.rules
(from rev 226296, usbmuxd/trunk/39-usbmuxd.rules)
usbmuxd/repos/staging-x86_64/PKGBUILD
(from rev 226296, usbmuxd/trunk/PKGBUILD)
usbmuxd/repos/staging-x86_64/usbmuxd.install
(from rev 226296, usbmuxd/trunk/usbmuxd.install)
usbmuxd/repos/staging-x86_64/usbmuxd.service
(from rev 226296, usbmuxd/trunk/usbmuxd.service)
---------------------------------+
staging-i686/39-usbmuxd.rules | 9 ++++++++
staging-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++
staging-i686/usbmuxd.install | 19 +++++++++++++++++
staging-i686/usbmuxd.service | 5 ++++
staging-x86_64/39-usbmuxd.rules | 9 ++++++++
staging-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++
staging-x86_64/usbmuxd.install | 19 +++++++++++++++++
staging-x86_64/usbmuxd.service | 5 ++++
8 files changed, 150 insertions(+)
Copied: usbmuxd/repos/staging-i686/39-usbmuxd.rules (from rev 226296, usbmuxd/trunk/39-usbmuxd.rules)
===================================================================
--- staging-i686/39-usbmuxd.rules (rev 0)
+++ staging-i686/39-usbmuxd.rules 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,9 @@
+# usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd)
+
+# Forces iDevices to the last USB configuration and runs usbmuxd
+TEST=="/sys/fs/cgroup/systemd", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux", TAG+="systemd", ENV{SYSTEMD_WANTS}="usbmuxd.service", GOTO="usbmuxd_systemd_end"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux", RUN+="/usr/sbin/usbmuxd -u -U usbmux"
+LABEL="usbmuxd_systemd_end"
+
+# Exit usbmuxd when the last device is removed
+ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="/usr/sbin/usbmuxd -x"
Copied: usbmuxd/repos/staging-i686/PKGBUILD (from rev 226296, usbmuxd/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Gabriel Martinez < reitaka at gmail dot com >
+
+pkgname=usbmuxd
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="USB Multiplex Daemon"
+url="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
+arch=('i686' 'x86_64')
+license=('GPL2' 'GPL3')
+depends=('libimobiledevice')
+makedepends=('git')
+install=usbmuxd.install
+source=("http://www.libimobiledevice.org/downloads/usbmuxd-$pkgver.tar.bz2"
+ 'usbmuxd.service'
+ '39-usbmuxd.rules')
+md5sums=('34361c59320cb0b1f9ebcd2798ee1b39'
+ 'dae0660f972510a6483992b5b81e1b5a'
+ 'dc4b2893651149eccbf7b2c8467cd288')
+
+prepare() {
+ cd usbmuxd-$pkgver
+ sed -i -e 's|udevrulesdir = /lib/udev/rules.d|udevrulesdir = /usr/lib/udev/rules.d|' Makefile.am
+ autoreconf -fi
+}
+
+build() {
+ cd usbmuxd-$pkgver
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd usbmuxd-$pkgver
+ make DESTDIR="${pkgdir}" install
+
+ # install systemd service file
+ install -D -m644 ../usbmuxd.service "${pkgdir}/usr/lib/systemd/system/usbmuxd.service"
+ # use udev rule that works with systemd
+ install -m644 ../39-usbmuxd.rules "${pkgdir}/usr/lib/udev/rules.d/"
+}
Copied: usbmuxd/repos/staging-i686/usbmuxd.install (from rev 226296, usbmuxd/trunk/usbmuxd.install)
===================================================================
--- staging-i686/usbmuxd.install (rev 0)
+++ staging-i686/usbmuxd.install 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,19 @@
+post_install() {
+ groupadd -g 140 usbmux &>/dev/null
+ useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+ passwd -l usbmux &>/dev/null
+}
+
+post_upgrade() {
+ getent group usbmux >/dev/null 2>&1 || groupadd -g 140 usbmux &>/dev/null
+ getent passwd usbmux >/dev/null 2>&1 || useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+}
+
+post_remove() {
+ if getent passwd usbmux >/dev/null 2>&1; then
+ userdel usbmux
+ fi
+ if getent group usbmux >/dev/null 2>&1; then
+ groupdel usbmux
+ fi
+}
Copied: usbmuxd/repos/staging-i686/usbmuxd.service (from rev 226296, usbmuxd/trunk/usbmuxd.service)
===================================================================
--- staging-i686/usbmuxd.service (rev 0)
+++ staging-i686/usbmuxd.service 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,5 @@
+[Unit]
+Description=iOS USB Muxer
+
+[Service]
+ExecStart=/usr/sbin/usbmuxd -u -f -U usbmux
Copied: usbmuxd/repos/staging-x86_64/39-usbmuxd.rules (from rev 226296, usbmuxd/trunk/39-usbmuxd.rules)
===================================================================
--- staging-x86_64/39-usbmuxd.rules (rev 0)
+++ staging-x86_64/39-usbmuxd.rules 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,9 @@
+# usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd)
+
+# Forces iDevices to the last USB configuration and runs usbmuxd
+TEST=="/sys/fs/cgroup/systemd", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux", TAG+="systemd", ENV{SYSTEMD_WANTS}="usbmuxd.service", GOTO="usbmuxd_systemd_end"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", OWNER="usbmux", RUN+="/usr/sbin/usbmuxd -u -U usbmux"
+LABEL="usbmuxd_systemd_end"
+
+# Exit usbmuxd when the last device is removed
+ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", RUN+="/usr/sbin/usbmuxd -x"
Copied: usbmuxd/repos/staging-x86_64/PKGBUILD (from rev 226296, usbmuxd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Gabriel Martinez < reitaka at gmail dot com >
+
+pkgname=usbmuxd
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="USB Multiplex Daemon"
+url="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
+arch=('i686' 'x86_64')
+license=('GPL2' 'GPL3')
+depends=('libimobiledevice')
+makedepends=('git')
+install=usbmuxd.install
+source=("http://www.libimobiledevice.org/downloads/usbmuxd-$pkgver.tar.bz2"
+ 'usbmuxd.service'
+ '39-usbmuxd.rules')
+md5sums=('34361c59320cb0b1f9ebcd2798ee1b39'
+ 'dae0660f972510a6483992b5b81e1b5a'
+ 'dc4b2893651149eccbf7b2c8467cd288')
+
+prepare() {
+ cd usbmuxd-$pkgver
+ sed -i -e 's|udevrulesdir = /lib/udev/rules.d|udevrulesdir = /usr/lib/udev/rules.d|' Makefile.am
+ autoreconf -fi
+}
+
+build() {
+ cd usbmuxd-$pkgver
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd usbmuxd-$pkgver
+ make DESTDIR="${pkgdir}" install
+
+ # install systemd service file
+ install -D -m644 ../usbmuxd.service "${pkgdir}/usr/lib/systemd/system/usbmuxd.service"
+ # use udev rule that works with systemd
+ install -m644 ../39-usbmuxd.rules "${pkgdir}/usr/lib/udev/rules.d/"
+}
Copied: usbmuxd/repos/staging-x86_64/usbmuxd.install (from rev 226296, usbmuxd/trunk/usbmuxd.install)
===================================================================
--- staging-x86_64/usbmuxd.install (rev 0)
+++ staging-x86_64/usbmuxd.install 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,19 @@
+post_install() {
+ groupadd -g 140 usbmux &>/dev/null
+ useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+ passwd -l usbmux &>/dev/null
+}
+
+post_upgrade() {
+ getent group usbmux >/dev/null 2>&1 || groupadd -g 140 usbmux &>/dev/null
+ getent passwd usbmux >/dev/null 2>&1 || useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux &>/dev/null
+}
+
+post_remove() {
+ if getent passwd usbmux >/dev/null 2>&1; then
+ userdel usbmux
+ fi
+ if getent group usbmux >/dev/null 2>&1; then
+ groupdel usbmux
+ fi
+}
Copied: usbmuxd/repos/staging-x86_64/usbmuxd.service (from rev 226296, usbmuxd/trunk/usbmuxd.service)
===================================================================
--- staging-x86_64/usbmuxd.service (rev 0)
+++ staging-x86_64/usbmuxd.service 2014-11-15 15:12:19 UTC (rev 226297)
@@ -0,0 +1,5 @@
+[Unit]
+Description=iOS USB Muxer
+
+[Service]
+ExecStart=/usr/sbin/usbmuxd -u -f -U usbmux
More information about the arch-commits
mailing list