Ticket #54533: Portfile

File Portfile, 1.6 KB (added by umka-sev, 7 years ago)
Line 
1PortSystem 1.0
2
3name            istgt
4version         20150713
5categories      net
6license         BSD2CLAUSE
7maintainers     nomaintainer
8platforms       darwin freebsd
9description     iSCSI target for openSUSE/Debian/NetBSD/FreeBSD
10long_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
17homepage        http://shell.peach.ne.jp/aoyama/
18master_sites    http://www.peach.ne.jp/archives/istgt/
19checksums       sha256 7316acade0ad5d28d8835e4558567c7fdb2905f0b72925cac143b4172ac2de43
20
21depends_lib     path:lib/libssl.dylib:openssl
22
23set docdir          ${prefix}/share/doc/${name}
24set sysconfdir      ${prefix}/etc
25set confdir         ${sysconfdir}/${name}
26set conffiles       {etter.conf etter.dns etter.mdns etter.nbns}
27
28configure.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
34startupitem.create     yes
35startupitem.executable ${prefix}/sbin/istgt -f ${prefix}/etc/istgt/istgt.conf \
36                        -p ${prefix}/var/run/istgt.pid
37startupitem.pidfile     auto ${prefix}/var/run/istgt.pid
38
39post-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
44post-destroot {
45#    foreach f ${conffiles} {
46#        move ${destroot}${confdir}/${f} ${destroot}${confdir}/${f}.default
47#    }
48}