Bug 104087 - New port: net/iscsi-target
Summary: New port: net/iscsi-target
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-07 07:20 UTC by mark
Modified: 2006-10-07 16:30 UTC (History)
0 users

See Also:


Attachments
iscsi-target.shar (4.48 KB, text/plain)
2006-10-07 07:20 UTC, mark
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mark 2006-10-07 07:20:18 UTC

    
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2006-10-07 11:58:52 UTC
State Changed
From-To: open->feedback

The shar file arrived corrupted (line wraps). Can you resend, making sure the 
shar comes in intact? 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2006-10-07 11:58:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track
Comment 3 mark 2006-10-07 15:58:07 UTC
>Submitter-Id:	current-users
>Originator:	Mark Foster
>Organization:	
>Confidential:	no
>Synopsis:	Re: ports/104087: New port: net/iscsi-target
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 5.5-RELEASE-p6 i386
>Environment:
System: FreeBSD franco.foster.dmz 5.5-RELEASE-p6 FreeBSD 5.5-RELEASE-p6 #12: Fri Sep 29 03:58:44 PDT 2006 root@franco.foster.dmz:/usr/obj/usr/src/sys/FRANCO1 i386


	
>Description:
	Re-sending shar as it was munged on attempt #1
>How-To-Repeat:
	
>Fix:

	

