Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
521 changes: 521 additions & 0 deletions debian/changelog.in

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions debian/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config*.cache
config.log
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
40 changes: 40 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Source: fakechroot
Maintainer: Piotr Roszatycki <dexter@debian.org>
Section: utils
Priority: optional
Build-Depends:
debhelper (>= 9.20141010),
dh-autoreconf,
dpkg-dev (>= 1.17.14),
libjemalloc1 <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/dex4er/fakechroot
VCS-Git: https://anonscm.debian.org/git/collab-maint/fakechroot.git
VCS-Browser: https://anonscm.debian.org/git/collab-maint/fakechroot.git

Package: fakechroot
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends},
libfakechroot (>= ${source:Version}),
libfakechroot (<< ${source:Version}.1~)
Description: gives a fake chroot environment - utilities
The fakechroot preloads a library which overrides libc functions, so
it is possible to use root-specific tools without root privileges.
.
In fake chroot you can install i.e. Debian bootstrap, create developer's
environment and build packages inside chroot'ed system using standard
non-root user account.

Package: libfakechroot
Section: libs
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: same
Description: gives a fake chroot environment - runtime
This package provides a library which overrides libc functions, so
it is possible to use root-specific tools without root privileges.
.
In fake chroot you can install i.e. Debian bootstrap, create developer's
environment and build packages inside chroot'ed system using standard
non-root user account.
211 changes: 211 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: fakechroot
Upstream-Contact: Piotr Roszatycki <dexter@debian.org>
Source: https://github.com/fakechroot/fakechroot/downloads

Files: *
Copyright: 2003-2015 Piotr Roszatycki <dexter@debian.org>
License: LGPL-2.1+

