[arch-commits] Commit in usbmuxd/repos (10 files)

Tom Gundersen tomegun at nymeria.archlinux.org
Thu May 30 08:12:37 EDT 2013


    Date: Thursday, May 30, 2013 @ 14:12:37
  Author: tomegun
Revision: 186647

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  usbmuxd/repos/staging-i686/
  usbmuxd/repos/staging-i686/85-usbmuxd.rules
    (from rev 186646, usbmuxd/trunk/85-usbmuxd.rules)
  usbmuxd/repos/staging-i686/PKGBUILD
    (from rev 186646, usbmuxd/trunk/PKGBUILD)
  usbmuxd/repos/staging-i686/usbmuxd.install
    (from rev 186646, usbmuxd/trunk/usbmuxd.install)
  usbmuxd/repos/staging-i686/usbmuxd.service
    (from rev 186646, usbmuxd/trunk/usbmuxd.service)
  usbmuxd/repos/staging-x86_64/
  usbmuxd/repos/staging-x86_64/85-usbmuxd.rules
    (from rev 186646, usbmuxd/trunk/85-usbmuxd.rules)
  usbmuxd/repos/staging-x86_64/PKGBUILD
    (from rev 186646, usbmuxd/trunk/PKGBUILD)
  usbmuxd/repos/staging-x86_64/usbmuxd.install
    (from rev 186646, usbmuxd/trunk/usbmuxd.install)
  usbmuxd/repos/staging-x86_64/usbmuxd.service
    (from rev 186646, usbmuxd/trunk/usbmuxd.service)

---------------------------------+
 staging-i686/85-usbmuxd.rules   |    9 +++++++
 staging-i686/PKGBUILD           |   45 ++++++++++++++++++++++++++++++++++++++
 staging-i686/usbmuxd.install    |   19 ++++++++++++++++
 staging-i686/usbmuxd.service    |    5 ++++
 staging-x86_64/85-usbmuxd.rules |    9 +++++++
 staging-x86_64/PKGBUILD         |   45 ++++++++++++++++++++++++++++++++++++++
 staging-x86_64/usbmuxd.install  |   19 ++++++++++++++++
 staging-x86_64/usbmuxd.service  |    5 ++++
 8 files changed, 156 insertions(+)

Copied: usbmuxd/repos/staging-i686/85-usbmuxd.rules (from rev 186646, usbmuxd/trunk/85-usbmuxd.rules)
===================================================================
--- staging-i686/85-usbmuxd.rules	                        (rev 0)
+++ staging-i686/85-usbmuxd.rules	2013-05-30 12:12:37 UTC (rev 186647)
@@ -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 186646, usbmuxd/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2013-05-30 12:12:37 UTC (rev 186647)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Gabriel Martinez < reitaka at gmail dot com >
+
+pkgname=usbmuxd
+pkgver=1.0.8
+pkgrel=2
+pkgdesc="USB Multiplex Daemon"
+url="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
+arch=('i686' 'x86_64')
+license=('GPL2' 'GPL3' 'LGPL2.1')
+depends=('libusb' 'libplist')
+makedepends=('cmake')
+install=usbmuxd.install
+source=("http://cgit.sukimashita.com/${pkgname}.git/snapshot/${pkgname}-${pkgver}.tar.bz2"
+	'usbmuxd.service'
+	'85-usbmuxd.rules')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  echo "${pkgver}" > version.tag
+  mkdir build
+  cd build
+  cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=""
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+
+  # fix udev dir being hardcoded
+  mv "${pkgdir}/lib/udev" "${pkgdir}/usr/lib/"
+  rmdir "${pkgdir}/lib"
+  # usrmove
+  mv "${pkgdir}/usr/sbin/"* "${pkgdir}/usr/bin/"
+  rmdir "${pkgdir}/usr/sbin"
+  # install systemd service file
+  install -D -m644 ${srcdir}/usbmuxd.service ${pkgdir}/usr/lib/systemd/system/usbmuxd.service
+  # use udev rule that works with systemd
+  install -m644 ${srcdir}/85-usbmuxd.rules ${pkgdir}/usr/lib/udev/rules.d/ 
+}
+md5sums=('87fd27773a84e97ac6e2dc28b08d682e'
+         'dae0660f972510a6483992b5b81e1b5a'
+         'dc4b2893651149eccbf7b2c8467cd288')

