cdb, freecdb: use alternatives; get rid of conflicts.

This commit is contained in:
Juan RP 2016-02-23 16:34:34 +01:00
parent 6a47cb2041
commit 88098c4670
2 changed files with 30 additions and 19 deletions

View File

@ -9,15 +9,20 @@ license="Public domain"
homepage="http://cr.yp.to/cdb.html"
distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
conflicts="freecdb>=0"
alternatives="
cdb:cdbdump:/usr/bin/cdb-dump
cdb:cdbdump:/usr/share/man/man1/cdb-dump.1
cdb:cdbget:/usr/bin/cdb-get
cdb:cdbget:/usr/share/man/man1/cdb-get.1
cdb:cdbmake:/usr/bin/cdb-make
cdb:cdbmake:/usr/share/man/man1/cdb-make.1
cdb:cdbstats:/usr/bin/cdb-stats
cdb:cdbstats:/usr/share/man/man1/cdb-stats.1
"
do_install() {
vbin cdbget
vbin cdbmake
vbin cdbdump
vbin cdbstats
vbin cdbtest
vbin cdbmake-12
vbin cdbmake-sv
for f in dump get make stats test make-12 make-sv; do
vbin cdb${f} cdb-${f}
done
}

View File

@ -1,23 +1,29 @@
# Template file for 'freecdb'
pkgname=freecdb
version=0.75
revision=1
revision=2
build_style=gnu-makefile
short_desc="Creating and reading constant databases"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="Public Domain"
conflicts="cdb"
homepage="https://packages.debian.org/source/sid/freecdb"
distfiles="http://http.debian.net/debian/pool/main/f/${pkgname}/${pkgname}_${version}.tar.gz"
checksum=95214e485bd3ece2dc2a035e7bd25f080603f8f3b7a1ff329c1c67303700a0e3
alternatives="
cdb:cdbdump:/usr/bin/${pkgname}dump
cdb:cdbdump:/usr/share/man/man1/${pkgname}dump.1
cdb:cdbget:/usr/bin/${pkgname}get
cdb:cdbget:/usr/share/man/man1/${pkgname}get.1
cdb:cdbmake:/usr/bin/${pkgname}make
cdb:cdbmake:/usr/share/man/man1/${pkgname}make.1
cdb:cdbstats:/usr/bin/${pkgname}stats
cdb:cdbstats:/usr/share/man/man1/${pkgname}stats.1
"
do_install() {
vman cdbdump.1
vman cdbget.1
vman cdbmake.1
vman cdbstats.1
vbin cdbdump
vbin cdbget
vbin cdbmake
vbin cdbstats
for f in dump get make stats; do
vman cdb${f}.1 ${pkgname}${f}.1
vbin cdb${f} ${pkgname}${f}
done
}