wok-next view usbmuxd/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | d2950281f122 |
children | 5ffe59e2de3a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="usbmuxd"
4 VERSION="1.0.7"
5 CATEGORY="misc"
6 SHORT_DESC="USB Multiplex Daemon"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2 GPL3 LGPL2.1"
9 WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="cmake libusb-dev libplist-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt
20 mkdir build
21 cd build
22 cmake \
23 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
24 -DLIB_SUFFIX="" \
25 .. &&
26 make &&
27 make install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 usbmuxd)
33 copy @std
34 DEPENDS="libusb libplist"
35 ;;
36 *-dev)
37 copy @dev
38 ;;
39 esac
40 }
42 # Add user usbmuxd if needed
43 post_install_usbmuxd() {
44 if ! grep -q usbmuxd "$1/etc/passwd"; then
45 echo -n "Adding user privoxy..."
46 chroot "$1/" adduser -s /bin/false -H -D -u 140 usbmuxd
47 status
48 fi
50 if ! grep -q usbmuxd "$1/etc/group"; then
51 echo -n "Adding group privoxy..."
52 chroot "$1/" addgroup -g 140 usbmuxd
53 status
54 fi
55 }
57 # Del user usbmuxd when pkg is removed
58 post_remove_usbmuxd() {
59 chroot "$1/" deluser usbmuxd
60 chroot "$1/" delgroup usbmuxd
61 }