-
Notifications
You must be signed in to change notification settings - Fork 13
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 #32 from mithro/debian
Initial (crappy) Debian packaging
- Loading branch information
Showing
8 changed files
with
97 additions
and
5 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
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
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 @@ | ||
hdmi2usb-mode-switch (0.0.0) unstable; urgency=low | ||
|
||
* Initial (dirty) packaging. | ||
|
||
-- Tim 'mithro' Ansell <mithro@mithis.com> Mon, 09 Dec 2013 02:58:24 +0000 |
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 @@ | ||
9 |
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,43 @@ | ||
Source: hdmi2usb-mode-switch | ||
Section: admin | ||
Priority: optional | ||
Maintainer: Tim 'mithro' Ansell <mithro@mithis.com> | ||
Build-Depends: debhelper (>= 9), dh-python, build-essential, git-buildpackage, python3-setuptools | ||
Standards-Version: 3.9.5 | ||
X-Python3-Version: >= 3.2 | ||
Homepage: https://hdmi2usb.tv/ | ||
Vcs-Git: https://github.com/timvideos/HDMI2USB-mode-switch.git | ||
|
||
Package: hdmi2usb-mode-switch | ||
Priority: extra | ||
Architecture: all | ||
Recommends: openocd | ||
Depends: ${python:Depends}, ${misc:Depends}, fxload | ||
Description: HDMI2USB mode-switch tool | ||
${Description} | ||
. | ||
Tool for changing the operating mode of HDMI2USB devices. | ||
. | ||
${Requirement} | ||
|
||
Package: hdmi2usb-mode-switch-unbind-helper | ||
Architecture: linux-any | ||
Depends: ${misc:Depends} | ||
Suggests: hdmi2usb-mode-switch-udev | ||
Description: HDMI2USB mode-switch driver unbinding helper | ||
${Description} | ||
. | ||
Tool to allow non-root users to unbind drivers from USB devices. | ||
. | ||
${Requirement} | ||
|
||
Package: hdmi2usb-mode-switch-udev | ||
Architecture: all | ||
Suggests: hdmi2usb-mode-switch-unbind-helper | ||
Description: HDMI2USB udev rules | ||
${Description} | ||
. | ||
This package provides a udev rules files for HDMI2USB devices. | ||
. | ||
${Requirement} | ||
|
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,28 @@ | ||
#!/usr/bin/make -f | ||
|
||
# Uncomment this to turn on verbose mode. | ||
export DH_VERBOSE=1 | ||
export PYBUILD_NAME=hdmi2usb.modeswitch | ||
|
||
include /usr/share/dpkg/pkg-info.mk | ||
|
||
%: | ||
dh $@ --with python3 --buildsystem=pybuild | ||
|
||
override_dh_auto_install: | ||
python3 setup.py install --root=$(CURDIR)/debian/$(DEB_SOURCE) --install-layout=deb | ||
# udev rules | ||
mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)-udev/lib/udev/rules.d/ | ||
cp udev/*.rules $(CURDIR)/debian/$(DEB_SOURCE)-udev/lib/udev/rules.d/ | ||
install --mode=0755 --owner=root --group=root udev/hdmi2usb-human-path-helper.sh $(CURDIR)/debian/$(DEB_SOURCE)-udev/lib/udev/rules.d/ | ||
sed -i -e's-/etc/udev/rules.d/-/lib/udev/rules.d/-' $(CURDIR)/debian/$(DEB_SOURCE)-udev/lib/udev/rules.d/* | ||
# unbind-helper | ||
gcc -Wall -std=c99 unbind-helper.c -o debian/unbind-helper | ||
mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)-unbind-helper/usr/sbin/ | ||
install --mode=4755 --owner=root --group=root debian/unbind-helper $(CURDIR)/debian/$(DEB_SOURCE)-unbind-helper/usr/sbin/ | ||
rm debian/unbind-helper | ||
|
||
# Include the same text at the beginning of the extended description of | ||
# each package, and the same requirement at the end. | ||
override_dh_gencontrol: | ||
dh_gencontrol -- -Tdebian/substvars |
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 @@ | ||
Description=Tool for changing the operating mode of HDMI2USB devices. | ||
|
||
Requirement=OpenOCD and fxload |
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