bareos: Remove install hack
This commit is contained in:
parent
b3c423757e
commit
7193e07cba
@ -33,7 +33,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--localstatedir=/var"
|
|
||||||
"--exec-prefix=\${out}"
|
"--exec-prefix=\${out}"
|
||||||
"--enable-lockmgr"
|
"--enable-lockmgr"
|
||||||
"--enable-dynamic-storage-backends"
|
"--enable-dynamic-storage-backends"
|
||||||
@ -62,17 +61,11 @@ stdenv.mkDerivation rec {
|
|||||||
++ optional (glusterfs != null) "--with-glusterfs=${glusterfs}"
|
++ optional (glusterfs != null) "--with-glusterfs=${glusterfs}"
|
||||||
++ optional (ceph != null) "--with-cephfs=${ceph}";
|
++ optional (ceph != null) "--with-cephfs=${ceph}";
|
||||||
|
|
||||||
installFlags = [ "DESTDIR=\${out}" ];
|
installFlags = [
|
||||||
|
"sysconfdir=\${out}/etc"
|
||||||
postInstall = ''
|
"working_dir=\${TMPDIR}"
|
||||||
mv $out/$out/* $out
|
"log_dir=\${TMPDIR}"
|
||||||
DIR=$out/$out
|
];
|
||||||
while rmdir $DIR 2>/dev/null; do
|
|
||||||
DIR="$(dirname "$DIR")"
|
|
||||||
done
|
|
||||||
|
|
||||||
rm -rf /tmp /var
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.bareos.org/;
|
homepage = http://www.bareos.org/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user