Files: debian/*
Copyright: 2003-2015, Piotr Roszatycki <dexter@debian.org>
License: GPL-2+

Files: src/__opendir2.c
Copyright: 1983, 1993 The Regents of the University of California.
2000 Daniel Eischen.
License: BSD-3-clause

Files: src/audit_log_acct_message.c
Copyright: 2015 JH Chatenet <jhcha54008@free.fr>
License: LGPL-2.1

Files: src/setenv.c
Copyright: 1992,95,96,97,98,99,2000,2001 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: src/dedotdot.c
Copyright: 1999,2000 by Jef Poskanzer <jef@mail.acme.com>.
License: BSD-2-clause

Files: src/dl_iterate_phdr.c
Copyright: 2014 Robin McCorkell <rmccorkell@karoshi.org.uk>
License: LGPL-2.1+

Files: src/dladdr.c
Copyright: 2014 Robin McCorkell <rmccorkell@karoshi.org.uk>
License: LGPL-2.1+

Files: src/dlopen.c
Copyright: 2010, 2013 Piotr Roszatycki <dexter@debian.org>
2014 Robin McCorkell <rmccorkell@karoshi.org.uk>
License: LGPL-2.1+

Files: src/execl.c
Copyright: 1991,92,94,97,98,99,2002,2005 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: src/execle.c
Copyright: 1991,97,98,99,2002,2005 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: src/execlp.c
Copyright: 1991,93,96,97,98,99,2002,2005 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: src/execvp.c
Copyright: 1991,92, 1995-99, 2002, 2004, 2005, 2007, 2009 Free Software
Foundation, Inc.
License: LGPL-2.1+

Files: src/fts.c
Copyright: 1990, 1993, 1994 The Regents of the University of California.
2010-2015 Piotr Roszatycki <dexter@debian.org>
License: BSD-3-clause

Files: src/ftw.c src/ftw64.c
Copyright: 1996-2004, 2006-2008, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
License: LGPL-2.1+

Files: src/getcwd_real.c
Copyright: 1989, 1991, 1993 The Regents of the University of California.
2000-2006 Erik Andersen <andersen@uclibc.org>
License: BSD-3-clause and LGPL-2.1+

Files: src/libfakechroot.c
Copyright: 2003-2015 Piotr Roszatycki <dexter@debian.org>
2007 Mark Eichin <eichin@metacarta.com>
2006, 2007 Alexander Shishkin <virtuoso@slind.org>
2006, 2007 Lionel Tricon <lionel.tricon@free.fr>
License: LGPL-2.1+

Files: src/popen.c
Copyright: 1988, 1993 The Regents of the University of California.
2010-2015 Piotr Roszatycki <dexter@debian.org>
License: BSD-3-clause

Files: src/posix_spawnp.c
Copyright: 1991,92, 1995-99, 2002, 2004, 2005, 2007, 2009
Free Software Foundation, Inc.
2010-2015 Piotr Roszatycki <dexter@debian.org>
License: LGPL-2.1+

Files: src/rawmemchr.c
Copyright: 2002 Manuel Novoa III
2000-2005 Erik Andersen <andersen@uclibc.org>
License: LGPL-2.1

Files: src/realpath.c
Copyright: 1996-2010 Free Software Foundation, Inc.
License: LGPL-2.1+

Files: src/rpl_lstat.c
Copyright: 1997-2006, 2008-2010 Free Software Foundation, Inc.
2013, 2015 Piotr Roszatycki <dexter@debian.org>
License: LGPL-3+

Files: src/stpcpy.c
Copyright: 1992, 1995, 1997-1998, 2006, 2009-2010 Free Software
Foundation, Inc.
License: LGPL-3+

Files: src/strchrnul.c
Copyright: 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
License: LGPL-3+

Files: src/strlcpy.c
Copyright: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
License: BSD-1-clause

License: BSD-1-clause
Copyright (c) The Regents of the University of California.
All rights reserved.
.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

License: BSD-2-clause
Copyright (c) The Regents of the University of California.
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

License: BSD-3-clause
Copyright (c) The Regents of the University of California.
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

License: GPL-2+
On Debian systems, the full text of the GNU General Public
License can be found in the file
`/usr/share/common-licenses/GPL-2'.

License: LGPL-2.1+
On Debian systems, the full text of the GNU Lesser General Public
License can be found in the file
`/usr/share/common-licenses/LGPL-2.1'. Future versions (the "or any
later version" clause) can be found in the same directory.

License: LGPL-3+
On Debian systems, the full text of the GNU Lesser General Public
License can be found in the file
`/usr/share/common-licenses/LGPL-3. Future versions (the "or any
later version" clause) can be found in the same directory.

License: LGPL-2.1
On Debian systems, the full text of the GNU Lesser General Public
License can be found in the file
`/usr/share/common-licenses/LGPL-2.1'.
2 changes: 2 additions & 0 deletions debian/fakechroot.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEWS.md
THANKS.md
6 changes: 6 additions & 0 deletions debian/fakechroot.examples
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
scripts/relocatesymlinks.sh
scripts/restoremode.sh
scripts/savemode.sh
test/archlinux.sh
test/debootstrap.sh
test/testtree.sh
4 changes: 4 additions & 0 deletions debian/fakechroot.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
etc/*/*
usr/bin/*
usr/sbin/*
usr/share/man/man*/*
1 change: 1 addition & 0 deletions debian/fakechroot.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
binary-without-manpage *.fakechroot
4 changes: 4 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[DEFAULT]
pristine-tar = True
ignore-branch = True
builder = debuild -i'^\.git/|^\.gitignore$|^\.travis.yml$|^README\.md$' -I
1 change: 1 addition & 0 deletions debian/libfakechroot.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/ld.so.conf.d
1 change: 1 addition & 0 deletions debian/libfakechroot.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/*/fakechroot/*.so
3 changes: 3 additions & 0 deletions debian/libfakechroot.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-has-unnecessary-activation-of-ldconfig-trigger
package-modifies-ld.so-search-path *.conf
postinst-has-useless-call-to-ldconfig
1 change: 1 addition & 0 deletions debian/libfakechroot.triggers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
activate-noawait ldconfig
28 changes: 28 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/make -f

DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PARALLEL := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PROVEFLAGS += -j$(PARALLEL)
endif

%:
dh $@ --parallel --with autoreconf

override_dh_auto_configure:
dh_auto_configure -- --enable-dependency-tracking --with-libpath=no V=1 EXTRA_CFLAGS='-Wall' PROVEFLAGS="$(PROVEFLAGS)" \
ac_cv_path_CHROOT=/usr/sbin/chroot \
ac_cv_path_DEBOOTSTRAP=/usr/sbin/debootstrap \
ac_cv_path_ECHO=/bin/echo \
ac_cv_path_ENV=/usr/bin/env \
ac_cv_path_FAKEROOT=/usr/bin/fakeroot \
ac_cv_path_ISCHROOT=/usr/bin/ischroot \
ac_cv_path_LDCONFIG=/sbin/ldconfig \
ac_cv_path_LDD=/usr/bin/ldd \
ac_cv_path_PERL=/usr/bin/perl \
ac_cv_path_SHELL=/bin/bash

override_dh_auto_install-arch:
dh_auto_install --parallel
echo /usr/lib/$(DEB_HOST_MULTIARCH)/fakechroot > debian/libfakechroot/etc/ld.so.conf.d/fakechroot-$(DEB_HOST_MULTIARCH).conf
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=3
https://github.com/dex4er/fakechroot/releases /dex4er/fakechroot/archive/([0-9a-z.-]*)\.tar\.gz
24 changes: 24 additions & 0 deletions fakechroot.dsc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Format: 3.0 (quilt)
Source: fakechroot
Binary: fakechroot, libfakechroot
Architecture: any all
Version: @PACKAGE_VERSION@
Maintainer: Piotr Roszatycki <dexter@debian.org>
Homepage: https://github.com/dex4er/fakechroot
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/git/collab-maint/fakechroot.git
Vcs-Git: https://anonscm.debian.org/git/collab-maint/fakechroot.git
Build-Depends: debhelper (>= 9.20141010), dh-autoreconf, dpkg-dev (>= 1.17.14), libjemalloc1 <!nocheck>
Package-List:
fakechroot deb utils optional arch=all
libfakechroot deb libs optional arch=any
Checksums-Sha1:
@FAKECHROOT_ORIG_SHA1@ @FAKECHROOT_ORIG_SIZE@ @FAKECHROOT_ORIG@
@FAKECHROOT_DEBIAN_SHA1@ @FAKECHROOT_DEBIAN_SIZE@ @FAKECHROOT_DEBIAN@
Checksums-Sha256:
@FAKECHROOT_ORIG_SHA256@ @FAKECHROOT_ORIG_SIZE@ @FAKECHROOT_ORIG@
@FAKECHROOT_DEBIAN_SHA256@ @FAKECHROOT_DEBIAN_SIZE@ @FAKECHROOT_DEBIAN@
Files:
@FAKECHROOT_ORIG_MD5@ @FAKECHROOT_ORIG_SIZE@ @FAKECHROOT_ORIG@
@FAKECHROOT_DEBIAN_MD5@ @FAKECHROOT_DEBIAN_SIZE@ @FAKECHROOT_DEBIAN@

Loading