FreeBSD Bugzilla – Attachment 181820 Details for
Bug 218686
[new port] net/open-isns: Internet Storage Name Service (iSNS)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for create new port
open-isns.diff (text/plain), 6.19 KB, created by
Pavel Volkov
on 2017-04-16 10:43:28 UTC
(
hide
)
Description:
patch for create new port
Filename:
MIME Type:
Creator:
Pavel Volkov
Created:
2017-04-16 10:43:28 UTC
Size:
6.19 KB
patch
obsolete
>diff -uNrd net/open-isns.orig/Makefile net/open-isns/Makefile >--- net/open-isns.orig/Makefile 1970-01-01 00:00:00.000000000 +0000 >+++ net/open-isns/Makefile 2017-04-16 09:46:14.382635000 +0000 >@@ -0,0 +1,69 @@ >+# $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> >diff -uNrd net/open-isns.orig/distinfo net/open-isns/distinfo >--- net/open-isns.orig/distinfo 1970-01-01 00:00:00.000000000 +0000 >+++ net/open-isns/distinfo 2017-04-16 09:40:31.678110000 +0000 >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1491477988 >+SHA256 (open-iscsi-open-isns-v0.97-94e3bc9_GH0.tar.gz) = dbbcfc27648a3f696425b6ba94a6a444c428ce1f9056471edef7bc4b7a3b231c >+SIZE (open-iscsi-open-isns-v0.97-94e3bc9_GH0.tar.gz) = 278367 >diff -uNrd net/open-isns.orig/files/isnsd.in net/open-isns/files/isnsd.in >--- net/open-isns.orig/files/isnsd.in 1970-01-01 00:00:00.000000000 +0000 >+++ net/open-isns/files/isnsd.in 2017-04-16 09:40:37.697008000 +0000 >@@ -0,0 +1,32 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# >+# PROVIDE: isnsd >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# isnsd_enable (bool): Set to NO by default. >+# Set it to YES to enable daemon. >+# isnsd_config (path): Set to %%PREFIX%%/etc/isns/${name}.conf >+# by default. >+# isnsd_flags (str): Set to "" by default. >+# Extra flags passed to start command. >+ >+. /etc/rc.subr >+ >+name="isnsd" >+desc="Internet Storage Name Service daemon" >+rcvar=`set_rcvar` >+ >+load_rc_config "$name" >+ >+eval "${rcvar}=\${${rcvar}:-'NO'}" >+: ${isnsd_config="%%PREFIX%%/etc/isns/isnsd.conf"} >+: ${isnsd_flags=""} >+ >+pidfile="/var/run/${name}.pid" >+command="%%PREFIX%%/sbin/${name}" >+command_args="--config \"${isnsd_config}\" ${isnsd_flags}" >+ >+run_rc_command "$1" >diff -uNrd net/open-isns.orig/files/patch-Makefile.in net/open-isns/files/patch-Makefile.in >--- net/open-isns.orig/files/patch-Makefile.in 1970-01-01 00:00:00.000000000 +0000 >+++ net/open-isns/files/patch-Makefile.in 2017-04-16 09:40:37.697011000 +0000 >@@ -0,0 +1,34 @@ >+--- Makefile.in.orig 2017-04-08 09:26:35 UTC >++++ Makefile.in >+@@ -3,7 +3,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@ >+@@ -107,18 +107,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 etc/isnsd.conf $(CFGDIR) >+- $(INSTALL) -m 644 etc/isnsdd.conf $(CFGDIR) >+- $(INSTALL) -m 644 etc/isnsadm.conf $(CFGDIR) >++ $(INSTALL) -m 644 etc/isnsd.conf $(CFGDIR)/isnsd.conf.sample >++ $(INSTALL) -m 644 etc/isnsdd.conf $(CFGDIR)/isnsdd.conf.sample >++ $(INSTALL) -m 644 etc/isnsadm.conf $(CFGDIR)/isnsadm.conf.sample >+ $(INSTALL) -m 644 doc/isnsd.8 $(MANDIR)/man8 >+ $(INSTALL) -m 644 doc/isnsdd.8 $(MANDIR)/man8 >+ $(INSTALL) -m 644 doc/isnsadm.8 $(MANDIR)/man8 >+ $(INSTALL) -m 644 doc/isns_config.5 $(MANDIR)/man5 >+- $(INSTALL) -m 644 isnsd.service $(SYSTEMDDIR) >+- $(INSTALL) -m 644 isnsd.socket $(SYSTEMDDIR) >+ >+ install_hdrs: >+ @echo '*** Installing Open-iSNS header files ***' >diff -uNrd net/open-isns.orig/pkg-descr net/open-isns/pkg-descr >--- net/open-isns.orig/pkg-descr 1970-01-01 00:00:00.000000000 +0000 >+++ net/open-isns/pkg-descr 2017-04-16 09:40:31.678120000 +0000 >@@ -0,0 +1,4 @@ >+This is a partial implementation of iSNS, >+according to RFC4171. >+ >+WWW: https://github.com/open-iscsi/open-isns/ >diff -uNrd net/open-isns.orig/pkg-plist net/open-isns/pkg-plist >--- net/open-isns.orig/pkg-plist 1970-01-01 00:00:00.000000000 +0000 >+++ net/open-isns/pkg-plist 2017-04-16 09:40:31.678123000 +0000 >@@ -0,0 +1,24 @@ >+@sample etc/isns/isnsadm.conf.sample >+@sample etc/isns/isnsd.conf.sample >+@sample etc/isns/isnsdd.conf.sample >+etc/rc.d/isnsd >+%%DEV%%include/libisns/attrs.h >+%%DEV%%include/libisns/buffer.h >+%%DEV%%include/libisns/isns-proto.h >+%%DEV%%include/libisns/isns.h >+%%DEV%%include/libisns/message.h >+%%DEV%%include/libisns/paths.h >+%%DEV%%include/libisns/source.h >+%%DEV%%include/libisns/types.h >+%%DEV%%include/libisns/util.h >+%%DEV%%lib/libisns.a >+lib/libisns.so >+lib/libisns.so.0 >+man/man5/isns_config.5.gz >+man/man8/isnsadm.8.gz >+man/man8/isnsd.8.gz >+man/man8/isnsdd.8.gz >+sbin/isnsadm >+sbin/isnsd >+sbin/isnsdd >+@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
Actions:
View
|
Diff
Attachments on
bug 218686
: 181820 |
181821
|
181822