1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
|
# $Id: /trunk/debian/packages 46 2005-02-04T15:58:24.135919Z dexter $
# If the debian/rules or debian/control file is missing, rebuild the file:
#
# $ yada rebuild control
# $ yada rebuild rules
# Environment variables:
# with_test=%{$with_test} - build with check test
%define with_test %{?$with_test:1}%{!?$with_test:0}
%define without_test %{!?with_test:1}%{?with_test:0}
# Macro switches:
# with_test=%{with_test} without_test=%{without_test}
%define automake_version 1.7
# Other macros:
# automake_version=%{automake_version}
Source: fakechroot
Section: utils
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Home-Page: <URL:http://fakechroot.alioth.debian.org/>
Description: gives a fake chroot environment
Copyright: GPL
(c) 2003 Piotr Roszatycki <dexter@debian.org>, GPL
.
Based on fakeroot package:
GNU copyleft joost witteveen, <joostje@debian.org>.
Build-Depends: automake%{automake_version}, autoconf, libtool
Build-Depends: sharutils, file
Build-Depends: libc6-dev-s390x [s390], libc6-dev-sparc64 [sparc]
Build: bash
CC=${CC:-gcc}
CFLAGS=${CFLAGS:--Wall -pedantic -g}
CXXFLAGS=${CFLAGS:--Wall -pedantic -g}
if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
CFLAGS="$CFLAGS -O0"
CXXFLAGS="$CXXFLAGS -O0"
else
CFLAGS="$CFLAGS -O2"
CXXFLAGS="$CXXFLAGS -O2"
fi
.
if ! [ -f autoconf-stamp ]; then
rm -f aclocal.m4 configure
aclocal-%{automake_version}
autoheader
libtoolize --copy
automake-%{automake_version} --add-missing --copy
autoconf
pushd fake
aclocal-%{automake_version}
automake-%{automake_version} --add-missing --copy
autoconf
popd
touch autoconf-stamp
fi
.
if ! [ -f configure-stamp ]; then
install -d build-tree-lib build-tree-fake build-tree-lib64
pushd build-tree-lib
CC="$CC" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
../configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib/libfakechroot
popd
pushd build-tree-fake
CC="$CC" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
../fake/configure --prefix=/usr --mandir=/usr/share/man
popd
if [ "$DEB_HOST_GNU_TYPE" = "sparc-linux" ]; then
pushd build-tree-lib64
CC="gcc -m64" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
../configure --prefix=/usr --mandir=/usr/share/man --build=sparc-linux --host=sparc64-linux
popd
fi
install -d build-tree-lib-tcp build-tree-fake-tcp build-tree-lib64-tcp
pushd build-tree-lib-tcp
CC="$CC" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
../configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib/libfakechroot \
--with-ipc=tcp --program-suffix=-tcp
popd
pushd build-tree-fake-tcp
CC="$CC" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
../fake/configure --prefix=/usr --mandir=/usr/share/man \
--with-ipc=tcp --program-suffix=-tcp
popd
if [ "$DEB_HOST_GNU_TYPE" = "sparc-linux" ]; then
pushd build-tree-lib64-tcp
CC="gcc -m64" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
../configure --prefix=/usr --mandir=/usr/share/man --build=sparc-linux --host=sparc64-linux \
--with-ipc=tcp --program-suffix=-tcp
popd
fi
touch configure-stamp
fi
.
if ! [ -f build-stamp ]; then
pushd build-tree-lib
make
popd
pushd build-tree-fake
make
popd
if [ "$DEB_HOST_GNU_TYPE" = "sparc-linux" ]; then
pushd build-tree-lib64
make
popd
fi
pushd build-tree-lib-tcp
make
popd
pushd build-tree-fake-tcp
make
popd
if [ "$DEB_HOST_GNU_TYPE" = "sparc-linux" ]; then
pushd build-tree-lib64-tcp
make
popd
fi
touch build-stamp
fi
.
%if %{with_test}
pushd build-tree-lib
make check
popd
pushd build-tree-lib-tcp
make check
popd
%endif
Clean: sh
rm -rf build-tree-* || true
rm -f *-stamp || true
rm -rf $(cat .cvsignore)
for i in $(find -name .cvsignore); do
( cd $(dirname $i) && rm -rf $(cat .cvsignore) )
done
Package: fakechroot
Architecture: any
Description: gives a fake chroot environment
This package provides a library which overrides libc functions, so
it is possible to use root-specific tools without root priviliges.
.
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.
Install: bash
for i in build-tree*; do
pushd $i
if [ -f Makefile ]; then
rm -rf tmp || true
make install DESTDIR=$(pwd)/tmp
fi
popd
done
.
yada install -lib -into /usr/lib build-tree-fake/tmp/usr/lib/*.so.*.*.*
yada symlink -into /usr/lib \
-as $(basename build-tree-fake-tcp/tmp/usr/lib/*.so.?) \
$(basename build-tree-fake-tcp/tmp/usr/lib/*.so.*.*.*)
yada install -lib -into /usr/lib \
-as $(basename build-tree-fake-tcp/tmp/usr/lib/*.so.*.*.* | sed 's/\.so/-tcp&/') \
build-tree-fake-tcp/tmp/usr/lib/*.so.*.*.*
yada symlink -into /usr/lib \
-as $(basename build-tree-fake-tcp/tmp/usr/lib/*.so.? | sed 's/\.so/-tcp&/') \
$(basename build-tree-fake-tcp/tmp/usr/lib/*.so.*.*.* | sed 's/\.so/-tcp&/')
yada install -script -as fakechroot build-tree-lib/tmp/usr/bin/fakeroot
yada install -bin -as fakechrootd build-tree-lib/tmp/usr/bin/faked
yada copy -into /usr/lib/libfakechroot build-tree-lib/tmp/usr/lib/libfakechroot/*.so.?
yada install -lib -into /usr/lib/libfakechroot build-tree-lib/tmp/usr/lib/libfakechroot/*.so.*.*.*
yada install -script -as fakechroot-tcp build-tree-lib-tcp/tmp/usr/bin/fakeroot-tcp
yada install -bin -as fakechrootd-tcp build-tree-lib-tcp/tmp/usr/bin/faked-tcp
yada install -lib -into /usr/lib/libfakechroot \
-as $(basename build-tree-lib-tcp/tmp/usr/lib/libfakechroot/*.so.*.*.* | sed 's/\.so/-tcp&/') \
build-tree-lib-tcp/tmp/usr/lib/libfakechroot/*.so.*.*.*
yada symlink -into /usr/lib/libfakechroot \
-as $(basename build-tree-lib-tcp/tmp/usr/lib/libfakechroot/*.so.? | sed 's/\.so/-tcp&/') \
$(basename build-tree-lib-tcp/tmp/usr/lib/libfakechroot/*.so.*.*.* | sed 's/\.so/-tcp&/')
.
if [ "$DEB_HOST_GNU_TYPE" = "sparc-linux" ]; then
yada install -lib -into /usr/lib64/libfakechroot build-tree-lib64/tmp/usr/lib/*.so.*.*.*
yada symlink -into /usr/lib64/libfakechroot \
-as $(basename build-tree-lib64/tmp/usr/lib/*.so.?) \
$(basename build-tree-lib64/tmp/usr/lib/*.so.*.*.*)
yada install -lib -into /usr/lib64/libfakechroot \
-as $(basename build-tree-lib64-tcp/tmp/usr/lib/*.so.*.*.* | sed 's/\.so/-tcp&/') \
build-tree-lib64-tcp/tmp/usr/lib/*.so.*.*.*
yada symlink -into /usr/lib64/libfakechroot \
-as $(basename build-tree-lib64-tcp/tmp/usr/lib/*.so.? | sed 's/\.so/-tcp&/') \
$(basename build-tree-lib64-tcp/tmp/usr/lib/*.so.*.*.* | sed 's/\.so/-tcp&/')
fi
.
yada install -man -as fakechroot.1 doc/fakeroot.1
yada install -man -as fakechroot-tcp.1 doc/fakeroot.1
yada install -man -as fakechrootd.1 doc/faked.1
yada install -man -as fakechrootd-tcp.1 doc/faked.1
yada install -doc README.fakechroot doc/debootstrap.diff
yada install -doc -subdir examples scripts/restoremode.sh scripts/savemode.sh scripts/ldd.fake
Shlibs:
/usr/lib/libfakechroot/libfakechroot 0
Overrides:
ldconfig-symlink-referencing-wrong-file usr/lib/libfakechroot.so.0 -> libfakechroot.so.0.0.1 instead of libfakechroot-tcp.so.0.0.1
shlib-missing-in-control-file libfakechroot usr/lib/libfakechroot.so.0.0.1
shlib-missing-in-control-file libfakechroot usr/lib/libfakechroot-tcp.so.0.0.1
unused-shlib-entry-in-control-file /usr/lib/libfakechroot/libfakechroot
|