1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/net/google-daemon/Makefile
Mathieu Arnold d83ff1e42e Never set WRKSRC when using USE_GITHUB.
If you want to set WRKSRC, set GH_PROJECT instead.
- The GitHub URLs are case insensitive, but the distribution files you
  get out of them are not.
- If the repository was renamed, the old URL will still work, but the
  distribution name will be ith the new name.

Sponsored by:	Absolight
2017-01-03 18:12:13 +00:00

47 lines
1.4 KiB
Makefile

# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= google-daemon
PORTVERSION= 1.2.1
PORTREVISION= 0
CATEGORIES= net
MAINTAINER= swills@FreeBSD.org
COMMENT= Google daemon for use with Google Cloud Compute Engine
BUILD_DEPENDS= python:lang/python
RUN_DEPENDS= python:lang/python \
sudo:security/sudo
USES= python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= GoogleCloudPlatform
GH_PROJECT= compute-image-packages
USE_RC_SUBR= google-accounts-manager
WRKSRC_SUBDIR= ${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>