--- iscsi-target.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	iscsi-target
#	iscsi-target/files
#	iscsi-target/files/iscsi_target.in
#	iscsi-target/Makefile
#	iscsi-target/distinfo
#	iscsi-target/pkg-descr
#	iscsi-target/pkg-plist
#
echo c - iscsi-target
mkdir -p iscsi-target > /dev/null 2>&1
echo c - iscsi-target/files
mkdir -p iscsi-target/files > /dev/null 2>&1
echo x - iscsi-target/files/iscsi_target.in
sed 's/^X//' >iscsi-target/files/iscsi_target.in << 'END-of-iscsi-target/files/iscsi_target.in'
X#!/bin/sh
X
X# PROVIDE: iscsi_target
X# REQUIRE: NETWORKING mountall quota
X
X. %%RC_SUBR%%
X
Xname="iscsi_target"
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/bin/iscsi-target"
Xrequired_files="%%PREFIX%%/etc/iscsi/targets"
Xpidfile="/var/run/iscsi-target.pid"
X
Xload_rc_config $name
X
X: ${iscsi_target_enable="NO"}
X: ${iscsi_target_config="%%PREFIX%%/etc/iscsi/targets"}
X
Xcommand_args="-f $iscsi_target_config"
X
Xrun_rc_command "$1"
END-of-iscsi-target/files/iscsi_target.in
echo x - iscsi-target/Makefile
sed 's/^X//' >iscsi-target/Makefile << 'END-of-iscsi-target/Makefile'
X# New ports collection makefile for:    iscsi-target
X# Date created:         2006-04-18
X# Whom:                 Frederic Senault <fred@lacave.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	iscsi-target
X#PORTVERSION=	20060417
XPORTVERSION=	20060527
XCATEGORIES=	net
XMASTER_SITES=	http://www.alistaircrooks.co.uk/src/
XDISTNAME=	netbsd-iscsi-${PORTVERSION}
X
XMAINTAINER=	mark@foster.cc
XCOMMENT=	Implementation of userland ISCSI target (derived from NetBSD)
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/src
X
XGNU_CONFIGURE=	yes
XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XMAN5=		targets.5
XMAN8=		iscsi-target.8
X
XUSE_RC_SUBR=	iscsi_target
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile.in
X	@${REINPLACE_CMD} -e 's|_LDFLAGS= -pthread|_LDFLAGS= ${PTHREAD_CFLAGS}|' ${WRKSRC}/Makefile.in
X	@${REINPLACE_CMD} -e 's|_FLAGS= -pthread|_FLAGS= ${PTHREAD_CFLAGS}|' ${WRKSRC}/Makefile.in
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/../bin/iscsi-target ${PREFIX}/bin
X	${MKDIR} ${PREFIX}/etc/iscsi
X.for i in targets passwd auths
X	${INSTALL_DATA} ${WRKSRC}/etc/$i ${PREFIX}/etc/iscsi/$i.sample
X.endfor
X	${INSTALL_MAN} ${WRKSRC}/targets.5 ${PREFIX}/man/man5
X	${INSTALL_MAN} ${WRKSRC}/iscsi-target.8 ${PREFIX}/man/man8
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for i in FAQ README README_OSD PERFORMANCE license
X	${INSTALL_MAN} ${WRKSRC}/../doc/$i ${DOCSDIR}
X.endfor
X.endif
X.for i in targets passwd auths
X	if [ ! -f ${PREFIX}/etc/iscsi/$i ]; then \
X		${CP} -p ${PREFIX}/etc/iscsi/$i.sample ${PREFIX}/etc/iscsi/$i ; \
X	fi
X.endfor
X
X.include <bsd.port.mk>
END-of-iscsi-target/Makefile
echo x - iscsi-target/distinfo
sed 's/^X//' >iscsi-target/distinfo << 'END-of-iscsi-target/distinfo'
XMD5 (netbsd-iscsi-20060527.tar.gz) = 6e425fe237ac956a7b742eb531121eac
XSHA256 (netbsd-iscsi-20060527.tar.gz) = 44c06e860c3e408aaa992938f384707192b66eaa6468b6d3f5434c8c19d088b9
XSIZE (netbsd-iscsi-20060527.tar.gz) = 237784
END-of-iscsi-target/distinfo
echo x - iscsi-target/pkg-descr
sed 's/^X//' >iscsi-target/pkg-descr << 'END-of-iscsi-target/pkg-descr'
XThis is an implementation of iSCSI target, the server-side of ISCSI protocol,
Xused to service remote iSCSI requests.
X
XWWW: http://www.netbsd.org/
END-of-iscsi-target/pkg-descr
echo x - iscsi-target/pkg-plist
sed 's/^X//' >iscsi-target/pkg-plist << 'END-of-iscsi-target/pkg-plist'
Xbin/iscsi-target
X%%PORTDOCS%%%%DOCSDIR%%/FAQ
X%%PORTDOCS%%%%DOCSDIR%%/PERFORMANCE
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/README_OSD
X%%PORTDOCS%%%%DOCSDIR%%/license
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@unexec if cmp -s %D/etc/iscsi/targets.sample %D/etc/iscsi/targets; then rm -f %D/etc/iscsi/targets; fi
Xetc/iscsi/targets.sample
X@exec if [ ! -f %D/etc/iscsi/targets ] ; then cp -p %D/%F %B/targets; fi
X@unexec if cmp -s %D/etc/iscsi/auths.sample   %D/etc/iscsi/auths;   then rm -f %D/etc/iscsi/auths;   fi
Xetc/iscsi/auths.sample
X@exec if [ ! -f %D/etc/iscsi/auths   ] ; then cp -p %D/%F %B/auths;   fi
X@unexec if cmp -s %D/etc/iscsi/passwd.sample  %D/etc/iscsi/passwd;  then rm -f %D/etc/iscsi/passwd;  fi
Xetc/iscsi/passwd.sample
X@exec if [ ! -f %D/etc/iscsi/passwd  ] ; then cp -p %D/%F %B/passwd;  fi
X@dirrm etc/iscsi
END-of-iscsi-target/pkg-plist
exit
--- iscsi-target.shar ends here ---
Comment 4 dfilter service freebsd_committer freebsd_triage 2006-10-07 16:25:31 UTC
pav         2006-10-07 15:25:26 UTC

  FreeBSD ports repository

  Modified files:
    net                  Makefile 
  Added files:
    net/iscsi-target     Makefile distinfo pkg-descr pkg-plist 
    net/iscsi-target/files iscsi_target.in 
  Log:
  This is an implementation of iSCSI target, the server-side of ISCSI protocol,
  used to service remote iSCSI requests.
  
  WWW: http://www.netbsd.org/
  
  PR:             ports/104087
  Submitted by:   mark foster <mark@foster.cc>
  
  Revision  Changes    Path
  1.1752    +1 -0      ports/net/Makefile
  1.1       +54 -0     ports/net/iscsi-target/Makefile (new)
  1.1       +3 -0      ports/net/iscsi-target/distinfo (new)
  1.1       +22 -0     ports/net/iscsi-target/files/iscsi_target.in (new)
  1.1       +4 -0      ports/net/iscsi-target/pkg-descr (new)
  1.1       +17 -0     ports/net/iscsi-target/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2006-10-07 16:26:02 UTC
State Changed
From-To: feedback->closed

New port added, thank you!