wok-6.x annotate usbmuxd/receipt @ rev 18280
Add tags to mate packages.
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sun Aug 09 17:29:42 2015 -0300 (2015-08-09) |
parents | 53098f6c6272 |
children | 9e01bc6321ea |
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 |
slaxemulator@10262 | 41 if ! grep -q usbmuxd $1/etc/passwd; then |
slaxemulator@10262 | 42 echo -n "Adding user privoxy..." |
slaxemulator@10262 | 43 chroot $1/ adduser -s /bin/false -H -D -u 140 usbmuxd |
slaxemulator@10262 | 44 status |
slaxemulator@10262 | 45 fi |
slaxemulator@10262 | 46 |
slaxemulator@10262 | 47 if ! grep -q usbmuxd $1/etc/group; then |
slaxemulator@10262 | 48 echo -n "Adding group privoxy..." |
slaxemulator@10262 | 49 chroot $1/ addgroup -g 140 usbmuxd |
slaxemulator@10262 | 50 status |
slaxemulator@10262 | 51 fi |
slaxemulator@10262 | 52 } |
slaxemulator@10262 | 53 |
slaxemulator@10262 | 54 # Del user usbmuxd when pkg is removed. |
slaxemulator@10262 | 55 post_remove() |
slaxemulator@10262 | 56 { |
slaxemulator@10262 | 57 chroot $1/ deluser usbmuxd |
slaxemulator@10262 | 58 chroot $1/ delgroup usbmuxd |
slaxemulator@10262 | 59 } |