From ed4229047d7840d8ed6891a4834e270eea04d219 Mon Sep 17 00:00:00 2001 From: Christian Poulwey Date: Mon, 19 Nov 2018 22:18:05 +0100 Subject: [PATCH] New package: elog-3.1.4.1 --- srcpkgs/elog/files/elogd/run | 2 ++ srcpkgs/elog/template | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/elog/files/elogd/run create mode 100644 srcpkgs/elog/template diff --git a/srcpkgs/elog/files/elogd/run b/srcpkgs/elog/files/elogd/run new file mode 100644 index 0000000000..b196a73b4e --- /dev/null +++ b/srcpkgs/elog/files/elogd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u elog:elog /usr/bin/elogd -c /etc/elog/elogd.cfg diff --git a/srcpkgs/elog/template b/srcpkgs/elog/template new file mode 100644 index 0000000000..333a103af1 --- /dev/null +++ b/srcpkgs/elog/template @@ -0,0 +1,34 @@ +# Template file for 'elog' +pkgname=elog +version=3.1.4.1 +revision=1 +_distver="${version:0:-2}-${version:(-1)}" +wrksrc="$pkgname-${version%.*}" +build_style=gnu-makefile +CFLAGS="-Imxml" +make_dirs="/var/lib/elog/logbooks 0750 elog elog" +conf_files="/etc/elog/elogd.cfg" +system_accounts="elog" +short_desc="Logbook system to manage notes through a Web interface" +maintainer="Christian Poulwey " +makedepends="libressl-devel" +license="GPL-3.0-or-later" +homepage="https://elog.psi.ch/elog/" +distfiles="https://elog.psi.ch/elog/download/tar/$pkgname-$_distver.tar.gz" +checksum=4bfa2bef6cfa20aba73c9c6c044a4c83f20cf03e7de3c0dda4a4477f28b7b72e + +do_install() { + vbin elog + vbin elogd + vbin elconv + vman man/elog.1 + vmkdir usr/share/elog + vcopy resources usr/share/elog + vcopy scripts usr/share/elog + vcopy themes usr/share/elog + sed -i '/\[global\]/s/$/\nLogbook dir = \/var\/lib\/elog\/logbooks/' elogd.cfg + sed -i '/\[global\]/s/$/\nResource dir = \/usr\/share\/elog/' elogd.cfg + vmkdir etc/elog + vinstall elogd.cfg 0755 etc/elog + vsv elogd +}