mirror of
https://github.com/Fred78290/nct6687d.git
synced 2025-07-23 07:03:04 +02:00
Generate deb package with dkms
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -14,3 +14,8 @@ nct6687.mod.o
|
||||
nct6687.o
|
||||
.vscode/
|
||||
5.1*/
|
||||
|
||||
debian/nct6687d-dkms*
|
||||
debian/.debhelper
|
||||
debian/debhelper-build-stamp
|
||||
debian/files
|
27
README.md
27
README.md
@@ -23,6 +23,33 @@ Clone this repository and go to source directory, just run make install. During
|
||||
make install
|
||||
```
|
||||
|
||||
## Deb package
|
||||
|
||||
1. Prerequisites
|
||||
|
||||
```shell
|
||||
apt install -y debhelper dkms
|
||||
```
|
||||
|
||||
2. Clone this repository
|
||||
|
||||
```shell
|
||||
git clone https://github.com/Fred78290/nct6687d
|
||||
cd nct6687d
|
||||
```
|
||||
|
||||
3. Build package
|
||||
|
||||
```shell
|
||||
dpkg-buildpackage -b -rfakeroot -us -uc
|
||||
```
|
||||
|
||||
4. Install package
|
||||
|
||||
```shell
|
||||
dpkg -i ../nct6687d-dkms_*.deb
|
||||
```
|
||||
|
||||
## Sensors
|
||||
|
||||
By running the command sensors, you got this output
|
||||
|
35
debian/changelog
vendored
Normal file
35
debian/changelog
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
nct6687d-dkms (20220215) unstable; urgency=low
|
||||
|
||||
* Merge pull request #21 from Fred78290/nct6687d
|
||||
* Update README
|
||||
* Add suport for NCT6687D with ID 0xD592 found on MSI B460M bazooka
|
||||
* FIX: operator syntax & make simpler (rm -rf/mkdir -p are always silencious)
|
||||
* .gitignore: target directory per kernel version
|
||||
* Merge pull request #20 from discover02/patch-1
|
||||
* Bug(s) fixed
|
||||
* Merge pull request #19 from discover02/patch-1
|
||||
* New Makefile
|
||||
* Merge pull request #16 from vesrah/main
|
||||
* Fix "No rule to make target 'arch/x86/tools/relocs_32.c'" error on make install
|
||||
* Update README
|
||||
* Merge pull request #10 from msonowal/patch-1
|
||||
* added newbie instructions for loading extension on boot
|
||||
* Update CHANGELOG
|
||||
* FEAT: Add debug trace
|
||||
* FIX: Issue #2
|
||||
* FIX: Remove DEBUG trace
|
||||
* Update README.md
|
||||
* Update README
|
||||
* Update README
|
||||
* FEAT: Add voltage support and min max values for temp & fan
|
||||
* Add Change log
|
||||
* Update README
|
||||
* FEAT: Display fans label
|
||||
* Typo, rename in to voltage
|
||||
* Typo
|
||||
* Remove unused
|
||||
* Add sources
|
||||
* Initial commit
|
||||
|
||||
-- Frederic BOLTZ <frederic.boltz@gmail.com> Tue, 15 Feb 2022 23:21:48 +0100
|
||||
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
8
|
11
debian/control
vendored
Normal file
11
debian/control
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
Source: nct6687d-dkms
|
||||
Section: kernel
|
||||
Priority: optional
|
||||
Maintainer: Frederic BOLTZ <frederic.boltz@gmail.com>
|
||||
Build-Depends: debhelper, dkms
|
||||
Homepage: https://github.com/Fred78290/nct6687d/
|
||||
|
||||
Package: nct6687d-dkms
|
||||
Architecture: all
|
||||
Depends: dkms, ${misc:Depends}
|
||||
Description: Nuvoton NCT6687-R driver (DKMS version)
|
8
debian/dkms
vendored
Normal file
8
debian/dkms
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
PACKAGE_NAME="nct6687d"
|
||||
PACKAGE_VERSION="#MODULE_VERSION#"
|
||||
MAKE="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build"
|
||||
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
|
||||
BUILT_MODULE_NAME[0]="nct6687"
|
||||
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon/"
|
||||
AUTOINSTALL="yes"
|
||||
REMAKE_INITRD=no
|
23
debian/rules
vendored
Normal file
23
debian/rules
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
%:
|
||||
dh $@ --parallel --with dkms
|
||||
|
||||
override_dh_install:
|
||||
find . -maxdepth 1 -type f -exec dh_install {} usr/src/nct6687d-$(DEB_VERSION) \;
|
||||
|
||||
override_dh_dkms:
|
||||
dh_dkms -V $(DEB_VERSION)
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
find debian/nct6687d-dkms/usr/src -type f -exec chmod -x {} \;
|
||||
|
||||
# Nothing to configure, build or auto-install
|
||||
override_dh_auto_configure:
|
||||
override_dh_auto_build:
|
||||
override_dh_auto_test:
|
||||
override_dh_auto_install:
|
||||
override_dh_auto_clean:
|
Reference in New Issue
Block a user