oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
608 stars 137 forks source link

Add documentation to support install using system libraries #365

Closed johnramsden closed 6 years ago

johnramsden commented 6 years ago

Would you be able to a documentation describing how to install in a way that uses the systems perl-module libraries, and installs znapzend to the systems application data location, probably /usr/share/znapzend or /usr/local/share/znapzend.

I maintain the Arch Linux znapzend package, and under Arch Linux guidelines it's preferable to use system libraries and not stick things in /opt unless really necessary.

I don't have experience with perl and i'm not sure what would be involved to make znapzend not use an isolated perl installation. If you are able to just give me some brief instructions on what might need modifiying in the install instructions, I'd be happy to write up some detailed documentation.

Is it as simple as changing the --prefix to /usr/share/znapzend, and installing the perl modules? If so, what will stop znapzend from tying to self install libraries in a subdirectory?

oetiker commented 6 years ago

if system libraries are present, they will get used as long as they 'comply' with the requirements defined in the PERL_MODULES file ... only missing or newer libraries will get installed.