summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-04 07:29:31 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-04 07:29:31 +0000
commit132687b2d84bd20a7469725da1ec95bdcb179bf1 (patch)
treea9499b741c126e301add19ba3b44139c68d05e1f /user
parent5e5928e219124dc422830bc24cfe0fba7e86b8d4 (diff)
downloadpackages-132687b2d84bd20a7469725da1ec95bdcb179bf1.tar.gz
packages-132687b2d84bd20a7469725da1ec95bdcb179bf1.tar.bz2
packages-132687b2d84bd20a7469725da1ec95bdcb179bf1.tar.xz
packages-132687b2d84bd20a7469725da1ec95bdcb179bf1.zip
user/sane: fix packaging and OpenRC script
Diffstat (limited to 'user')
-rw-r--r--user/sane/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/user/sane/APKBUILD b/user/sane/APKBUILD
index 1a5e2fc16..941402502 100644
--- a/user/sane/APKBUILD
+++ b/user/sane/APKBUILD
@@ -4,7 +4,7 @@
pkgname=sane
_pkgname=sane-backends
pkgver=1.0.27
-pkgrel=4
+pkgrel=5
pkgdesc="Scanner access library"
url="http://www.sane-project.org/"
arch="all"
@@ -35,7 +35,8 @@ for _backend in $_backends; do
subpackages="$subpackages $pkgname-backend-$_backend:_backend"
done
subpackages="$pkgname-doc $pkgname-dev $subpackages $pkgname-utils saned
- $pkgname-udev::noarch $_pkgname::noarch"
+ saned-openrc:openrc:noarch $pkgname-udev::noarch $_pkgname::noarch
+ $pkgname-lang"
source="http://distfiles.gentoo.org/distfiles/$_pkgname-$pkgver.tar.gz
saned.initd
include.patch
@@ -81,6 +82,12 @@ saned() {
mkdir -p "$subpkgdir"/etc/sane.d "$subpkgdir"/usr
mv "$pkgdir"/etc/sane.d/saned.conf "$subpkgdir"/etc/sane.d
mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
+}
+
+openrc() {
+ pkgdesc="Network scanner server (OpenRC runscripts)"
+ depends="saned"
+ install_if="saned=$pkgver-r$pkgrel openrc"
install -Dm755 "$srcdir"/saned.initd "$subpkgdir"/etc/init.d/saned
}
@@ -101,7 +108,7 @@ udev() {
backends() {
local _backend;
pkgdesc="$pkgdesc (metapackage)"
- depends="$pkgname-utils $pkgname-saned"
+ depends="$pkgname-utils saned"
for _backend in $_backends; do
[ "$_backend" = "test" ] && continue
depends="$depends $pkgname-backend-$_backend"