void-packages/srcpkgs/dictd/template

43 lines
1.3 KiB
Bash

# Template file for 'dictd'
pkgname=dictd
version=1.13.1
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="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://sourceforge.net/projects/dict/"
distfiles="${SOURCEFORGE_SITE}/dict/dictd-${version}.tar.gz"
checksum=e4f1a67d16894d8494569d7dc9442c15cc38c011f2b9631c7f1cc62276652a1b
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
}
}