Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: neard-0.18
@ 2022-02-10 10:52 JamiKettunen
  2022-02-10 10:53 ` [PR PATCH] [Updated] " JamiKettunen
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-10 10:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

There is a new pull request by JamiKettunen against master on the void-packages repository

https://github.com/JamiKettunen/void-packages neard
https://github.com/void-linux/void-packages/pull/35502

New package: neard-0.18
<!-- Uncomment relevant sections and delete options which are not applicable -->
I've verified the [PN544 NFC chip in my phone](https://gitlab.com/msm8998-mainline/linux/-/commit/41fa0860) functions just fine via this NFC daemon.

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35502.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-neard-35502.patch --]
[-- Type: text/x-diff, Size: 2544 bytes --]

From 035a9f2d5c8670603d3971d6de5b1e815621c70f Mon Sep 17 00:00:00 2001
From: Jami Kettunen <jami.kettunen@protonmail.com>
Date: Thu, 10 Feb 2022 09:54:01 +0200
Subject: [PATCH] New package: neard-0.18

---
 srcpkgs/neard-devel               |  1 +
 srcpkgs/neard/files/neard/log/run |  1 +
 srcpkgs/neard/files/neard/run     |  4 ++++
 srcpkgs/neard/template            | 34 +++++++++++++++++++++++++++++++
 4 files changed, 40 insertions(+)
 create mode 120000 srcpkgs/neard-devel
 create mode 120000 srcpkgs/neard/files/neard/log/run
 create mode 100644 srcpkgs/neard/files/neard/run
 create mode 100644 srcpkgs/neard/template

diff --git a/srcpkgs/neard-devel b/srcpkgs/neard-devel
new file mode 120000
index 000000000000..fac01218e66a
--- /dev/null
+++ b/srcpkgs/neard-devel
@@ -0,0 +1 @@
+neard
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/log/run b/srcpkgs/neard/files/neard/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/neard/files/neard/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/run b/srcpkgs/neard/files/neard/run
new file mode 100644
index 000000000000..34da536577b2
--- /dev/null
+++ b/srcpkgs/neard/files/neard/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+sv check dbus >/dev/null || exit 1
+[ -f conf ] && . ./conf
+exec /usr/libexec/nfc/neard ${ARGS:--n}
diff --git a/srcpkgs/neard/template b/srcpkgs/neard/template
new file mode 100644
index 000000000000..006c98a6f7a1
--- /dev/null
+++ b/srcpkgs/neard/template
@@ -0,0 +1,34 @@
+# Template file for 'neard'
+pkgname=neard
+version=0.18
+revision=1
+build_style=gnu-configure
+configure_args="--disable-systemd --enable-tools"
+makedepends="glib-devel libnl-devel"
+hostmakedepends="autoconf autoconf-archive automake libtool pkg-config"
+short_desc="Near Field Communication (NFC) manager"
+maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/linux-nfc/neard"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=c013e3115315e2e11d16b5f0f1c8ce9afbcdba26800aad91245fd9b4a5dc938b
+
+pre_configure() {
+	./bootstrap # generate configure script
+}
+
+post_install() {
+	vsv neard
+}
+
+neard-devel_package() {
+	depends="neard>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		# correct neard version.h install path
+		mv ${PKGDESTDIR}/usr/include/version.h \
+		   ${PKGDESTDIR}/usr/include/near
+		vmove usr/lib/pkgconfig
+	}
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
@ 2022-02-10 10:53 ` JamiKettunen
  2022-02-12 17:53 ` [PR REVIEW] " paper42
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-10 10:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

There is an updated pull request by JamiKettunen against master on the void-packages repository

https://github.com/JamiKettunen/void-packages neard
https://github.com/void-linux/void-packages/pull/35502

New package: neard-0.18
<!-- Uncomment relevant sections and delete options which are not applicable -->
I've verified the [PN544 NFC chip in my phone](https://gitlab.com/msm8998-mainline/linux/-/commit/41fa0860) functions just fine via this NFC daemon.

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35502.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-neard-35502.patch --]
[-- Type: text/x-diff, Size: 2544 bytes --]

From 8cb83f24967827dc3e78a1dde0938d695f2f276a Mon Sep 17 00:00:00 2001
From: Jami Kettunen <jami.kettunen@protonmail.com>
Date: Thu, 10 Feb 2022 09:54:01 +0200
Subject: [PATCH] New package: neard-0.18

---
 srcpkgs/neard-devel               |  1 +
 srcpkgs/neard/files/neard/log/run |  1 +
 srcpkgs/neard/files/neard/run     |  4 ++++
 srcpkgs/neard/template            | 34 +++++++++++++++++++++++++++++++
 4 files changed, 40 insertions(+)
 create mode 120000 srcpkgs/neard-devel
 create mode 120000 srcpkgs/neard/files/neard/log/run
 create mode 100644 srcpkgs/neard/files/neard/run
 create mode 100644 srcpkgs/neard/template

diff --git a/srcpkgs/neard-devel b/srcpkgs/neard-devel
new file mode 120000
index 000000000000..fac01218e66a
--- /dev/null
+++ b/srcpkgs/neard-devel
@@ -0,0 +1 @@
+neard
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/log/run b/srcpkgs/neard/files/neard/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/neard/files/neard/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/run b/srcpkgs/neard/files/neard/run
new file mode 100644
index 000000000000..34da536577b2
--- /dev/null
+++ b/srcpkgs/neard/files/neard/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+sv check dbus >/dev/null || exit 1
+[ -f conf ] && . ./conf
+exec /usr/libexec/nfc/neard ${ARGS:--n}
diff --git a/srcpkgs/neard/template b/srcpkgs/neard/template
new file mode 100644
index 000000000000..f9c95bc9d2d7
--- /dev/null
+++ b/srcpkgs/neard/template
@@ -0,0 +1,34 @@
+# Template file for 'neard'
+pkgname=neard
+version=0.18
+revision=1
+build_style=gnu-configure
+configure_args="--disable-systemd --enable-tools"
+hostmakedepends="autoconf autoconf-archive automake libtool pkg-config"
+makedepends="glib-devel libnl-devel"
+short_desc="Near Field Communication (NFC) manager"
+maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/linux-nfc/neard"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=c013e3115315e2e11d16b5f0f1c8ce9afbcdba26800aad91245fd9b4a5dc938b
+
+pre_configure() {
+	./bootstrap # generate configure script
+}
+
+post_install() {
+	vsv neard
+}
+
+neard-devel_package() {
+	depends="neard>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		# correct neard version.h install path
+		mv ${PKGDESTDIR}/usr/include/version.h \
+		   ${PKGDESTDIR}/usr/include/near
+		vmove usr/lib/pkgconfig
+	}
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (2 preceding siblings ...)
  2022-02-12 17:53 ` paper42