Copied: usbmuxd/repos/staging-i686/usbmuxd.install (from rev 186646, usbmuxd/trunk/usbmuxd.install)
===================================================================
--- staging-i686/usbmuxd.install	                        (rev 0)
+++ staging-i686/usbmuxd.install	2013-05-30 12:12:37 UTC (rev 186647)
@@ -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 186646, usbmuxd/trunk/usbmuxd.service)
===================================================================
--- staging-i686/usbmuxd.service	                        (rev 0)
+++ staging-i686/usbmuxd.service	2013-05-30 12:12:37 UTC (rev 186647)
@@ -0,0 +1,5 @@
+[Unit]
+Description=iOS USB Muxer
+
+[Service]
+ExecStart=/usr/sbin/usbmuxd -u -f -U usbmux

Copied: usbmuxd/repos/staging-x86_64/85-usbmuxd.rules (from rev 186646, usbmuxd/trunk/85-usbmuxd.rules)
===================================================================
--- staging-x86_64/85-usbmuxd.rules	                        (rev 0)
+++ staging-x86_64/85-usbmuxd.rules	2013-05-30 12:12:37 UTC (rev 186647)
@@ -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 186646, usbmuxd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2013-05-30 12:12:37 UTC (rev 186647)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Gabriel Martinez < reitaka at gmail dot com >
+
+pkgname=usbmuxd
+pkgver=1.0.8
+pkgrel=2
+pkgdesc="USB Multiplex Daemon"
+url="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
+arch=('i686' 'x86_64')
+license=('GPL2' 'GPL3' 'LGPL2.1')
+depends=('libusb' 'libplist')
+makedepends=('cmake')
+install=usbmuxd.install
+source=("http://cgit.sukimashita.com/${pkgname}.git/snapshot/${pkgname}-${pkgver}.tar.bz2"
+	'usbmuxd.service'
+	'85-usbmuxd.rules')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  echo "${pkgver}" > version.tag
+  mkdir build
+  cd build
+  cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=""
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+
+  # fix udev dir being hardcoded
+  mv "${pkgdir}/lib/udev" "${pkgdir}/usr/lib/"
+  rmdir "${pkgdir}/lib"
+  # usrmove
+  mv "${pkgdir}/usr/sbin/"* "${pkgdir}/usr/bin/"
+  rmdir "${pkgdir}/usr/sbin"
+  # install systemd service file
+  install -D -m644 ${srcdir}/usbmuxd.service ${pkgdir}/usr/lib/systemd/system/usbmuxd.service
+  # use udev rule that works with systemd
+  install -m644 ${srcdir}/85-usbmuxd.rules ${pkgdir}/usr/lib/udev/rules.d/ 
+}
+md5sums=('87fd27773a84e97ac6e2dc28b08d682e'
+         'dae0660f972510a6483992b5b81e1b5a'
+         'dc4b2893651149eccbf7b2c8467cd288')

Copied: usbmuxd/repos/staging-x86_64/usbmuxd.install (from rev 186646, usbmuxd/trunk/usbmuxd.install)
===================================================================
--- staging-x86_64/usbmuxd.install	                        (rev 0)
+++ staging-x86_64/usbmuxd.install	2013-05-30 12:12:37 UTC (rev 186647)
@@ -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 186646, usbmuxd/trunk/usbmuxd.service)
===================================================================
--- staging-x86_64/usbmuxd.service	                        (rev 0)
+++ staging-x86_64/usbmuxd.service	2013-05-30 12:12:37 UTC (rev 186647)
@@ -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