Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rtl8821ce for Debian
-------------------

<possible notes regarding this package - if none, delete this file>

-- liuxin <[email protected]> Tue, 12 Jan 2021 18:08:27 +0800
10 changes: 10 additions & 0 deletions debian/README.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rtl8821ce 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>



-- liuxin <[email protected]> Tue, 12 Jan 2021 18:08:27 +0800

5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rtl8821ce (5.5.2) unstable; urgency=medium

* Initial release

-- liuxin <[email protected]> Tue, 12 Jan 2021 14:49:45 +0800
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
27 changes: 27 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Source: rtl8821ce
Section: misc
Priority: optional
Maintainer: liuxin <[email protected]>
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-<your
architecture>").

42 changes: 42 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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 <http://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'.


Files: debian/*
Copyright: 2020 liuxin <[email protected]>
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 <http://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'.
21 changes: 21 additions & 0 deletions debian/rtl8821ce-dkms.postinst
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions debian/rtl8821ce-dkms.prerm
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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:
:
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
1 change: 1 addition & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dep5-copyright-license-name-not-unique