FreeBSD Bugzilla – Attachment 222261 Details for
Bug 253343
net/open-isns: Update to 0.101
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
open-isns-20210208.diff (text/plain), 7.02 KB, created by
Pavel Volkov
on 2021-02-08 10:40:04 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Pavel Volkov
Created:
2021-02-08 10:40:04 UTC
Size:
7.02 KB
patch
obsolete
>diff -urNd net/open-isns.orig/Makefile net/open-isns/Makefile >--- net/open-isns.orig/Makefile 2021-02-06 07:32:20.266462000 +0300 >+++ net/open-isns/Makefile 2021-02-08 07:29:50.241602000 +0300 >@@ -1,8 +1,8 @@ > # $FreeBSD: head/net/open-isns/Makefile 489387 2019-01-05 21:36:39Z swills $ > > PORTNAME= open-isns >-PORTVERSION= 0.99 > DISTVERSIONPREFIX= v >+DISTVERSION= 0.101 > CATEGORIES= net > > MAINTAINER= pavelivolkov@gmail.com >@@ -10,61 +10,80 @@ > > LICENSE= LGPL21 > >-USES= autoreconf gmake pathfix >-USE_LDCONFIG= yes >+USES= autoreconf gmake pathfix python:3.6+,test shebangfix > > USE_GITHUB= yes > GH_ACCOUNT= open-iscsi >-GH_TAGNAME= cfdbcff > >+USE_LDCONFIG= yes >+USE_RC_SUBR= isnsd >+SHEBANG_FILES= isnssetup ${TEST_WRKSRC}/*.py ${TEST_WRKSRC}/*.pl > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --enable-shared > INSTALL_TARGET= install install_lib >-USE_RC_SUBR= isnsd >-DATABASE_PLACE?= /var/db/isns >+TEST_ARGS= LD_LIBRARY_PATH=${WRKSRC} >+TEST_WRKSRC= ${WRKSRC}/tests > >-OPTIONS_SUB= yes > OPTIONS_DEFINE= DEV SECURITY SLP > OPTIONS_DEFAULT= SECURITY >+OPTIONS_SUB= yes > > DEV_DESC= Install Headers & Static lib >+SECURITY_DESC= Enable iSNS authentication >+SLP_DESC= Enable SLP for server discovery >+ > DEV_CONFIGURE_ENABLE= static > DEV_VARS= INSTALL_TARGET+=install_hdrs > >-SECURITY_DESC= Enable iSNS authentication >-SECURITY_CONFIGURE_WITH= security > SECURITY_USES= ssl >+SECURITY_CONFIGURE_WITH= security >+SECURITY_TEST_TARGET= tests >+SECURITY_TEST_TARGET_OFF= tests-no-security > >-SLP_DESC= Enable SLP for server discovery >-SLP_CONFIGURE_WITH= slp > SLP_LIB_DEPENDS= libslp.so:net/openslp >+SLP_CONFIGURE_WITH= slp > SLP_CPPFLAGS= -I${PREFIX}/include > SLP_LDFLAGS= -L${PREFIX}/lib > >+_DATABASE_PLACE?= ${DESTDIR}/var/db/isns >+ > .include <bsd.port.options.mk> > > post-patch: >+ # >+ # Move paths to configurations according to the variable ${PREFIX} and ${_DATABASE_PLACE}. > ${REINPLACE_CMD} -E \ >- -e "s|^([[:blank:]]*#define ISNS_ETCDIR[[:blank:]]+\")(.*)$$|\1${PREFIX}\2|" \ >- -e "s|^([[:blank:]]*#define ISCSI_DEFAULT_INITIATORNAME[[:blank:]]+\")(.*)$$|\1${PREFIX}\2|" \ >+ -e "s|(/etc/)|${PREFIX}\1|g" \ >+ -e "s|^(.*Database[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${_DATABASE_PLACE}|" \ >+ ${WRKSRC}/etc/isnsadm.conf \ >+ ${WRKSRC}/etc/isnsd.conf \ >+ ${WRKSRC}/etc/isnsdd.conf \ >+ ${WRKSRC}/isnssetup \ > ${WRKSRC}/include/libisns/paths.h.in >+ # >+ # Move paths to configurations according to the variables ${PREFIX} and ${_DATABASE_PLACE}, remove the dependencies on the systemd. > ${REINPLACE_CMD} -E \ >- -e "1,10s|^(vardir[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${DATABASE_PLACE}|" \ >+ -e "1,12s|(/etc)|${PREFIX}\1|" \ >+ -e "1,12s|^(vardir[[:blank:]]*=[[:blank:]]*)(.*)$$|\1${_DATABASE_PLACE}|" \ >+ -e "s|^(.*)[[:blank:]]+\\$$\(SYSTEMDDIR\)$$|\1|" \ >+ -e "/isnsd\.(service|socket)/d" \ > ${WRKSRC}/Makefile.in >-.for FILE in isnsadm.conf isnsd.conf isnsdd.conf >+ # >+ # Move paths to configurations according to the variable ${PREFIX}, remove bashism. > ${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 >+ -e "1,3s|ba(sh)|\1|" \ >+ -e "1,27s|(/etc/)|${PREFIX}\1|g" \ >+ -e "s|^[[:blank:]]*function[[:blank:]]+([^[:blank:]]+)(.*)$$|\1()\2|" \ >+ ${WRKSRC}/tests/genkey > > post-patch-SLP-off: >- ${REINPLACE_CMD} -E \ >+ ${REINPLACE_CMD} -E -i.bak-SLP \ > -e "s|^(.*SLPRegister[[:blank:]]*=[[:blank:]]*)(.*)$$|\10|" \ > ${WRKSRC}/etc/isnsd.conf > > post-install: >+ ${INSTALL_SCRIPT} ${WRKSRC}/isnssetup ${STAGEDIR}${PREFIX}/sbin >+ ${FIND} ${STAGEDIR}${PREFIX}/etc/isns -type f -a -name '*.conf' -exec ${MV} '{}' '{}.sample' ';' > .for FILE in sbin/isnsadm sbin/isnsd sbin/isnsdd lib/libisns.so.0 > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${FILE} > .endfor >diff -urNd net/open-isns.orig/distinfo net/open-isns/distinfo >--- net/open-isns.orig/distinfo 2021-02-06 07:32:20.267901000 +0300 >+++ net/open-isns/distinfo 2021-02-06 07:42:03.627030000 +0300 >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1540627511 >-SHA256 (open-iscsi-open-isns-v0.99-cfdbcff_GH0.tar.gz) = cbfccc69b468cce39ad7cda4800baeca18de91aa363042cc72938f0756b7f218 >-SIZE (open-iscsi-open-isns-v0.99-cfdbcff_GH0.tar.gz) = 282862 >+TIMESTAMP = 1612586523 >+SHA256 (open-iscsi-open-isns-v0.101_GH0.tar.gz) = f672ec86b6c9e984843a7a28d76f07e26393499c486f86034b8b18caa8deb556 >+SIZE (open-iscsi-open-isns-v0.101_GH0.tar.gz) = 301912 >diff -urNd net/open-isns.orig/files/patch-Makefile.in net/open-isns/files/patch-Makefile.in >--- net/open-isns.orig/files/patch-Makefile.in 2021-02-06 07:32:20.261481000 +0300 >+++ net/open-isns/files/patch-Makefile.in 1970-01-01 03:00:00.000000000 +0300 >@@ -1,34 +0,0 @@ >---- Makefile.in.orig 2018-10-27 08:58:20 UTC >-+++ Makefile.in >-@@ -4,7 +4,7 @@ exec_prefix = @exec_prefix@ >- sbindir = @sbindir@ >- mandir = @mandir@ >- libdir = @libdir@ >--etcdir = /etc >-+etcdir = $(prefix)/etc >- vardir = /var/lib/isns >- systemddir = $(prefix)/lib/systemd/system >- datarootdir = @datarootdir@ >-@@ -109,18 +109,16 @@ all: $(LIB) $(SOLIB) isnsd isnsadm isnsd >- >- install: >- @echo "*** Installing Open-iSNS ***" >-- $(INSTALL) -m 755 -d $(CFGDIR) $(MANDIR)/man8 $(MANDIR)/man5 $(SBINDIR) $(SYSTEMDDIR) >-+ $(INSTALL) -m 755 -d $(CFGDIR) $(MANDIR)/man8 $(MANDIR)/man5 $(SBINDIR) >- $(INSTALL) -m 700 -d $(VARDIR) >- $(INSTALL) -m 555 isnsd isnsadm isnsdd $(SBINDIR) >-- $(INSTALL) -m 644 $(srcdir)/etc/isnsd.conf $(CFGDIR) >-- $(INSTALL) -m 644 $(srcdir)/etc/isnsdd.conf $(CFGDIR) >-- $(INSTALL) -m 644 $(srcdir)/etc/isnsadm.conf $(CFGDIR) >-+ $(INSTALL) -m 644 $(srcdir)/etc/isnsd.conf $(CFGDIR)/isnsd.conf.sample >-+ $(INSTALL) -m 644 $(srcdir)/etc/isnsdd.conf $(CFGDIR)/isnsdd.conf.sample >-+ $(INSTALL) -m 644 $(srcdir)/etc/isnsadm.conf $(CFGDIR)/isnsadm.conf.sample >- $(INSTALL) -m 644 $(srcdir)/doc/isnsd.8 $(MANDIR)/man8 >- $(INSTALL) -m 644 $(srcdir)/doc/isnsdd.8 $(MANDIR)/man8 >- $(INSTALL) -m 644 $(srcdir)/doc/isnsadm.8 $(MANDIR)/man8 >- $(INSTALL) -m 644 $(srcdir)/doc/isns_config.5 $(MANDIR)/man5 >-- $(INSTALL) -m 644 $(srcdir)/isnsd.service $(SYSTEMDDIR) >-- $(INSTALL) -m 644 $(srcdir)/isnsd.socket $(SYSTEMDDIR) >- >- install_hdrs: >- @echo '*** Installing Open-iSNS header files ***' >diff -urNd net/open-isns.orig/files/patch-attrs.c net/open-isns/files/patch-attrs.c >--- net/open-isns.orig/files/patch-attrs.c 2021-02-06 07:32:20.263431000 +0300 >+++ net/open-isns/files/patch-attrs.c 2021-02-08 08:27:39.040801000 +0300 >@@ -1,6 +1,6 @@ >---- attrs.c.orig 2018-10-28 09:10:34 UTC >+--- attrs.c.orig 2021-02-06 13:40:34 UTC > +++ attrs.c >-@@ -777,7 +777,7 @@ isns_attr_decode(buf_t *bp, isns_attr_t >+@@ -777,7 +777,7 @@ isns_attr_decode(buf_t *bp, isns_attr_t **result) > { > isns_attr_t *attr = NULL; > isns_value_t *value; >diff -urNd net/open-isns.orig/pkg-plist net/open-isns/pkg-plist >--- net/open-isns.orig/pkg-plist 2021-02-06 07:32:20.270162000 +0300 >+++ net/open-isns/pkg-plist 2021-02-07 18:12:44.076579000 +0300 >@@ -17,7 +17,9 @@ > man/man8/isnsadm.8.gz > man/man8/isnsd.8.gz > man/man8/isnsdd.8.gz >+man/man8/isnssetup.8.gz > sbin/isnsadm > sbin/isnsd > sbin/isnsdd >+sbin/isnssetup > @dir /var/db/isns
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pavelivolkov
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 253343
: 222261 |
222262