diff --git a/README.md b/README.md index a77bcf1..1c40e8c 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ System configuration utilities for Project Trident * udevadm * To build: * `make` - * `make install` + * `make install` (as root if needed: Use the "DESTDIR" environment variable to change the root directory for installation) * To run it: * Enable the "autofs" service: `sudo ln -s /etc/sv/autofs /var/service/` * Enable/start the service: `sudo ln -s /etc/sv/trident-automount /var/service/` ### Description -This is a backend daemon for Void Linux systems which monitors udev events and generates XDG desktop shortcuts for removable devices within the "/media" directory. For browsing file-storage devices, *trident-automount* will automatically configure some *autofs* rules which allow these devices to be dynamically browsed via the "/browse/" directories. The XDG shortcuts that trident-automount generates will automatically check/adjust the shortcuts based upon the type of device/filesystem. +This is a backend daemon for Void Linux systems which monitors udev events and generates XDG desktop shortcuts for removable devices within the "/media" directory. For browsing file-storage devices, *trident-automount* will automatically configure some *autofs* rules which allow these devices to be dynamically browsed via the "/browse/[devicename]" directories. The XDG shortcuts that trident-automount generates will automatically check/adjust the shortcuts based upon the type of device/filesystem. The devices are mounted on the system by autofs **only while they are being used**. Trident-automount has the autofs mountpoints configured such that any device which is not used for 5 seconds will be automatically un-mounted, and can safely be detached from the system. If you wish to verify if a device is safe to remove, just run "mount" from the command line to ensure that the device is not included at the bottom of the list. diff --git a/src-go/automount/makefile b/src-go/automount/makefile index b75171f..048fe47 100644 --- a/src-go/automount/makefile +++ b/src-go/automount/makefile @@ -5,6 +5,6 @@ clean: @rm trident-automount install: - @cp trident-automount /usr/bin/. - mkdir -p /etc/sv/trident-automount - cp sv/run /etc/sv/trident-automount/run + @cp trident-automount ${DESTDIR}/usr/bin/. + mkdir -p ${DESTDIR}/etc/sv/trident-automount + cp sv/run ${DESTDIR}/etc/sv/trident-automount/run diff --git a/xbps/trident-automount/template b/xbps/trident-automount/template new file mode 100644 index 0000000..541126c --- /dev/null +++ b/xbps/trident-automount/template @@ -0,0 +1,18 @@ +# Template file for 'trident-automount' +pkgname=trident-automount +version=2020.06.07 +revision=1 +wrksrc="trident-utilities-${version}" +build_wrksrc="src-go/automount" +makedepends="go" +depends="autofs" +short_desc="Automounting daemon from Project Trident utilizing autofs" +maintainer="Ken Moore " +license="BSD-2-Clause" +homepage="https://github.com/project-trident/trident-utilities" +distfiles="https://github.com/project-trident/trident-utilities/archive/v${version}.tar.gz" +checksum=b25389296d9b2e80c28fe299001be1158442f6a584f2999dce0a20ff29bbea3b + +post_install() { + vlicense ${wrksrc}/LICENSE +}