# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/dendrite/dendrite.conf # Copyright (C) 2023 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- rungo=0 runmake=0 hook_add inmake 5 "dendrite_inmake" hook_add postmake 5 "dendrite_postmake" var_remove GCC_WRAPPER_REMOVE ' ' '-gdwarf*' dendrite_inmake() { for cmd in dendrite generate-keys create-account; do go build -trimpath -v -o bin/$cmd ./cmd/$cmd done } dendrite_postmake() { install -Dm755 bin/dendrite $root$bindir install -Dm755 bin/generate-keys $root$bindir install -Dm755 bin/create-account $root$bindir install -Dm644 dendrite-sample.yaml $root$sysconfdir/$pkg/dendrite.yaml }