@ 2022-02-12 17:53 ` paper42
  2022-02-12 17:53 ` paper42
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-12 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805186457

Comment:
```suggestion
[ -r conf ] && . ./conf
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
  2022-02-10 10:53 ` [PR PATCH] [Updated] " JamiKettunen
  2022-02-12 17:53 ` [PR REVIEW] " paper42
@ 2022-02-12 17:53 ` paper42
  2022-02-12 17:53 ` paper42
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-12 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805186444

Comment:
If -n means don't fork to background, we should set it all the time even if ARGS is set and we usually call this variable OPTS.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
  2022-02-10 10:53 ` [PR PATCH] [Updated] " JamiKettunen
@ 2022-02-12 17:53 ` paper42
  2022-02-12 17:53 ` paper42
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-12 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805186611

Comment:
```suggestion
distfiles="https://github.com/linux-nfc/neard/archive/refs/tags/v${version}.tar.gz"
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (4 preceding siblings ...)
  2022-02-12 17:53 ` paper42
@ 2022-02-12 17:53 ` paper42
  2022-02-13 14:42 ` JamiKettunen
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-12 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805186684

Comment:
```suggestion
	depends="${sourcepkg}>=${version}_${revision}"
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (3 preceding siblings ...)
  2022-02-12 17:53 ` paper42
@ 2022-02-12 17:53 ` paper42
  2022-02-12 17:53 ` paper42
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-12 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805186582

Comment:
```suggestion
	autoreconf -fi
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (5 preceding siblings ...)
  2022-02-12 17:53 ` paper42
@ 2022-02-13 14:42 ` JamiKettunen
  2022-02-13 14:49 ` JamiKettunen
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-13 14:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805344873

