#!/bin/sh

name="fakeroot"
title="fakeroot"
package="fakeroot"
version="0.4.5"
debver="2.3"
build="1"
noarch="n"
build_info="Standard build."

info="Gives a fake root environment."
info_pl="Dostarcza fałszywego środowiska roota."
desc="This package is intended to enable something like 'fakeroot rpm
--rebuild' i.e. to remove the need to become root for a package
build. This is done by setting LD_PRELOAD to a 'libfakeroot.so.0.0',
that provides wrappers around chown, chmod, mknod, stat, etc."
desc_pl="Ten pakiet został pomyślany, aby umożliwić coś jak 'fakeroot
rpm --rebuild' np. do zlikwidowania konieczności bycia rootem do
zbudowania pakietu. Jest to osiągane przez ustawianie zmiennej
LD_PRELOAD na 'libfakeroot.so.0.0', co wrapuje funkcje chown,
chmod, mknod, stat, itp."
category="system/other"
environment="library"
contact="$name@packages.packware.gnu.pl"
vendor="Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="AUTHORS,BUGS,COPYING,DEBUG,INSTALL,README.fake,debian/changelog"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source ftp://ftp.debian.org/debian/pool/main/f/$name/${name}_$version-$debver.tar.gz $name-$version

# Constant options for configure script.
configure_option --prefix=/usr

# Constant options for make install.
install_option DESTDIR=$pkg_main

# Before compiling write the info file.
parent_package="$package"
write_info main

cd $src1

# Run configure script with options as given by function configure_option.
do_configure
# Run make with options as given by function make_option.
do_make
# Run make install with options as given by function install_option.
do_install

make_docs

# Create package.
make_package main

# Delete temporary directories.
clean_up

# ChangeLog
#
# 2002/06/10 Jaroslaw Swierczynski <swiergot@intersec.pl>
# - Initial release.
#
