Forráskód Böngészése

usbmuxd: fix owner of the device node

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1253 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 14 éve
szülő
commit
0032b398e3
1 módosított fájl, 8 hozzáadás és 1 törlés
  1. 8 1
      u/usbmuxd/usbmuxd-vl.spec

+ 8 - 1
u/usbmuxd/usbmuxd-vl.spec

@@ -1,6 +1,6 @@
 Name:		usbmuxd
 Version:	1.0.4
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 Summary:	Daemon for communicating with Apple's iPod Touch and iPhone
 
 Group:		Applications/System
@@ -33,6 +33,10 @@ Files for development with %{name}.
 %prep
 %setup -q
 
+# Set the owner of the device node to be usbmuxd
+sed -i.owner 's/ATTR{idVendor}=="05ac"/OWNER="usbmuxd", ATTR{idVendor}=="05ac"/' udev/85-usbmuxd.rules.in
+sed -i.user 's/-U usbmux/-U usbmuxd/' udev/85-usbmuxd.rules.in
+
 %build
 export CMAKE_PREFIX_PATH=/usr
 %{cmake} .
@@ -74,6 +78,9 @@ exit 0
 %{_libdir}/pkgconfig/libusbmuxd.pc
 
 %changelog
+* Sun Jun 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-2
+- set the owner of the device node to be usbmuxd
+
 * Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
 - new upstream release