From b14b09a6ff6aeb791f692b0b74848485ebe77d70 Mon Sep 17 00:00:00 2001 From: sulincix Date: Sat, 19 Oct 2024 16:15:33 +0000 Subject: [PATCH] lsl added --- app/containers/lsl/lsl.sysconf | 7 +++++++ app/containers/lsl/ympbuild | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 app/containers/lsl/lsl.sysconf create mode 100644 app/containers/lsl/ympbuild diff --git a/app/containers/lsl/lsl.sysconf b/app/containers/lsl/lsl.sysconf new file mode 100644 index 00000000..8f865120 --- /dev/null +++ b/app/containers/lsl/lsl.sysconf @@ -0,0 +1,7 @@ +#!/bin/sh +if ! ls -la /bin/lsl | grep "^...s" >/dev/null ; then + chmod 4755 /bin/lsl-sandbox +fi +if ! ls -la /bin/lsl-sandbox | grep "^...s" >/dev/null ; then + chmod 4755 /bin/lsl-sandbox +fi diff --git a/app/containers/lsl/ympbuild b/app/containers/lsl/ympbuild new file mode 100644 index 00000000..61e6c0fc --- /dev/null +++ b/app/containers/lsl/ympbuild @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +name='lsl' +release='1' +version='1.0.1' +url='https://sulincix/debian-subsystem' +description='Linux subsystem for linux' +email='parduscix@yandex.ru' +maintainer='sulincix' +license=('GPLv3') +source=("https://gitlab.com/sulincix/debian-subsystem/-/archive/1.0.1/debian-subsystem-$version.tar.gz" + "lsl.sysconf") +depends=(pam) +makedepends=() +sha256sums=('a0a35e0a28fe8b5aa2ffd383dcfe43ea607eb6dc8e3bff1c24b37980b31ca25e' + 'SKIP') +group=(app.container) +uses=() +arch=('x86_64') + +cd debian-subsystem-$version + +build () { + # parallel job build and install is not supported. + make +} + +package () { + make install DESTDIR=$DESTDIR DISTRO=debian + # install sysconf file + mkdir -p $DESTDIR/etc/sysconf.d/ + install ../lsl.sysconf $DESTDIR/etc/sysconf.d/lsl +} +