simonclausen / dnscrypt-autoinstall

Automatic installation and configuration of DNSCrypt (on Debian + Redhat like systems). This script will install DNSCrypt and configure it to start on boot and use an optional dnscrypt service.
Other
224 stars 73 forks source link

Use fakeroot for building #64

Closed AladW closed 6 years ago

AladW commented 9 years ago

The sudo bash cludgery was introduced because of #10, as running gpg as sudo would break the permissions on the user gpg folder. A better solution would be to fully separate unprivileged sections by building with fakeroot, leaving root to move over (e.g wtith rsync) files to system locations and run ldconfig on fedora. This has the added benefit that users have a compiled tarball at their disposal, and don't run sudo make install.

http://www.linuxfromscratch.org/hints/downloads/files/fakeroot.txt

Done

AladW commented 8 years ago

This is what I have in mind so far:

  1. A script to fetch and verify dnscrypt/libsodium tarballs, build them, and install the files to an archive via fakeroot/bsdtar. See: https://gist.github.com/Earnestly/bebad057f40a662b5cc3
  2. A wrapper to install the needed dependencies, depending on distro detected (/etc/debian_version e.a) and configure services
AladW commented 8 years ago

Working prototype for 1: https://gist.github.com/AladW/273dd7b8f6d5a71409531aaf5bc41463

AladW commented 8 years ago

I've started a rewrite in the fakeroot branch; please add any thoughts as things progress.

simonclausen commented 8 years ago

Great!

AladW commented 8 years ago

The script should now be fully functional in Debian 8, Ubuntu 16.04 and CentOS 7. Please give it a try when you get the chance. :)

AladW commented 8 years ago

Sorry, I got busy with other projects. Will try to finish this as soon as possible.

simonclausen commented 6 years ago

Archiving repo, see last comment in #108