From 6f5d050ec294180cc26a00386a558a66ca72015e Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 2 Sep 2020 09:19:16 -0400 Subject: [PATCH] New package: trident-automount-2020.09.02 This is a background service which monitors udev events for removable media and optical drives in order to create and maintain interaction shortcuts in the /media directory. This also configures and uses autofs for on-demand access to filesystems on removable devices. Sponsored by: Project Trident Amendment 1: Switch to "go" build style, and create "supervise" link for runit service. --- srcpkgs/trident-automount/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/trident-automount/template diff --git a/srcpkgs/trident-automount/template b/srcpkgs/trident-automount/template new file mode 100644 index 00000000000..d5955aab883 --- /dev/null +++ b/srcpkgs/trident-automount/template @@ -0,0 +1,22 @@ +# Template file for 'trident-automount' +pkgname=trident-automount +version=2020.09.02 +revision=1 +wrksrc="trident-utilities-${version}" +build_wrksrc="src-go/automount" +build_style=go +go_import_path="github.com/project-trident/trident-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=0bf0991c815b56b0143106e29ff2ab952416fd63d1810a6aa51fd95a0de4c48d + +post_install() { + vinstall sv/run 0755 /etc/sv/trident-automount + ln -s /run/runit/supervise.trident-automount $DESTDIR/etc/sv/trident-automount/supervise + vlicense ${wrksrc}/LICENSE +}