summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPlaton Ryzhikov2018-12-26 22:03:05 +0300
committerPlaton Ryzhikov2018-12-26 22:03:05 +0300
commitfa880371bce15ce6fe6a8d14cce7eaf161f308ca (patch)
treebe8afbd3e7ca5bbcd7ff7f714927ff49a3e02081
downloadaur-fa880371bce15ce6fe6a8d14cce7eaf161f308ca.tar.gz
Initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD20
-rw-r--r--smdev16
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..942ddca01cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = smdev-runit
+ pkgdesc = runit stage1 script for smdev
+ pkgver = 20181226
+ pkgrel = 1
+ arch = any
+ license = MIT/X
+ depends = smdev
+ depends = runit
+ source = smdev
+ sha256sums = cb074845e712f51851b250490f3237da9834025bf3adce13bc4e41dc1a808216
+
+pkgname = smdev-runit
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c3159250673
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Platon Ryzhikov <ihummer63@yandex.ru>
+
+pkgname=smdev-runit
+pkgver=20181226
+pkgrel=1
+pkgdesc="runit stage1 script for smdev"
+arch=('any')
+license=('MIT/X')
+depends=('smdev' 'runit')
+source=("smdev")
+sha256sums=('cb074845e712f51851b250490f3237da9834025bf3adce13bc4e41dc1a808216')
+
+package() {
+ install -Dm755 "${srcdir}/smdev" "${pkgdir}/usr/lib/rc/sv.d/smdev"
+
+ # create default symlinks?
+ # smdev doesn't conflict with udev
+ install -d ${pkgdir}/etc/rc/sysinit
+ ln -sf /usr/lib/rc/sv.d/smdev ${pkgdir}/etc/rc/sysinit/30-smdev
+}
diff --git a/smdev b/smdev
new file mode 100644
index 00000000000..8639e144a7e
--- /dev/null
+++ b/smdev
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. /usr/lib/rc/functions
+
+case "$1" in
+ start)
+ stat_busy "Triggering uevents"
+ smdev -s || stat_die
+ add_daemon smdev
+ stat_done
+ ;;
+ *)
+ echo "usage: $0 {start}"
+ exit 1
+ ;;
+esac