wok view usbmuxd/receipt @ rev 12951

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