wok-6.x annotate usbmuxd/receipt @ rev 23582

updated python-webtest (1.2.2 -> 2.0.34)
author Hans-G?nter Theisgen
date Tue Apr 07 13:58:56 2020 +0100 (2020-04-07)
parents 9e01bc6321ea
children 922f061231c2
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"
pascal@15363 8 LICENSE="GPL2 GPL3 LGPL2.1"
slaxemulator@10262 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@10262 10 WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
slaxemulator@10262 11 WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL"
slaxemulator@10262 12
pascal@15363 13 DEPENDS="libusb libplist"
pascal@15363 14 BUILD_DEPENDS="cmake libusb-dev libplist-dev"
pascal@15363 15
slaxemulator@10262 16 # Rules to configure and make the package.
slaxemulator@10262 17 compile_rules()
slaxemulator@10262 18 {
slaxemulator@10262 19 cd $src
slaxemulator@10262 20 patch -Np1 -i $stuff/usbmuxd-udevuser.patch
slaxemulator@10262 21 sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt
slaxemulator@10262 22 mkdir build
slaxemulator@10262 23 cd build
slaxemulator@10262 24 cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=""
slaxemulator@10262 25 make && make install
slaxemulator@10262 26 }
slaxemulator@10262 27
slaxemulator@10262 28 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@10262 29 genpkg_rules()
slaxemulator@10262 30 {
slaxemulator@10262 31 mkdir -p $fs/usr/lib $fs/etc
pascal@15363 32 cp -a $install/etc/udev $fs/etc
pascal@15363 33 cp -a $install/usr/bin $fs/usr
pascal@15363 34 cp -a $install/usr/sbin $fs/usr
pascal@15363 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@10262 36 }
slaxemulator@10262 37
slaxemulator@10262 38 post_install()
slaxemulator@10262 39 {
slaxemulator@10262 40 # adduser usbmuxd if needed
pascal@18730 41 if ! grep -q usbmuxd "$1/etc/passwd"; then
pascal@20319 42 echo
slaxemulator@10262 43 echo -n "Adding user privoxy..."
pascal@18730 44 chroot "$1/" adduser -s /bin/false -H -D -u 140 usbmuxd
slaxemulator@10262 45 status
slaxemulator@10262 46 fi
slaxemulator@10262 47
pascal@18730 48 if ! grep -q usbmuxd "$1/etc/group"; then
pascal@20319 49 echo
slaxemulator@10262 50 echo -n "Adding group privoxy..."
pascal@18730 51 chroot "$1/" addgroup -g 140 usbmuxd
slaxemulator@10262 52 status
slaxemulator@10262 53 fi
slaxemulator@10262 54 }
slaxemulator@10262 55
slaxemulator@10262 56 # Del user usbmuxd when pkg is removed.
slaxemulator@10262 57 post_remove()
slaxemulator@10262 58 {
pascal@18730 59 chroot "$1/" deluser usbmuxd
pascal@18730 60 chroot "$1/" delgroup usbmuxd
slaxemulator@10262 61 }