Changeset View
Changeset View
Standalone View
Standalone View
head/misc/cryptoballot/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= cryptoballot | PORTNAME= cryptoballot | ||||
DISTVERSION= g20181015 | DISTVERSION= g20181015 | ||||
CATEGORIES= misc | CATEGORIES= misc | ||||
MAINTAINER= yuri@FreeBSD.org | MAINTAINER= yuri@FreeBSD.org | ||||
COMMENT= Cryptographically secure online voting | COMMENT= Cryptographically secure online voting | ||||
LICENSE= AGPLv3 | LICENSE= AGPLv3 | ||||
USES= go | USES= go | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_TAGNAME= 3753e1b | GH_TAGNAME= 3753e1b | ||||
GH_TUPLE= ${PORTNAME}:entropychecker:188ae6c:entropychecker/src/github.com/${PORTNAME}/entropychecker \ | GH_TUPLE= ${PORTNAME}:entropychecker:188ae6c:entropychecker/vendor/github.com/${PORTNAME}/entropychecker \ | ||||
${PORTNAME}:fdh:5eb31ce:fdh/src/github.com/${PORTNAME}/fdh \ | ${PORTNAME}:fdh:5eb31ce:fdh/vendor/github.com/${PORTNAME}/fdh \ | ||||
${PORTNAME}:rsablind:14f9913:rsablind/src/github.com/${PORTNAME}/rsablind \ | ${PORTNAME}:rsablind:14f9913:rsablind/vendor/github.com/${PORTNAME}/rsablind \ | ||||
urfave:cli:v1.20.0:cli/src/github.com/urfave/cli \ | urfave:cli:v1.20.0:cli/vendor/github.com/urfave/cli \ | ||||
phayes:decryptpem:7e4f5bc:decryptpem/src/github.com/phayes/decryptpem \ | phayes:decryptpem:7e4f5bc:decryptpem/vendor/github.com/phayes/decryptpem \ | ||||
phayes:errors:ad407e6:errors/src/github.com/phayes/errors \ | phayes:errors:ad407e6:errors/vendor/github.com/phayes/errors \ | ||||
dlintw:goconf:dcc0709:goconf/src/github.com/dlintw/goconf \ | dlintw:goconf:dcc0709:goconf/vendor/github.com/dlintw/goconf \ | ||||
Sam-Izdat:govote:7d55c89:govote/src/github.com/Sam-Izdat/govote \ | Sam-Izdat:govote:7d55c89:govote/vendor/github.com/Sam-Izdat/govote \ | ||||
lib:pq:88edab0:pq/src/github.com/lib/pq \ | lib:pq:88edab0:pq/vendor/github.com/lib/pq \ | ||||
golang:crypto:650f4a3:crypto/src/golang.org/x/crypto \ | golang:crypto:650f4a3:crypto/vendor/golang.org/x/crypto \ | ||||
golang:sys:37707fd:sys/src/golang.org/x/sys | golang:sys:37707fd:sys/vendor/golang.org/x/sys | ||||
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME} | GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME} | ||||
PROGS= servers/ballotbox servers/electionclerk \ | GO_TARGET= ./servers/ballotbox ./servers/electionclerk \ | ||||
utils/cryptoballot \ | ./utils/cryptoballot \ | ||||
utils/cryptoballot-getid utils/cryptoballot-public-key \ | ./utils/cryptoballot-getid ./utils/cryptoballot-public-key \ | ||||
utils/cryptoballot-sign utils/cryptoballot-signature-request | ./utils/cryptoballot-sign ./utils/cryptoballot-signature-request | ||||
PLIST_FILES= ${PROGS:C/.*\//bin\//} | PLIST_FILES= ${GO_TARGET:C/.*\//bin\//} | ||||
do-build: | |||||
.for p in ${PROGS} | |||||
@cd ${WRKSRC}/${GH_SUBDIR}/${p}/ && \ | |||||
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build -o ${p:C/.*\///} | |||||
.endfor | |||||
do-install: | |||||
.for p in ${PROGS} | |||||
${INSTALL_PROGRAM} ${WRKSRC}/${GH_SUBDIR}/${p}/${p:C/.*\///} ${STAGEDIR}${PREFIX}/bin/${p:C/.*\///} | |||||
.endfor | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |