Github messages for voidlinux
 help / color / mirror / Atom feed
From: oynqr <oynqr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: ipp-usb-0.9.17
Date: Mon, 15 Mar 2021 22:20:36 +0100	[thread overview]
Message-ID: <20210315212036.RY9OlJDVUMarEe5H6TXWV3cVXE1sZLE_IT2wjiPospQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28945@inbox.vuxu.org>

[-- 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
+}

  parent reply	other threads:[~2021-03-15 21:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-20 22:36 [PR PATCH] " 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 ` oynqr [this message]
2021-03-22  8:25 ` [PR PATCH] [Updated] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210315212036.RY9OlJDVUMarEe5H6TXWV3cVXE1sZLE_IT2wjiPospQ@z \
    --to=oynqr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).