summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Leclercq2015-06-12 18:33:17 +0200
committerNicolas Leclercq2015-06-12 18:33:17 +0200
commit3930b4fe0ef6620fee7aa2129d432287300115ee (patch)
tree7bdd2eb8bb2d93349fdfde0be7bc733c09f06834
downloadaur-3930b4fe0ef6620fee7aa2129d432287300115ee.tar.gz
Migrating from aur3
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD52
-rw-r--r--facette.install21
-rw-r--r--facette.service10
5 files changed, 111 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d8d3d49653a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = facette
+ pkgdesc = Facette is a software to display time series data from several various sources
+ pkgver = 0.2.3
+ pkgrel = 1
+ url = http://facette.io/
+ install = facette.install
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = pkg-config
+ makedepends = go
+ makedepends = nodejs
+ makedepends = pandoc-static
+ depends = rrdtool
+ provides = facette
+ source = https://github.com/facette/facette/archive/0.2.3.tar.gz
+ source = facette.service
+ source = facette.install
+ md5sums = 7d9882bdf42660f771e16881e4868006
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = facette
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..67d74806565
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.gz
+*.xz
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1f5076e8a2f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Nicolas Leclercq <nicolas.private@gmail.com>
+
+pkgname='facette'
+pkgver='0.2.3'
+pkgrel='1'
+epoch=
+pkgdesc='Facette is a software to display time series data from several various sources'
+arch=('i686' 'x86_64')
+url='http://facette.io/'
+license=('BSD')
+groups=()
+depends=('rrdtool')
+makedepends=('pkg-config' 'go' 'nodejs' 'pandoc-static')
+checkdepends=()
+optdepends=()
+provides=('facette')
+conflicts=()
+replaces=()
+backup=()
+options=()
+install='facette.install'
+changelog=
+source=(
+ "https://github.com/facette/facette/archive/$pkgver.tar.gz"
+ 'facette.service'
+ 'facette.install')
+noextract=()
+md5sums=('7d9882bdf42660f771e16881e4868006'
+ 'SKIP'
+ 'SKIP')
+_prefix='/usr/local'
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX=${pkgdir}/${_prefix} install
+
+ # create target directory structure
+ mkdir -p ${pkgdir}/{etc/facette,var/log/facette,var/run/facette}
+
+ # default config
+ cp docs/examples/facette.json ${pkgdir}/etc/facette
+ cp -r docs/examples/providers ${pkgdir}/etc/facette
+
+ # copy systemd service file
+ install -D -m644 $srcdir/facette.service $pkgdir/usr/lib/systemd/system/facette.service
+}
+
diff --git a/facette.install b/facette.install
new file mode 100644
index 00000000000..3a1fceb3490
--- /dev/null
+++ b/facette.install
@@ -0,0 +1,21 @@
+post_install() {
+ post_upgrade
+ passwd -l facette &>/dev/null
+}
+
+post_upgrade() {
+ # create user/group that the daemon will run as by default, do not delete this on uninstall, as it will own files
+ getent group facette >/dev/null || groupadd facette
+ getent passwd facette >/dev/null || useradd -c 'facette' -g facette -b '/var/lib' -m -s /bin/false facette
+
+ chown facette:facette /etc/facette
+ chmod 755 /etc/facette
+ chmod 644 /etc/facette/facette.json
+ chmod 755 /etc/facette/providers
+
+ chown facette:facette /var/run/facette
+ chmod 755 /var/run/facette
+
+ chown facette:facette /var/log/facette
+ chmod 755 /var/log/facette
+}
diff --git a/facette.service b/facette.service
new file mode 100644
index 00000000000..7e2ed3ea0f3
--- /dev/null
+++ b/facette.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Facette
+
+[Service]
+User=facette
+Group=facette
+Type=simple
+ExecStart=/usr/local/bin/facette -c /etc/facette/facette.json
+RuntimeDirectory=facette
+RuntimeDirectoryMode=0755