[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-12-12 Thread Jan Steffens via arch-commits
Date: Saturday, December 12, 2020 @ 22:05:56
  Author: heftig
Revision: 773629

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 773625, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 773625, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 773625, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-12-12 22:05:56 UTC 
(rev 773629)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
773625, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-12-12 22:05:56 UTC (rev 773629)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=130
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-12-08 Thread Jan Steffens via arch-commits
Date: Tuesday, December 8, 2020 @ 13:14:35
  Author: heftig
Revision: 771798

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 771792, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 771793, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 771792, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-12-08 13:14:35 UTC 
(rev 771798)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
771793, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-12-08 13:14:35 UTC (rev 771798)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=129
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-12-02 Thread Jan Steffens via arch-commits
Date: Wednesday, December 2, 2020 @ 17:25:11
  Author: heftig
Revision: 769209

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 769206, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 769206, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 769206, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-12-02 17:25:11 UTC 
(rev 769209)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
769206, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-12-02 17:25:11 UTC (rev 769209)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=128
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-24 Thread Jan Steffens via arch-commits
Date: Tuesday, November 24, 2020 @ 16:29:21
  Author: heftig
Revision: 760970

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 760968, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 760968, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 760968, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-24 16:29:21 UTC 
(rev 760970)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
760968, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-24 16:29:21 UTC (rev 760970)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=126
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-22 Thread Jan Steffens via arch-commits
Date: Sunday, November 22, 2020 @ 15:28:29
  Author: heftig
Revision: 759199

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 759195, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 759196, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 759195, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-22 15:28:29 UTC 
(rev 759199)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
759196, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-22 15:28:29 UTC (rev 759199)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=125
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-18 Thread Jan Steffens via arch-commits
Date: Wednesday, November 18, 2020 @ 20:53:00
  Author: heftig
Revision: 757226

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 757224, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 757224, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 757224, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-18 20:53:00 UTC 
(rev 757226)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
757224, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-18 20:53:00 UTC (rev 757226)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=124
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-10 Thread Jan Steffens via arch-commits
Date: Tuesday, November 10, 2020 @ 15:19:40
  Author: heftig
Revision: 749578

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 749577, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 749577, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 749577, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-10 15:19:40 UTC 
(rev 749578)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
749577, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-10 15:19:40 UTC (rev 749578)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=122
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-05 Thread Jan Steffens via arch-commits
Date: Thursday, November 5, 2020 @ 16:26:48
  Author: heftig
Revision: 743278

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 743275, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 743275, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 743275, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-05 16:26:48 UTC 
(rev 743278)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
743275, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-05 16:26:48 UTC (rev 743278)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=120
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-04 Thread Jan Steffens via arch-commits
Date: Wednesday, November 4, 2020 @ 22:43:45
  Author: heftig
Revision: 742685

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 742681, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 742682, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 742681, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-04 22:43:45 UTC 
(rev 742685)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
742682, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-04 22:43:45 UTC (rev 742685)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=119
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-11-01 Thread Jan Steffens via arch-commits
Date: Sunday, November 1, 2020 @ 14:55:52
  Author: heftig
Revision: 738877

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 738873, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 738873, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 738873, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-11-01 14:55:52 UTC 
(rev 738877)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
738873, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-01 14:55:52 UTC (rev 738877)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=118
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-10-29 Thread Jan Steffens via arch-commits
Date: Thursday, October 29, 2020 @ 18:20:52
  Author: heftig
Revision: 736562

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 736556, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 736556, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 736556, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-10-29 18:20:52 UTC 
(rev 736562)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
736556, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-10-29 18:20:52 UTC (rev 736562)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=117
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-10-12 Thread Jan Steffens via arch-commits
Date: Monday, October 12, 2020 @ 21:40:53
  Author: heftig
Revision: 723759

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 723751, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 723751, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 723751, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-10-12 21:40:53 UTC 
(rev 723759)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
723751, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-10-12 21:40:53 UTC (rev 723759)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=115
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-10-07 Thread Jan Steffens via arch-commits
Date: Thursday, October 8, 2020 @ 00:49:46
  Author: heftig
Revision: 721665

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 721658, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 721658, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 721658, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-10-08 00:49:46 UTC 
(rev 721665)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
721658, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-10-08 00:49:46 UTC (rev 721665)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=114
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-10-01 Thread Jan Steffens via arch-commits
Date: Thursday, October 1, 2020 @ 22:43:47
  Author: heftig
Revision: 714544

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 714541, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 714543, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 714541, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-10-01 22:43:47 UTC 
(rev 714544)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
714543, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-10-01 22:43:47 UTC (rev 714544)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=113
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-26 Thread Jan Steffens via arch-commits
Date: Saturday, September 26, 2020 @ 23:48:10
  Author: heftig
Revision: 712561

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 712556, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 712558, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 712556, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-26 23:48:10 UTC 
(rev 712561)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
712558, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-26 23:48:10 UTC (rev 712561)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=112
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-24 Thread Jan Steffens via arch-commits
Date: Thursday, September 24, 2020 @ 17:39:55
  Author: heftig
Revision: 711855

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 711849, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 711850, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 711849, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-24 17:39:55 UTC 
(rev 711855)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
711850, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-24 17:39:55 UTC (rev 711855)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=111
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-17 Thread Jan Steffens via arch-commits
Date: Thursday, September 17, 2020 @ 19:05:59
  Author: heftig
Revision: 709097

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 709092, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 709094, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 709092, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-17 19:05:59 UTC 
(rev 709097)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
709094, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-17 19:05:59 UTC (rev 709097)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=110
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-13 Thread Jan Steffens via arch-commits
Date: Sunday, September 13, 2020 @ 23:41:48
  Author: heftig
Revision: 705914

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 705912, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 705912, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 705912, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-13 23:41:48 UTC 
(rev 705914)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
705912, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-13 23:41:48 UTC (rev 705914)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=108
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-09 Thread Jan Steffens via arch-commits
Date: Wednesday, September 9, 2020 @ 20:30:14
  Author: heftig
Revision: 701655

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 701651, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 701651, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 701651, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-09 20:30:14 UTC 
(rev 701655)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
701651, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-09 20:30:14 UTC (rev 701655)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=107
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-05 Thread Jan Steffens via arch-commits
Date: Saturday, September 5, 2020 @ 13:24:03
  Author: heftig
Revision: 699142

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 699140, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 699140, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 699140, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-05 13:24:03 UTC 
(rev 699142)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
699140, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-05 13:24:03 UTC (rev 699142)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=106
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-09-03 Thread Jan Steffens via arch-commits
Date: Thursday, September 3, 2020 @ 19:14:38
  Author: heftig
Revision: 697569

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 697565, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 697566, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 697565, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-09-03 19:14:38 UTC 
(rev 697569)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
697566, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-09-03 19:14:38 UTC (rev 697569)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=105
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-08-27 Thread Jan Steffens via arch-commits
Date: Thursday, August 27, 2020 @ 20:06:50
  Author: heftig
Revision: 689964

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 689961, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 689961, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 689961, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-08-27 20:06:50 UTC 
(rev 689964)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
689961, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-08-27 20:06:50 UTC (rev 689964)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=104
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-08-26 Thread Jan Steffens via arch-commits
Date: Wednesday, August 26, 2020 @ 19:46:57
  Author: heftig
Revision: 689078

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 689075, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 689077, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 689075, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-08-26 19:46:57 UTC 
(rev 689078)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
689077, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-08-26 19:46:57 UTC (rev 689078)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=103
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-08-21 Thread Jan Steffens via arch-commits
Date: Friday, August 21, 2020 @ 18:06:06
  Author: heftig
Revision: 686341

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 686339, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 686339, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 686339, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-08-21 18:06:06 UTC 
(rev 686341)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
686339, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-08-21 18:06:06 UTC (rev 686341)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=102
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-08-16 Thread Jan Steffens via arch-commits
Date: Sunday, August 16, 2020 @ 19:04:28
  Author: heftig
Revision: 681844

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch
(from rev 681839, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 681841, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch (from 
rev 681839, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-staging-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-staging-x86_64/0001-linux-5.6.patch   2020-08-16 19:04:28 UTC 
(rev 681844)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
681841, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-08-16 19:04:28 UTC (rev 681844)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=100
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-08-03 Thread Jan Steffens via arch-commits
Date: Monday, August 3, 2020 @ 20:26:30
  Author: heftig
Revision: 668489

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 668486, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 668486, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 668486, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-08-03 20:26:30 UTC 
(rev 668489)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
668486, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-08-03 20:26:30 UTC (rev 668489)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=97
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-07-31 Thread Jan Steffens via arch-commits
Date: Friday, July 31, 2020 @ 18:38:50
  Author: heftig
Revision: 666286

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 666285, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 666285, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 666285, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-07-31 18:38:50 UTC 
(rev 666286)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
666285, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-31 18:38:50 UTC (rev 666286)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=96
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-07-29 Thread Jan Steffens via arch-commits
Date: Wednesday, July 29, 2020 @ 22:39:11
  Author: heftig
Revision: 665834

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 665829, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 665830, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 665829, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-07-29 22:39:11 UTC 
(rev 665834)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
665830, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-29 22:39:11 UTC (rev 665834)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=95
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-07-22 Thread Jan Steffens via arch-commits
Date: Wednesday, July 22, 2020 @ 21:30:35
  Author: heftig
Revision: 664937

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 664932, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 664933, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 664932, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-07-22 21:30:35 UTC 
(rev 664937)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
664933, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-22 21:30:35 UTC (rev 664937)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=94
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-07-16 Thread Jan Steffens via arch-commits
Date: Thursday, July 16, 2020 @ 21:07:31
  Author: heftig
Revision: 664210

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 664207, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 664207, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 664207, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-07-16 21:07:31 UTC 
(rev 664210)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
664207, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-16 21:07:31 UTC (rev 664210)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=93
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-07-09 Thread Jan Steffens via arch-commits
Date: Thursday, July 9, 2020 @ 23:22:30
  Author: heftig
Revision: 663050

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch
(from rev 663048, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 663048, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch (from 
rev 663048, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-staging-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-staging-x86_64/0001-linux-5.6.patch   2020-07-09 23:22:30 UTC 
(rev 663050)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
663048, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-07-09 23:22:30 UTC (rev 663050)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=92
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-07-01 Thread Jan Steffens via arch-commits
Date: Wednesday, July 1, 2020 @ 17:44:01
  Author: heftig
Revision: 657402

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 657400, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 657400, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 657400, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-07-01 17:44:01 UTC 
(rev 657402)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
657400, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-01 17:44:01 UTC (rev 657402)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=91
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-06-24 Thread Jan Steffens via arch-commits
Date: Thursday, June 25, 2020 @ 01:14:00
  Author: heftig
Revision: 652677

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 652672, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 652672, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 652672, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-06-25 01:14:00 UTC 
(rev 652677)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
652672, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-25 01:14:00 UTC (rev 652677)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=90
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-06-22 Thread Jan Steffens via arch-commits
Date: Monday, June 22, 2020 @ 10:01:08
  Author: heftig
Revision: 650364

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 650360, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 650360, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 650360, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-06-22 10:01:08 UTC 
(rev 650364)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
650360, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-22 10:01:08 UTC (rev 650364)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=89
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-06-18 Thread Jan Steffens via arch-commits
Date: Thursday, June 18, 2020 @ 17:21:16
  Author: heftig
Revision: 647389

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 647381, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 647381, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 647381, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-06-18 17:21:16 UTC 
(rev 647389)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
647381, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-18 17:21:16 UTC (rev 647389)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=88
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-06-17 Thread Jan Steffens via arch-commits
Date: Wednesday, June 17, 2020 @ 23:04:54
  Author: heftig
Revision: 646720

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 646716, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 646716, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   36 
 2 files changed, 76 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 646716, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-06-17 23:04:54 UTC 
(rev 646720)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
646716, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-17 23:04:54 UTC (rev 646720)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=87
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-06-01 Thread Jan Steffens via arch-commits
Date: Tuesday, June 2, 2020 @ 01:26:42
  Author: heftig
Revision: 637938

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 637934, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 637934, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 637934, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-06-02 01:26:42 UTC 
(rev 637938)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
637934, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-06-02 01:26:42 UTC (rev 637938)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=84
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-05-27 Thread Jan Steffens via arch-commits
Date: Thursday, May 28, 2020 @ 00:31:21
  Author: heftig
Revision: 636121

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 636118, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 636118, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 636118, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-28 00:31:21 UTC 
(rev 636121)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
636118, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-28 00:31:21 UTC (rev 636121)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=83
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-05-20 Thread Jan Steffens via arch-commits
Date: Wednesday, May 20, 2020 @ 23:01:18
  Author: heftig
Revision: 631028

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 631025, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 631027, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 631025, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-20 23:01:18 UTC 
(rev 631028)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
631027, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-20 23:01:18 UTC (rev 631028)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=82
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-05-14 Thread Jan Steffens via arch-commits
Date: Thursday, May 14, 2020 @ 07:45:09
  Author: heftig
Revision: 627878

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 627875, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 627875, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 627875, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-14 07:45:09 UTC 
(rev 627878)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
627875, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-14 07:45:09 UTC (rev 627878)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=81
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-05-08 Thread Jan Steffens via arch-commits
Date: Friday, May 8, 2020 @ 21:40:19
  Author: heftig
Revision: 625800

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch
(from rev 625796, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 625796, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch (from 
rev 625796, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-staging-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-staging-x86_64/0001-linux-5.6.patch   2020-05-08 21:40:19 UTC 
(rev 625800)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
625796, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-05-08 21:40:19 UTC (rev 625800)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=78
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-05-06 Thread Jan Steffens via arch-commits
Date: Wednesday, May 6, 2020 @ 19:48:26
  Author: heftig
Revision: 625176

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 625174, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 625174, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 625174, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-06 19:48:26 UTC 
(rev 625176)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
625174, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-06 19:48:26 UTC (rev 625176)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=77
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-05-02 Thread Jan Steffens via arch-commits
Date: Saturday, May 2, 2020 @ 13:14:15
  Author: heftig
Revision: 624381

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 624369, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 624369, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 624369, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-05-02 13:14:15 UTC 
(rev 624381)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
624369, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-02 13:14:15 UTC (rev 624381)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=75
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-29 Thread Jan Steffens via arch-commits
Date: Wednesday, April 29, 2020 @ 17:52:08
  Author: heftig
Revision: 622303

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 622296, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 622296, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 622296, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-29 17:52:08 UTC 
(rev 622303)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
622296, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-29 17:52:08 UTC (rev 622303)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=74
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-23 Thread Jan Steffens via arch-commits
Date: Thursday, April 23, 2020 @ 10:39:53
  Author: heftig
Revision: 617953

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 617946, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 617946, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 617946, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-23 10:39:53 UTC 
(rev 617953)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
617946, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-23 10:39:53 UTC (rev 617953)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=73
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-21 Thread Jan Steffens via arch-commits
Date: Tuesday, April 21, 2020 @ 11:50:16
  Author: heftig
Revision: 617357

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 617348, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 617349, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 617348, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-21 11:50:16 UTC 
(rev 617357)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
617349, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-21 11:50:16 UTC (rev 617357)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=72
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-17 Thread Jan Steffens via arch-commits
Date: Friday, April 17, 2020 @ 21:48:44
  Author: heftig
Revision: 616007

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 616002, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 616003, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 616002, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-17 21:48:44 UTC 
(rev 616007)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
616003, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-17 21:48:44 UTC (rev 616007)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=69
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-13 Thread Jan Steffens via arch-commits
Date: Monday, April 13, 2020 @ 13:21:48
  Author: heftig
Revision: 613660

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 613657, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 613657, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 613657, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-13 13:21:48 UTC 
(rev 613660)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
613657, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-13 13:21:48 UTC (rev 613660)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=68
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-08 Thread Jan Steffens via arch-commits
Date: Wednesday, April 8, 2020 @ 08:55:00
  Author: heftig
Revision: 612583

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch
(from rev 612580, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 612580, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-testing-x86_64/0001-linux-5.6.patch (from 
rev 612580, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-testing-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-testing-x86_64/0001-linux-5.6.patch   2020-04-08 08:55:00 UTC 
(rev 612583)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
612580, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-08 08:55:00 UTC (rev 612583)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=67
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2020-04-03 Thread Christian Hesse via arch-commits
Date: Friday, April 3, 2020 @ 19:56:48
  Author: eworm
Revision: 611202

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch
(from rev 611201, deepin-anything-arch/trunk/0001-linux-5.6.patch)
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 611201, deepin-anything-arch/trunk/PKGBUILD)

--+
 0001-linux-5.6.patch |   40 
 PKGBUILD |   35 +++
 2 files changed, 75 insertions(+)

Copied: 
deepin-anything-arch/repos/community-staging-x86_64/0001-linux-5.6.patch (from 
rev 611201, deepin-anything-arch/trunk/0001-linux-5.6.patch)
===
--- community-staging-x86_64/0001-linux-5.6.patch   
(rev 0)
+++ community-staging-x86_64/0001-linux-5.6.patch   2020-04-03 19:56:48 UTC 
(rev 611202)
@@ -0,0 +1,40 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 6a0e334..e25faf4 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -125,7 +125,11 @@ static ssize_t copy_vfs_changes(struct TIMESTRUCT *last, 
char* buf, size_t size)
+   ))
+   continue;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#else
++  time64_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
++#endif
+   struct tm ts;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
+@@ -333,6 +337,7 @@ static long ioctl_vfs_changes(struct file* filp, unsigned 
int cmd, unsigned long
+   }
+ }
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+ static struct file_operations procfs_ops = {
+   .owner = THIS_MODULE,
+   .open = open_vfs_changes,
+@@ -342,6 +347,15 @@ static struct file_operations procfs_ops = {
+   //.llseek = generic_file_llseek,
+   .release = release_vfs_changes,
+ };
++#else
++static struct proc_ops procfs_ops = {
++  .proc_open = open_vfs_changes,
++  .proc_read = read_vfs_changes,
++  .proc_ioctl = ioctl_vfs_changes,
++  .proc_lseek = no_llseek,
++  .proc_release = release_vfs_changes,
++};
++#endif
+ 
+ int __init init_vfs_changes(void)
+ {

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
611201, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-04-03 19:56:48 UTC (rev 611202)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=5.0.1
+pkgrel=64
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+'0001-linux-5.6.patch')
+sha512sums=('f79b4db917cce2611bd6964d00ae0e162fc500fa7ca76a987145456a9ee81296c776d2b83cf6492a4224c4e4fd95df3ad95a25c1c14d2d4e6865f5bbd639be14'
+
'5ddbd2d968bc5b01dbc99648cec81ea072675d7fe7198835649d5b581997945d32bd842dd7ebf60185aa84722b94575ac7aeb5e4616945e22fae53272907305b')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -Np1 < ../0001-linux-5.6.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make -C kernelmod kdir=/usr/src/linux
+}
+
+package() {
+  depends=('linux')
+
+  cd deepin-anything-$pkgver
+  local extradir=/usr/lib/modules/$(

[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-05-08 Thread Felix Yan via arch-commits
Date: Wednesday, May 8, 2019 @ 09:12:40
  Author: felixonmars
Revision: 462760

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 462759, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/kernel-5.1.patch
(from rev 462759, deepin-anything-arch/trunk/kernel-5.1.patch)

--+
 PKGBUILD |   34 ++
 kernel-5.1.patch |   13 +
 2 files changed, 47 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
462759, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-05-08 09:12:40 UTC (rev 462760)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.7
+_extramodules=extramodules-ARCH
+pkgrel=8
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux')
+makedepends=('linux-headers')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+kernel-5.1.patch)
+sha512sums=('b0951ada69a12123337d276e2cdfdd3f3c7ca3f41ac8688f0e4758b732bbe5635b34e9064dd778fb3cf9e7829e20dfa9b59135db5b19a107f194e71071662924'
+
'b23a7ad54866e04bb86ba401b144ea73725451852e8fb1ab54059a4c685203e9bbd16205b558191f0f33caa8c22a6066077a2068a346ff16f007ae7c5e31ccc7')
+
+prepare() {
+  patch -d deepin-anything-$pkgver -p1 -i ../kernel-5.1.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/kernel-5.1.patch 
(from rev 462759, deepin-anything-arch/trunk/kernel-5.1.patch)
===
--- community-staging-x86_64/kernel-5.1.patch   (rev 0)
+++ community-staging-x86_64/kernel-5.1.patch   2019-05-08 09:12:40 UTC (rev 
462760)
@@ -0,0 +1,13 @@
+diff --git a/kernelmod/vfs_utils.c b/kernelmod/vfs_utils.c
+index d166f18..2549e10 100644
+--- a/kernelmod/vfs_utils.c
 b/kernelmod/vfs_utils.c
+@@ -24,7 +24,7 @@ char* __init read_file_content(const char* filename, int 
*real_size)
+   return 0;
+   }
+   mm_segment_t old_fs = get_fs();
+-  set_fs(get_ds());
++  set_fs(KERNEL_DS);
+ 
+   // i_size_read is useless here because procfs does not have i_size
+   // loff_t size = i_size_read(file_inode(filp));


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-27 Thread Jan Steffens via arch-commits
Date: Wednesday, February 27, 2019 @ 21:35:26
  Author: heftig
Revision: 436838

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 436828, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 436828, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
436828, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-27 21:35:26 UTC (rev 436838)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.4
+_extramodules=extramodules-ARCH
+pkgrel=6
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('fcb7683ce3bef818ac06dd62f14b5624669f9c09b53c5f08e319b724f5408bc221154428a6436d9e2a68aa6444e966c494c8a7611dfed0c93b6b9e71a3da0f55'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 436828, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-27 21:35:26 UTC (rev 
436838)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-23 Thread Jan Steffens via arch-commits
Date: Saturday, February 23, 2019 @ 17:29:16
  Author: heftig
Revision: 435426

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 435425, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 435425, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
435425, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-23 17:29:16 UTC (rev 435426)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.4
+_extramodules=extramodules-ARCH
+pkgrel=5
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('fcb7683ce3bef818ac06dd62f14b5624669f9c09b53c5f08e319b724f5408bc221154428a6436d9e2a68aa6444e966c494c8a7611dfed0c93b6b9e71a3da0f55'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 435425, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-23 17:29:16 UTC (rev 
435426)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-22 Thread Jan Steffens via arch-commits
Date: Friday, February 22, 2019 @ 15:51:28
  Author: heftig
Revision: 435217

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 435207, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 435207, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
435207, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-22 15:51:28 UTC (rev 435217)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.4
+_extramodules=extramodules-ARCH
+pkgrel=4
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('fcb7683ce3bef818ac06dd62f14b5624669f9c09b53c5f08e319b724f5408bc221154428a6436d9e2a68aa6444e966c494c8a7611dfed0c93b6b9e71a3da0f55'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 435207, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-22 15:51:28 UTC (rev 
435217)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-20 Thread Jan Steffens via arch-commits
Date: Wednesday, February 20, 2019 @ 23:11:32
  Author: heftig
Revision: 434812

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 434811, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 434811, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
434811, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-20 23:11:32 UTC (rev 434812)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.4
+_extramodules=extramodules-ARCH
+pkgrel=3
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('fcb7683ce3bef818ac06dd62f14b5624669f9c09b53c5f08e319b724f5408bc221154428a6436d9e2a68aa6444e966c494c8a7611dfed0c93b6b9e71a3da0f55'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 434811, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-20 23:11:32 UTC (rev 
434812)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-15 Thread Jan Steffens via arch-commits
Date: Friday, February 15, 2019 @ 21:08:04
  Author: heftig
Revision: 433052

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 433051, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 433051, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
433051, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-15 21:08:04 UTC (rev 433052)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=13
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 433051, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-15 21:08:04 UTC (rev 
433052)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-12 Thread Jan Steffens via arch-commits
Date: Wednesday, February 13, 2019 @ 05:56:30
  Author: heftig
Revision: 432040

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 432033, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 432033, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
432033, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-13 05:56:30 UTC (rev 432040)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=12
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 432033, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-13 05:56:30 UTC (rev 
432040)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-02-07 Thread Jan Steffens via arch-commits
Date: Thursday, February 7, 2019 @ 08:00:12
  Author: heftig
Revision: 429818

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 429811, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 429812, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
429811, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-07 08:00:12 UTC (rev 429818)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=11
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 429812, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-02-07 08:00:12 UTC (rev 
429818)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-01-31 Thread Jan Steffens via arch-commits
Date: Thursday, January 31, 2019 @ 12:04:21
  Author: heftig
Revision: 428702

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 428701, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 428701, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
428701, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-31 12:04:21 UTC (rev 428702)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=10
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 428701, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-01-31 12:04:21 UTC (rev 
428702)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-01-26 Thread Jan Steffens via arch-commits
Date: Saturday, January 26, 2019 @ 15:40:01
  Author: heftig
Revision: 428134

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 428129, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 428129, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
428129, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-26 15:40:01 UTC (rev 428134)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=9
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 428129, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-01-26 15:40:01 UTC (rev 
428134)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-01-23 Thread Jan Steffens via arch-commits
Date: Wednesday, January 23, 2019 @ 08:56:05
  Author: heftig
Revision: 427217

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 427211, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 427211, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   35 +++
 linux-4.20.patch |   16 
 2 files changed, 51 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
427211, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-23 08:56:05 UTC (rev 427217)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=8
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 427211, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-01-23 08:56:05 UTC (rev 
427217)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-01-16 Thread Jan Steffens via arch-commits
Date: Thursday, January 17, 2019 @ 01:15:06
  Author: heftig
Revision: 423754

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-anything-arch/repos/community-staging-x86_64/
  deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD
(from rev 423752, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch
(from rev 423752, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   36 
 linux-4.20.patch |   16 
 2 files changed, 52 insertions(+)

Copied: deepin-anything-arch/repos/community-staging-x86_64/PKGBUILD (from rev 
423752, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-17 01:15:06 UTC (rev 423754)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=6
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-staging-x86_64/linux-4.20.patch 
(from rev 423752, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-staging-x86_64/linux-4.20.patch   (rev 0)
+++ community-staging-x86_64/linux-4.20.patch   2019-01-17 01:15:06 UTC (rev 
423754)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-01-14 Thread Felix Yan via arch-commits
Date: Monday, January 14, 2019 @ 13:01:30
  Author: felixonmars
Revision: 423071

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-anything-arch/repos/community-testing-x86_64/
  deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD
(from rev 423070, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-testing-x86_64/linux-4.20.patch
(from rev 423070, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   36 
 linux-4.20.patch |   16 
 2 files changed, 52 insertions(+)

Copied: deepin-anything-arch/repos/community-testing-x86_64/PKGBUILD (from rev 
423070, deepin-anything-arch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-01-14 13:01:30 UTC (rev 423071)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=5
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-testing-x86_64/linux-4.20.patch 
(from rev 423070, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-testing-x86_64/linux-4.20.patch   (rev 0)
+++ community-testing-x86_64/linux-4.20.patch   2019-01-14 13:01:30 UTC (rev 
423071)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000, 


[arch-commits] Commit in deepin-anything-arch/repos (3 files)

2019-01-14 Thread Felix Yan via arch-commits
Date: Monday, January 14, 2019 @ 12:38:52
  Author: felixonmars
Revision: 423065

archrelease: copy trunk to community-x86_64

Added:
  deepin-anything-arch/repos/community-x86_64/
  deepin-anything-arch/repos/community-x86_64/PKGBUILD
(from rev 423064, deepin-anything-arch/trunk/PKGBUILD)
  deepin-anything-arch/repos/community-x86_64/linux-4.20.patch
(from rev 423064, deepin-anything-arch/trunk/linux-4.20.patch)

--+
 PKGBUILD |   36 
 linux-4.20.patch |   16 
 2 files changed, 52 insertions(+)

Copied: deepin-anything-arch/repos/community-x86_64/PKGBUILD (from rev 423064, 
deepin-anything-arch/trunk/PKGBUILD)
===
--- community-x86_64/PKGBUILD   (rev 0)
+++ community-x86_64/PKGBUILD   2019-01-14 12:38:52 UTC (rev 423065)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan 
+
+pkgname=deepin-anything-arch
+pkgver=0.0.3
+_extramodules=extramodules-ARCH
+pkgrel=4
+pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything;
+license=('GPL3')
+depends=('linux>=4.20' 'linux<4.21')
+makedepends=('linux-headers>=4.20')
+provides=('DEEPIN-ANYTHING-MODULE')
+replaces=('deepin-anything-module')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz;
+linux-4.20.patch)
+sha512sums=('8a506ba57d6a2ac9c9089719d18013fbde6443cb4f63de79498269e728b7e8725b4e06e7029ae2d2242aaac955c63e56c680fdd18e3fb0d72e9953a9fc5e8402'
+
'dc3c85e9535cc589fdf56d265c4330519c92b5bcc406153e3162ba6ef5e799b702c394e1961132770f4f3ddd288dbbfe74a9d8056329e4585eb5a2094ffe0155')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.20.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make -C kernelmod kdir=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd deepin-anything-$pkgver/kernelmod
+  install -Dm644 vfs_monitor.ko 
"$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+  gzip "$pkgdir"/usr/lib/modules/$_extramodules/vfs_monitor.ko
+}

Copied: deepin-anything-arch/repos/community-x86_64/linux-4.20.patch (from rev 
423064, deepin-anything-arch/trunk/linux-4.20.patch)
===
--- community-x86_64/linux-4.20.patch   (rev 0)
+++ community-x86_64/linux-4.20.patch   2019-01-14 12:38:52 UTC (rev 423065)
@@ -0,0 +1,16 @@
+diff --git a/kernelmod/vfs_change.c b/kernelmod/vfs_change.c
+index 0d6d360..d09e439 100644
+--- a/kernelmod/vfs_change.c
 b/kernelmod/vfs_change.c
+@@ -115,7 +115,11 @@ static ssize_t copy_vfs_changes(struct timeval *last, 
char* buf, size_t size)
+ 
+   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
+   struct tm ts;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
+   time_to_tm(shifted_secs, 0, );
++#else
++  time64_to_tm(shifted_secs, 0, );
++#endif
+   char temp[MIN_LINE_SIZE];
+   snprintf(temp, sizeof(temp), "%04ld-%02d-%02d 
%02d:%02d:%02d.%03ld %s ",
+   1900+ts.tm_year, 1+ts.tm_mon, ts.tm_mday, ts.tm_hour, 
ts.tm_min, ts.tm_sec, vc->ts.tv_usec/1000,