# $FreeBSD$ PORTNAME= semaphore PORTVERSION= 2.5.1 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= egypcio@FreeBSD.org COMMENT= Open Source alternative to Ansible Tower LICENSE= MIT LICENSE_FILE= ${GO_WRKSRC}/LICENSE RUN_DEPENDS= ansible:sysutils/ansible \ git:devel/git USES= go USE_GITHUB= yes USE_RC_SUBR= semaphore GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} GO_TARGET= ./cli:${PORTNAME} GH_ACCOUNT= ansible-semaphore GH_TUPLE= ansible-semaphore:semaphore-vendor:a44f7be:ansible/vendor/github.com/ansible-semaphore/semaphore-vendor \ PuerkitoBio:purell:v1.1.0:PuerkitoBio/vendor/github.com/PuerkitoBio/purell \ PuerkitoBio:urlesc:de5bf2a:PuerkitoBio2/vendor/github.com/PuerkitoBio/urlesc \ Sirupsen:logrus:v1.0.4:Sirupsen/vendor/github.com/Sirupsen/logrus \ asaskevich:govalidator:v9:asaskevich/vendor/github.com/asaskevich/govalidator \ castawaylabs:mulekick:7029fb3:castawaylabs/vendor/github.com/castawaylabs/mulekick \ go-openapi:analysis:f59a71f:openapi/vendor/github.com/go-openapi/analysis \ go-openapi:errors:7bcb96a:openapi2/vendor/github.com/go-openapi/errors \ go-openapi:jsonpointer:3a0015a:openapi3/vendor/github.com/go-openapi/jsonpointer \ go-openapi:jsonreference:3fb327e:openapi4/vendor/github.com/go-openapi/jsonreference \ go-openapi:loads:2a2b323:openapi5/vendor/github.com/go-openapi/loads \ go-openapi:runtime:62281b6:openapi6/vendor/github.com/go-openapi/runtime \ go-openapi:spec:370d9e0:openapi7/vendor/github.com/go-openapi/spec \ go-openapi:strfmt:4818084:openapi8/vendor/github.com/go-openapi/strfmt \ go-openapi:swag:811b108:openapi9/vendor/github.com/go-openapi/swag \ go-openapi:validate:180bba5:openapi10/vendor/github.com/go-openapi/validate \ go-sql-driver:mysql:v1.3:sqldriver/vendor/github.com/go-sql-driver/mysql \ gobuffalo:packr:v1.10.4:buffalo/vendor/github.com/gobuffalo/packr \ google:go-github:v15.0.0:google/vendor/github.com/google/go-github \ google:go-querystring:53e6ce1:google2/vendor/github.com/google/go-querystring \ gorilla:context:v1.1:gorilla/vendor/github.com/gorilla/context \ gorilla:handlers:v1.3.0:gorilla2/vendor/github.com/gorilla/handlers \ gorilla:mux:v1.6.1:gorilla3/vendor/github.com/gorilla/mux \ gorilla:securecookie:v1.1.1:gorilla4/vendor/github.com/gorilla/securecookie \ gorilla:websocket:v1.2.0:gorilla5/vendor/github.com/gorilla/websocket \ lann:builder:1b87b36:lann/vendor/github.com/lann/builder \ lann:ps:62de8c4:lann2/vendor/github.com/lann/ps \ mailru:easyjson:8b799c4:mailru/vendor/github.com/mailru/easyjson \ masterminds:squirrel:v1.0:mastermindos/vendor/github.com/masterminds/squirrel \ mitchellh:mapstructure:00c29f5:mitchellh/vendor/github.com/mitchellh/mapstructure \ pkg:errors:v0.8.0:pkg/vendor/github.com/pkg/errors \ russross:blackfriday:v1.5.1:russross/vendor/github.com/russross/blackfriday \ golang:net:61147c4:golang/vendor/golang.org/x/net \ golang:sys:226ff32:golang2/vendor/golang.org/x/sys \ golang:text:v0.3.0:golang3/vendor/golang.org/x/text \ golang:crypto:c7dcf10:golang4/vendor/golang.org/x/crypto \ go-asn1-ber:asn1-ber:v1.2:pkgin/vendor/gopkg.in/asn1-ber.v1 \ go-gorp:gorp:v1.7.1:pkgin2/vendor/gopkg.in/gorp.v1 \ go-ldap:ldap:v2.5.1:pkgin3/vendor/gopkg.in/ldap.v2 \ go-mgo:mgo:3f83fa5:pkgin4/vendor/gopkg.in/mgo.v2 \ go-yaml:yaml:v2.2.1:pkgin5/vendor/gopkg.in/yaml.v2 post-patch: ${REINPLACE_CMD} 's/%%PORTVERSION%%/${PORTVERSION}/g' \ ${WRKSRC}/util/config.go post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} ${CP} ${WRKSRC}/config.json ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/semaphore_config.json.sample ${MKDIR} ${STAGEDIR}${PREFIX}/share/${PORTNAME} ${CP} ${WRKSRC}/db/migrations/*.sql ${STAGEDIR}${PREFIX}/share/${PORTNAME} .include