From 83746913eaeb9cc21851ce3afcd0b15465c30cde Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:57:04 +0100 Subject: [PATCH] package created by autospec [release 0.0-1mamba;Tue May 15 2012] --- README.md | 2 + ipheth-0.0.git20120515-run-ideviceinfo.patch | 10 ++++ ipheth.spec | 49 ++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 ipheth-0.0.git20120515-run-ideviceinfo.patch create mode 100644 ipheth.spec diff --git a/README.md b/README.md index 79ec08b..7693d0c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ipheth +Pairing tool and udev rule to manage iPhone tethering through USB cables + diff --git a/ipheth-0.0.git20120515-run-ideviceinfo.patch b/ipheth-0.0.git20120515-run-ideviceinfo.patch new file mode 100644 index 0000000..6bc8927 --- /dev/null +++ b/ipheth-0.0.git20120515-run-ideviceinfo.patch @@ -0,0 +1,10 @@ +diff -Nru ipheth.orig/ipheth-pair/90-iphone-tether.rules ipheth/ipheth-pair/90-iphone-tether.rules +--- ipheth.orig/ipheth-pair/90-iphone-tether.rules 2012-05-15 14:33:54.000000000 +0200 ++++ ipheth/ipheth-pair/90-iphone-tether.rules 2012-05-15 14:54:17.558763977 +0200 +@@ -3,5 +3,6 @@ + + # Execute pairing program when appropriate + ACTION=="add", SUBSYSTEM=="net", ENV{ID_USB_DRIVER}=="ipheth", SYMLINK+="iphone", RUN+="ipheth-pair" ++ACTION=="add", SUBSYSTEM=="net", ENV{ID_USB_DRIVER}=="ipheth", RUN+="ideviceinfo" + + LABEL="ipheth_rules_end" diff --git a/ipheth.spec b/ipheth.spec new file mode 100644 index 0000000..7bdd101 --- /dev/null +++ b/ipheth.spec @@ -0,0 +1,49 @@ +Name: ipheth +Version: 0.0.git20120515 +Release: 1mamba +Summary: Pairing tool and udev rule to manage iPhone tethering through USB cables +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver +# Source got with: git clone git://github.com/dgiagio/ipheth.git +Source: ipheth-%{version}.tar.xz +Patch0: %{name}-0.0.git20120515-run-ideviceinfo.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libimobiledevice-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Pairing tool and udev rule to manage iPhone tethering through USB cables + +%debug_package + +%prep +%setup -q -n %{name} +%patch0 -p1 + +%build +cd ipheth-pair +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd ipheth-pair +install -D -m0755 ipheth-pair %{buildroot}/%{_lib}/udev/ipheth-pair +install -D -m0644 90-iphone-tether.rules %{buildroot}/%{_lib}/udev/rules.d/90-iphone-tether.rules + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +/%{_lib}/udev/rules.d/90-iphone-tether.rules +/%{_lib}/udev/ipheth-pair + +%changelog +* Tue May 15 2012 Silvan Calarco 0.0-1mamba +- package created by autospec