Browse Source

Added missing files.

master
Franco Masotti 6 years ago
parent
commit
37b5a13871
  1. 8
      .SRCINFO
  2. 10
      .install
  3. 2
      PKGBUILD

8
.SRCINFO

@ -1,15 +1,19 @@
pkgbase = rserve-sandbox-docker-bin
pkgdesc = Pre-compiled version of a Docker spec for running Rserve in a sandbox
pkgver = r6.fb0ec65
pkgrel = 1
pkgrel = 3
url = https://gitlab.com/frnmst/rserve-sandbox-bin
install = .install
arch = x86_64
license = BSD
makedepends = git
makedepends = sed
depends = r
depends = bash
depends = coreutils
depends = docker
depends = gawk
depends = make
depends = r
conflicts = rserve-sandbox-docker
source = git+https://gitlab.com/frnmst/rserve-sandbox-bin#branch=distro-package
md5sums = SKIP

10
.install

@ -1,14 +1,16 @@
post_install() {
# Add rserve user and group.
getent group rserve &>/dev/null || groupadd -g 32749 -r rserve >/dev/null
getent passwd rserve &>/dev/null || useradd -u 32749 -m -d /home/rserve \
getent group rserve 1>/dev/null 2>/dev/null \
|| groupadd -g 32749 -r rserve >/dev/null
getent passwd rserve 1>/dev/null 2>/dev/null \
|| useradd -u 32749 -m -d /home/rserve \
-s /bin/false -r -g rserve rserve >/dev/null
# Exec the chmod just like in the Makefile.
chmod 750 /home/rserve
# Add rsd user and group.
getent group rsd &>/dev/null || groupadd -r rsd >/dev/null
getent passwd rsd &>/dev/null || useradd -s /bin/false \
getent group rsd 1>/dev/null 2>/dev/null || groupadd -r rsd >/dev/null
getent passwd rsd 1>/dev/null 2>/dev/null || useradd -s /bin/false \
-r -g rsd rsd >/dev/null
# This is explained in the Arch Wiki. It seems that anyone belonging to the

2
PKGBUILD

@ -2,7 +2,7 @@
# Contributor: Franco Masotti <franco dot masotti at student dot unife dot it>
pkgname=rserve-sandbox-docker-bin
pkgver=r6.fb0ec65
pkgrel=2
pkgrel=3
pkgdesc="Pre-compiled version of a Docker spec for running Rserve in a sandbox"
arch=('x86_64')
url="https://gitlab.com/frnmst/rserve-sandbox-bin"

Loading…
Cancel
Save