New package: ippusbxd-1.33

This commit is contained in:
Cameron Nemo 2018-11-18 13:37:23 -08:00 committed by maxice8
parent f70cbecc5f
commit c6ab6e7ee3
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device" ENV{ID_USB_INTERFACES}=="*:070104:*", OWNER="root", GROUP="lp", MODE="0664"

View file

@ -0,0 +1,26 @@
commit 48d519066cceac1afa2596ebfbce5ad19277160c
Author: Cameron Nemo <camerontnorman@gmail.com>
Date: Sun Nov 18 10:45:32 2018 -0800
apparmor: match path when bin and sbin are merged
diff --git src/apparmor/usr.sbin.ippusbxd src/apparmor/usr.sbin.ippusbxd
index d017dbf..bfeddf7 100644
--- src/apparmor/usr.sbin.ippusbxd
+++ src/apparmor/usr.sbin.ippusbxd
@@ -4,13 +4,13 @@
#include <tunables/global>
-/usr/sbin/ippusbxd {
+profile ippusbxd /usr/{bin,sbin}/ippusbxd {
#include <abstractions/base>
#include <abstractions/dbus>
capability wake_alarm,
- /usr/sbin/ippusbxd mr,
+ /usr/{bin,sbin}/ippusbxd mr,
# Scanning for USB devices
/dev/bus/usb/ r,

22
srcpkgs/ippusbxd/template Normal file
View file

@ -0,0 +1,22 @@
# Template file for 'ippusbxd'
pkgname=ippusbxd
version=1.33
revision=1
build_wrksrc=src
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libusb-devel avahi-libs-devel"
short_desc="Internet Printing Protocol (IPP) over USB driver"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/OpenPrinting/ippusbxd"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=0525a6a249e863fa732b8eb996c5295ade6f87c7392e4ff5e4b185ce95734d50
conf_files="/etc/apparmor.d/usr.sbin.ippusbxd"
do_install() {
vbin build/ippusbxd
vman ../doc/ippusbxd.8
vinstall apparmor/usr.sbin.ippusbxd 0644 etc/apparmor.d
vinstall ${FILESDIR}/55-ippusbxd.rules 0644 usr/lib/udev/rules.d
}