Initial commit

This commit is contained in:
crt0mega 2020-01-28 20:19:07 +01:00
commit bfe43bb54e
15 changed files with 145 additions and 0 deletions

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
debian/debhelper*
debian/.debhelper
debian/*.log
debian/*.debhelper
debian/*.substvars
debian/debhelper-build-stamp
debian/asus-wmi-sensors-dkms
debian/asus-wmi-sensors-dkms*
debian/files
.pc

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "src"]
path = src
url = https://github.com/electrified/asus-wmi-sensors.git

1
LICENSE Symbolic link
View File

@ -0,0 +1 @@
src/LICENSE

1
README.md Symbolic link
View File

@ -0,0 +1 @@
src/README.md

6
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,6 @@
asus-wmi-sensors-dkms for Debian
-------------------------------
<possible notes regarding this package - if none, delete this file>
-- crt0mega <crt0mega@c-r-t.tk> Tue, 28 Jan 2020 16:44:49 +0100

10
debian/README.source vendored Normal file
View File

@ -0,0 +1,10 @@
asus-wmi-sensors-dkms for Debian
-------------------------------
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
-- crt0mega <crt0mega@c-r-t.tk> Tue, 28 Jan 2020 16:44:49 +0100

11
debian/changelog vendored Normal file
View File

@ -0,0 +1,11 @@
asus-wmi-sensors-dkms (20200128-1+crt1) UNRELEASED; urgency=medium
* First package upload
-- crt0mega <crt0mega@curie.c-r-t.tk> Tue, 28 Jan 2020 20:13:35 +0100
asus-wmi-sensors-dkms (20200128-1) unstable; urgency=medium
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- crt0mega <crt0mega@c-r-t.tk> Tue, 28 Jan 2020 16:44:49 +0100

15
debian/control vendored Normal file
View File

@ -0,0 +1,15 @@
Source: asus-wmi-sensors-dkms
Section: unknown
Priority: optional
Maintainer: crt0mega <crt0mega@c-r-t.tk>
Build-Depends: debhelper-compat (= 12)
Standards-Version: 4.4.1
Homepage: <insert the upstream URL, if relevant>
#Vcs-Browser: https://salsa.debian.org/debian/asus-wmi-sensors-dkms
#Vcs-Git: https://salsa.debian.org/debian/asus-wmi-sensors-dkms.git
Package: asus-wmi-sensors-dkms
Architecture: all
Depends: ${misc:Depends}, dkms
Description: DKMS module for Linux ASUS WMI Sensor driver.
Provides a Linux kernel module "asus_wmi_sensors" that provides sensor readouts via ASUS' WMI interface present in the UEFI of some recent Ryzen motherboards.

39
debian/copyright vendored Normal file
View File

@ -0,0 +1,39 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: asus-wmi-sensors-dkms
Upstream-Contact: <preferred name and address to reach the upstream project>
Source: <url://example.com>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: GPL-2.0+
Files: debian/*
Copyright: 2020 crt0mega <crt0mega@c-r-t.tk>
License: GPL-2.0+
License: GPL-2.0+
This package 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, or
(at your option) any later version.
.
This package 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, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#
# If you need, there are some extra license texts available in two places:
# /usr/share/debhelper/dh_make/licenses/
# /usr/share/common-licenses/

1
debian/dkms vendored Symbolic link
View File

@ -0,0 +1 @@
../src/dkms.conf.am

15
debian/patches/01_dkms-conf-fixes vendored Normal file
View File

@ -0,0 +1,15 @@
Patches dkms.conf.am for correct version number usage
Index: asus-wmi-sensors-dkms/src/dkms.conf.am
===================================================================
--- asus-wmi-sensors-dkms.orig/src/dkms.conf.am
+++ asus-wmi-sensors-dkms/src/dkms.conf.am
@@ -1,7 +1,7 @@
MAKE="make TARGET=${kernelver}"
CLEAN="make clean"
-PACKAGE_NAME="asus-wmi-sensors-dkms-git"
-PACKAGE_VERSION="to be filled by make dkms"
+PACKAGE_NAME="asus-wmi-sensors-dkms"
+PACKAGE_VERSION="@VERSION@"
BUILT_MODULE_NAME[0]="asus-wmi-sensors"
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon/asus-wmi-sensors"
AUTOINSTALL="yes"

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
01_dkms-conf-fixes

30
debian/rules vendored Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
VERSION=$(shell dpkg-parsechangelog |grep ^Version:|cut -d ' ' -f 2)
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@ --with dkms
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
override_dh_install:
dh_install src/Makefile src/asus-wmi-sensors.c usr/src/asus-wmi-sensors-dkms-$(VERSION)
override_dh_dkms:
dh_dkms -V $(VERSION)

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
src Submodule

@ -0,0 +1 @@
Subproject commit 8daafd45d1b860cf5b17eee1c94d93feb04164a9