-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
36 lines (34 loc) · 1.15 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Template file for 'elog'
pkgname=elog
version=3.1.4.3
revision=2
_distver="${version:0:-2}-${version:(-1)}"
build_style=gnu-makefile
make_dirs="/var/lib/elog/logbooks 0750 elog elog"
makedepends="openssl-devel"
conf_files="/etc/elog/elogd.cfg"
short_desc="Logbook system to manage notes through a Web interface"
maintainer="Christian Poulwey <christian.poulwey@t-online.de>"
license="GPL-3.0-or-later"
homepage="https://elog.psi.ch/elog/"
distfiles="https://elog.psi.ch/elog/download/tar/elog-$_distver.tar.gz"
checksum=e684917c6bbdfbafcbd9012dd5914bd5f3ee14f31f89e12ddb21bc4b41baba03
# certificate is invalid and http:// 302 redirects to https://
fetch_cmd="env SSL_NO_VERIFY_PEER=1 $XBPS_FETCH_CMD"
system_accounts="elog"
CFLAGS="-Imxml"
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.example
sed -i '/\[global\]/s/$/\nResource dir = \/usr\/share\/elog/' elogd.cfg.example
vmkdir etc/elog
vinstall elogd.cfg.example 0755 etc/elog elogd.cfg
vsv elogd
}