forked from Lainports/freebsd-ports
- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt")
Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")
Update shebangfix usage according to new rules in many ports:
- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces
Fix shebangfix usage in many ports (irrelevant to infrastructure change):
- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string
Approved by: portmgr (bapt)
Differential Revision: D3756
43 lines
1.6 KiB
Makefile
43 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cloud-init
|
|
PORTVERSION= 0.7.6
|
|
CATEGORIES= net python
|
|
MASTER_SITES= http://launchpad.net/${PORTNAME}/trunk/${PORTVERSION}/+download/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= harm@weites.com
|
|
COMMENT= Init scripts for use on cloud images
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= dmidecode>0:${PORTSDIR}/sysutils/dmidecode \
|
|
sudo>0:${PORTSDIR}/security/sudo \
|
|
gpart>0:${PORTSDIR}/sysutils/gpart \
|
|
${PYTHON_PKGNAMEPREFIX}boto>0:${PORTSDIR}/devel/py-boto \
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2 \
|
|
${PYTHON_PKGNAMEPREFIX}prettytable>0:${PORTSDIR}/devel/py-prettytable \
|
|
${PYTHON_PKGNAMEPREFIX}configobj>0:${PORTSDIR}/devel/py-configobj \
|
|
${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
|
|
${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse \
|
|
${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \
|
|
${PYTHON_PKGNAMEPREFIX}serial>0:${PORTSDIR}/comms/py-serial \
|
|
${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests \
|
|
${PYTHON_PKGNAMEPREFIX}oauth>0:${PORTSDIR}/net/py-oauth \
|
|
${PYTHON_PKGNAMEPREFIX}jsonpatch>0:${PORTSDIR}/devel/py-jsonpatch \
|
|
${PYTHON_PKGNAMEPREFIX}jsonpointer>0:${PORTSDIR}/devel/py-jsonpointer
|
|
|
|
ETCDIR= ${PREFIX}/etc/cloud
|
|
|
|
USES= python:2.7 shebangfix
|
|
SHEBANG_FILES= tools/validate-yaml.py tools/read-dependencies \
|
|
tools/read-version tools/hacking.py
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
PYDISTUTILS_INSTALLARGS+= "--init-system=sysvinit_freebsd"
|
|
|
|
post-build:
|
|
@cd ${WRKSRC} && ${MV} config/cloud.cfg-freebsd config/cloud.cfg
|
|
|
|
.include <bsd.port.mk>
|