فهرست منبع

Merge pull request #231 from kyrie-z/master

Add debian directory,support for building debian package
Ole Petter Bang 3 سال پیش
والد
کامیت
f1bd10bef1
9فایلهای تغییر یافته به همراه114 افزوده شده و 0 حذف شده
  1. 5 0
      debian/changelog
  2. 1 0
      debian/compat
  3. 14 0
      debian/control
  4. 30 0
      debian/copyright
  5. 14 0
      debian/rtl8812au-dkms.postinst
  6. 28 0
      debian/rtl8812au-dkms.prerm
  7. 21 0
      debian/rules
  8. 1 0
      debian/source/format
  9. 0 0
      module.clean

+ 5 - 0
debian/changelog

@@ -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 - 0
debian/compat

@@ -0,0 +1 @@
+11

+ 14 - 0
debian/control

@@ -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 - 0
debian/copyright

@@ -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 - 0
debian/rtl8812au-dkms.postinst

@@ -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 - 0
debian/rtl8812au-dkms.prerm

@@ -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 - 0
debian/rules

@@ -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 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (quilt)

+ 0 - 0
clean → module.clean