void-packages/srcpkgs/open-iscsi/template
2015-01-01 18:46:22 +01:00

28 lines
858 B
Bash

# Template file for 'open-iscsi'
pkgname=open-iscsi
version=2.0r873
revision=1
wrksrc="${pkgname}-${version/r/-}"
build_style=gnu-makefile
make_install_args="exec_prefix=/usr sbindir=/usr/bin"
conf_files="/etc/iscsi/iscsid.conf /etc/iscsi/initiatorname.iscsi"
short_desc="Open-iSCSI userland tools"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://www.open-iscsi.org/"
distfiles="http://www.open-iscsi.org/bits/${wrksrc}.tar.gz"
checksum=7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9
nocross=yes
post_install() {
vbin usr/iscsistart
for m in doc/*.8; do
vman $m
done
true >${DESTDIR}/etc/iscsi/initiatorname.iscsi
vsconf ${DESTDIR}/etc/iscsi/ifaces/iface.example
rm ${DESTDIR}/etc/iscsi/ifaces/iface.example
sed -i 's,/sbin/iscsid,/usr/bin/iscsid,' ${DESTDIR}/etc/iscsi/iscsid.conf
}