Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/semaphore/Makefile
Show All 12 Lines | |||||
RUN_DEPENDS= ansible:sysutils/ansible \ | RUN_DEPENDS= ansible:sysutils/ansible \ | ||||
git:devel/git | git:devel/git | ||||
USES= go | USES= go | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
USE_RC_SUBR= semaphore | USE_RC_SUBR= semaphore | ||||
GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME} | GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} | ||||
GO_TARGET= ./cli:${PORTNAME} | |||||
GH_ACCOUNT= ansible-semaphore | GH_ACCOUNT= ansible-semaphore | ||||
GH_TUPLE= ansible-semaphore:semaphore-vendor:a44f7be:ansible/github.com/ansible-semaphore/semaphore-vendor \ | GH_TUPLE= ansible-semaphore:semaphore-vendor:a44f7be:ansible/vendor/github.com/ansible-semaphore/semaphore-vendor \ | ||||
PuerkitoBio:purell:v1.1.0:PuerkitoBio/github.com/PuerkitoBio/purell \ | PuerkitoBio:purell:v1.1.0:PuerkitoBio/vendor/github.com/PuerkitoBio/purell \ | ||||
PuerkitoBio:urlesc:de5bf2a:PuerkitoBio2/github.com/PuerkitoBio/urlesc \ | PuerkitoBio:urlesc:de5bf2a:PuerkitoBio2/vendor/github.com/PuerkitoBio/urlesc \ | ||||
Sirupsen:logrus:v1.0.4:Sirupsen/github.com/Sirupsen/logrus \ | Sirupsen:logrus:v1.0.4:Sirupsen/vendor/github.com/Sirupsen/logrus \ | ||||
asaskevich:govalidator:v9:asaskevich/github.com/asaskevich/govalidator \ | asaskevich:govalidator:v9:asaskevich/vendor/github.com/asaskevich/govalidator \ | ||||
castawaylabs:mulekick:7029fb3:castawaylabs/github.com/castawaylabs/mulekick \ | castawaylabs:mulekick:7029fb3:castawaylabs/vendor/github.com/castawaylabs/mulekick \ | ||||
go-openapi:analysis:f59a71f:openapi/github.com/go-openapi/analysis \ | go-openapi:analysis:f59a71f:openapi/vendor/github.com/go-openapi/analysis \ | ||||
go-openapi:errors:7bcb96a:openapi2/github.com/go-openapi/errors \ | go-openapi:errors:7bcb96a:openapi2/vendor/github.com/go-openapi/errors \ | ||||
go-openapi:jsonpointer:3a0015a:openapi3/github.com/go-openapi/jsonpointer \ | go-openapi:jsonpointer:3a0015a:openapi3/vendor/github.com/go-openapi/jsonpointer \ | ||||
go-openapi:jsonreference:3fb327e:openapi4/github.com/go-openapi/jsonreference \ | go-openapi:jsonreference:3fb327e:openapi4/vendor/github.com/go-openapi/jsonreference \ | ||||
go-openapi:loads:2a2b323:openapi5/github.com/go-openapi/loads \ | go-openapi:loads:2a2b323:openapi5/vendor/github.com/go-openapi/loads \ | ||||
go-openapi:runtime:62281b6:openapi6/github.com/go-openapi/runtime \ | go-openapi:runtime:62281b6:openapi6/vendor/github.com/go-openapi/runtime \ | ||||
go-openapi:spec:370d9e0:openapi7/github.com/go-openapi/spec \ | go-openapi:spec:370d9e0:openapi7/vendor/github.com/go-openapi/spec \ | ||||
go-openapi:strfmt:4818084:openapi8/github.com/go-openapi/strfmt \ | go-openapi:strfmt:4818084:openapi8/vendor/github.com/go-openapi/strfmt \ | ||||
go-openapi:swag:811b108:openapi9/github.com/go-openapi/swag \ | go-openapi:swag:811b108:openapi9/vendor/github.com/go-openapi/swag \ | ||||
go-openapi:validate:180bba5:openapi10/github.com/go-openapi/validate \ | go-openapi:validate:180bba5:openapi10/vendor/github.com/go-openapi/validate \ | ||||
go-sql-driver:mysql:v1.3:sqldriver/github.com/go-sql-driver/mysql \ | go-sql-driver:mysql:v1.3:sqldriver/vendor/github.com/go-sql-driver/mysql \ | ||||
gobuffalo:packr:v1.10.4:buffalo/github.com/gobuffalo/packr \ | gobuffalo:packr:v1.10.4:buffalo/vendor/github.com/gobuffalo/packr \ | ||||
google:go-github:v15.0.0:google/github.com/google/go-github \ | google:go-github:v15.0.0:google/vendor/github.com/google/go-github \ | ||||
google:go-querystring:53e6ce1:google2/github.com/google/go-querystring \ | google:go-querystring:53e6ce1:google2/vendor/github.com/google/go-querystring \ | ||||
gorilla:context:v1.1:gorilla/github.com/gorilla/context \ | gorilla:context:v1.1:gorilla/vendor/github.com/gorilla/context \ | ||||
gorilla:handlers:v1.3.0:gorilla2/github.com/gorilla/handlers \ | gorilla:handlers:v1.3.0:gorilla2/vendor/github.com/gorilla/handlers \ | ||||
gorilla:mux:v1.6.1:gorilla3/github.com/gorilla/mux \ | gorilla:mux:v1.6.1:gorilla3/vendor/github.com/gorilla/mux \ | ||||
gorilla:securecookie:v1.1.1:gorilla4/github.com/gorilla/securecookie \ | gorilla:securecookie:v1.1.1:gorilla4/vendor/github.com/gorilla/securecookie \ | ||||
gorilla:websocket:v1.2.0:gorilla5/github.com/gorilla/websocket \ | gorilla:websocket:v1.2.0:gorilla5/vendor/github.com/gorilla/websocket \ | ||||
lann:builder:1b87b36:lann/github.com/lann/builder \ | lann:builder:1b87b36:lann/vendor/github.com/lann/builder \ | ||||
lann:ps:62de8c4:lann2/github.com/lann/ps \ | lann:ps:62de8c4:lann2/vendor/github.com/lann/ps \ | ||||
mailru:easyjson:8b799c4:mailru/github.com/mailru/easyjson \ | mailru:easyjson:8b799c4:mailru/vendor/github.com/mailru/easyjson \ | ||||
masterminds:squirrel:v1.0:mastermindos/github.com/masterminds/squirrel \ | masterminds:squirrel:v1.0:mastermindos/vendor/github.com/masterminds/squirrel \ | ||||
mitchellh:mapstructure:00c29f5:mitchellh/github.com/mitchellh/mapstructure \ | mitchellh:mapstructure:00c29f5:mitchellh/vendor/github.com/mitchellh/mapstructure \ | ||||
pkg:errors:v0.8.0:pkg/github.com/pkg/errors \ | pkg:errors:v0.8.0:pkg/vendor/github.com/pkg/errors \ | ||||
russross:blackfriday:v1.5.1:russross/github.com/russross/blackfriday \ | russross:blackfriday:v1.5.1:russross/vendor/github.com/russross/blackfriday \ | ||||
golang:net:61147c4:golang/golang.org/x/net \ | golang:net:61147c4:golang/vendor/golang.org/x/net \ | ||||
golang:sys:7dca6fe:golang2/golang.org/x/sys \ | golang:sys:7dca6fe:golang2/vendor/golang.org/x/sys \ | ||||
golang:text:v0.3.0:golang3/golang.org/x/text \ | golang:text:v0.3.0:golang3/vendor/golang.org/x/text \ | ||||
golang:crypto:c7dcf10:golang4/golang.org/x/crypto \ | golang:crypto:c7dcf10:golang4/vendor/golang.org/x/crypto \ | ||||
go-asn1-ber:asn1-ber:v1.2:pkgin/gopkg.in/asn1-ber.v1 \ | go-asn1-ber:asn1-ber:v1.2:pkgin/vendor/gopkg.in/asn1-ber.v1 \ | ||||
go-gorp:gorp:v1.7.1:pkgin2/gopkg.in/gorp.v1 \ | go-gorp:gorp:v1.7.1:pkgin2/vendor/gopkg.in/gorp.v1 \ | ||||
go-ldap:ldap:v2.5.1:pkgin3/gopkg.in/ldap.v2 \ | go-ldap:ldap:v2.5.1:pkgin3/vendor/gopkg.in/ldap.v2 \ | ||||
go-mgo:mgo:3f83fa5:pkgin4/gopkg.in/mgo.v2 \ | go-mgo:mgo:3f83fa5:pkgin4/vendor/gopkg.in/mgo.v2 \ | ||||
go-yaml:yaml:v2.2.1:pkgin5/gopkg.in/yaml.v2 | go-yaml:yaml:v2.2.1:pkgin5/vendor/gopkg.in/yaml.v2 | ||||
OPTIONS_DEFINE= MYSQL | OPTIONS_DEFINE= MYSQL | ||||
MYSQL_USES= mysql | MYSQL_USES= mysql | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} 's/%%PORTVERSION%%/${PORTVERSION}/g' \ | ${REINPLACE_CMD} 's/%%PORTVERSION%%/${PORTVERSION}/g' \ | ||||
${WRKSRC}/util/config.go | ${WRKSRC}/util/config.go | ||||
do-build: | post-install: | ||||
${MKDIR} ${WRKSRC}/${GO_TARGET:H} | |||||
${MKDIR} ${WRKSRC}/public | |||||
${RLN} ${WRKSRC} ${WRKSRC}/${GO_TARGET} | |||||
${RLN} ${WRKSRC} ${GO_WRKSRC}/src | |||||
${RLN} ${WRKSRC} ${GO_WRKSRC}/public/vendor | |||||
(cd ${WRKSRC} && \ | |||||
${SETENV} ${MAKE_ENV} ${GO_ENV} GOPATH=${WRKSRC} ${GO_CMD} \ | |||||
build ${GO_BUILDFLAGS} -o ${WRKSRC}/bin/${PORTNAME} cli) | |||||
do-install: | |||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin | |||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/semaphore | ${MKDIR} ${STAGEDIR}${PREFIX}/etc/semaphore | ||||
${CP} ${WRKSRC}/config.json ${STAGEDIR}${PREFIX}/etc/semaphore/semaphore_config.json.sample | ${CP} ${WRKSRC}/config.json ${STAGEDIR}${PREFIX}/etc/semaphore/semaphore_config.json.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |