Browse Source

initial transfer

master
artoo 1 year ago
parent
commit
3e329c770e
4 changed files with 102 additions and 0 deletions
  1. +48
    -0
      rsync-runit/repos/extra-any/PKGBUILD
  2. +3
    -0
      rsync-runit/repos/extra-any/rsyncd.run
  3. +48
    -0
      rsync-runit/trunk/PKGBUILD
  4. +3
    -0
      rsync-runit/trunk/rsyncd.run

+ 48
- 0
rsync-runit/repos/extra-any/PKGBUILD View File

@@ -0,0 +1,48 @@
# Maintainer: Muhammad Herdiansyah <herdiansyah@netc.eu>

_url="https://github.com/voidlinux/void-packages/raw/master/srcpkgs"

_sed_args=(-e 's|/var/service|/run/runit/service|g' -e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g' -e 's|/opt/bin|/usr/bin|g' -e 's|/usr/libexec|/usr/lib|g')

pkgname=rsync-runit
pkgver=20180226
pkgrel=1
pkgdesc="runit service scripts for rsync"
arch=('any')
url="https://github.com/artix-linux"
license=('BSD3')
# Note: While this PKGBUILD is licensed under BSD-3 terms, all of the
# included runscript should follow it's main package's licenses.
groups=('runit-world')
depends=('rsync')
provides=('rsync-runscripts')
replaces=('rsync-runscripts')
conflicts=('systemd-sysvcompat')
source=("rsyncd.run::${_url}/rsync/files/rsyncd/run")
sha256sums=('7352a0cb1a8c7a427e3f4011f54049a35764bf9c4e029ab38c0c1b7992e307e9')

_inst_logsv() {
for file in run finish check; do
if test -f "$srcdir/log$1.$file"; then
install -Dm755 "$srcdir/log$1.$file" "$pkgdir/etc/runit/sv/$1/log/$file"
sed "${_sed_args[@]}" -i "$pkgdir/etc/runit/sv/$1/log/$file"
fi
done
}

_inst_sv() {
if test -f "$srcdir/$1.conf"; then
install -Dm644 "$srcdir/$1.conf" "$pkgdir/etc/runit/sv/$1/conf"
fi

for file in run finish check; do
if test -f "$srcdir/$1.$file"; then
install -Dm755 "$srcdir/$1.$file" "$pkgdir/etc/runit/sv/$1/$file"
sed "${_sed_args[@]}" -i "$pkgdir/etc/runit/sv/$1/$file"
fi
done
}

package() {
_inst_sv 'rsyncd'
}

+ 3
- 0
rsync-runit/repos/extra-any/rsyncd.run View File

@@ -0,0 +1,3 @@
#!/bin/sh
[ ! -e /etc/rsyncd.conf ] && exit 1
exec rsync --daemon --no-detach

+ 48
- 0
rsync-runit/trunk/PKGBUILD View File

@@ -0,0 +1,48 @@
# Maintainer: Muhammad Herdiansyah <herdiansyah@netc.eu>

_url="https://github.com/voidlinux/void-packages/raw/master/srcpkgs"

_sed_args=(-e 's|/var/service|/run/runit/service|g' -e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g' -e 's|/opt/bin|/usr/bin|g' -e 's|/usr/libexec|/usr/lib|g')

pkgname=rsync-runit
pkgver=20180226
pkgrel=1
pkgdesc="runit service scripts for rsync"
arch=('any')
url="https://github.com/artix-linux"
license=('BSD3')
# Note: While this PKGBUILD is licensed under BSD-3 terms, all of the
# included runscript should follow it's main package's licenses.
groups=('runit-world')
depends=('rsync')
provides=('rsync-runscripts')
replaces=('rsync-runscripts')
conflicts=('systemd-sysvcompat')
source=("rsyncd.run::${_url}/rsync/files/rsyncd/run")
sha256sums=('7352a0cb1a8c7a427e3f4011f54049a35764bf9c4e029ab38c0c1b7992e307e9')

_inst_logsv() {
for file in run finish check; do
if test -f "$srcdir/log$1.$file"; then
install -Dm755 "$srcdir/log$1.$file" "$pkgdir/etc/runit/sv/$1/log/$file"
sed "${_sed_args[@]}" -i "$pkgdir/etc/runit/sv/$1/log/$file"
fi
done
}

_inst_sv() {
if test -f "$srcdir/$1.conf"; then
install -Dm644 "$srcdir/$1.conf" "$pkgdir/etc/runit/sv/$1/conf"
fi

for file in run finish check; do
if test -f "$srcdir/$1.$file"; then
install -Dm755 "$srcdir/$1.$file" "$pkgdir/etc/runit/sv/$1/$file"
sed "${_sed_args[@]}" -i "$pkgdir/etc/runit/sv/$1/$file"
fi
done
}

package() {
_inst_sv 'rsyncd'
}

+ 3
- 0
rsync-runit/trunk/rsyncd.run View File

@@ -0,0 +1,3 @@
#!/bin/sh
[ ! -e /etc/rsyncd.conf ] && exit 1
exec rsync --daemon --no-detach

Loading…
Cancel
Save