mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
2acea30c9b
google-accounts-manager needs syslog running and won't startup properly without it, so add REQUIRE: syslogd to rc script.
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
# Created by: Steve Wills <swills@freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= google-daemon
|
|
PORTVERSION= 1.1.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= https://github.com/GoogleCloudPlatform/compute-image-packages/archive/${PORTVERSION}.tar.gz?dummy=/
|
|
|
|
MAINTAINER= swills@freebsd.org
|
|
COMMENT= Google daemon for use with Google Cloud Compute Engine
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python \
|
|
sudo:${PORTSDIR}/security/sudo
|
|
|
|
USES= python shebangfix
|
|
USE_RC_SUBR= google-accounts-manager
|
|
WRKSRC= ${WRKDIR}/compute-image-packages-${PORTVERSION}/${PORTNAME}
|
|
|
|
SHEBANG_FILES= usr/share/google/google_daemon/accounts.py \
|
|
usr/share/google/google_daemon/accounts_manager.py \
|
|
usr/share/google/google_daemon/accounts_manager_daemon.py \
|
|
usr/share/google/google_daemon/address_manager.py \
|
|
usr/share/google/google_daemon/desired_accounts.py \
|
|
usr/share/google/google_daemon/manage_accounts.py \
|
|
usr/share/google/google_daemon/manage_addresses.py \
|
|
usr/share/google/google_daemon/utils.py
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
${WRKSRC}/usr/share/google/google_daemon/accounts.py \
|
|
${WRKSRC}/usr/share/google/google_daemon/accounts_manager.py \
|
|
${WRKSRC}/usr/share/google/google_daemon/utils.py
|
|
@${RM} ${WRKSRC}/usr/share/google/google_daemon/*.bak \
|
|
${WRKSRC}/usr/share/google/google_daemon/*.orig
|
|
|
|
do-build:
|
|
${PYTHON_CMD} -m compileall ${WRKSRC}/usr/share/google/google_daemon
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/usr/share ; ${COPYTREE_BIN} google ${STAGEDIR}${PREFIX}/share
|
|
|
|
.include <bsd.port.mk>
|