portgen.1 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .\" $OpenBSD: portgen.1,v 1.1 2016/01/18 19:01:02 tsg Exp $
  2. .\"
  3. .\" Copyright (c) 2015 Giannis Tsaraias <tsg@openbsd.org>
  4. .\" Copyright (c) 2015 Vadim Zhukov <zhuk@openbsd.org>
  5. .\"
  6. .\" Permission to use, copy, modify, and distribute this software for any
  7. .\" purpose with or without fee is hereby granted, provided that the above
  8. .\" copyright notice and this permission notice appear in all copies.
  9. .\"
  10. .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. .\"
  18. .Dd $Mdocdate: January 18 2016 $
  19. .Dt PORTGEN 1
  20. .Os
  21. .Sh NAME
  22. .Nm portgen
  23. .Nd port modules on the fly
  24. .Sh SYNOPSIS
  25. .Nm portgen
  26. .Ar type
  27. .Ar module-name
  28. .Sh DESCRIPTION
  29. The
  30. .Nm
  31. utility creates ports for the given
  32. .Ar module-name
  33. from
  34. .Ar type
  35. module framework.
  36. The module is downloaded, analyzed and translated into a port.
  37. Any missing dependencies are handled recursively.
  38. New ports will land under ${PORTSDIR}/mystuff.
  39. The
  40. .Ev PORTSDIR
  41. value will be taken from current user environment, and defaults to
  42. .Pa /usr/ports .
  43. .Pp
  44. The
  45. .Nm
  46. utility currently supports the following
  47. .Ar type
  48. values:
  49. .Pp
  50. .Bl -inset -offset indent -compact
  51. .It Cm p5
  52. for Perl modules on CPAN.
  53. .It Cm ruby
  54. for Ruby gems.
  55. .El
  56. .Pp
  57. The following packages must be installed prior to the invocation of
  58. .Nm :
  59. .Pp
  60. .Bl -item -offset indent -compact
  61. .It
  62. .Cm sqlports-compact
  63. or
  64. .Cm sqlports
  65. .It
  66. .Cm p5-DBI
  67. .It
  68. .Cm p5-DBD-SQLite
  69. .El
  70. .Sh EXIT STATUS
  71. .Ex -std
  72. .Sh EXAMPLES
  73. The following command will download the latest version of Config::AutoConf
  74. from CPAN, parse it and create a port for it:
  75. .Bd -ragged -offset indent
  76. .Nm
  77. p5 Config::AutoConf
  78. .Ed
  79. .Sh SEE ALSO
  80. .Xr port-modules 5 ,
  81. .Xr ports 7
  82. .Sh HISTORY
  83. The
  84. .Nm
  85. utility first appeared in
  86. .Ox 5.9
  87. as a result of Google Summer of Code 2015.
  88. .Sh AUTHORS
  89. .An Giannis Tsaraias Aq Mt tsg@openbsd.org
  90. .Sh CAVEATS
  91. Not every module could be converted to a port.