base-files: new profile script that provides XDG_RUNTIME_DIR if unset.

This makes weston work without systemd.
This commit is contained in:
Juan RP 2014-05-21 08:44:43 +02:00
parent ca4bfa8d46
commit 6c6d397a83
2 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,9 @@
# Sets and creates XDG_RUNTIME_DIR.
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi

View file

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.99
revision=2
version=0.100
revision=1
bootstrap=yes
build_style="meta"
makedepends="base-directories xbps-triggers"