-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Package: dektec-dkms | ||
Version: {{VERSION}} | ||
Architecture: all | ||
Maintainer: DekTec Digital Video B.V. <[email protected]> | ||
Section: free/kernel | ||
Priority: optional | ||
Depends: dkms | ||
Description: Source code and DKMS setup for the Dektec device drivers. | ||
This package installs the source code and DKMS setup for the kernel modules | ||
of the Dektec device drivers. Each time the kernel is upgraded, the Dektec | ||
modules are automatically recompiled. The provided drivers are Dta, DtaNw, Dtu. | ||
. | ||
Dektec is a manufacturer of PC add-on cards, USB devices, IP converters and | ||
software for the professional digital-television market. Their products are | ||
used for test and measurement and to build broadcast infrastructure. | ||
. | ||
This is an independent packaging of the Dektec original drivers. |
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,18 @@ | ||
#!/bin/bash | ||
# QtlMovie post-installation script on Ubuntu and Debian systems. | ||
|
||
if [[ "$1" = "configure" ]]; then | ||
# Fix file permissions and ownership. | ||
chown -R root:root /usr/src/dektec-{{VERSION}} /etc/udev/rules.d/51-dta.rules /etc/udev/rules.d/51-dtu.rules /usr/share/doc/dektec-dkms | ||
find /usr/src/dektec-{{VERSION}} -type f -print0 | xargs -0 chmod 644 | ||
find /usr/src/dektec-{{VERSION}} -type d -print0 | xargs -0 chmod 755 | ||
chmod 755 /usr/share/doc/dektec-dkms | ||
chmod 644 /etc/udev/rules.d/51-dta.rules /etc/udev/rules.d/51-dtu.rules /usr/share/doc/dektec-dkms/* | ||
|
||
# Build the initial version of the driver. | ||
[[ $(/usr/sbin/dkms status | grep dektec | grep "{{VERSION}}" | wc -l) -eq 0 ]] && /usr/sbin/dkms add -m dektec -v "{{VERSION}}" | ||
/usr/sbin/dkms build -m dektec -v "{{VERSION}}" | ||
/usr/sbin/dkms install -m dektec -v "{{VERSION}}" | ||
fi | ||
|
||
exit 0 |
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,8 @@ | ||
#!/bin/bash | ||
# Dektec DKMS pre-uninstallation script on Ubuntu and Debian systems. | ||
|
||
if [[ "$1" = "remove" || "$1" = "deconfigure" ]]; then | ||
[[ $(/usr/sbin/dkms status | grep dektec | grep "{{VERSION}}" | wc -l) -gt 0 ]] && /usr/sbin/dkms remove -m dektec -v "{{VERSION}}" --all | ||
fi | ||
|
||
exit 0 |