summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanuele 'Lele' Calo2019-10-02 00:28:08 +0200
committerEmanuele 'Lele' Calo2019-10-02 00:28:08 +0200
commit4d6db589a1cb5a4be5f8c74b8882636f3acd782a (patch)
treeabb4c7d8c52d757ff66d6df48fbd252cda8752c6
parent778c25ef36db03586216effb639e2e671783b029 (diff)
downloadaur-4d6db589a1cb5a4be5f8c74b8882636f3acd782a.tar.gz
Added backup conf file
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 17d9c0fd5f64..62318e5b0175 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = teleport
pkgdesc = Modern SSH server for teams managing distributed infrastructure
pkgver = 4.1.0
- pkgrel = 1
+ pkgrel = 2
url = https://gravitational.com/teleport
install = teleport.install
arch = x86_64
@@ -9,6 +9,7 @@ pkgbase = teleport
license = Apache
depends = glibc
options = !strip
+ backup = etc/teleport/teleport.yaml
source_x86_64 = https://get.gravitational.com/teleport-v4.1.0-linux-amd64-bin.tar.gz
source_x86_64 = teleport.service
source_x86_64 = teleport.yaml
diff --git a/PKGBUILD b/PKGBUILD
index 17913770ac76..2dae089b2ab7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=teleport
pkgver=4.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="Modern SSH server for teams managing distributed infrastructure"
arch=('x86_64' 'arm')
url="https://gravitational.com/teleport"
@@ -41,11 +41,16 @@ sha256sums_arm=(
)
options=(!strip)
+backup=('etc/teleport/teleport.yaml')
+
package() {
mkdir -p "${pkgdir}/usr/lib/systemd/system" "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/etc/teleport"
- install -m644 -t "${pkgdir}/usr/lib/systemd/system/" teleport.service
+
install -m644 -t "${pkgdir}/etc/teleport/" teleport.yaml
+
+ install -m644 -t "${pkgdir}/usr/lib/systemd/system/" teleport.service
+
cd "${srcdir}/teleport"
install -m755 -t "${pkgdir}/usr/bin/" teleport tctl tsh
# no man pages, docs or web assets in release tarball