wok-stable diff usbmuxd/receipt @ rev 10951
get-virtualbox: fix VBoxVMM.so access
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 11:45:42 2011 +0200 (2011-09-06) |
parents | |
children | 53098f6c6272 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/usbmuxd/receipt Tue Sep 06 11:45:42 2011 +0200 1.3 @@ -0,0 +1,57 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="usbmuxd" 1.7 +VERSION="1.0.6" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="USB Multiplex Daemon" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +DEPENDS="libusb libplist" 1.12 +BUILD_DEPENDS="cmake libusb-dev libplist-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/" 1.15 +WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + patch -Np1 -i $stuff/usbmuxd-udevuser.patch 1.22 + sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt 1.23 + mkdir build 1.24 + cd build 1.25 + cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX="" 1.26 + make && make install 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr/lib $fs/etc 1.33 + cp -a $_pkg/etc/udev $fs/etc 1.34 + cp -a $_pkg/usr/bin $fs/usr 1.35 + cp -a $_pkg/usr/sbin $fs/usr 1.36 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.37 +} 1.38 + 1.39 +post_install() 1.40 +{ 1.41 + # adduser usbmuxd if needed 1.42 + if ! grep -q usbmuxd $1/etc/passwd; then 1.43 + echo -n "Adding user privoxy..." 1.44 + chroot $1/ adduser -s /bin/false -H -D -u 140 usbmuxd 1.45 + status 1.46 + fi 1.47 + 1.48 + if ! grep -q usbmuxd $1/etc/group; then 1.49 + echo -n "Adding group privoxy..." 1.50 + chroot $1/ addgroup -g 140 usbmuxd 1.51 + status 1.52 + fi 1.53 +} 1.54 + 1.55 +# Del user usbmuxd when pkg is removed. 1.56 +post_remove() 1.57 +{ 1.58 + chroot $1/ deluser usbmuxd 1.59 + chroot $1/ delgroup usbmuxd 1.60 +}