Comment:
Any reason this is better? It seems ` -f` and `-r` are mixed in `run` files across the tree. I mean I suppose we do have to be able to read it to source it.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (6 preceding siblings ...)
  2022-02-13 14:42 ` JamiKettunen
@ 2022-02-13 14:49 ` JamiKettunen
  2022-02-13 15:20 ` [PR PATCH] [Updated] " JamiKettunen
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-13 14:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805345720

Comment:
If you don't mind I'll switch the URLs to https://git.kernel.org/pub/scm/network/nfc/neard.git; I'd use `${KERNEL_SITE}/network/nfc/neard-${version}.tar.xz` but they only have "pre-configured" archives up to v0.16 :/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (7 preceding siblings ...)
  2022-02-13 14:49 ` JamiKettunen
@ 2022-02-13 15:20 ` JamiKettunen
  2022-02-13 16:28 ` JamiKettunen
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-13 15:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

There is an updated pull request by JamiKettunen against master on the void-packages repository

https://github.com/JamiKettunen/void-packages neard
https://github.com/void-linux/void-packages/pull/35502

New package: neard-0.18
<!-- Uncomment relevant sections and delete options which are not applicable -->
I've verified the [PN544 NFC chip in my phone](https://gitlab.com/msm8998-mainline/linux/-/commit/41fa0860) functions just fine via this NFC daemon.

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35502.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-neard-35502.patch --]
[-- Type: text/x-diff, Size: 3406 bytes --]

From 7516d9c280f47d313895ae57babfbc1a354bf1b2 Mon Sep 17 00:00:00 2001
From: Jami Kettunen <jami.kettunen@protonmail.com>
Date: Thu, 10 Feb 2022 09:54:01 +0200
Subject: [PATCH] New package: neard-0.18

---
 srcpkgs/neard-devel               |  1 +
 srcpkgs/neard/files/neard/log/run |  1 +
 srcpkgs/neard/files/neard/run     |  4 ++++
 srcpkgs/neard/files/seeld/log/run |  1 +
 srcpkgs/neard/files/seeld/run     |  4 ++++
 srcpkgs/neard/template            | 35 +++++++++++++++++++++++++++++++
 6 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/neard-devel
 create mode 120000 srcpkgs/neard/files/neard/log/run
 create mode 100644 srcpkgs/neard/files/neard/run
 create mode 120000 srcpkgs/neard/files/seeld/log/run
 create mode 100644 srcpkgs/neard/files/seeld/run
 create mode 100644 srcpkgs/neard/template

