* [PR PATCH] New package: ipp-usb-0.9.17
@ 2021-02-20 22:36 oynqr
2021-02-21 0:50 ` [PR REVIEW] " ericonr
` (17 more replies)
0 siblings, 18 replies; 19+ messages in thread
From: oynqr @ 2021-02-20 22:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1584 bytes --]
There is a new pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages master
https://github.com/void-linux/void-packages/pull/28945
New package: ipp-usb-0.9.17
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/28945.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28945.patch --]
[-- Type: text/x-diff, Size: 3052 bytes --]
From 35ab9b4efb8de26355740695b4677e528993648a Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 20 Feb 2021 23:28:15 +0100
Subject: [PATCH] New package: ipp-usb-0.9.17
---
srcpkgs/ipp-usb/files/71-ipp-usb.rules | 1 +
srcpkgs/ipp-usb/files/README.voidlinux | 13 +++++++++++++
srcpkgs/ipp-usb/files/ipp-usb/run | 3 +++
srcpkgs/ipp-usb/template | 26 ++++++++++++++++++++++++++
4 files changed, 43 insertions(+)
create mode 100644 srcpkgs/ipp-usb/files/71-ipp-usb.rules
create mode 100644 srcpkgs/ipp-usb/files/README.voidlinux
create mode 100644 srcpkgs/ipp-usb/files/ipp-usb/run
create mode 100644 srcpkgs/ipp-usb/template
diff --git a/srcpkgs/ipp-usb/files/71-ipp-usb.rules b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
new file mode 100644
index 00000000000..854376d201b
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664", RUN+="/usr/bin/sv o ipp-usb"
diff --git a/srcpkgs/ipp-usb/files/README.voidlinux b/srcpkgs/ipp-usb/files/README.voidlinux
new file mode 100644
index 00000000000..8efd509b94b
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/README.voidlinux
@@ -0,0 +1,13 @@
+Void-specific instructions:
+============================
+
+By default, ipp-usb constantly runs in the background. It can also run on
+demand by utilizing udev rules to detect usb printers. You can enable
+this functionality by doing the following:
+
+echo 'OPTS=udev' > /etc/sv/ipp-usb/conf
+touch /etc/sv/ipp-usb/down
+ln -s /etc/sv/ipp-usb /var/services
+cp /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Afterwards restart your computer or reload udev rules.
diff --git a/srcpkgs/ipp-usb/files/ipp-usb/run b/srcpkgs/ipp-usb/files/ipp-usb/run
new file mode 100644
index 00000000000..d03b506ffe8
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/ipp-usb/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r ./conf ] && . ./conf
+exec ipp-usb ${OPTS:=standalone} 2>&1
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
new file mode 100644
index 00000000000..80e2e259ef8
--- /dev/null
+++ b/srcpkgs/ipp-usb/template
@@ -0,0 +1,26 @@
+# Template file for 'ipp-usb'
+pkgname=ipp-usb
+version=0.9.17
+revision=1
+build_style=go
+go_import_path="github.com/OpenPrinting/ipp-usb"
+conf_files="/etc/ipp-usb/ipp-usb.conf"
+hostmakedepends="pkg-config"
+makedepends="avahi-libs-devel libusb-devel"
+depends="avahi"
+short_desc="Allows using the IPP protocol over usb connections"
+maintainer="Philipp David <pd@3b.pm>"
+license="BSD-2-Clause"
+homepage="https://github.com/OpenPrinting/ipp-usb"
+distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz>$pkgname-$version.tar.gz"
+checksum=4c1fbd89f7d971eed8447cd80d3e4723edd968043cb2fa4c490ac305720156c3
+
+post_install() {
+ vsv ipp-usb
+ vman ipp-usb.8
+ vdoc README.md
+ vdoc ${FILESDIR}/README.voidlinux
+ vdoc ${FILESDIR}/71-ipp-usb.rules
+ vinstall ipp-usb.conf 644 /etc/ipp-usb
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
@ 2021-02-21 0:50 ` ericonr
2021-02-21 0:50 ` ericonr
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ericonr @ 2021-02-21 0:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r579729920
Comment:
Maybe suggest linking the rule instead, so it will be automatically updated?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
2021-02-21 0:50 ` [PR REVIEW] " ericonr
@ 2021-02-21 0:50 ` ericonr
2021-02-21 2:44 ` CameronNemo
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ericonr @ 2021-02-21 0:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r579730046
Comment:
```suggestion
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec ipp-usb ${OPTS:=standalone}
```
So errors from conf are also caught.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
2021-02-21 0:50 ` [PR REVIEW] " ericonr
2021-02-21 0:50 ` ericonr
@ 2021-02-21 2:44 ` CameronNemo
2021-02-21 9:34 ` [PR PATCH] [Updated] " oynqr
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: CameronNemo @ 2021-02-21 2:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#issuecomment-782785382
Comment:
interesting reading: https://github.com/OpenPrinting/ippusbxd#before-you-begin-ippusbxd-or-ipp-usb
also maybe want to add something to the printing section of the docs? https://docs.voidlinux.org/config/print/index.html
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (2 preceding siblings ...)
2021-02-21 2:44 ` CameronNemo
@ 2021-02-21 9:34 ` oynqr
2021-02-21 9:39 ` [PR REVIEW] " oynqr
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-02-21 9:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
There is an updated pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages master
https://github.com/void-linux/void-packages/pull/28945
New package: ipp-usb-0.9.17
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/28945.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28945.patch --]
[-- Type: text/x-diff, Size: 3257 bytes --]
From 15737ccee1f41981580b7b934a76303485fa4e36 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 20 Feb 2021 23:28:15 +0100
Subject: [PATCH] New package: ipp-usb-0.9.17
---
srcpkgs/ipp-usb/files/71-ipp-usb.rules | 1 +
srcpkgs/ipp-usb/files/README.voidlinux | 18 ++++++++++++++++++
srcpkgs/ipp-usb/files/ipp-usb/run | 4 ++++
srcpkgs/ipp-usb/template | 26 ++++++++++++++++++++++++++
4 files changed, 49 insertions(+)
create mode 100644 srcpkgs/ipp-usb/files/71-ipp-usb.rules
create mode 100644 srcpkgs/ipp-usb/files/README.voidlinux
create mode 100644 srcpkgs/ipp-usb/files/ipp-usb/run
create mode 100644 srcpkgs/ipp-usb/template
diff --git a/srcpkgs/ipp-usb/files/71-ipp-usb.rules b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
new file mode 100644
index 00000000000..854376d201b
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664", RUN+="/usr/bin/sv o ipp-usb"
diff --git a/srcpkgs/ipp-usb/files/README.voidlinux b/srcpkgs/ipp-usb/files/README.voidlinux
new file mode 100644
index 00000000000..e3a5af304a6
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/README.voidlinux
@@ -0,0 +1,18 @@
+Void-specific instructions:
+============================
+
+By default, ipp-usb constantly runs in the background. It can also run on
+demand by utilizing udev rules to detect usb printers. You can enable
+this functionality by doing the following:
+
+echo 'OPTS=udev' > /etc/sv/ipp-usb/conf
+touch /etc/sv/ipp-usb/down
+ln -s /etc/sv/ipp-usb /var/services
+cp /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Afterwards restart your computer or reload udev rules.
+
+You can also link the udev rules instead of copying them, this way they get
+updated with the package automatically:
+
+ln -s /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
diff --git a/srcpkgs/ipp-usb/files/ipp-usb/run b/srcpkgs/ipp-usb/files/ipp-usb/run
new file mode 100644
index 00000000000..7a3fac32ba2
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/ipp-usb/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+exec ipp-usb ${OPTS:=standalone}
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
new file mode 100644
index 00000000000..ea66312a6ca
--- /dev/null
+++ b/srcpkgs/ipp-usb/template
@@ -0,0 +1,26 @@
+# Template file for 'ipp-usb'
+pkgname=ipp-usb
+version=0.9.17
+revision=1
+build_style=go
+go_import_path="github.com/OpenPrinting/ipp-usb"
+conf_files="/etc/ipp-usb/ipp-usb.conf"
+hostmakedepends="pkg-config"
+makedepends="avahi-libs-devel libusb-devel"
+depends="avahi>=0.8"
+short_desc="Allows using the IPP protocol over usb connections"
+maintainer="Philipp David <pd@3b.pm>"
+license="BSD-2-Clause"
+homepage="https://github.com/OpenPrinting/ipp-usb"
+distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz>$pkgname-$version.tar.gz"
+checksum=4c1fbd89f7d971eed8447cd80d3e4723edd968043cb2fa4c490ac305720156c3
+
+post_install() {
+ vsv ipp-usb
+ vman ipp-usb.8
+ vdoc README.md
+ vdoc ${FILESDIR}/README.voidlinux
+ vdoc ${FILESDIR}/71-ipp-usb.rules
+ vinstall ipp-usb.conf 644 /etc/ipp-usb
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (3 preceding siblings ...)
2021-02-21 9:34 ` [PR PATCH] [Updated] " oynqr
@ 2021-02-21 9:39 ` oynqr
2021-02-21 9:40 ` oynqr
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-02-21 9:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
New review comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r579779941
Comment:
I have added a suggestion to link the rules, although I don't know if linking from something in /usr/share/doc to something in /etc is the proper way to do it.
Regarding the avahi patch, I have updated the dependency to avahi>=0.8, which does not need the patch.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (4 preceding siblings ...)
2021-02-21 9:39 ` [PR REVIEW] " oynqr
@ 2021-02-21 9:40 ` oynqr
2021-02-21 9:51 ` oynqr
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-02-21 9:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
New review comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r579780021
Comment:
Applied as suggested.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (5 preceding siblings ...)
2021-02-21 9:40 ` oynqr
@ 2021-02-21 9:51 ` oynqr
2021-02-21 11:26 ` oynqr
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-02-21 9:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
New comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#issuecomment-782829720
Comment:
> interesting reading: https://github.com/OpenPrinting/ippusbxd#before-you-begin-ippusbxd-or-ipp-usb
>
> also maybe want to add something to the printing section of the docs? https://docs.voidlinux.org/config/print/index.html
I was not even aware of the mentioned ippusb_bridge, seeing as it acts as a drop-in replacement for ippusbxd it may be a better addition/replacement. For now, I will try to write the relevant documentation for ipp-usb and maybe package ippusb_bridge.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (6 preceding siblings ...)
2021-02-21 9:51 ` oynqr
@ 2021-02-21 11:26 ` oynqr
2021-02-25 19:32 ` [PR PATCH] [Updated] " oynqr
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-02-21 11:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
New comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#issuecomment-782829720
Comment:
> interesting reading: https://github.com/OpenPrinting/ippusbxd#before-you-begin-ippusbxd-or-ipp-usb
>
> also maybe want to add something to the printing section of the docs? https://docs.voidlinux.org/config/print/index.html
I was not even aware of the mentioned ippusb_bridge, seeing as it acts as a drop-in replacement for ippusbxd it may be a better addition/replacement. For now, I will try to write the relevant documentation for ipp-usb and maybe package ippusb_bridge.
Edit:
Well, scratch that. Building ippusb_bridge is a major pain and its implementation is very specific to Chromium OS.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (7 preceding siblings ...)
2021-02-21 11:26 ` oynqr
@ 2021-02-25 19:32 ` oynqr
2021-03-01 14:46 ` oynqr
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-02-25 19:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
There is an updated pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages master
https://github.com/void-linux/void-packages/pull/28945
New package: ipp-usb-0.9.17
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/28945.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28945.patch --]
[-- Type: text/x-diff, Size: 3256 bytes --]
From 1b23e043d80f61dda7a787a7aebef09e835263cc Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 20 Feb 2021 23:28:15 +0100
Subject: [PATCH] New package: ipp-usb-0.9.17
---
srcpkgs/ipp-usb/files/71-ipp-usb.rules | 1 +
srcpkgs/ipp-usb/files/README.voidlinux | 18 ++++++++++++++++++
srcpkgs/ipp-usb/files/ipp-usb/run | 4 ++++
srcpkgs/ipp-usb/template | 26 ++++++++++++++++++++++++++
4 files changed, 49 insertions(+)
create mode 100644 srcpkgs/ipp-usb/files/71-ipp-usb.rules
create mode 100644 srcpkgs/ipp-usb/files/README.voidlinux
create mode 100644 srcpkgs/ipp-usb/files/ipp-usb/run
create mode 100644 srcpkgs/ipp-usb/template
diff --git a/srcpkgs/ipp-usb/files/71-ipp-usb.rules b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
new file mode 100644
index 00000000000..854376d201b
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664", RUN+="/usr/bin/sv o ipp-usb"
diff --git a/srcpkgs/ipp-usb/files/README.voidlinux b/srcpkgs/ipp-usb/files/README.voidlinux
new file mode 100644
index 00000000000..d5bfbb468bf
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/README.voidlinux
@@ -0,0 +1,18 @@
+Void-specific instructions:
+============================
+
+By default, ipp-usb constantly runs in the background. It can also run on
+demand by utilizing udev rules to detect usb printers. You can enable
+this functionality by doing the following:
+
+echo 'OPTS=udev' > /etc/sv/ipp-usb/conf
+touch /etc/sv/ipp-usb/down
+ln -s /etc/sv/ipp-usb /var/service
+cp /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Afterwards restart your computer or reload udev rules.
+
+You can also link the udev rules instead of copying them, this way they get
+updated with the package automatically:
+
+ln -s /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
diff --git a/srcpkgs/ipp-usb/files/ipp-usb/run b/srcpkgs/ipp-usb/files/ipp-usb/run
new file mode 100644
index 00000000000..7a3fac32ba2
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/ipp-usb/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+exec ipp-usb ${OPTS:=standalone}
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
new file mode 100644
index 00000000000..ea66312a6ca
--- /dev/null
+++ b/srcpkgs/ipp-usb/template
@@ -0,0 +1,26 @@
+# Template file for 'ipp-usb'
+pkgname=ipp-usb
+version=0.9.17
+revision=1
+build_style=go
+go_import_path="github.com/OpenPrinting/ipp-usb"
+conf_files="/etc/ipp-usb/ipp-usb.conf"
+hostmakedepends="pkg-config"
+makedepends="avahi-libs-devel libusb-devel"
+depends="avahi>=0.8"
+short_desc="Allows using the IPP protocol over usb connections"
+maintainer="Philipp David <pd@3b.pm>"
+license="BSD-2-Clause"
+homepage="https://github.com/OpenPrinting/ipp-usb"
+distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz>$pkgname-$version.tar.gz"
+checksum=4c1fbd89f7d971eed8447cd80d3e4723edd968043cb2fa4c490ac305720156c3
+
+post_install() {
+ vsv ipp-usb
+ vman ipp-usb.8
+ vdoc README.md
+ vdoc ${FILESDIR}/README.voidlinux
+ vdoc ${FILESDIR}/71-ipp-usb.rules
+ vinstall ipp-usb.conf 644 /etc/ipp-usb
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (8 preceding siblings ...)
2021-02-25 19:32 ` [PR PATCH] [Updated] " oynqr
@ 2021-03-01 14:46 ` oynqr
2021-03-01 16:06 ` ericonr
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-03-01 14:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 386 bytes --]
New comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#issuecomment-788001517
Comment:
Since I am currently unable to get mdns resolving to work on Void, I can not properly test printing through ipp-usb directly from Void.
Although I can confirm that printer sharing works and I have successfully printed from iOS, macOS and Android.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (9 preceding siblings ...)
2021-03-01 14:46 ` oynqr
@ 2021-03-01 16:06 ` ericonr
2021-03-10 9:26 ` [PR REVIEW] " oynqr
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ericonr @ 2021-03-01 16:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#issuecomment-788068124
Comment:
mdns is unsupported if you're on musl (needs some more setup), but should just work on glibc...
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (10 preceding siblings ...)
2021-03-01 16:06 ` ericonr
@ 2021-03-10 9:26 ` oynqr
2021-03-15 21:20 ` [PR PATCH] [Updated] " oynqr
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-03-10 9:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
New review comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r591263308
Comment:
Yeah, I've found that it tends to not run on boot when a printer is already plugged in.
Having the udev rule link in/delete the service would not work either since ipp-usb is meant to work with multiple printers.
Maybe we can do something with a _udevadm trigger_ somwhere?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (11 preceding siblings ...)
2021-03-10 9:26 ` [PR REVIEW] " oynqr
@ 2021-03-15 21:20 ` oynqr
2021-03-22 8:25 ` oynqr
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-03-15 21:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
There is an updated pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages master
https://github.com/void-linux/void-packages/pull/28945
New package: ipp-usb-0.9.17
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/28945.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28945.patch --]
[-- Type: text/x-diff, Size: 3259 bytes --]
From 812d7cd016dbcc874cfc6ef5cee108b7dce49edd Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 20 Feb 2021 23:28:15 +0100
Subject: [PATCH] New package: ipp-usb-0.9.17
---
srcpkgs/ipp-usb/files/71-ipp-usb.rules | 1 +
srcpkgs/ipp-usb/files/README.voidlinux | 18 ++++++++++++++++++
srcpkgs/ipp-usb/files/ipp-usb/run | 4 ++++
srcpkgs/ipp-usb/template | 26 ++++++++++++++++++++++++++
4 files changed, 49 insertions(+)
create mode 100644 srcpkgs/ipp-usb/files/71-ipp-usb.rules
create mode 100644 srcpkgs/ipp-usb/files/README.voidlinux
create mode 100644 srcpkgs/ipp-usb/files/ipp-usb/run
create mode 100644 srcpkgs/ipp-usb/template
diff --git a/srcpkgs/ipp-usb/files/71-ipp-usb.rules b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
new file mode 100644
index 000000000000..854376d201b2
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664", RUN+="/usr/bin/sv o ipp-usb"
diff --git a/srcpkgs/ipp-usb/files/README.voidlinux b/srcpkgs/ipp-usb/files/README.voidlinux
new file mode 100644
index 000000000000..d5bfbb468bf7
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/README.voidlinux
@@ -0,0 +1,18 @@
+Void-specific instructions:
+============================
+
+By default, ipp-usb constantly runs in the background. It can also run on
+demand by utilizing udev rules to detect usb printers. You can enable
+this functionality by doing the following:
+
+echo 'OPTS=udev' > /etc/sv/ipp-usb/conf
+touch /etc/sv/ipp-usb/down
+ln -s /etc/sv/ipp-usb /var/service
+cp /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Afterwards restart your computer or reload udev rules.
+
+You can also link the udev rules instead of copying them, this way they get
+updated with the package automatically:
+
+ln -s /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
diff --git a/srcpkgs/ipp-usb/files/ipp-usb/run b/srcpkgs/ipp-usb/files/ipp-usb/run
new file mode 100644
index 000000000000..7a3fac32ba2d
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/ipp-usb/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+exec ipp-usb ${OPTS:=standalone}
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
new file mode 100644
index 000000000000..80e2e259ef8e
--- /dev/null
+++ b/srcpkgs/ipp-usb/template
@@ -0,0 +1,26 @@
+# Template file for 'ipp-usb'
+pkgname=ipp-usb
+version=0.9.17
+revision=1
+build_style=go
+go_import_path="github.com/OpenPrinting/ipp-usb"
+conf_files="/etc/ipp-usb/ipp-usb.conf"
+hostmakedepends="pkg-config"
+makedepends="avahi-libs-devel libusb-devel"
+depends="avahi"
+short_desc="Allows using the IPP protocol over usb connections"
+maintainer="Philipp David <pd@3b.pm>"
+license="BSD-2-Clause"
+homepage="https://github.com/OpenPrinting/ipp-usb"
+distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz>$pkgname-$version.tar.gz"
+checksum=4c1fbd89f7d971eed8447cd80d3e4723edd968043cb2fa4c490ac305720156c3
+
+post_install() {
+ vsv ipp-usb
+ vman ipp-usb.8
+ vdoc README.md
+ vdoc ${FILESDIR}/README.voidlinux
+ vdoc ${FILESDIR}/71-ipp-usb.rules
+ vinstall ipp-usb.conf 644 /etc/ipp-usb
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (12 preceding siblings ...)
2021-03-15 21:20 ` [PR PATCH] [Updated] " oynqr
@ 2021-03-22 8:25 ` oynqr
2021-03-22 17:57 ` [PR REVIEW] " oynqr
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-03-22 8:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
There is an updated pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages master
https://github.com/void-linux/void-packages/pull/28945
New package: ipp-usb-0.9.17
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/28945.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28945.patch --]
[-- Type: text/x-diff, Size: 3503 bytes --]
From 7852a5bf11aad35bb7a4cf9895c00ed85e1c50f9 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 20 Feb 2021 23:28:15 +0100
Subject: [PATCH] New package: ipp-usb-0.9.17
---
srcpkgs/ipp-usb/files/71-ipp-usb.rules | 1 +
srcpkgs/ipp-usb/files/README.voidlinux | 23 +++++++++++++++++++++++
srcpkgs/ipp-usb/files/ipp-usb/run | 4 ++++
srcpkgs/ipp-usb/template | 26 ++++++++++++++++++++++++++
4 files changed, 54 insertions(+)
create mode 100644 srcpkgs/ipp-usb/files/71-ipp-usb.rules
create mode 100644 srcpkgs/ipp-usb/files/README.voidlinux
create mode 100644 srcpkgs/ipp-usb/files/ipp-usb/run
create mode 100644 srcpkgs/ipp-usb/template
diff --git a/srcpkgs/ipp-usb/files/71-ipp-usb.rules b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
new file mode 100644
index 000000000000..854376d201b2
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664", RUN+="/usr/bin/sv o ipp-usb"
diff --git a/srcpkgs/ipp-usb/files/README.voidlinux b/srcpkgs/ipp-usb/files/README.voidlinux
new file mode 100644
index 000000000000..138cd48ec205
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/README.voidlinux
@@ -0,0 +1,23 @@
+Void-specific instructions:
+============================
+
+By default, ipp-usb constantly runs in the background. It can also run on
+demand by utilizing udev rules to detect usb printers. You can enable
+this functionality by doing the following:
+
+echo 'OPTS=udev' > /etc/sv/ipp-usb/conf
+touch /etc/sv/ipp-usb/down
+ln -s /etc/sv/ipp-usb /var/service
+cp /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Afterwards restart your computer or reload udev rules.
+
+You can also link the udev rules instead of copying them, this way they get
+updated with the package automatically:
+
+ln -s /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Do note that because udev rules may run before runsvdir, having a printer
+connected at boot time will not reliably cause ipp-usb to start.
+Run the ipp-usb service once at startup with a oneshot-style service or cron
+to address this.
diff --git a/srcpkgs/ipp-usb/files/ipp-usb/run b/srcpkgs/ipp-usb/files/ipp-usb/run
new file mode 100644
index 000000000000..7a3fac32ba2d
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/ipp-usb/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+exec ipp-usb ${OPTS:=standalone}
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
new file mode 100644
index 000000000000..80e2e259ef8e
--- /dev/null
+++ b/srcpkgs/ipp-usb/template
@@ -0,0 +1,26 @@
+# Template file for 'ipp-usb'
+pkgname=ipp-usb
+version=0.9.17
+revision=1
+build_style=go
+go_import_path="github.com/OpenPrinting/ipp-usb"
+conf_files="/etc/ipp-usb/ipp-usb.conf"
+hostmakedepends="pkg-config"
+makedepends="avahi-libs-devel libusb-devel"
+depends="avahi"
+short_desc="Allows using the IPP protocol over usb connections"
+maintainer="Philipp David <pd@3b.pm>"
+license="BSD-2-Clause"
+homepage="https://github.com/OpenPrinting/ipp-usb"
+distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz>$pkgname-$version.tar.gz"
+checksum=4c1fbd89f7d971eed8447cd80d3e4723edd968043cb2fa4c490ac305720156c3
+
+post_install() {
+ vsv ipp-usb
+ vman ipp-usb.8
+ vdoc README.md
+ vdoc ${FILESDIR}/README.voidlinux
+ vdoc ${FILESDIR}/71-ipp-usb.rules
+ vinstall ipp-usb.conf 644 /etc/ipp-usb
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (13 preceding siblings ...)
2021-03-22 8:25 ` oynqr
@ 2021-03-22 17:57 ` oynqr
2021-03-22 18:03 ` [PR PATCH] [Updated] " oynqr
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-03-22 17:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
New review comment by oynqr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r598952272
Comment:
Added a note to force running the service once on boot.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR PATCH] [Updated] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (14 preceding siblings ...)
2021-03-22 17:57 ` [PR REVIEW] " oynqr
@ 2021-03-22 18:03 ` oynqr
2021-04-18 4:29 ` [PR REVIEW] " ericonr
2021-04-18 4:30 ` ericonr
17 siblings, 0 replies; 19+ messages in thread
From: oynqr @ 2021-03-22 18:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
There is an updated pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages master
https://github.com/void-linux/void-packages/pull/28945
New package: ipp-usb-0.9.17
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/28945.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28945.patch --]
[-- Type: text/x-diff, Size: 3478 bytes --]
From b04920bcfb44bd17dc16a40789d005228e482d97 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 20 Feb 2021 23:28:15 +0100
Subject: [PATCH] New package: ipp-usb-0.9.17
---
srcpkgs/ipp-usb/files/71-ipp-usb.rules | 1 +
srcpkgs/ipp-usb/files/README.voidlinux | 23 +++++++++++++++++++++++
srcpkgs/ipp-usb/files/ipp-usb/run | 4 ++++
srcpkgs/ipp-usb/template | 26 ++++++++++++++++++++++++++
4 files changed, 54 insertions(+)
create mode 100644 srcpkgs/ipp-usb/files/71-ipp-usb.rules
create mode 100644 srcpkgs/ipp-usb/files/README.voidlinux
create mode 100644 srcpkgs/ipp-usb/files/ipp-usb/run
create mode 100644 srcpkgs/ipp-usb/template
diff --git a/srcpkgs/ipp-usb/files/71-ipp-usb.rules b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
new file mode 100644
index 000000000000..854376d201b2
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/71-ipp-usb.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664", RUN+="/usr/bin/sv o ipp-usb"
diff --git a/srcpkgs/ipp-usb/files/README.voidlinux b/srcpkgs/ipp-usb/files/README.voidlinux
new file mode 100644
index 000000000000..138cd48ec205
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/README.voidlinux
@@ -0,0 +1,23 @@
+Void-specific instructions:
+============================
+
+By default, ipp-usb constantly runs in the background. It can also run on
+demand by utilizing udev rules to detect usb printers. You can enable
+this functionality by doing the following:
+
+echo 'OPTS=udev' > /etc/sv/ipp-usb/conf
+touch /etc/sv/ipp-usb/down
+ln -s /etc/sv/ipp-usb /var/service
+cp /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Afterwards restart your computer or reload udev rules.
+
+You can also link the udev rules instead of copying them, this way they get
+updated with the package automatically:
+
+ln -s /usr/share/doc/ipp-usb/71-ipp-usb.rules /etc/udev/rules.d/
+
+Do note that because udev rules may run before runsvdir, having a printer
+connected at boot time will not reliably cause ipp-usb to start.
+Run the ipp-usb service once at startup with a oneshot-style service or cron
+to address this.
diff --git a/srcpkgs/ipp-usb/files/ipp-usb/run b/srcpkgs/ipp-usb/files/ipp-usb/run
new file mode 100644
index 000000000000..7a3fac32ba2d
--- /dev/null
+++ b/srcpkgs/ipp-usb/files/ipp-usb/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+exec ipp-usb ${OPTS:=standalone}
diff --git a/srcpkgs/ipp-usb/template b/srcpkgs/ipp-usb/template
new file mode 100644
index 000000000000..e829cdaf3ae9
--- /dev/null
+++ b/srcpkgs/ipp-usb/template
@@ -0,0 +1,26 @@
+# Template file for 'ipp-usb'
+pkgname=ipp-usb
+version=0.9.17
+revision=1
+build_style=go
+go_import_path="github.com/OpenPrinting/ipp-usb"
+conf_files="/etc/ipp-usb/ipp-usb.conf"
+hostmakedepends="pkg-config"
+makedepends="avahi-libs-devel libusb-devel"
+depends="avahi"
+short_desc="Allows using the IPP protocol over usb connections"
+maintainer="Philipp David <pd@3b.pm>"
+license="BSD-2-Clause"
+homepage="https://github.com/OpenPrinting/ipp-usb"
+distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz"
+checksum=4c1fbd89f7d971eed8447cd80d3e4723edd968043cb2fa4c490ac305720156c3
+
+post_install() {
+ vsv ipp-usb
+ vman ipp-usb.8
+ vdoc README.md
+ vdoc ${FILESDIR}/README.voidlinux
+ vdoc ${FILESDIR}/71-ipp-usb.rules
+ vinstall ipp-usb.conf 644 /etc/ipp-usb
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (15 preceding siblings ...)
2021-03-22 18:03 ` [PR PATCH] [Updated] " oynqr
@ 2021-04-18 4:29 ` ericonr
2021-04-18 4:30 ` ericonr
17 siblings, 0 replies; 19+ messages in thread
From: ericonr @ 2021-04-18 4:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r615339682
Comment:
```suggestion
Afterwards restart your computer or reload udev rules with `udevadm trigger`.
```
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PR REVIEW] New package: ipp-usb-0.9.17
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
` (16 preceding siblings ...)
2021-04-18 4:29 ` [PR REVIEW] " ericonr
@ 2021-04-18 4:30 ` ericonr
17 siblings, 0 replies; 19+ messages in thread
From: ericonr @ 2021-04-18 4:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
New review comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/28945#discussion_r615339641
Comment:
@oynqr please make the changes to the udev rule a patch to https://github.com/OpenPrinting/ipp-usb/blob/master/systemd-udev/71-ipp-usb.rules , so we can adapt to changes they make instead of having to remember to check.
Once that's done should be good to merge.
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2021-04-18 4:30 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20 22:36 [PR PATCH] New package: ipp-usb-0.9.17 oynqr
2021-02-21 0:50 ` [PR REVIEW] " ericonr
2021-02-21 0:50 ` ericonr
2021-02-21 2:44 ` CameronNemo
2021-02-21 9:34 ` [PR PATCH] [Updated] " oynqr
2021-02-21 9:39 ` [PR REVIEW] " oynqr
2021-02-21 9:40 ` oynqr
2021-02-21 9:51 ` oynqr
2021-02-21 11:26 ` oynqr
2021-02-25 19:32 ` [PR PATCH] [Updated] " oynqr
2021-03-01 14:46 ` oynqr
2021-03-01 16:06 ` ericonr
2021-03-10 9:26 ` [PR REVIEW] " oynqr
2021-03-15 21:20 ` [PR PATCH] [Updated] " oynqr
2021-03-22 8:25 ` oynqr
2021-03-22 17:57 ` [PR REVIEW] " oynqr
2021-03-22 18:03 ` [PR PATCH] [Updated] " oynqr
2021-04-18 4:29 ` [PR REVIEW] " ericonr
2021-04-18 4:30 ` ericonr
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).