void-packages/srcpkgs/fakeroot/template
Juan RP e56c7fbe90 fakeroot: make sure that ACL wrappers are built.
Otherwise using an ACL-aware utility will create files with wrong permissions:

$ echo foo > blah
$ fakeroot -- sed -i 's,foo,bar,' blah
$ ls -l blah
---------- 1 juan juan 0 oct 23 11:11 blah
2013-10-23 11:24:03 +02:00

30 lines
938 B
Text

# Template file for 'fakeroot'
pkgname=fakeroot
version=1.20
revision=2
build_style=gnu-configure
makedepends="acl-devel libcap-devel"
configure_args="--disable-static"
short_desc="Gives a fake root environment"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://packages.debian.org/fakeroot"
license="GPL-3"
distfiles="${DEBIAN_SITE}/main/f/fakeroot/${pkgname}_${version}.orig.tar.bz2"
checksum=2297b7e79487cf0bbc64ff6d3d02446d895e82e2b26467c74fd1119011f6f098
long_desc="
This package is intended to remove the need to become root for a package build.
This is done by setting LD_PRELOAD to libfakeroot.so, which provides wrappers
around getuid, chown, chmod, mknod, stat, and so on, thereby creating a fake
root environment."
post_install() {
# Use /bin/sh shebang.
sed -i -e "s|^#!/bin/bash$|#!/bin/sh|" ${DESTDIR}/usr/bin/fakeroot
}
fakeroot_package() {
conflicts="chroot-fakeroot>=0"
pkg_install() {
vmove all
}
}