From 6c6d397a8300730deaca86867877f1ffeda5edfc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 21 May 2014 08:44:43 +0200 Subject: [PATCH] base-files: new profile script that provides XDG_RUNTIME_DIR if unset. This makes weston work without systemd. --- srcpkgs/base-files/files/xdg-runtime-dir.sh | 9 +++++++++ srcpkgs/base-files/template | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/base-files/files/xdg-runtime-dir.sh diff --git a/srcpkgs/base-files/files/xdg-runtime-dir.sh b/srcpkgs/base-files/files/xdg-runtime-dir.sh new file mode 100644 index 0000000000..583a5e234f --- /dev/null +++ b/srcpkgs/base-files/files/xdg-runtime-dir.sh @@ -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 diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index c543e92296..ce9a9bd0eb 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -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"