mirror of https://github.com/brektrou/rtl8821CU
debian: initial package
parent
428a082048
commit
0dd5682645
@ -0,0 +1 @@
|
||||
*~
|
||||
@ -0,0 +1,5 @@
|
||||
rtl8821cu (5.4.1-1) unstable; urgency=medium
|
||||
|
||||
* Initial release
|
||||
|
||||
-- Marc Leeman <m.leeman@televic.com> Fri, 18 Oct 2019 13:46:27 +0200
|
||||
@ -0,0 +1 @@
|
||||
10
|
||||
@ -0,0 +1,39 @@
|
||||
Source: rtl8821cu
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Marc Leeman <m.leeman@televic.com>
|
||||
Build-Depends: debhelper (>= 10),
|
||||
dkms,
|
||||
linux-kbuild-4.19
|
||||
Standards-Version: 4.3.0
|
||||
Vcs-Browser: https://github.com/brektrou/rtl8821CU
|
||||
Vcs-Git: https://github.com/brektrou/rtl8821CU.git
|
||||
|
||||
Package: rtl8821cu-dkms
|
||||
Architecture: amd64
|
||||
Multi-Arch: foreign
|
||||
Depends: ${misc:Depends}
|
||||
Provides: rtl8821cu-module
|
||||
Description: DKMS files to build and install rtl8821cu
|
||||
The rtl8821cu driver provides the driver for Realtek RTL8811CU/RTL8821CU
|
||||
USB wifi adapter.
|
||||
.
|
||||
This package contains the DKMS files to build and install rtl8821cu.
|
||||
.
|
||||
To install this package, you have to install the header files for your
|
||||
current kernel manually (usually included in the "linux-headers-<your
|
||||
architecture>").
|
||||
|
||||
Package: rtl8821cu-src
|
||||
Architecture: amd64
|
||||
Depends: module-assistant,
|
||||
debhelper (>= 5.0.37),
|
||||
xz-utils,
|
||||
${misc:Depends}
|
||||
Description: Source of the compressed rtl8821cu module
|
||||
The rtl8821cu driver provides the driver for Realtek RTL8811CU/RTL8821CU
|
||||
USB wifi adapter.
|
||||
.
|
||||
You can use module-assistant or make-kpkg to build a modules package
|
||||
for specific kernel.
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
Source: rtl8821cu
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Marc Leeman <m.leeman@televic.com>
|
||||
Build-Depends: debhelper (>> 3.0.0), zlib1g-dev, module-assistant
|
||||
Standards-Version: 3.5.8
|
||||
|
||||
Package: rtl8821cu-module-#KVERS#
|
||||
Depends: debconf, initramfs-tools
|
||||
Architecture: any
|
||||
Provides: rtl8821cu-module
|
||||
Description: rtl8821cu kernel module
|
||||
The rtl8821cu driver provides the driver for Realtek RTL8811CU/RTL8821CU
|
||||
USB wifi adapter.
|
||||
.
|
||||
This package contains the pre-compiled version for kernel #KVERS#
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: rtl8821CU
|
||||
Source: https://github.com/brektrou/rtl8821CU
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2020 Marc Leeman <marc.leeman@gmail.com>
|
||||
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'.
|
||||
@ -0,0 +1,7 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
if [ "`uname -r`" = _KVERS_ ] ; then
|
||||
depmod -a &
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
# postrm script for cloop
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
|
||||
# for details, see /usr/share/doc/packaging-manual/
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
;;
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
depmod -aq || true &
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 0
|
||||
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
#!/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')
|
||||
XDIR=debian/rtl8821cu-src/usr/src/modules/rtl8821cu-src
|
||||
|
||||
%:
|
||||
dh $@ --with dkms
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_install -prtl8821cu-dkms -X.o -X.ko core/ usr/src/rtl8821cu-$(VERSION)
|
||||
dh_install -prtl8821cu-dkms -X.o -X.ko hal/ usr/src/rtl8821cu-$(VERSION)
|
||||
dh_install -prtl8821cu-dkms -X.o -X.ko os_dep/ usr/src/rtl8821cu-$(VERSION)
|
||||
dh_install -prtl8821cu-dkms -X.o -X.ko platform/ usr/src/rtl8821cu-$(VERSION)
|
||||
dh_install -prtl8821cu-dkms -X.o -X.ko include/ usr/src/rtl8821cu-$(VERSION)
|
||||
dh_install -prtl8821cu-dkms Makefile usr/src/rtl8821cu-$(VERSION)
|
||||
dh_install -prtl8821cu-dkms rtl8821c.mk usr/src/rtl8821cu-$(VERSION)
|
||||
install -d $(XDIR)/debian
|
||||
cd debian && install rules.m-a ../$(XDIR)/debian/rules && cp -r *modules.in* changelog copyright compat *_KVERS_* ../$(XDIR)/debian/
|
||||
cd debian/rtl8821cu-src/usr/src && cp -a ../../../rtl8821cu-dkms/usr/src/rtl8821cu-$(VERSION)/* modules/rtl8821cu-src/ && XZ_OPT=-9 tar --xz -c -f rtl8821cu.tar.xz modules && rm -rf modules
|
||||
|
||||
override_dh_dkms:
|
||||
dh_dkms -V
|
||||
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
# for m-a
|
||||
SHELL=/bin/bash
|
||||
PACKAGE=rtl8821cu-module
|
||||
MA_DIR ?= /usr/share/modass
|
||||
-include $(MA_DIR)/include/generic.mk
|
||||
-include $(MA_DIR)/include/common-rules.mk
|
||||
kdist_config: kdist_configure
|
||||
kdist_configure: prep-deb-files
|
||||
|
||||
binary-modules: kdist_configure
|
||||
$(MAKE) module KERNEL_DIR=$(KSRC) KVERSION=$(KVERS)
|
||||
dh_installdirs -p $(PKGNAME) lib/modules/$(KVERS)/extra
|
||||
cp 8821cu.ko $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/extra
|
||||
dh_testdir -a
|
||||
dh_testroot -a
|
||||
dh_installdebconf -a
|
||||
dh_compress -a
|
||||
dh_fixperms -a
|
||||
dh_installdeb -a
|
||||
dh_gencontrol -a -- -v$(VERSION)
|
||||
dh_md5sums -a
|
||||
dh_builddeb -a --destdir=$(DEB_DESTDIR)
|
||||
|
||||
kdist_clean:
|
||||
rm -rf *.ko debian/$(PKGNAME)
|
||||
|
||||
.PHONY: kdist kdist_image kdist_configure kdist_clean kdist
|
||||
.NOTPARALLEL:
|
||||
@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
Loading…
Reference in New Issue