usbmuxd: fix tethering not working after iPhone restart
[feed/packages.git] / utils / usbmuxd / Makefile
1 #
2 # Copyright (C) 2012-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=usbmuxd
11 PKG_VERSION:=1.1.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
16 PKG_HASH:=c0ec9700172bf635ccb5bed98daae607d2925c2bc3597f25706ecd9dfbfd2d9e
17
18 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING.GPLv2
21 PKG_CPE_ID:=cpe:/a:libimobiledevice:usbmuxd
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/usbmuxd
29 SECTION:=utils
30 CATEGORY:=Utilities
31 SUBMENU:=libimobiledevice
32 TITLE:=USB multiplexing daemon
33 URL:=https://www.libimobiledevice.org/
34 DEPENDS:=+libusb-1.0 +libusbmuxd +libopenssl +libimobiledevice +usbutils
35 endef
36
37 define Package/usbmuxd/description
38 This daemon is in charge of multiplexing connections over USB to an iPhone or
39 iPod touch. To users, it means you can sync your music, contacts, photos, etc.
40 over USB. To developers, it means you can connect to any listening localhost
41 socket on the device. usbmuxd is not used for tethering data transfer, which
42 uses a dedicated USB interface as a virtual network device.
43 endef
44
45 define Package/usbmuxd/conffiles
46 /etc/lockdown
47 /etc/lockdown/SystemConfiguration.plist
48 endef
49
50 CONFIGURE_ARGS += --with-systemd
51
52 define Package/usbmuxd/install
53 $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/usbmuxd.hotplug $(1)/etc/hotplug.d/usb/40-usbmuxd
56 $(INSTALL_BIN) ./files/usbmuxd.init $(1)/etc/init.d/usbmuxd
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/usbmuxd $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,usbmuxd))