# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 set name_piece target set name_package netbsd-iscsi name ${name_package}-${name_piece} version 20110222 categories net maintainers pixilla platforms darwin description ${name} long_description ${description} homepage http://www.netbsd.org master_sites ftp://ftp.netbsd.org/pub/pkgsrc/distfiles distname ${name_package}-${version} dist_subdir ${name_package} build.dir ${worksrcpath}/src/${name_piece} checksums sha1 223ee3f30e9b1d7b669796c5b9eb1fcb92907cc2 \ rmd160 3409e8b64db66ebeeff5ff48bd5ba5e7a192c646 depends_lib port:netbsd-iscsi-lib patchfiles patch-include-iscsi.h.diff \ patch-src-target-Makefile.in.diff post-destroot { xinstall -d ${destroot}${prefix}/etc/iscsi set fp [open ${destroot}${prefix}/etc/iscsi/targets.example w] puts $fp { # extent file or device start length extent0 /tmp/iscsi-target0 0 100MB # target flags storage netmask target0 rw extent0 0/0 } close $fp } livecheck.url ${master_sites} livecheck.type regex livecheck.regex "${name_package}-(\\d+\\.\\d+(\[0-9rc.\]+)?)${extract.suffix}"