This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

- Fix shebang

- Support STAGEDIR
- Update WWW: use https:// instead of http://
  • Loading branch information...
sunpoet committed Nov 20, 2013
1 parent 7231627 commit 75c174673d256db24b3997cc764d8e2476132e20
Showing with 8 additions and 9 deletions.
  1. +7 −8 mail/py-spf/Makefile
  2. +1 −1 mail/py-spf/pkg-descr
View
@@ -21,21 +21,20 @@ OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= py${PORTNAME}
+USES= shebangfix
PORTDOCS= CHANGELOG README
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+SHEBANG_FILES= spf.py
-post-patch:
- @${REINPLACE_CMD} -e '1 s|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/spf.py
+.include <bsd.port.options.mk>
post-install:
- ${CHMOD} ${BINMODE} ${PYTHONPREFIX_SITELIBDIR}/spf.py
- ${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${PREFIX}/bin/
+ ${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py
+ ${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
View
@@ -5,4 +5,4 @@ several of the open SPF project's SPF record testing tools.
Currently part of the pymilter project: http://pymilter.sourceforge.net
-WWW: http://pypi.python.org/pypi/pyspf
+WWW: https://pypi.python.org/pypi/pyspf

0 comments on commit 75c1746

Please sign in to comment.