From a8f01e7e0fe9bfdf4a878fcbabc0653ebfe9585d Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Tue, 4 Mar 2014 17:12:43 +0000 Subject: [PATCH] - Stage support - Use OPTIONS - Use PYDISTUTILS_AUTOPLIST, shebangfix, dos2unix - Update WWW and MASTER_SITES --- devel/py-InlineEgg/Makefile | 31 ++++++++++++++----------------- devel/py-InlineEgg/pkg-descr | 2 +- devel/py-InlineEgg/pkg-plist | 27 --------------------------- 3 files changed, 15 insertions(+), 45 deletions(-) delete mode 100644 devel/py-InlineEgg/pkg-plist diff --git a/devel/py-InlineEgg/Makefile b/devel/py-InlineEgg/Makefile index 055206d61ec6..058ed9f5dc71 100644 --- a/devel/py-InlineEgg/Makefile +++ b/devel/py-InlineEgg/Makefile @@ -3,34 +3,31 @@ PORTNAME= InlineEgg PORTVERSION= 1.08 +PORTREVISION= 1 CATEGORIES= devel security python -MASTER_SITES= http://oss.corest.com/repo/ +MASTER_SITES= http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=InlineEgg&file= PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sbz@FreeBSD.org COMMENT= Python module for writing inline assembler programs +FETCH_BEFORE_ARGS=-o ${DISTFILES} +USES= dos2unix shebangfix +SHEBANG_FILES= examples/*.py +python_CMD= ${PYTHON_CMD} USE_PYTHON= yes USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes -EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME} - -.if !defined(NOPORTDOCS) -DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} PORTDOCS= InlineEgg.html Changelog README -.endif +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES -NO_STAGE= yes post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor -.endif -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - ${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/devel/py-InlineEgg/pkg-descr b/devel/py-InlineEgg/pkg-descr index e5f69e61dea8..3d4335ef852c 100644 --- a/devel/py-InlineEgg/pkg-descr +++ b/devel/py-InlineEgg/pkg-descr @@ -5,4 +5,4 @@ to remember how to use complex tools like assemblers and linkers, everything is done the easy way: in Python. InlineEgg is oriented - but not limited - to developing shellcode (sometimes called eggs) for use in exploits. -WWW: http://oss.corest.com/projects/inlineegg.html +WWW: http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=InlineEgg diff --git a/devel/py-InlineEgg/pkg-plist b/devel/py-InlineEgg/pkg-plist deleted file mode 100644 index 1204f612c5d5..000000000000 --- a/devel/py-InlineEgg/pkg-plist +++ /dev/null @@ -1,27 +0,0 @@ -%%PYTHON_SITELIBDIR%%/inlineegg/WindowsSyscall.py -%%PYTHON_SITELIBDIR%%/inlineegg/WindowsSyscall.pyc -%%PYTHON_SITELIBDIR%%/inlineegg/WindowsSyscall.pyo -%%PYTHON_SITELIBDIR%%/inlineegg/__init__.py -%%PYTHON_SITELIBDIR%%/inlineegg/__init__.pyc -%%PYTHON_SITELIBDIR%%/inlineegg/__init__.pyo -%%PYTHON_SITELIBDIR%%/inlineegg/exelib.py -%%PYTHON_SITELIBDIR%%/inlineegg/exelib.pyc -%%PYTHON_SITELIBDIR%%/inlineegg/exelib.pyo -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg.py -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg.pyc -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg.pyo -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg_test.py -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg_test.pyc -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg_test.pyo -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg_win_test.py -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg_win_test.pyc -%%PYTHON_SITELIBDIR%%/inlineegg/inlineegg_win_test.pyo -@dirrm %%PYTHON_SITELIBDIR%%/inlineegg -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1.py -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2.py -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example3.py -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example4.py -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example5.py -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example6.py -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xored_shell_client.py -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%