---
name: iscsi-target
version: 20080207_2
origin: net/iscsi-target
comment: Implementation of userland ISCSI target (from NetBSD)
arch: freebsd:9:x86:64
www: http://www.netbsd.org/
maintainer: mark@foster.cc
prefix: /usr/local
licenselogic: single
flatsize: 155765
desc: |
  This is an implementation of iSCSI target, the server-side of ISCSI protocol,
  used to service remote iSCSI requests.

  WWW: http://www.netbsd.org/
categories: [net]
files:
  /usr/local/bin/iscsi-target: 35291ade96b376fdc64404384c69135f85a7f786bb3b61a1f07220a6367a19a8
  /usr/local/etc/iscsi/auths.sample: c0cd8b67612713d3e15a88fe5fbd067c42ebe2ac6047328d37c12add6607ca12
  /usr/local/etc/iscsi/passwd.sample: 3a4650cf9809868cce74995fbd54e2733b92f4c959cede5811bf0cd27dd60c0a
  /usr/local/etc/iscsi/targets.sample: 86c609206e5fdd0b0fa972b7d5776afac8366a160214259337c87249b76135f0
  /usr/local/etc/rc.d/iscsi_target: 0e432ed4ee71e70489b41d01d928faf7fe6f5d1bd837015dbeecd3672913bf1f
  /usr/local/man/man5/targets.5.gz: d233e9807321d98846aa85d35aecc03faea4c71e21f0fdb1906d3037afbb0fed
  /usr/local/man/man8/iscsi-target.8.gz: 02d7cadbf2b68c9a44e12e6ad4fd5aed12a7ef6b2a69ad70238d74465edfe7bf
  /usr/local/share/doc/iscsi/FAQ: ce8d6edd012955829378fff7da006a723b7de86a565a22e20d4e56dc3f9e490a
  /usr/local/share/doc/iscsi/PERFORMANCE: ae5cb90f897e4b9707da03a3d266281a54e686c6285ff61bec68f441876cd634
  /usr/local/share/doc/iscsi/README: 9697bbaa8d6a75d84f58c18e57a3cb6801db34eea8b609b3047c27ca6f07d30e
  /usr/local/share/doc/iscsi/README_OSD: 1966f1d11ee2255f0ffea952182e6e7839046cc645cffc93749834f2c43e3f8e
  /usr/local/share/doc/iscsi/license: 934a7d4b81db911300295e4e8fd7918326eecffa7a5f316ecbbfc49d58abd4b0
directories:
  /usr/local/share/doc/iscsi/: n
  /usr/local/etc/iscsi/: n
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/iscsi/targets ] ; then cp -p /usr/local/etc/iscsi/targets.sample /usr/local/etc/iscsi/targets; fi
    if [ ! -f /usr/local/etc/iscsi/auths   ] ; then cp -p /usr/local/etc/iscsi/auths.sample /usr/local/etc/iscsi/auths;   fi
    if [ ! -f /usr/local/etc/iscsi/passwd  ] ; then cp -p /usr/local/etc/iscsi/passwd.sample /usr/local/etc/iscsi/passwd;  fi
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/iscsi/targets.sample /usr/local/etc/iscsi/targets; then rm -f /usr/local/etc/iscsi/targets; fi
    if cmp -s /usr/local/etc/iscsi/auths.sample   /usr/local/etc/iscsi/auths;   then rm -f /usr/local/etc/iscsi/auths;   fi
    if cmp -s /usr/local/etc/iscsi/passwd.sample  /usr/local/etc/iscsi/passwd;  then rm -f /usr/local/etc/iscsi/passwd;  fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |+
  To run iscsi-target server from startup, add iscsi_target_enable="YES"
  to /etc/rc.conf. Extra options can be found in startup script.

