Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Update the trident-automount build system and add an xbps package tem…
Browse files Browse the repository at this point in the history
…plate for it.
  • Loading branch information
beanpole135 committed Sep 1, 2020
1 parent a3a3ee2 commit 5e410b5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<devicename>" 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.

Expand Down
6 changes: 3 additions & 3 deletions src-go/automount/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 18 additions & 0 deletions xbps/trident-automount/template
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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
}

0 comments on commit 5e410b5

Please sign in to comment.