2020-04-27 06:43:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2020/04/27 04:43:47 rillig Exp $
|
2010-02-02 17:09:51 +01:00
|
|
|
#
|
|
|
|
|
2018-10-08 14:04:33 +02:00
|
|
|
DISTNAME= istgt-20150713
|
2020-01-18 22:48:19 +01:00
|
|
|
PKGREVISION= 1
|
2010-02-02 17:09:51 +01:00
|
|
|
CATEGORIES= net
|
2010-02-07 12:40:22 +01:00
|
|
|
MASTER_SITES= http://www.peach.ne.jp/archives/istgt/
|
2010-02-02 17:09:51 +01:00
|
|
|
|
2010-02-07 12:40:22 +01:00
|
|
|
MAINTAINER= sborrill@NetBSD.org
|
2016-10-02 16:03:09 +02:00
|
|
|
HOMEPAGE= https://github.com/elastocloud/istgt
|
2010-02-02 17:09:51 +01:00
|
|
|
COMMENT= Configurable iSCSI target
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= istgt
|
|
|
|
|
2011-09-17 09:01:47 +02:00
|
|
|
CONFIGURE_ARGS+= --with-configdir=${PKG_SYSCONFDIR}
|
2010-02-02 17:09:51 +01:00
|
|
|
|
|
|
|
EG_DIR= ${PREFIX}/share/examples/istgt
|
|
|
|
CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \
|
|
|
|
${EG_DIR}/istgt.conf ${PKG_SYSCONFDIR}/istgt.conf \
|
|
|
|
${EG_DIR}/istgtcontrol.conf ${PKG_SYSCONFDIR}/istgtcontrol.conf
|
|
|
|
|
2019-11-03 12:45:28 +01:00
|
|
|
RCD_SCRIPTS= istgt
|
2010-02-02 17:09:51 +01:00
|
|
|
INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1
|
|
|
|
|
2017-06-28 11:36:20 +02:00
|
|
|
CPPFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
|
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl -fstack-protector
|
|
|
|
|
2010-02-02 17:09:51 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \
|
|
|
|
${DESTDIR}${PREFIX}/bin/istgtcontrol
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/auth.conf ${DESTDIR}${EG_DIR}/auth.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/istgt.conf ${DESTDIR}${EG_DIR}/istgt.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/istgt.large.conf \
|
|
|
|
${DESTDIR}${EG_DIR}/istgt.large.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/istgtcontrol.conf \
|
|
|
|
${DESTDIR}${EG_DIR}/istgtcontrol.conf
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/istgt.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/istgt.1
|
|
|
|
|
2015-01-18 16:52:05 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2010-02-02 17:09:51 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|