-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from happyaron/master
Add debian packaging
- Loading branch information
Showing
11 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9abcef]", RUN+="/bin/systemctl restart --no-block ipad-charge.service" | ||
ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="12a[0-9ab]", RUN+="/bin/systemctl restart --no-block ipad-charge.service" | ||
ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0fca", ATTR{idProduct}=="8014", RUN+="/bin/systemctl restart --no-block ipad-charge.service" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ipad-charge (20180708) unstable; urgency=medium | ||
|
||
* Initial packaging | ||
|
||
-- Aron Xu <happyaron.xu@gmail.com> Tue, 03 Oct 2017 23:26:29 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Source: ipad-charge | ||
Section: utils | ||
Priority: optional | ||
Maintainer: Aron Xu <happyaron.xu@gmail.com> | ||
Build-Depends: debhelper (>= 10), libusb-1.0-0-dev | ||
Standards-Version: 4.1.2 | ||
Homepage: https://github.com/mkorenkov/ipad_charge | ||
|
||
Package: ipad-charge | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: Apple device charger utility | ||
USB charging control utility used to enable/disable charging of an Apple | ||
device connected to USB port. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: ipad_charge | ||
Source: https://github.com/mkorenkov/ipad_charge | ||
|
||
Files: * | ||
Copyright: 2011-2016, Max Korenkov <mkorenkov@gmail.com> and other contributors | ||
License: GPL-2 | ||
|
||
Files: debian/* | ||
Copyright: 2017, Aron Xu <happyaron.xu@gmail.com> | ||
License: GPL-2 | ||
|
||
License: GPL-2 | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License. | ||
. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the | ||
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, | ||
MA 02110-1301, USA. | ||
. | ||
On Debian systems, the full text of GPL-2 could be found at | ||
`/usr/share/common-licenses/GPL-2'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ipad_charge usr/bin/ | ||
debian/95-ipad_charge.rules lib/udev/rules.d/ | ||
debian/ipad-charge.service lib/systemd/system/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Apply ipad-charge to devices | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStartPre=-/bin/sleep 2 | ||
ExecStart=-/usr/bin/ipad_charge | ||
NonBlocking=true | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/make -f | ||
|
||
#export DH_VERBOSE = 1 | ||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
${CC} ${CPPFLAGS} ${CFLAGS} ipad_charge.c -lusb-1.0 -o ipad_charge | ||
|
||
override_dh_auto_install: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters