File:  [NetBSD Developer Wiki] / wikisrc / templates / port.mdwn
Revision 1.13: download - view: text, annotated - select for diffs
Sun Mar 13 16:19:12 2016 UTC (5 years, 7 months ago) by leot
Branches: MAIN
CVS tags: HEAD
Extend port.mdwn template in order to accomodate more port_var<n> and
address PR 50956 reported by sevan@.

 o Add port_var[3-7] to accomadate more variants.
 o Avoid hard-coded logic that previously needed that exactly two port_var(s)
   was needed. Now also from 0 to 7 port_var-s can be defined independently.
 o Fix the title for ``[...] pkgsrc binary packages'' in ``[...] pre-built
   binary packages from pkgsrc'' anchors.

    1: <TMPL_IF NAME="port">
    2: [[!meta title="NetBSD/<TMPL_VAR port>"]]
    3: 
    4: # <TMPL_IF thumbnail><img src=<TMPL_VAR thumbnail> alt="<TMPL_VAR port> thumbnail image"/></TMPL_IF>
    5: 
    6: ## About NetBSD/<TMPL_VAR port>
    7: <TMPL_VAR about>
    8: 
    9: ## Release Info
   10: <TMPL_IF cur_rel><TMPL_IF port_var1>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var1>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> FTP")
   11: <TMPL_IF port_var2>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var2>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> FTP")</TMPL_IF>
   12: <TMPL_IF port_var3>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var3>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> FTP")</TMPL_IF>
   13: <TMPL_IF port_var4>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var4>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> FTP")</TMPL_IF>
   14: <TMPL_IF port_var5>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var5>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> FTP")</TMPL_IF>
   15: <TMPL_IF port_var6>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var6>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> FTP")</TMPL_IF>
   16: <TMPL_IF port_var7>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var7>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> FTP")</TMPL_IF>
   17: <TMPL_ELSE>* [NetBSD/<TMPL_VAR port> <TMPL_VAR cur_rel> via FTP](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>/ "NetBSD/<TMPL_VAR port> FTP")
   18: * [NetBSD/<TMPL_VAR port> <TMPL_VAR cur_rel> INSTALL notes](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>/INSTALL.html "NetBSD/<TMPL_VAR port> INSTALL notes")</TMPL_IF></TMPL_IF>
   19: <TMPL_IF pkg_rel><TMPL_IF port_var1>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var1>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> pkgsrc binary packages")
   20: <TMPL_IF port_var2>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var2>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> pkgsrc binary packages")</TMPL_IF>
   21: <TMPL_IF port_var3>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var3>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> pkgsrc binary packages")</TMPL_IF>
   22: <TMPL_IF port_var4>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var4>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> pkgsrc binary packages")</TMPL_IF>
   23: <TMPL_IF port_var5>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var5>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> pkgsrc binary packages")</TMPL_IF>
   24: <TMPL_IF port_var6>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var6>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> pkgsrc binary packages")</TMPL_IF>
   25: <TMPL_IF port_var7>* [NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var7>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> pkgsrc binary packages")</TMPL_IF>
   26: <TMPL_ELSE>* [NetBSD/<TMPL_VAR port> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc](http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port>/<TMPL_VAR pkg_rel>/ "NetBSD/<TMPL_VAR port> pkgsrc binary packages")</TMPL_IF></TMPL_IF>
   27: <TMPL_IF changes_cur>* [NetBSD/<TMPL_VAR port> <TMPL_VAR changes_cur> changes](http://www.NetBSD.org/changes/changes-<TMPL_VAR changes_cur>.html#port-<TMPL_VAR port> "NetBSD/<TMPL_VAR port> <TMPL_VAR changes_cur> changes")</TMPL_IF>
   28: * [NetBSD/<TMPL_VAR port> <TMPL_VAR changes_future> changes](http://www.NetBSD.org/changes/changes-<TMPL_VAR changes_future>.html#port-<TMPL_VAR port> "NetBSD/<TMPL_VAR port> <TMPL_VAR changes_future> changes")
   29: 
   30: ## Mailing List
   31: <TMPL_IF port_alt>
   32: The [NetBSD/<TMPL_VAR port_alt> mailing list](http://www.netbsd.org/mailinglists/#port-<TMPL_VAR port_alt> "<TMPL_VAR port_alt>mailing list"), covering NetBSD's port to <TMPL_VAR port_alt> machine:
   33: [
   34: <a href="http://www.NetBSD.org/cgi-bin/subscribe_list.pl?list=port-<TMPL_VAR port_alt>">subscribe</a>
   35: |
   36: <a href="http://mail-index.NetBSD.org/port-<TMPL_VAR port_alt>/">archive</a>
   37: ]
   38: 
   39: <TMPL_ELSE>
   40: The [NetBSD/<TMPL_VAR port> mailing list](http://www.netbsd.org/mailinglists/#port-<TMPL_VAR port> "<TMPL_VAR port>mailing list"), covering NetBSD's port to <TMPL_VAR port> machine:
   41: [
   42: <a href="http://www.NetBSD.org/cgi-bin/subscribe_list.pl?list=port-<TMPL_VAR port>">subscribe</a>
   43: |
   44: <a href="http://mail-index.NetBSD.org/port-<TMPL_VAR port>/">archive</a>
   45: ]
   46: 
   47: </TMPL_IF>
   48: <a href="mailto:port-<TMPL_VAR port>-maintainer@NetBSD.org">Mail the NetBSD/<TMPL_VAR port> port maintainer</a>
   49: 
   50: <TMPL_IF supported_hardware>
   51: ## Supported Hardware
   52: <TMPL_VAR NAME="supported_hardware">
   53: </TMPL_IF>
   54: 
   55: <TMPL_IF unsupported_hardware>
   56: ## Unsupported Hardware
   57: <TMPL_VAR unsupported_hardware>
   58: </TMPL_IF>
   59: 
   60: <TMPL_IF additional>
   61: ## Additional Info
   62: <TMPL_VAR additional>
   63: </TMPL_IF>
   64: 
   65: <TMPL_ELSE>
   66: # Ports page template
   67: 
   68: The *port* template is used to make the ports pages very easy
   69: 
   70: It supports the following parameters:
   71: 
   72: - port (required)
   73: - about (required)
   74: - cur_rel (optional)
   75: - future_rel (required)
   76: - pkg_rel (optional)
   77: - changes_cur (optional)
   78: - changes_future (required)
   79: - thumbnail (optional)
   80: - supported_hardware (optional)
   81: - unsupported_hardware (optional)
   82: - additional (optional)
   83: 
   84: </TMPL_IF>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb