mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
ea1b2d6ffc
This is a partial implementation of iSNS, the Internet Storage Name Service, according to RFC4171. iSNS facilitates scalable configuration and management of iSCSI and Fibre Channel (FCP) storage devices in an IP network by providing a set of services comparable to that available in Fibre Channel networks. WWW: https://github.com/open-iscsi/open-isns/ PR: 218686 Submitted by: Pavel Volkov <pavelivolkov@gmail.com>
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= open-isns
|
|
PORTVERSION= 0.97
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= pavelivolkov@gmail.com
|
|
COMMENT= Internet Storage Name Service (iSNS)
|
|
|
|
LICENSE= LGPL21
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= open-iscsi
|
|
GH_TAGNAME= 94e3bc9
|
|
|
|
USES= autoreconf gmake pathfix
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --enable-shared
|
|
INSTALL_TARGET= install install_lib
|
|
USE_RC_SUBR= isnsd
|
|
DATABASE_PLACE?= /var/db/isns
|
|
|
|
OPTIONS_SUB= yes
|
|
OPTIONS_DEFINE= DEV SECURITY SLP
|
|
OPTIONS_DEFAULT= SECURITY
|
|
|
|
DEV_DESC= Install Headers & Static lib
|
|
DEV_CONFIGURE_ENABLE= static
|
|
DEV_VARS= INSTALL_TARGET+=install_hdrs
|
|
|
|
SECURITY_DESC= Enable iSNS authentication
|
|
SECURITY_CONFIGURE_WITH= security
|
|
SECURITY_USES= ssl
|
|
|
|
SLP_DESC= Enable SLP for server discovery
|
|
SLP_CONFIGURE_WITH= slp
|
|
SLP_LIB_DEPENDS= libslp.so:net/openslp
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -E \
|
|
-e "s|^([[:blank:]]*#define ISNS_ETCDIR[[:blank:]]+\")(.*)$$|\1${PREFIX}\2|" \
|
|
-e "s|^([[:blank:]]*#define ISCSI_DEFAULT_INITIATORNAME[[:blank:]]+\")(.*)$$|\1${PREFIX}\2|" \
|
|
${WRKSRC}/include/libisns/paths.h.in
|
|
${REINPLACE_CMD} -E \
|
|
-e "1,10s|^(vardir[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${DATABASE_PLACE}|" \
|
|
${WRKSRC}/Makefile.in
|
|
.for FILE in isnsadm.conf isnsd.conf isnsdd.conf
|
|
${REINPLACE_CMD} -E \
|
|
-e "s|^(.*AuthKeyFile[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${PREFIX}\2|" \
|
|
-e "s|^(.*ServerKeyFile[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${PREFIX}\2|" \
|
|
-e "s|^(.*Database[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${DATABASE_PLACE}|" \
|
|
${WRKSRC}/etc/${FILE}
|
|
.endfor
|
|
|
|
post-patch-SLP-off:
|
|
${REINPLACE_CMD} -E \
|
|
-e "s|^(.*SLPRegister[[:blank:]]*=[[:blank:]]*)(.*)$$|\10|" \
|
|
${WRKSRC}/etc/isnsd.conf
|
|
|
|
post-install:
|
|
.for FILE in sbin/isnsadm sbin/isnsd sbin/isnsdd lib/libisns.so.0
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${FILE}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|