linuxer 1 year ago
commit
9f8bccfb81
Signed by: linuxer
GPG Key ID: CCD2779140DF9E58
  1. 23
      zramen-openrc/PKGBUILD
  2. 11
      zramen-openrc/zramen.initd
  3. 30
      zramen-runit/PKGBUILD
  4. 31
      zramen-s6/PKGBUILD
  5. 3
      zramen-s6/zramen.finish
  6. 3
      zramen-s6/zramen.run
  7. 1
      zramen-s6/zramen.type

23
zramen-openrc/PKGBUILD

@ -0,0 +1,23 @@
# Contributor linuxer <https://gitea.artixlinux.org/linuxer>
pkgname=zramen-openrc
pkgdesc="Zramen and OpenRC init scripts"
alias=zramen
pkgver=0.2.1
pkgrel=1
arch=('any')
url="https://gitea.artixlinux.org/linuxer/PKGBUILDS/zramen-openrc"
license=('Unlicense')
groups=()
depends=('openrc' 'bc')
source=("https://github.com/atweiden/zramen/releases/download/${pkgver}/zramen-${pkgver}.tar.gz"
"zramen.initd")
b2sums=('1c8d69609fb311ce566b3120af11d16a633f1c64c2104df80dd3fbf22e1f41a609bb53420d4c3fc1e9393d887647d1f6a6a0e3609a022787b3cf0d1fd4200886'
'ee5599bffcc93bce4f50ce4205f759cf4d3de00bfd663c00d48fbc27f90aeee9245709eb8d9259e2b16e05c68ee6d224a98191e373f109ee09f0977cae724759')
package() {
install -Dm 755 zramen.initd "$pkgdir/etc/init.d/zramen"
cd "${srcdir}/${alias}-${pkgver}"
install -Dm 755 zramen "$pkgdir/usr/bin/zramen"
install -Dm 755 sv/zramen/conf "$pkgdir/etc/conf.d/zramen.conf"
}

11
zramen-openrc/zramen.initd

@ -0,0 +1,11 @@
#!/usr/bin/openrc-run
pidfile="/run/zramen.pid"
command="/usr/bin/zramen"
command_args="make"
command_background=true
stop() {
/usr/bin/zramen toss
}

30
zramen-runit/PKGBUILD

@ -0,0 +1,30 @@
# Contributor linuxer <https://gitea.artixlinux.org/linuxer>
pkgname=zramen-runit
pkgalias=zramend
_realname=zramen-runit
pkgdesc="Zramen and runit init scripts"
alias=zramen
pkgver=0.2.1
pkgrel=1
pkgbase=zramen-runit
replaces=('zramen-runit' 'bc')
arch=('any')
url=url="https://gitea.artixlinux.org/linuxer/PKGBUILDS/zramen-runit"
license=('Unlicense')
groups=()
depends=('runit')
source=("https://github.com/atweiden/zramen/releases/download/${pkgver}/zramen-${pkgver}.tar.gz")
b2sums=('1c8d69609fb311ce566b3120af11d16a633f1c64c2104df80dd3fbf22e1f41a609bb53420d4c3fc1e9393d887647d1f6a6a0e3609a022787b3cf0d1fd4200886')
package() {
echo "${srcdir}/${alias}-${pkgver}"
cd "${srcdir}/${alias}-${pkgver}"
install -Dm 755 zramen -t "$pkgdir/usr/bin/"
mkdir -p "$pkgdir"/etc/runit/sv/zramen
install -Dm 644 sv/zramen/conf "$pkgdir"/etc/runit/sv/zramen
install -Dm 644 sv/zramen/finish "$pkgdir"/etc/runit/sv/zramen
chmod +x "$pkgdir"/etc/runit/sv/zramen/finish
install -Dm 644 sv/zramen/run "$pkgdir"/etc/runit/sv/zramen
chmod +x "$pkgdir"/etc/runit/sv/zramen/run
}

31
zramen-s6/PKGBUILD

@ -0,0 +1,31 @@
# Contributor: linuxer <linuxer@artixlinux.org>
# Developer: Timofey Titovets <nefelim4ag@gmail.com>
pkgname=zramen-s6
pkgdesc="Zramen and OpenRC init scripts"
alias=zramen
pkgver=0.2.1
pkgrel=1
arch=('any')
url="https://gitea.artixlinux.org/linuxer/PKGBUILDS/zramen-s6"
arch=('any')
url="https://github.com/Nefelim4ag/Ananicy.git"
license=('Unlicense')
depends=('s6' 'bc')
source=("https://github.com/atweiden/zramen/releases/download/${pkgver}/zramen-${pkgver}.tar.gz"
"zramen.type"
"zramen.run"
"zramen.finish")
b2sums=('1c8d69609fb311ce566b3120af11d16a633f1c64c2104df80dd3fbf22e1f41a609bb53420d4c3fc1e9393d887647d1f6a6a0e3609a022787b3cf0d1fd4200886'
'cdcdfdfe8033b1b2ac812951b70b09b115c1d7b7de4ed0ea0808072414753faf98ca846a171f22ab788cc9e1564456354f953941d4fba8056bc650f41dcde8dc'
'0c2ba1bcb5a07553dc0f04f8780a5dae93aafcd06fb460852c2a6c1403a8ebaab6d09f1b07338926523341fc17fe0cff6db3d755f8a4200a77ff003c53614b35'
'a8c1eb7798e11ec231cc2c587631d73dda99f978fc331dbca48f3f78b82b273542534ad010ee96b1a7110d3dfa86961f12ab6e2320b508190e74dcf2d89c9a9d')
package() {
mkdir -p "$pkgdir/etc/s6/sv/$_alias"
cp zramen.run $pkgdir/etc/s6/sv/$_alias/run
cp zramen.type $pkgdir/etc/s6/sv/$_alias/type
cp zramen.finish $pkgdir/etc/s6/sv/$_alias/finish
cd "${srcdir}/${_alias}-${pkgver}"
install -Dm 755 sv/zramen/conf "$pkgdir/etc/conf.d/zramen.conf"
}

3
zramen-s6/zramen.finish

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/zramen toss

3
zramen-s6/zramen.run

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/zramen make

1
zramen-s6/zramen.type

@ -0,0 +1 @@
oneshot
Loading…
Cancel
Save