diff options
author | sibel <lesibel at free dot fr> | 2010-07-15 13:57:18 +0200 |
---|---|---|
committer | sibel <lesibel at free dot fr> | 2010-07-15 13:57:18 +0200 |
commit | 8c5934261cb3ce65250f9494fd2095f8a8fb0853 (patch) | |
tree | 55e3d8fcbb97d90c59117ff3fb43535598ada6c5 /extra/usbmuxd | |
parent | 45c08b32032919bf50464464fc349cdd95a24572 (diff) | |
download | nutyx-extra-8c5934261cb3ce65250f9494fd2095f8a8fb0853.tar.gz nutyx-extra-8c5934261cb3ce65250f9494fd2095f8a8fb0853.tar.bz2 nutyx-extra-8c5934261cb3ce65250f9494fd2095f8a8fb0853.tar.xz nutyx-extra-8c5934261cb3ce65250f9494fd2095f8a8fb0853.zip |
ajout de usbmuxd#1.0.4-1
Diffstat (limited to 'extra/usbmuxd')
-rw-r--r-- | extra/usbmuxd/.footprint | 18 | ||||
-rw-r--r-- | extra/usbmuxd/.md5sum | 2 | ||||
-rw-r--r-- | extra/usbmuxd/Pkgfile | 22 | ||||
-rw-r--r-- | extra/usbmuxd/usbmuxd-udevuser.patch | 11 | ||||
-rw-r--r-- | extra/usbmuxd/usbmuxd.install | 21 |
5 files changed, 74 insertions, 0 deletions
diff --git a/extra/usbmuxd/.footprint b/extra/usbmuxd/.footprint new file mode 100644 index 000000000..70d1f5a0a --- /dev/null +++ b/extra/usbmuxd/.footprint @@ -0,0 +1,18 @@ +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/udev/ +drwxr-xr-x root/root lib/udev/rules.d/ +-rw-r--r-- root/root lib/udev/rules.d/85-usbmuxd.rules +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/iproxy +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/usbmuxd-proto.h +-rw-r--r-- root/root usr/include/usbmuxd.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libusbmuxd.so -> libusbmuxd.so.1 +lrwxrwxrwx root/root usr/lib/libusbmuxd.so.1 -> libusbmuxd.so.1.0.4 +-rwxr-xr-x root/root usr/lib/libusbmuxd.so.1.0.4 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libusbmuxd.pc +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/usbmuxd diff --git a/extra/usbmuxd/.md5sum b/extra/usbmuxd/.md5sum new file mode 100644 index 000000000..fa44e3b21 --- /dev/null +++ b/extra/usbmuxd/.md5sum @@ -0,0 +1,2 @@ +450c72273dd1dcc1d0fcfc7138122d54 usbmuxd-1.0.4.tar.bz2 +dbb0ab80ab70d571fc2113ee72592d5f usbmuxd-udevuser.patch diff --git a/extra/usbmuxd/Pkgfile b/extra/usbmuxd/Pkgfile new file mode 100644 index 000000000..49756ad0c --- /dev/null +++ b/extra/usbmuxd/Pkgfile @@ -0,0 +1,22 @@ +# Description: Deamon multiplex USB +# URL: http://marcansoft.com/blog/iphonelinux/usbmuxd/ +# Maintainer: NuTyX core team +# Packager: lesibel at free dot fr +# Depends on: libusb1 + +name=usbmuxd +version=1.0.4 +release=1 +source=(http://marcansoft.com/uploads/$name/$name-$version.tar.bz2 + usbmuxd-udevuser.patch) + +build() { + cd $name-$version + patch -Np1 -i $SRC/usbmuxd-udevuser.patch + mkdir build + cd build + cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX="" + make + make DESTDIR=$PKG install +} + diff --git a/extra/usbmuxd/usbmuxd-udevuser.patch b/extra/usbmuxd/usbmuxd-udevuser.patch new file mode 100644 index 000000000..abcec3250 --- /dev/null +++ b/extra/usbmuxd/usbmuxd-udevuser.patch @@ -0,0 +1,11 @@ +--- usbmuxd-1.0.4/udev/85-usbmuxd.rules.in.orig 2010-05-11 15:36:08.000000000 +0100 ++++ usbmuxd-1.0.4/udev/85-usbmuxd.rules.in 2010-05-11 21:48:23.361733289 +0100 +@@ -1,7 +1,7 @@ + # usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd) + + # Forces iPhone 1.0, 3G, 3GS, iPodTouch 1/2 and iPad to USB configuration 3 and run usbmuxd +-ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9a]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux" ++ACTION=="add", SUBSYSTEM=="usb", OWNER="usbmux", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9a]", ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux" + + # Exit usbmuxd when the last device is removed + ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[0-9a]/*", ENV{INTERFACE}=="255/*", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x" diff --git a/extra/usbmuxd/usbmuxd.install b/extra/usbmuxd/usbmuxd.install new file mode 100644 index 000000000..5b46db012 --- /dev/null +++ b/extra/usbmuxd/usbmuxd.install @@ -0,0 +1,21 @@ +post_install() { + getent group usbmux >/dev/null 2>&1 || usr/sbin/groupadd -g 140 usbmux + getent passwd usbmux >/dev/null 2>&1 || usr/sbin/useradd -c 'usbmux user' -u 140 -g usbmux -d / -s /sbin/nologin usbmux + + usr/bin/passwd -l usbmux &>/dev/null +} + +pre_upgrade () { + if [ $2 == "1.0.4-1" ]; then + pre_remove $1 + fi +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + getent passwd usbmux >/dev/null 2>&1 && userdel usbmux + getent group usbmux >/dev/null 2>&1 && groupdel usbmux +} |