void-packages/srcpkgs/dictd/template

44 lines
1.4 KiB
Bash

# Template file for 'dictd', based on the ArchLinux package by Sergej Pupykin
pkgname=dictd
version=1.12.1
revision=2
build_style=gnu-configure
configure_args="--enable-dictorg --sbindir=/usr/bin --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"
homepage="http://sourceforge.net/projects/dict/"
distfiles="${SOURCEFORGE_SITE}/dict/${pkgname}-${version}.tar.gz"
checksum=a237f6ecdc854ab10de5145ed42eaa2d9b6d51ffdc495f7daee59b05cc363656
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
vmkdir usr/share/doc/$pkgname
vcopy examples/ usr/share/doc/$pkgname
}
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/doc/dictd/examples/dict1.conf
}
}