Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#42392 closed submission (fixed)

[NEW] py-tsk

Reported by: jul_bsd@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-tsk

Description

Python bindings for sleuthkit

Attachments (2)

patch-setup_py (493 bytes) - added by jul_bsd@… 10 years ago.
Portfile (1.5 KB) - added by jul_bsd@… 10 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Some observations:

  • The setup.py patch assumes MacPorts is in /opt/local; you need to accommodate any arbitrary MacPorts prefix.
  • You're fetching from the tip of the hg repository; you need to specify a specific revision to fetch, and indicate something in the version field; if no version number has been assigned by the developers, you could use the date in YYYYMMDD format.
  • The license needs to be "Apache-2".
  • The dependencies in the port are overwriting the dependencies in the portgroup; append to the dependencies instead.

comment:2 Changed 10 years ago by jul_bsd@…

  • for prefix, I suppose macports add to setup.py the --prefix=... but on my box, it doesn't seem to be sufficient. The path is just adding an extra default path to check
  • I put a date but the building url (added it in Portfile) doesn't show any way to browse their mercurial repository and no archive, so don't know existing tags
  • updates the other things

comment:3 Changed 10 years ago by jul_bsd@…

without the patch, I got

--->  Building py27-tsk
Traceback (most recent call last):
  File "setup.py", line 117, in <module>
    raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.

There is a build var TSK_HEADERS_PATH to adjust but does not seem to work as a real environment var

=> changed the setup.py to check this var and get a new prefix for it. seems to work ok

Changed 10 years ago by jul_bsd@…

Attachment: patch-setup_py added

comment:4 Changed 10 years ago by jul_bsd@…

it seems in some case (didn't before, now did) the env var need to be setup during destroot

comment:5 Changed 10 years ago by jul_bsd@…

update to 20140320

  • port lint --nitpick
  • livecheck
  • /tab/spacex4/

Changed 10 years ago by jul_bsd@…

Attachment: Portfile added

comment:6 Changed 10 years ago by mf2k (Frank Schima)

r119591. I renamed the patchfile to match what the Portfile refers to.

comment:7 Changed 10 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed
Version: 2.2.1

comment:8 Changed 10 years ago by jul_bsd@…

Thanks mf2k@

Note: See TracTickets for help on using tickets.