Date: Sunday, July 29, 2012 @ 19:16:20 Author: tomegun Revision: 164299
db-move: moved usbmuxd from [staging] to [testing] (i686, x86_64) Added: usbmuxd/repos/testing-i686/ usbmuxd/repos/testing-i686/85-usbmuxd.rules (from rev 164293, usbmuxd/repos/staging-i686/85-usbmuxd.rules) usbmuxd/repos/testing-i686/PKGBUILD (from rev 164293, usbmuxd/repos/staging-i686/PKGBUILD) usbmuxd/repos/testing-i686/usbmuxd.install (from rev 164293, usbmuxd/repos/staging-i686/usbmuxd.install) usbmuxd/repos/testing-i686/usbmuxd.service (from rev 164293, usbmuxd/repos/staging-i686/usbmuxd.service) usbmuxd/repos/testing-x86_64/ usbmuxd/repos/testing-x86_64/85-usbmuxd.rules (from rev 164293, usbmuxd/repos/staging-x86_64/85-usbmuxd.rules) usbmuxd/repos/testing-x86_64/PKGBUILD (from rev 164293, usbmuxd/repos/staging-x86_64/PKGBUILD) usbmuxd/repos/testing-x86_64/usbmuxd.install (from rev 164293, usbmuxd/repos/staging-x86_64/usbmuxd.install) usbmuxd/repos/testing-x86_64/usbmuxd.service (from rev 164293, usbmuxd/repos/staging-x86_64/usbmuxd.service) Deleted: usbmuxd/repos/staging-i686/ usbmuxd/repos/staging-x86_64/ ---------------------------------+ testing-i686/85-usbmuxd.rules | 9 ++++++++ testing-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++ testing-i686/usbmuxd.install | 19 +++++++++++++++++ testing-i686/usbmuxd.service | 5 ++++ testing-x86_64/85-usbmuxd.rules | 9 ++++++++ testing-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++ testing-x86_64/usbmuxd.install | 19 +++++++++++++++++ testing-x86_64/usbmuxd.service | 5 ++++ 8 files changed, 150 insertions(+) Copied: usbmuxd/repos/testing-i686/85-usbmuxd.rules (from rev 164293, usbmuxd/repos/staging-i686/85-usbmuxd.rules) =================================================================== --- testing-i686/85-usbmuxd.rules (rev 0) +++ testing-i686/85-usbmuxd.rules 2012-07-29 23:16:20 UTC (rev 164299) @@ -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/testing-i686/PKGBUILD (from rev 164293, usbmuxd/repos/staging-i686/PKGBUILD) =================================================================== --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2012-07-29 23:16:20 UTC (rev 164299) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer : Ionut Biru <ib...@archlinux.org> +# Contributor: Gabriel Martinez < reitaka at gmail dot com > + +pkgname=usbmuxd +pkgver=1.0.8 +pkgrel=1 +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" + # 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/testing-i686/usbmuxd.install (from rev 164293, usbmuxd/repos/staging-i686/usbmuxd.install) =================================================================== --- testing-i686/usbmuxd.install (rev 0) +++ testing-i686/usbmuxd.install 2012-07-29 23:16:20 UTC (rev 164299) @@ -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/testing-i686/usbmuxd.service (from rev 164293, usbmuxd/repos/staging-i686/usbmuxd.service) =================================================================== --- testing-i686/usbmuxd.service (rev 0) +++ testing-i686/usbmuxd.service 2012-07-29 23:16:20 UTC (rev 164299) @@ -0,0 +1,5 @@ +[Unit] +Description=iOS USB Muxer + +[Service] +ExecStart=/usr/sbin/usbmuxd -u -f -U usbmux Copied: usbmuxd/repos/testing-x86_64/85-usbmuxd.rules (from rev 164293, usbmuxd/repos/staging-x86_64/85-usbmuxd.rules) =================================================================== --- testing-x86_64/85-usbmuxd.rules (rev 0) +++ testing-x86_64/85-usbmuxd.rules 2012-07-29 23:16:20 UTC (rev 164299) @@ -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/testing-x86_64/PKGBUILD (from rev 164293, usbmuxd/repos/staging-x86_64/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2012-07-29 23:16:20 UTC (rev 164299) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer : Ionut Biru <ib...@archlinux.org> +# Contributor: Gabriel Martinez < reitaka at gmail dot com > + +pkgname=usbmuxd +pkgver=1.0.8 +pkgrel=1 +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" + # 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/testing-x86_64/usbmuxd.install (from rev 164293, usbmuxd/repos/staging-x86_64/usbmuxd.install) =================================================================== --- testing-x86_64/usbmuxd.install (rev 0) +++ testing-x86_64/usbmuxd.install 2012-07-29 23:16:20 UTC (rev 164299) @@ -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/testing-x86_64/usbmuxd.service (from rev 164293, usbmuxd/repos/staging-x86_64/usbmuxd.service) =================================================================== --- testing-x86_64/usbmuxd.service (rev 0) +++ testing-x86_64/usbmuxd.service 2012-07-29 23:16:20 UTC (rev 164299) @@ -0,0 +1,5 @@ +[Unit] +Description=iOS USB Muxer + +[Service] +ExecStart=/usr/sbin/usbmuxd -u -f -U usbmux