commit bfe43bb54eabd457a7c666bc7fb0d92eea933071 Author: crt0mega Date: Tue Jan 28 20:19:07 2020 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6bb93f --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..23a20ae --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src"] + path = src + url = https://github.com/electrified/asus-wmi-sensors.git diff --git a/LICENSE b/LICENSE new file mode 120000 index 0000000..da348fc --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +src/LICENSE \ No newline at end of file diff --git a/README.md b/README.md new file mode 120000 index 0000000..351df1d --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +src/README.md \ No newline at end of file diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..7077e42 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +asus-wmi-sensors-dkms for Debian +------------------------------- + + + + -- crt0mega Tue, 28 Jan 2020 16:44:49 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..215d147 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +asus-wmi-sensors-dkms for Debian +------------------------------- + + + + + + -- crt0mega Tue, 28 Jan 2020 16:44:49 +0100 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ac99f71 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +asus-wmi-sensors-dkms (20200128-1+crt1) UNRELEASED; urgency=medium + + * First package upload + + -- crt0mega Tue, 28 Jan 2020 20:13:35 +0100 + +asus-wmi-sensors-dkms (20200128-1) unstable; urgency=medium + + * Initial release (Closes: #nnnn) + + -- crt0mega Tue, 28 Jan 2020 16:44:49 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..dcb136a --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: asus-wmi-sensors-dkms +Section: unknown +Priority: optional +Maintainer: crt0mega +Build-Depends: debhelper-compat (= 12) +Standards-Version: 4.4.1 +Homepage: +#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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a82f63f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: asus-wmi-sensors-dkms +Upstream-Contact: +Source: + +Files: * +Copyright: + +License: GPL-2.0+ + +Files: debian/* +Copyright: 2020 crt0mega +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 + . + 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/ diff --git a/debian/dkms b/debian/dkms new file mode 120000 index 0000000..0e86dd2 --- /dev/null +++ b/debian/dkms @@ -0,0 +1 @@ +../src/dkms.conf.am \ No newline at end of file diff --git a/debian/patches/01_dkms-conf-fixes b/debian/patches/01_dkms-conf-fixes new file mode 100644 index 0000000..201bc70 --- /dev/null +++ b/debian/patches/01_dkms-conf-fixes @@ -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" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..1f12a8d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01_dkms-conf-fixes diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..90c4230 --- /dev/null +++ b/debian/rules @@ -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) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src b/src new file mode 160000 index 0000000..8daafd4 --- /dev/null +++ b/src @@ -0,0 +1 @@ +Subproject commit 8daafd45d1b860cf5b17eee1c94d93feb04164a9