New package: elog-3.1.4.1
This commit is contained in:
parent
8994e0b69a
commit
ed4229047d
2 changed files with 36 additions and 0 deletions
2
srcpkgs/elog/files/elogd/run
Normal file
2
srcpkgs/elog/files/elogd/run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec chpst -u elog:elog /usr/bin/elogd -c /etc/elog/elogd.cfg
|
34
srcpkgs/elog/template
Normal file
34
srcpkgs/elog/template
Normal file
|
@ -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 <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
|
||||
}
|
Loading…
Reference in a new issue