summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dkms/ipoe/README.md10
-rw-r--r--drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms5
-rw-r--r--drivers/dkms/ipoe/debian/changelog5
-rw-r--r--drivers/dkms/ipoe/debian/compat1
-rw-r--r--drivers/dkms/ipoe/debian/control11
-rwxr-xr-xdrivers/dkms/ipoe/debian/rules18
l---------drivers/dkms/ipoe/src1
-rw-r--r--drivers/dkms/vlan_mon/README.md10
-rw-r--r--drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms5
-rw-r--r--drivers/dkms/vlan_mon/debian/changelog5
-rw-r--r--drivers/dkms/vlan_mon/debian/compat1
-rw-r--r--drivers/dkms/vlan_mon/debian/control11
-rwxr-xr-xdrivers/dkms/vlan_mon/debian/rules18
l---------drivers/dkms/vlan_mon/src1
-rw-r--r--drivers/ipoe/ipoe.c1
-rw-r--r--drivers/vlan_mon/vlan_mon.c1
16 files changed, 104 insertions, 0 deletions
diff --git a/drivers/dkms/ipoe/README.md b/drivers/dkms/ipoe/README.md
new file mode 100644
index 00000000..6b582e2a
--- /dev/null
+++ b/drivers/dkms/ipoe/README.md
@@ -0,0 +1,10 @@
+## Building Debian DKMS pacakge
+
+Install deb packages: dkms, debhelper and devscripts. For Debian >= 12 and Ubuntu >=24.04 it is also required to install dh-dkms package.
+
+Build accel-ppp without drivers, then from this level directory, execute:
+
+```
+cp ../../../build/version.h src/
+debuild -us -uc -tc -b
+```
diff --git a/drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms b/drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms
new file mode 100644
index 00000000..47543fe5
--- /dev/null
+++ b/drivers/dkms/ipoe/debian/accel-ppp-ipoe-dkms.dkms
@@ -0,0 +1,5 @@
+PACKAGE_NAME="accel-ppp-ipoe"
+PACKAGE_VERSION="#MODULE_VERSION"
+AUTOINSTALL=yes
+BUILT_MODULE_NAME="ipoe"
+DEST_MODULE_LOCATION="/updates/dkms"
diff --git a/drivers/dkms/ipoe/debian/changelog b/drivers/dkms/ipoe/debian/changelog
new file mode 100644
index 00000000..6c003b46
--- /dev/null
+++ b/drivers/dkms/ipoe/debian/changelog
@@ -0,0 +1,5 @@
+accel-ppp-ipoe-dkms (1.13.0) unstable; urgency=low
+
+ * First ipoe dkms package
+
+ -- Sergey V. Lobanov <sergey@lobanov.in> Wed, 29 May 2024 11:30:13 +0200
diff --git a/drivers/dkms/ipoe/debian/compat b/drivers/dkms/ipoe/debian/compat
new file mode 100644
index 00000000..f599e28b
--- /dev/null
+++ b/drivers/dkms/ipoe/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/drivers/dkms/ipoe/debian/control b/drivers/dkms/ipoe/debian/control
new file mode 100644
index 00000000..def5d0ab
--- /dev/null
+++ b/drivers/dkms/ipoe/debian/control
@@ -0,0 +1,11 @@
+Source: accel-ppp-ipoe-dkms
+Maintainer: Dmitry Kozlov <xeb@mail.ru>
+Build-Depends: debhelper (>= 10), dkms
+Homepage: https://www.accel-ppp.io/
+
+Package: accel-ppp-ipoe-dkms
+Architecture: all
+Priority: optional
+Section: kernel
+Depends: dkms (>= 1.95), linux-headers-686-pae | linux-headers-amd64 | linux-headers-generic | linux-headers, ${misc:Depends}
+Description: DKMS source for the accel-ppp-ipoe driver
diff --git a/drivers/dkms/ipoe/debian/rules b/drivers/dkms/ipoe/debian/rules
new file mode 100755
index 00000000..704a41a8
--- /dev/null
+++ b/drivers/dkms/ipoe/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+ dh $@ --with dkms
+
+override_dh_install:
+ dh_install src/* usr/src/accel-ppp-ipoe-$(DEB_VERSION_UPSTREAM)/
+
+override_dh_dkms:
+ dh_dkms -V $(DEB_VERSION_UPSTREAM)
+
+override_dh_auto_configure:
+override_dh_auto_build:
+override_dh_auto_test:
+override_dh_auto_install:
+override_dh_auto_clean:
diff --git a/drivers/dkms/ipoe/src b/drivers/dkms/ipoe/src
new file mode 120000
index 00000000..7df6b81b
--- /dev/null
+++ b/drivers/dkms/ipoe/src
@@ -0,0 +1 @@
+../../ipoe \ No newline at end of file
diff --git a/drivers/dkms/vlan_mon/README.md b/drivers/dkms/vlan_mon/README.md
new file mode 100644
index 00000000..6b582e2a
--- /dev/null
+++ b/drivers/dkms/vlan_mon/README.md
@@ -0,0 +1,10 @@
+## Building Debian DKMS pacakge
+
+Install deb packages: dkms, debhelper and devscripts. For Debian >= 12 and Ubuntu >=24.04 it is also required to install dh-dkms package.
+
+Build accel-ppp without drivers, then from this level directory, execute:
+
+```
+cp ../../../build/version.h src/
+debuild -us -uc -tc -b
+```
diff --git a/drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms b/drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms
new file mode 100644
index 00000000..c3ce430b
--- /dev/null
+++ b/drivers/dkms/vlan_mon/debian/accel-ppp-vlan-mon-dkms.dkms
@@ -0,0 +1,5 @@
+PACKAGE_NAME="accel-ppp-vlan-mon"
+PACKAGE_VERSION="#MODULE_VERSION#"
+AUTOINSTALL=yes
+BUILT_MODULE_NAME="vlan_mon"
+DEST_MODULE_LOCATION="/updates/dkms"
diff --git a/drivers/dkms/vlan_mon/debian/changelog b/drivers/dkms/vlan_mon/debian/changelog
new file mode 100644
index 00000000..ee4f7505
--- /dev/null
+++ b/drivers/dkms/vlan_mon/debian/changelog
@@ -0,0 +1,5 @@
+accel-ppp-vlan-mon-dkms (1.13.0) unstable; urgency=low
+
+ * First vlan_mon dkms package
+
+ -- Sergey V. Lobanov <sergey@lobanov.in> Wed, 29 May 2024 11:30:13 +0200
diff --git a/drivers/dkms/vlan_mon/debian/compat b/drivers/dkms/vlan_mon/debian/compat
new file mode 100644
index 00000000..f599e28b
--- /dev/null
+++ b/drivers/dkms/vlan_mon/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/drivers/dkms/vlan_mon/debian/control b/drivers/dkms/vlan_mon/debian/control
new file mode 100644
index 00000000..32795370
--- /dev/null
+++ b/drivers/dkms/vlan_mon/debian/control
@@ -0,0 +1,11 @@
+Source: accel-ppp-vlan-mon-dkms
+Maintainer: Dmitry Kozlov <xeb@mail.ru>
+Build-Depends: debhelper (>= 10), dkms
+Homepage: https://www.accel-ppp.io/
+
+Package: accel-ppp-vlan-mon-dkms
+Architecture: all
+Priority: optional
+Section: kernel
+Depends: dkms (>= 1.95), linux-headers-686-pae | linux-headers-amd64 | linux-headers-generic | linux-headers, ${misc:Depends}
+Description: DKMS source for the accel-ppp-vlan-mon driver
diff --git a/drivers/dkms/vlan_mon/debian/rules b/drivers/dkms/vlan_mon/debian/rules
new file mode 100755
index 00000000..e02f6770
--- /dev/null
+++ b/drivers/dkms/vlan_mon/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+ dh $@ --with dkms
+
+override_dh_install:
+ dh_install src/* usr/src/accel-ppp-vlan-mon-$(DEB_VERSION_UPSTREAM)/
+
+override_dh_dkms:
+ dh_dkms -V $(DEB_VERSION_UPSTREAM)
+
+override_dh_auto_configure:
+override_dh_auto_build:
+override_dh_auto_test:
+override_dh_auto_install:
+override_dh_auto_clean:
diff --git a/drivers/dkms/vlan_mon/src b/drivers/dkms/vlan_mon/src
new file mode 120000
index 00000000..727f1d5c
--- /dev/null
+++ b/drivers/dkms/vlan_mon/src
@@ -0,0 +1 @@
+../../vlan_mon \ No newline at end of file
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index fa7dec3f..252792cc 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -2016,3 +2016,4 @@ static void __exit ipoe_fini(void)
module_init(ipoe_init);
module_exit(ipoe_fini);
MODULE_LICENSE("GPL");
+MODULE_VERSION(ACCEL_PPP_VERSION);
diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c
index d5f42c91..6e8c5ea5 100644
--- a/drivers/vlan_mon/vlan_mon.c
+++ b/drivers/vlan_mon/vlan_mon.c
@@ -822,6 +822,7 @@ static void __exit vlan_mon_fini(void)
module_init(vlan_mon_init);
module_exit(vlan_mon_fini);
MODULE_LICENSE("GPL");
+MODULE_VERSION(ACCEL_PPP_VERSION);
module_param(autoclean, int, 0);
//MODULE_PARAM_DESC(autoclean, "automaticaly remove created vlan interfaces on restart");