# Template file for 'elog'
pkgname=elog
version=3.1.5.1
revision=1
build_style=gnu-makefile
make_install_args="SBINDIR=/usr/bin MANDIR=/usr/share/man ELOGDIR=/usr/share/elog"
makedepends="openssl-devel"
short_desc="Logbook system to manage notes through a Web interface"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://elog.psi.ch/elog/"
distfiles="https://elog.psi.ch/elog/download/tar/elog-${version%.*}-${version##*.}.tar.gz"
checksum=165fdeec01819c06a1fe14cd1741e9ab284a961053df9ba9f8680f8f7f9e299f

system_accounts="elog"
make_dirs="/var/lib/elog/logbooks 0750 elog elog"
conf_files="/etc/elog/elogd.cfg"

CXXFLAGS="-Imxml"

post_install() {
	vinstall elogd.cfg.example 0755 etc/elog elogd.cfg
	vsv elogd
}
