1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name istgt |
---|
4 | version 20150713 |
---|
5 | categories net |
---|
6 | license BSD2CLAUSE |
---|
7 | maintainers nomaintainer |
---|
8 | platforms darwin freebsd |
---|
9 | description iSCSI target for openSUSE/Debian/NetBSD/FreeBSD |
---|
10 | long_description This software (istgt) is the implementation of iSCSI target \ |
---|
11 | (refer to RFC3720 about iSCSI) for FreeBSD. \ |
---|
12 | It includes iSCSI protocol processor and SPC-3 (SCSI Primary Commands - 3) \ |
---|
13 | based logical unit emulation. You can easily create over 2TB storage for \ |
---|
14 | iSCSI target. If necessary, you can configure to use multipath failover or \ |
---|
15 | MCS failover. |
---|
16 | |
---|
17 | homepage http://shell.peach.ne.jp/aoyama/ |
---|
18 | master_sites http://www.peach.ne.jp/archives/istgt/ |
---|
19 | checksums sha256 7316acade0ad5d28d8835e4558567c7fdb2905f0b72925cac143b4172ac2de43 |
---|
20 | |
---|
21 | depends_lib path:lib/libssl.dylib:openssl |
---|
22 | |
---|
23 | set docdir ${prefix}/share/doc/${name} |
---|
24 | set sysconfdir ${prefix}/etc |
---|
25 | set confdir ${sysconfdir}/${name} |
---|
26 | set conffiles {etter.conf etter.dns etter.mdns etter.nbns} |
---|
27 | |
---|
28 | configure.args --with-mediadir=${prefix}/var/istgt/ \ |
---|
29 | --enable-symlink-device \ |
---|
30 | --bindir=${prefix}/sbin/ \ |
---|
31 | --datadir=${prefix}/doc/${name} \ |
---|
32 | --mandir=${prefix}/share/man |
---|
33 | |
---|
34 | startupitem.create yes |
---|
35 | startupitem.executable ${prefix}/sbin/istgt -f ${prefix}/etc/istgt/istgt.conf \ |
---|
36 | -p ${prefix}/var/run/istgt.pid |
---|
37 | startupitem.pidfile auto ${prefix}/var/run/istgt.pid |
---|
38 | |
---|
39 | post-patch { |
---|
40 | reinplace "s|/var/run|${prefix}/var/run|g" ${worksrcpath}/doc/istgt.1.in |
---|
41 | reinplace "s|\/doc\/istgt||g" ${worksrcpath}/doc/Makefile.in |
---|
42 | } |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | # foreach f ${conffiles} { |
---|
46 | # move ${destroot}${confdir}/${f} ${destroot}${confdir}/${f}.default |
---|
47 | # } |
---|
48 | } |
---|