diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..dac33f3 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +rtl8821ce for Debian +------------------- + + + + -- liuxin Tue, 12 Jan 2021 18:08:27 +0800 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..b92079b --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +rtl8821ce for Debian +------------------- + + + + + + -- liuxin Tue, 12 Jan 2021 18:08:27 +0800 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..be3f0fd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rtl8821ce (5.5.2) unstable; urgency=medium + + * Initial release + + -- liuxin Tue, 12 Jan 2021 14:49:45 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3259a16 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: rtl8821ce +Section: misc +Priority: optional +Maintainer: liuxin +Build-Depends: debhelper (>= 10), + dkms, + bc, + module-assistant, + build-essential +Standards-Version: 4.3.0 +Vcs-Browser: https://github.com/tomaspinho/rtl8821ce +Vcs-Git: https://github.com/tomaspinho/rtl8821ce.git + +Package: rtl8821ce-dkms +Architecture: all +Multi-Arch: foreign +Depends: ${misc:Depends} +Provides: rtl8821ce-module +Description: DKMS files to build and install rtl8821ce + The rtl8821ce driver provides the driver for USB wifi adapter. + . + This package contains the DKMS files to build and install rtl8821ce. + . + To install this package, you have to install the header files for your + current kernel manually (usually included in the "linux-headers-"). + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1348965 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rtl8821ce +Source: https://github.com/tomaspinho/rtl8821ce + +Files: * +Copyright: 2021 brektrou +License: GPL-2.0+ + This program 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 program 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'. + + +Files: debian/* +Copyright: 2020 liuxin +License: GPL-2.0+ + This program 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 program 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'. diff --git a/debian/rtl8821ce-dkms.postinst b/debian/rtl8821ce-dkms.postinst new file mode 100644 index 0000000..7178f9f --- /dev/null +++ b/debian/rtl8821ce-dkms.postinst @@ -0,0 +1,21 @@ +#!/bin/bash + +if [[ $EUID -ne 0 ]]; then + echo "You must run this with superuser priviliges. Try \"sudo ./dkms-install.sh\"" 2>&1 + exit 1 +else + echo "About to run dkms install steps..." +fi + +DRV_NAME=rtl8821ce +DRV_VERSION=5.5.2 + + +dkms add -m ${DRV_NAME} -v ${DRV_VERSION} +dkms build -m ${DRV_NAME} -v ${DRV_VERSION} +dkms install -m ${DRV_NAME} -v ${DRV_VERSION} +RESULT=$? + +echo "Finished running dkms install steps." + +exit $RESULT diff --git a/debian/rtl8821ce-dkms.prerm b/debian/rtl8821ce-dkms.prerm new file mode 100644 index 0000000..5285aab --- /dev/null +++ b/debian/rtl8821ce-dkms.prerm @@ -0,0 +1,22 @@ +#!/bin/bash + +if [[ $EUID -ne 0 ]]; then + echo "You must run this with superuser priviliges. Try \"sudo ./dkms-remove.sh\"" 2>&1 + exit 1 +else + echo "About to run dkms removal steps..." +fi + +DRV_NAME=rtl8821ce +DRV_VERSION=5.5.2 + +dkms remove ${DRV_NAME}/${DRV_VERSION} --all + +RESULT=$? +if [[ "$RESULT" != "0" ]]; then + echo "Error occurred while running dkms remove." 2>&1 +else + echo "Finished running dkms removal steps." +fi + +exit $RESULT diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..839736e --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/dpkg/default.mk + +export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+).*$$/\1/p') + +%: + dh $@ --with dkms + +override_dh_auto_install: + dh_install -prtl8821ce-dkms -X.o -X.ko core/ usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms -X.o -X.ko hal/ usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms -X.o -X.ko os_dep/ usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms -X.o -X.ko platform/ usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms -X.o -X.ko include/ usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms Makefile usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms rtl8821c.mk usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms dkms.conf usr/src/rtl8821ce-$(VERSION) + dh_install -prtl8821ce-dkms halmac.mk usr/src/rtl8821ce-$(VERSION) + +override_dh_dkms: + dh_dkms -V + +override_dh_auto_build: + : diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..36c31c7 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1 @@ +dep5-copyright-license-name-not-unique