35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
|
# 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 <christian.poulwey@t-online.de>"
|
||
|
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
|
||
|
}
|