diff options
Diffstat (limited to 'python/subuser')
-rw-r--r-- | python/subuser/README | 8 | ||||
-rw-r--r-- | python/subuser/subuser.SlackBuild | 16 | ||||
-rw-r--r-- | python/subuser/subuser.info | 2 |
3 files changed, 18 insertions, 8 deletions
diff --git a/python/subuser/README b/python/subuser/README index 7469c71be8..69ee53f479 100644 --- a/python/subuser/README +++ b/python/subuser/README @@ -1,4 +1,4 @@ -Subuser turns a docker container into a normal program. This program, however, -runs with restricted privileges. It can only access the directory from which it was -called, not the user's entire home directory. Each subuser is assigned a -specific set of permissions. +Subuser turns a docker container into a normal program. This program, +however, runs with restricted privileges. It can only access the +directory from which it was called, not the user's entire home +directory. Each subuser is assigned a specific set of permissions. diff --git a/python/subuser/subuser.SlackBuild b/python/subuser/subuser.SlackBuild index 82f62549e7..296bf103a3 100644 --- a/python/subuser/subuser.SlackBuild +++ b/python/subuser/subuser.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for subuser @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=subuser VERSION=${VERSION:-0.6.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -83,4 +93,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/python/subuser/subuser.info b/python/subuser/subuser.info index 1500a69815..7b2df03a4d 100644 --- a/python/subuser/subuser.info +++ b/python/subuser/subuser.info @@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/subuser-security/subuser/archive/0.6.2/subuser-0.6. MD5SUM="a01613ce665916841267d0e5113ec67a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="docker python3" +REQUIRES="docker" MAINTAINER="CRTS" EMAIL="crts [at] gmx [dot] net" |