-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
52 lines (39 loc) · 1.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Antoine Brodin <[email protected]>
# $FreeBSD$
PORTNAME= python-evtx
PORTVERSION= 0.3.1
CATEGORIES= security devel python
MASTER_SITES= GH \
LOCAL/antoine
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= [email protected]
COMMENT= Pure Python parser for recent Windows event log files
LICENSE= AL2
USE_GITHUB= yes
GH_ACCOUNT= williballenthin
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= 2b97595
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
OPTIONS_DEFINE= DOCS EXAMPLES
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
PORTDOCS= README.md p65-schuster.pdf
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTEXAMPLES= *
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
post-patch:
${REINPLACE_CMD} -e 's|0\.3\.0|${PORTVERSION}|' ${WRKSRC}/Evtx/__init__.py
${REINPLACE_CMD} -e '1s|#!.*|#!${PYTHON_CMD}|' ${WRKSRC}/scripts/*.py
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/documentation/p65-schuster.pdf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/documentation/html/* ${DOCSDIR}/html
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.py ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>