void-packages/srcpkgs/dictd/template
2020-04-01 10:39:13 +02:00

42 lines
1.3 KiB
Bash

# Template file for 'dictd'
pkgname=dictd
version=1.13.0
revision=1
build_style=gnu-configure
configure_args="--enable-dictorg --sysconfdir=/etc/dict"
conf_files="/etc/dict/dictd.conf /etc/dict/site.info"
hostmakedepends="flex libtool"
makedepends="zlib-devel libmaa-devel"
short_desc="DICT protocol server"
maintainer="Christopher Brannon <chris@the-brannons.com>"
license="GPL-2.0-or-later"
homepage="http://sourceforge.net/projects/dict/"
distfiles="${SOURCEFORGE_SITE}/dict/dictd-${version}.tar.gz"
checksum=eeba51af77e87bb1b166c6bc469aad463632d40fb2bdd65e6675288d8e1a81e4
system_accounts="dictd"
post_install() {
vinstall ${FILESDIR}/dictd.conf 644 etc/dict
vinstall ${FILESDIR}/site.info 644 etc/dict
vinstall ${FILESDIR}/dictd.xinetd 644 etc/xinetd.d dictd
vsv dictd
for f in examples/*; do vsconf $f; done
}
dict_package() {
short_desc="DICT protocol dictionary client, from the dictd developers"
conf_files="/etc/dict/dict.conf /etc/dict/colorit.conf"
pkg_install() {
vinstall ${FILESDIR}/dict.conf 644 etc/dict
vinstall ${FILESDIR}/colorit.conf 644 etc/dict
vmove usr/bin/dict
vmove usr/bin/colorit
vmove usr/bin/dictl
vmove usr/bin/dict_lookup
vmove usr/share/man/man1/dict.1
vmove usr/share/man/man1/colorit.1
vmove usr/share/man/man1/dictl.1
vmove usr/share/man/man1/dict_lookup.1
vmove usr/share/examples/dictd/dict1.conf
}
}