This commit is contained in:
geos_one
2025-08-23 17:03:01 +02:00
parent 853b49b823
commit ef89b3e9c3
17 changed files with 385 additions and 0 deletions

5
debian/README.Debian vendored Normal file
View File

@@ -0,0 +1,5 @@
realtek-r8125-dkms for Debian
This installs a DKMS for Realtek r8125 drivers.
-- Deokgyu Yang <secugyu@gmail.com> Fri, 12 Jun 2020 12:27:29 +0900

6
debian/README.source vendored Normal file
View File

@@ -0,0 +1,6 @@
realtek-r8125-dkms for Debian
The driver source can be found here:
https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
-- Deokgyu Yang <secugyu@gmail.com> Fri, 12 Jun 2020 12:27:29 +0900

7
debian/changelog vendored Normal file
View File

@@ -0,0 +1,7 @@
realtek-r8168-dkms (8.055.00) UNRELEASED; urgency=low
* Initial release
* This package will be installed but DKMS won't work
Do not install this version, otherwise your system will be corrupted
-- Mario Fetka <mario.fetka@gmail.com> Fri, 12 Jun 2020 12:27:29 +0900

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
11

16
debian/control vendored Normal file
View File

@@ -0,0 +1,16 @@
Source: realtek-r8168-dkms
Section: contrib/kernel
Priority: optional
Maintainer: Mario Fetka <mario.fetka@gmail.com>
Build-Depends: debhelper (>=11~), dkms (<< 3.0.3-3~) | dh-sequence-dkms
Standards-Version: 4.6.2.1
Homepage: https://github.com/awesometic/realtek-r8125-dkms
Package: realtek-r8168-dkms
Architecture: any
Multi-Arch: foreign
Depends: dkms (>= 1.95), ${misc:Depends}
Description: Realtek RTL8168 driver in DKMS format
This package provides the source code for RTL8168 Linux driver that may
include supporting other Realtek GbE chipsets to be build with dkms.
Kernel sources or headers are required to compile this module.

50
debian/copyright vendored Normal file
View File

@@ -0,0 +1,50 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: realtek-r8168-dkms
Source: https://gitea.disconnected-by-peer.at/deb/realtek-r8168-dkms
Files: *
Copyright: 2019-2022 Realtek Semiconductor Corp.
License: GPL-2
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/>.
.
Author:
Realtek NIC software team <nicfae@realtek.com>
No. 2, Innovation Road II, Hsinchu Science Park, Hsinchu 300, Taiwan
.
This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
.
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-2022 Deokgyu Yang <secugyu@gmail.com>
License: GPL-2
License: GPL-2
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
.
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, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110, USA
.
On Debian systems, the complete text of the GNU General Public License
version 2 can be found in "/usr/share/common-licenses/GPL-2"

1
debian/dirs vendored Normal file
View File

@@ -0,0 +1 @@
usr/src

1
debian/docs vendored Normal file
View File

@@ -0,0 +1 @@
README.md REALTEK_README.txt LICENSE

49
debian/postinst vendored Normal file
View File

@@ -0,0 +1,49 @@
#!/bin/sh
# Copyright (C) 2002-2005 Flavio Stanchina
# Copyright (C) 2005-2006 Aric Cyr
# Copyright (C) 2007 Mario Limonciello
# Copyright (C) 2009 Alberto Milone
set -e
NAME=realtek-r8168
PACKAGE_NAME=$NAME-dkms
DEB_NAME=$(echo $PACKAGE_NAME | sed 's,_,-,')
CVERSION=`dpkg-query -W -f='${Version}' $DEB_NAME | awk -F "-" '{print $1}' | cut -d\: -f2`
ARCH=`dpkg --print-architecture`
dkms_configure () {
for POSTINST in /usr/lib/dkms/common.postinst "/usr/share/$PACKAGE_NAME/postinst"; do
if [ -f "$POSTINST" ]; then
"$POSTINST" "$NAME" "$CVERSION" "/usr/share/$PACKAGE_NAME" "$ARCH" "$2"
return $?
fi
echo "WARNING: $POSTINST does not exist." >&2
done
echo "ERROR: DKMS version is too old and $PACKAGE_NAME was not" >&2
echo "built with legacy DKMS support." >&2
echo "You must either rebuild $PACKAGE_NAME with legacy postinst" >&2
echo "support or upgrade DKMS to a more current version." >&2
return 1
}
case "$1" in
configure)
dkms_configure
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

26
debian/prerm vendored Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
NAME=realtek-r8168
VERSION=8.055.00
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

30
debian/rules vendored Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
#just use base version
VERSION := $(shell dpkg-parsechangelog -S Version | sed 's/-.*//' | sed 's/+pristine//')
%:
dh $@ --parallel --with dkms
override_dh_install:
dh_install dkms.conf REALTEK_README.txt Makefile usr/src/realtek-r8168-$(VERSION)
dh_install src/* usr/src/realtek-r8168-$(VERSION)/src
override_dh_dkms:
dh_dkms -V $(VERSION)
override_dh_fixperms:
dh_fixperms
find debian/realtek-r8125-dkms/usr/src -type f -exec chmod -x {} \;
override_dh_builddeb:
dh_builddeb -- -Zxz
# Nothing to configure, build or auto-install
override_dh_auto_configure:
override_dh_auto_build:
override_dh_auto_test:
override_dh_auto_install:
override_dh_auto_clean:

1
debian/source/format vendored Normal file
View File

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