New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34915 (closed submission: fixed)

Opened 11 months ago

Last modified 11 months ago

Create port nsrllookup

Reported by: jessekornblum@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: nsrllookup

Description

Attached please find a Portfile for nsrllookup, part of the nsrlquery project. This program allows users to determine if files belong to the National Software Reference Library (NSRL), or any other large hash set. There is a public server at nsrl.kyr.us.

Usage: $ md5deep [FILES] | nsrllookup -s nsrl.kyr.us [Lists unknown files by default]

I agree to be the maintainer of this port.

Attachments

Portfile (640 bytes) - added by jessekornblum@… 11 months ago.

Change History

Changed 11 months ago by jessekornblum@…

comment:1 Changed 11 months ago by ryandesign@…

  • Status changed from new to assigned
  • Owner changed from macports-tickets@… to ryandesign@…
  • Port set to nsrllookup

Thanks.

comment:2 Changed 11 months ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

I've committed the port in r94457. I had to make many changes to your Portfile to get it to work right; here are some suggestions for next time:

You should test your ports before you submit them. This one contained a syntax error: the first checksum line did not end with a backslash. To test your Portfile, use the terminal to "cd" to the directory the Portfile is in and run "sudo port install" (without specifying a port name).

Fetching the distfile failed. I had to adjust the master_sites line to fix that, and also add "use_bzip2 yes" since this project distributes a .tar.bz2 file, not a .tar.gz file.

"port lint" revealed that the Portfile was missing the required "platforms" variable, so I added it with the usual value of "darwin". It also showed no license was set; I added "license ISC" according to the project's homepage and the LICENSE file the distribution contains.

I added the configure.arg "--disable-silent-rules" so that we can see what's actually going on while compiling (if we look in the log or with the debug switch).

I added a post-destroot block to install the documentation files.

"port livecheck" didn't produce a result so I fixed it by adding a livecheck.regex similar to the one I often add to SourceForge-hosted ports.

You used our standard modeline, which states that the Portfile is formatted with spaces for indentation at 4 spaces per indent, but it was actually indented with tabs at 8 spaces per indent. I reformatted the Portfile using spaces at 4 spaces per indent to conform to the modeline.

Note: See TracTickets for help on using tickets.