Github messages for voidlinux
 help / color / mirror / Atom feed
* [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

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).