diff --git a/srcpkgs/neard-devel b/srcpkgs/neard-devel
new file mode 120000
index 000000000000..fac01218e66a
--- /dev/null
+++ b/srcpkgs/neard-devel
@@ -0,0 +1 @@
+neard
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/log/run b/srcpkgs/neard/files/neard/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/neard/files/neard/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/run b/srcpkgs/neard/files/neard/run
new file mode 100644
index 000000000000..e2212bf82943
--- /dev/null
+++ b/srcpkgs/neard/files/neard/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+sv check dbus >/dev/null || exit 1
+[ -r conf ] && . ./conf
+exec /usr/libexec/nfc/neard -n ${OPTS}
diff --git a/srcpkgs/neard/files/seeld/log/run b/srcpkgs/neard/files/seeld/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/neard/files/seeld/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/neard/files/seeld/run b/srcpkgs/neard/files/seeld/run
new file mode 100644
index 000000000000..97d45413bb79
--- /dev/null
+++ b/srcpkgs/neard/files/seeld/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+sv check dbus >/dev/null || exit 1
+[ -r conf ] && . ./conf
+exec /usr/libexec/nfc/seeld -n ${OPTS}
diff --git a/srcpkgs/neard/template b/srcpkgs/neard/template
new file mode 100644
index 000000000000..cd2eee97129c
--- /dev/null
+++ b/srcpkgs/neard/template
@@ -0,0 +1,35 @@
+# Template file for 'neard'
+pkgname=neard
+version=0.18
+revision=1
+build_style=gnu-configure
+# TODO: add '--enable-test' when updated from python2 & gtk+2
+configure_args="--disable-systemd --enable-ese --enable-tools"
+hostmakedepends="autoconf autoconf-archive automake libtool pkg-config"
+makedepends="glib-devel libnl-devel"
+short_desc="Near Field Communication (NFC) manager"
+maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
+license="GPL-2.0-only"
+homepage="https://git.kernel.org/pub/scm/network/nfc/neard.git/"
+distfiles="https://git.kernel.org/pub/scm/network/nfc/neard.git/snapshot/neard-${version}.tar.gz"
+checksum=c013e3115315e2e11d16b5f0f1c8ce9afbcdba26800aad91245fd9b4a5dc938b
+
+pre_configure() {
+	autoreconf -fi
+}
+
+post_install() {
+	vsv neard
+}
+
+neard-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		# correct neard version.h install path
+		mv ${PKGDESTDIR}/usr/include/version.h \
+		   ${PKGDESTDIR}/usr/include/near
+		vmove usr/lib/pkgconfig
+	}
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (8 preceding siblings ...)
  2022-02-13 15:20 ` [PR PATCH] [Updated] " JamiKettunen
@ 2022-02-13 16:28 ` JamiKettunen
  2022-02-13 16:28 ` [PR REVIEW] " JamiKettunen
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-13 16:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

There is an updated pull request by JamiKettunen against master on the void-packages repository

https://github.com/JamiKettunen/void-packages neard
https://github.com/void-linux/void-packages/pull/35502

New package: neard-0.18
<!-- Uncomment relevant sections and delete options which are not applicable -->
I've verified the [PN544 NFC chip in my phone](https://gitlab.com/msm8998-mainline/linux/-/commit/41fa0860) functions just fine via this NFC daemon.

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35502.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-neard-35502.patch --]
[-- Type: text/x-diff, Size: 4221 bytes --]

From 0623420c76838c983ab36bd3b82710c44805ac64 Mon Sep 17 00:00:00 2001
From: Jami Kettunen <jami.kettunen@protonmail.com>
Date: Thu, 10 Feb 2022 09:54:01 +0200
Subject: [PATCH] New package: neard-0.18

---
 srcpkgs/neard-devel                           |  1 +
 srcpkgs/neard/files/neard/log/run             |  1 +
 srcpkgs/neard/files/neard/run                 |  4 +++
 srcpkgs/neard/files/seeld/log/run             |  1 +
 srcpkgs/neard/files/seeld/run                 |  4 +++
 .../neard/patches/install-se-dbus-conf.diff   | 17 +++++++++
 srcpkgs/neard/template                        | 36 +++++++++++++++++++
 7 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/neard-devel
 create mode 120000 srcpkgs/neard/files/neard/log/run
 create mode 100644 srcpkgs/neard/files/neard/run
 create mode 120000 srcpkgs/neard/files/seeld/log/run
 create mode 100644 srcpkgs/neard/files/seeld/run
 create mode 100644 srcpkgs/neard/patches/install-se-dbus-conf.diff
 create mode 100644 srcpkgs/neard/template

diff --git a/srcpkgs/neard-devel b/srcpkgs/neard-devel
new file mode 120000
index 000000000000..fac01218e66a
--- /dev/null
+++ b/srcpkgs/neard-devel
@@ -0,0 +1 @@
+neard
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/log/run b/srcpkgs/neard/files/neard/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/neard/files/neard/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/neard/files/neard/run b/srcpkgs/neard/files/neard/run
new file mode 100644
index 000000000000..e26e7c0279c1
--- /dev/null
+++ b/srcpkgs/neard/files/neard/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+sv check dbus >/dev/null || exit 1
+[ -r conf ] && . ./conf
+exec /usr/libexec/nfc/neard --nodaemon ${OPTS}
diff --git a/srcpkgs/neard/files/seeld/log/run b/srcpkgs/neard/files/seeld/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/neard/files/seeld/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/neard/files/seeld/run b/srcpkgs/neard/files/seeld/run
new file mode 100644
index 000000000000..22790b957346
--- /dev/null
+++ b/srcpkgs/neard/files/seeld/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+sv check dbus >/dev/null || exit 1
+[ -r conf ] && . ./conf
+exec /usr/libexec/nfc/seeld --nodaemon ${OPTS}
diff --git a/srcpkgs/neard/patches/install-se-dbus-conf.diff b/srcpkgs/neard/patches/install-se-dbus-conf.diff
new file mode 100644
index 000000000000..a16cbe6a3061
--- /dev/null
+++ b/srcpkgs/neard/patches/install-se-dbus-conf.diff
@@ -0,0 +1,17 @@
+Sent as upstream PR: https://github.com/linux-nfc/neard/pull/15
+---
+diff --git a/Makefile.am b/Makefile.am
+index 26aa4ca..1ff5d31 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -111,6 +111,10 @@ dbusdir = ${sysconfdir}/dbus-1/system.d/
+ 
+ dist_dbus_DATA = src/org.neard.conf
+ 
++if SE
++dist_dbus_DATA += se/org.neard.se.conf
++endif
++
+ if MAINTAINER_MODE
+ 
+ if SE
diff --git a/srcpkgs/neard/template b/srcpkgs/neard/template
new file mode 100644
index 000000000000..beb7743a05d8
--- /dev/null
+++ b/srcpkgs/neard/template
@@ -0,0 +1,36 @@
+# Template file for 'neard'
+pkgname=neard
+version=0.18
+revision=1
+build_style=gnu-configure
+# TODO: add '--enable-test' when updated from python2 & gtk+2
+configure_args="--disable-systemd --enable-ese --enable-tools"
+hostmakedepends="autoconf autoconf-archive automake libtool pkg-config"
+makedepends="glib-devel libnl-devel"
+depends="dbus"
+short_desc="Near Field Communication (NFC) manager"
+maintainer="Jami Kettunen <jami.kettunen@protonmail.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/linux-nfc/neard"
+distfiles="https://github.com/linux-nfc/neard/archive/refs/tags/v${version}.tar.gz"
+checksum=c013e3115315e2e11d16b5f0f1c8ce9afbcdba26800aad91245fd9b4a5dc938b
+
+pre_configure() {
+	autoreconf -fi
+}
+
+post_install() {
+	vsv neard
+}
+
+neard-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		# correct neard version.h install path
+		mv ${PKGDESTDIR}/usr/include/version.h \
+		   ${PKGDESTDIR}/usr/include/near
+		vmove usr/lib/pkgconfig
+	}
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (9 preceding siblings ...)
  2022-02-13 16:28 ` JamiKettunen
