wok-current annotate usbmuxd/receipt @ rev 14198
move to undigest: xorg-xf86-video-sis xorg-xf86-video-savage xorg-xf86-video-r128 xorg-xf86-video-openchrome xorg-xf86-video-mga xorg-xf86-video-mach64
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 13 10:16:45 2013 +0100 (2013-03-13) |
parents | d22c0f18913c |
children | 2a21689b0af7 |
rev | line source |
---|---|
slaxemulator@10262 | 1 # SliTaz package receipt. |
slaxemulator@10262 | 2 |
slaxemulator@10262 | 3 PACKAGE="usbmuxd" |
slaxemulator@11734 | 4 VERSION="1.0.7" |
slaxemulator@10262 | 5 CATEGORY="misc" |
slaxemulator@10262 | 6 SHORT_DESC="USB Multiplex Daemon" |
slaxemulator@10262 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@10262 | 8 DEPENDS="libusb libplist" |
slaxemulator@10262 | 9 BUILD_DEPENDS="cmake libusb-dev libplist-dev" |
slaxemulator@10262 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@10262 | 11 WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/" |
slaxemulator@10262 | 12 WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL" |
slaxemulator@10262 | 13 |
slaxemulator@10262 | 14 # Rules to configure and make the package. |
slaxemulator@10262 | 15 compile_rules() |
slaxemulator@10262 | 16 { |
slaxemulator@10262 | 17 cd $src |
slaxemulator@10262 | 18 patch -Np1 -i $stuff/usbmuxd-udevuser.patch |
slaxemulator@10262 | 19 sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt |
slaxemulator@10262 | 20 mkdir build |
slaxemulator@10262 | 21 cd build |
slaxemulator@10262 | 22 cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX="" |
slaxemulator@10262 | 23 make && make install |
slaxemulator@10262 | 24 } |
slaxemulator@10262 | 25 |
slaxemulator@10262 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10262 | 27 genpkg_rules() |
slaxemulator@10262 | 28 { |
slaxemulator@10262 | 29 mkdir -p $fs/usr/lib $fs/etc |
slaxemulator@10262 | 30 cp -a $_pkg/etc/udev $fs/etc |
slaxemulator@10262 | 31 cp -a $_pkg/usr/bin $fs/usr |
slaxemulator@10262 | 32 cp -a $_pkg/usr/sbin $fs/usr |
slaxemulator@10262 | 33 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
slaxemulator@10262 | 34 } |
slaxemulator@10262 | 35 |
slaxemulator@10262 | 36 post_install() |
slaxemulator@10262 | 37 { |
slaxemulator@10262 | 38 # adduser usbmuxd if needed |
slaxemulator@10262 | 39 if ! grep -q usbmuxd $1/etc/passwd; then |
slaxemulator@10262 | 40 echo -n "Adding user privoxy..." |
slaxemulator@10262 | 41 chroot $1/ adduser -s /bin/false -H -D -u 140 usbmuxd |
slaxemulator@10262 | 42 status |
slaxemulator@10262 | 43 fi |
slaxemulator@10262 | 44 |
slaxemulator@10262 | 45 if ! grep -q usbmuxd $1/etc/group; then |
slaxemulator@10262 | 46 echo -n "Adding group privoxy..." |
slaxemulator@10262 | 47 chroot $1/ addgroup -g 140 usbmuxd |
slaxemulator@10262 | 48 status |
slaxemulator@10262 | 49 fi |
slaxemulator@10262 | 50 } |
slaxemulator@10262 | 51 |
slaxemulator@10262 | 52 # Del user usbmuxd when pkg is removed. |
slaxemulator@10262 | 53 post_remove() |
slaxemulator@10262 | 54 { |
slaxemulator@10262 | 55 chroot $1/ deluser usbmuxd |
slaxemulator@10262 | 56 chroot $1/ delgroup usbmuxd |
slaxemulator@10262 | 57 } |