Browse Source

Initial

master
Nathan Owens 8 months ago
commit
2c4b6a944d
  1. 21
      PKGBUILD
  2. 6
      zramen
  3. 7
      zramen.script

21
PKGBUILD

@ -0,0 +1,21 @@
# Maintainer: Nathan <ndowens@artixlinux.org>
pkgname=zramen-dinit
pkgver=20211108
pkgrel=1
pkgdesc="dinit service scripts for zramen"
arch=('any')
url="https://artixlinux.org"
license=('BSD')
groups=('dinit-world')
depends=('zramen' 'dinit')
conflicts=('init-zramen')
provides=('init-zramen')
source=("zramen" "zramen.script")
sha256sums=('738027a29aa62857f640be07d52c8c569a0c1d964577c1b8d651f57607982961'
'314f68319b5addea2265ab53f4b39641593558fca8269adac031ba89068e6199')
package() {
install -Dm644 zramen -t "$pkgdir/etc/dinit.d"
install -Dm755 zramen.script "$pkgdir/etc/dinit.d/scripts/zramen"
}

6
zramen

@ -0,0 +1,6 @@
type = scripted
command = /etc/dinit.d/scripts/zramen start
stop-command = /etc/dinit.d/scripts/zramen stop
smooth-recovery = true
logfile = /var/log/dinit/zramen.log
waits-for = pseudofs

7
zramen.script

@ -0,0 +1,7 @@
#!/bin/sh
case "$1" in
start)
/usr/bin/zramen make ;;
stop)
/usr/bin/zramen toss ;;
esac
Loading…
Cancel
Save