@ 2022-02-13 16:28 ` JamiKettunen
  2022-02-14  8:22 ` paper42
  2022-02-14  8:23 ` [PR PATCH] [Merged]: " paper42
  12 siblings, 0 replies; 14+ messages in thread
From: JamiKettunen @ 2022-02-13 16:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805382102

Comment:
Ah nvm I just checked the README again, development moved away from kernel.org repo.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR REVIEW] New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (10 preceding siblings ...)
  2022-02-13 16:28 ` [PR REVIEW] " JamiKettunen
@ 2022-02-14  8:22 ` paper42
  2022-02-14  8:23 ` [PR PATCH] [Merged]: " paper42
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-14  8:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/35502#discussion_r805596120

Comment:
That's interesting, all services in base use -r, but it doesn't seem universal outside of base.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Merged]: New package: neard-0.18
  2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
                   ` (11 preceding siblings ...)
  2022-02-14  8:22 ` paper42
@ 2022-02-14  8:23 ` paper42
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2022-02-14  8:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]

There's a merged pull request on the void-packages repository

New package: neard-0.18
https://github.com/void-linux/void-packages/pull/35502

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
I've verified the [PN544 NFC chip in my phone](https://gitlab.com/msm8998-mainline/linux/-/commit/41fa0860) functions just fine via this NFC daemon.

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-02-14  8:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 10:52 [PR PATCH] New package: neard-0.18 JamiKettunen
2022-02-10 10:53 ` [PR PATCH] [Updated] " JamiKettunen
2022-02-12 17:53 ` [PR REVIEW] " paper42
2022-02-12 17:53 ` paper42
2022-02-12 17:53 ` paper42
2022-02-12 17:53 ` paper42
2022-02-12 17:53 ` paper42
2022-02-13 14:42 ` JamiKettunen
2022-02-13 14:49 ` JamiKettunen
2022-02-13 15:20 ` [PR PATCH] [Updated] " JamiKettunen
2022-02-13 16:28 ` JamiKettunen
2022-02-13 16:28 ` [PR REVIEW] " JamiKettunen
2022-02-14  8:22 ` paper42
2022-02-14  8:23 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).