mirror of
https://github.com/gnab/rtl8812au
synced 2024-11-22 13:24:47 +00:00
Add debian directory,support for building debian package
This commit is contained in:
parent
f921ab5d4a
commit
033a465431
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
rtl8812au (4.2.2-1) unstable; urgency=medium
|
||||
|
||||
* Add driver package to build DEB package support in Debian DKMS format.
|
||||
|
||||
-- zhouzilong <zhouzilong@uniontech.com> Wed, 09 Jun 2021 15:18:02 +0800
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
11
|
14
debian/control
vendored
Normal file
14
debian/control
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
Source: rtl8812au
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: zhouzilong <zhouzilong@uniontech.com>
|
||||
Build-Depends: debhelper (>= 11), dkms
|
||||
Standards-Version: 4.1.3
|
||||
Homepage: https://github.com/gnab/rtl8812au
|
||||
|
||||
Package: rtl8812au-dkms
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, dkms
|
||||
Description: rtl8812au driver in DKMS format.
|
||||
The rtl8812au driver provides the driver for Realtek 802.11ac (rtl8812au).
|
||||
This package contains the DKMS files to build and install rtl8812au.
|
30
debian/copyright
vendored
Normal file
30
debian/copyright
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: rtl8812au
|
||||
Upstream-Contact: Ole Petter Bang <olepbang@gmail.com>
|
||||
Source: https://github.com/gnab/rtl8812au
|
||||
|
||||
Files: *
|
||||
Copyright: 2013-2021 Ole Petter Bang <olepbang@gmail.com>
|
||||
License: GPL-2.0+
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2021 zhouzilong <zhouzilong@uniontech.com>
|
||||
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".
|
||||
|
14
debian/rtl8812au-dkms.postinst
vendored
Normal file
14
debian/rtl8812au-dkms.postinst
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
DRV_NAME=8812au
|
||||
DRV_VERSION=4.2.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
|
28
debian/rtl8812au-dkms.prerm
vendored
Normal file
28
debian/rtl8812au-dkms.prerm
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
NAME=8812au
|
||||
VERSION=4.2.2
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
remove|upgrade|deconfigure)
|
||||
if [ "`dkms status -m $NAME`" ]; then
|
||||
dkms remove -m $NAME -v $VERSION --all
|
||||
fi
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
exit 0
|
||||
|
||||
|
21
debian/rules
vendored
Executable file
21
debian/rules
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
#!/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 -prtl8812au-dkms `ls |grep -v debian |xargs` usr/src/8812au-$(VERSION)
|
||||
|
||||
override_dh_dkms:
|
||||
dh_dkms -V
|
||||
|
||||
override_dh_auto_build:
|
||||
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
Loading…
Reference in New Issue
Block a user