void-packages/srcpkgs/open-isns/template
2017-04-11 18:54:34 +02:00

36 lines
1 KiB
Bash

# Template file for 'open-isns'
pkgname=open-isns
version=0.97
revision=2
build_style=gnu-configure
configure_args="--enable-shared"
makedepends="libressl-devel"
make_install_args="install install_hdrs install_lib SYSTEMDDIR=/tmp"
conf_files="/etc/isns/isnsdd.conf /etc/isns/isnsd.conf /etc/isns/isnsadm.conf"
short_desc="Server and client for iSNS"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="LGPL-2.1"
homepage="https://github.com/open-iscsi/open-isns"
distfiles="https://github.com/open-iscsi/open-isns/archive/v${version}.tar.gz"
checksum=c1c9ae740172e55a1ff33bc22151ec3d916562bf5d60c8420cd64496343683a9
post_extract() {
sed -i '1i#include <sys/time.h>' include/libisns/isns.h
sed -i 's,<sys/endian.h>,<endian.h>,g' include/libisns/util.h
}
libisns_package() {
short_desc+=" - library"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libisns-devel_package() {
short_desc+=" - development files"
depends="libisns>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/*.a
}
}