41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.6 2013/03/21 08:46:34 ajacoutot Exp $
|
|
|
|
COMMENT= iSCSI (RFC 3720) target from NetBSD
|
|
|
|
DISTNAME= netbsd-iscsi-20111006
|
|
PKGNAME= ${DISTNAME:S/-iscsi/-iscsi-target/}
|
|
REVISION= 0
|
|
|
|
CATEGORIES= net sysutils
|
|
|
|
MAINTAINER= Roman Kravchuk <kravchuk.kp@gmail.com>
|
|
|
|
HOMEPAGE= http://www.alistaircrooks.co.uk/software.html
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c pthread
|
|
|
|
SHARED_LIBS += iscsi 0.0 # 0.2
|
|
|
|
MASTER_SITES= http://ftp.netbsd.org/pub/NetBSD/packages/distfiles/ \
|
|
ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}/src/target; perl -pi -e \
|
|
's,/etc/iscsi,${SYSCONFDIR}/iscsi,g' targets.5 iscsi-target.8
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netbsd-iscsi-target \
|
|
${PREFIX}/share/examples/netbsd-iscsi-target
|
|
cd ${WRKSRC}/doc; \
|
|
${INSTALL_DATA} * ${PREFIX}/share/doc/netbsd-iscsi-target; \
|
|
cd ../src; \
|
|
${INSTALL_DATA} etc/auths etc/targets examples/* \
|
|
${PREFIX}/share/examples/netbsd-iscsi-target
|
|
|
|
.include <bsd.port.mk>
|