Index: head/net-mgmt/semaphore/Makefile =================================================================== --- head/net-mgmt/semaphore/Makefile (revision 528224) +++ head/net-mgmt/semaphore/Makefile (revision 528225) @@ -1,81 +1,79 @@ # $FreeBSD$ PORTNAME= semaphore PORTVERSION= 2.5.1 +PORTREVISION= 1 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= egypcio@FreeBSD.org COMMENT= Open Source alternative to Ansible Tower -BROKEN= unfetchable - 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:7dca6fe: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 -OPTIONS_DEFINE= MYSQL -MYSQL_USES= mysql - post-patch: ${REINPLACE_CMD} 's/%%PORTVERSION%%/${PORTVERSION}/g' \ ${WRKSRC}/util/config.go post-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/etc/semaphore - ${CP} ${WRKSRC}/config.json ${STAGEDIR}${PREFIX}/etc/semaphore/semaphore_config.json.sample + ${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 Index: head/net-mgmt/semaphore/files/patch-db_migrations.go =================================================================== --- head/net-mgmt/semaphore/files/patch-db_migrations.go (nonexistent) +++ head/net-mgmt/semaphore/files/patch-db_migrations.go (revision 528225) @@ -0,0 +1,11 @@ +--- db/migrations.go.orig 2020-02-10 17:37:11 UTC ++++ db/migrations.go +@@ -9,7 +9,7 @@ import ( + log "github.com/Sirupsen/logrus" + ) + +-var dbAssets = packr.NewBox("./migrations") ++var dbAssets = packr.NewBox("/usr/local/share/semaphore") + + // CheckExists queries the database to see if a migration table with this version id exists already + func (version *Version) CheckExists() (bool, error) { Property changes on: head/net-mgmt/semaphore/files/patch-db_migrations.go ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/semaphore/pkg-plist =================================================================== --- head/net-mgmt/semaphore/pkg-plist (revision 528224) +++ head/net-mgmt/semaphore/pkg-plist (revision 528225) @@ -1,2 +1,21 @@ bin/semaphore @sample %%ETCDIR%%/semaphore_config.json.sample +%%DATADIR%%/v0.0.0.sql +%%DATADIR%%/v0.1.0.sql +%%DATADIR%%/v1.0.0.sql +%%DATADIR%%/v1.1.0.sql +%%DATADIR%%/v1.2.0.sql +%%DATADIR%%/v1.3.0.sql +%%DATADIR%%/v1.4.0.sql +%%DATADIR%%/v1.5.0.sql +%%DATADIR%%/v1.6.0.sql +%%DATADIR%%/v1.7.0.sql +%%DATADIR%%/v1.8.0.sql +%%DATADIR%%/v1.9.0.sql +%%DATADIR%%/v2.2.1.sql +%%DATADIR%%/v2.3.0.sql +%%DATADIR%%/v2.3.1.sql +%%DATADIR%%/v2.3.2.sql +%%DATADIR%%/v2.4.0.sql +%%DATADIR%%/v2.5.0.sql +