First check in
This commit is contained in:
77
Makefile
Normal file
77
Makefile
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
|
# published by the Free Software Foundation here:
|
||||||
|
# (http://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
DEPENDS = dash,glibc
|
||||||
|
ARCH = x86_64
|
||||||
|
URL = https://github.com/dex4er/fakechroot
|
||||||
|
REPO = main
|
||||||
|
BRIEF = creates a fake chroot environment
|
||||||
|
DESC = fakechroot runs a command in an environment which is similar to chroot \
|
||||||
|
but does not require root privileges
|
||||||
|
SNAPVER = 0
|
||||||
|
|
||||||
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
|
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
|
||||||
|
|
||||||
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
|
tar -jxf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-gzip' ]; then \
|
||||||
|
tar -zxf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-tar' ]; then \
|
||||||
|
tar -xf $(ARCHIVE); \
|
||||||
|
elif [ '$(TYPE)' == 'application/x-xz' ]; then \
|
||||||
|
tar -xf $(ARCHIVE); \
|
||||||
|
else \
|
||||||
|
echo 'Unable to determine archive type'; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
@touch $(SRCDIR)/configure
|
||||||
|
|
||||||
|
$(SRCDIR)/config.log: $(SRCDIR)/configure
|
||||||
|
@cd $(SRCDIR) && \
|
||||||
|
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
|
||||||
|
patch --verbose -Np1 -i $$patch; \
|
||||||
|
done
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--build=x86_64-snap-linux-gnu \
|
||||||
|
--host=x86_64-snap-linux-gnu \
|
||||||
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
|
$(SRCDIR)/binfile: $(SRCDIR)/config.log
|
||||||
|
@cd $(SRCDIR) && make
|
||||||
|
|
||||||
|
$(ROOT): $(SRCDIR)/binfile
|
||||||
|
@if [ -d $(ROOT) ]; then \
|
||||||
|
touch $(ROOT); \
|
||||||
|
else \
|
||||||
|
mkdir -v $(ROOT); \
|
||||||
|
fi
|
||||||
|
|
||||||
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
||||||
|
|
||||||
|
test: $(ROOT)
|
||||||
|
@cd $(SRCDIR); \
|
||||||
|
make check
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -rvf $(ROOT) \
|
||||||
|
$(SNAPINFO) \
|
||||||
|
$(MANIFEST) \
|
||||||
|
$(FILES) \
|
||||||
|
$(SRCDIR)
|
||||||
|
|
||||||
5
SNAP/README
Normal file
5
SNAP/README
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
This is the directory where the manifest, snapinfo,
|
||||||
|
and files.tar.gz files will be created. It is also
|
||||||
|
where the usher file should be placed if it is
|
||||||
|
required by the package. Any other files that need
|
||||||
|
to be included could also be placed here.
|
||||||
BIN
SNAP/files.tar.gz
Normal file
BIN
SNAP/files.tar.gz
Normal file
Binary file not shown.
21
SNAP/manifest
Normal file
21
SNAP/manifest
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
f6b53fedfab51206d62d3695f63c9d4a10a2ecac -rw-r--r-- usr/share/man/man1/fakechroot.1.gz
|
||||||
|
________________________________________ drwxr-xr-x usr/share/man/man1
|
||||||
|
________________________________________ drwxr-xr-x usr/share/man
|
||||||
|
________________________________________ drwxr-xr-x usr/share
|
||||||
|
cb162be6f16dd7ebeff740f7f1af23b176ec90cb -rwxr-xr-x usr/sbin/chroot.fakechroot
|
||||||
|
________________________________________ drwxr-xr-x usr/sbin
|
||||||
|
4447c5f43b125cc6e1a1724bc2c2ed156fc47e71 -rwxr-xr-x usr/lib/fakechroot/libfakechroot.so
|
||||||
|
9690a3644463d976119b01e602fc2bf7d6c1e656 -rwxr-xr-x usr/lib/fakechroot/libfakechroot.la
|
||||||
|
092ce9ba8d93bfb3c3165b1fa960ed422425de8b -rw-r--r-- usr/lib/fakechroot/libfakechroot.a
|
||||||
|
________________________________________ drwxr-xr-x usr/lib/fakechroot
|
||||||
|
________________________________________ drwxr-xr-x usr/lib
|
||||||
|
08dc281d14b55a9d749353d3f8e7999287f43a48 -rw-r--r-- usr/etc/fakechroot/rinse.env
|
||||||
|
6a432b29d9437e9bfc9908e7d270ccfb75d4b9a0 -rw-r--r-- usr/etc/fakechroot/debootstrap.env
|
||||||
|
9985a83de58eb5eb73f1217ca56735aa1ea508dc -rw-r--r-- usr/etc/fakechroot/chroot.env
|
||||||
|
________________________________________ drwxr-xr-x usr/etc/fakechroot
|
||||||
|
________________________________________ drwxr-xr-x usr/etc
|
||||||
|
0ddcc0518305a13a76b7fd8bcf2f6847b8679cab -rwxr-xr-x usr/bin/ldd.fakechroot
|
||||||
|
6c2ba6633e8efb5883cbf118c0732952d009b6fd -rwxr-xr-x usr/bin/fakechroot
|
||||||
|
c76ff3b1f33f50d1ab73e0635c38f5310bb12801 -rwxr-xr-x usr/bin/env.fakechroot
|
||||||
|
________________________________________ drwxr-xr-x usr/bin
|
||||||
|
________________________________________ drwxr-xr-x usr
|
||||||
12
SNAP/snapinfo
Normal file
12
SNAP/snapinfo
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
name: fakechroot
|
||||||
|
version: 2.19-0
|
||||||
|
arch: x86_64
|
||||||
|
depends: dash,glibc
|
||||||
|
builddeps:
|
||||||
|
srcpkg: fakechroot
|
||||||
|
bytes: 1536000
|
||||||
|
url: https://github.com/dex4er/fakechroot
|
||||||
|
repo: main
|
||||||
|
sha256man: ae2ee5ba9749b3aace1dff4634fc9122aa052aeb797e4837ba2096bc0e642967
|
||||||
|
brief: creates a fake chroot environment
|
||||||
|
description: fakechroot runs a command in an environment which is similar to chroot but does not require root privileges
|
||||||
BIN
SRC/fakechroot-2.19.tar.gz
Normal file
BIN
SRC/fakechroot-2.19.tar.gz
Normal file
Binary file not shown.
3
SRC/patches/README
Normal file
3
SRC/patches/README
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Place any patch files here and preface each with a
|
||||||
|
number indicating the order of execution. Patch
|
||||||
|
files are expected to use a .patch extension.
|
||||||
Reference in New Issue
Block a user