Merge pull request #22 from wneessen/dev

Updated OpenBSD ports file and added brew formulae
This commit is contained in:
Winni Neessen 2021-04-17 23:25:00 +02:00 committed by GitHub
commit 1539c265f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 33 deletions

17
buildfiles/brew/apg-go.rb Normal file
View file

@ -0,0 +1,17 @@
class ApgGo < Formula
desc "\"Automated Password Generator\"-clone written in Go"
homepage "https://github.com/wneessen/apg-go/"
url "https://github.com/wneessen/apg-go/archive/refs/tags/v0.3.1.tar.gz"
sha256 "1a798bd729c2985a11001118ad7d222e75c4f01e642184c37dec409a899a565b"
license "MIT"
depends_on "go" => :build
def install
system "go", "build", *std_go_args
end
test do
system "go", "test", "github.com/wneessen/apg-go"
end
end

View file

@ -1,38 +1,21 @@
COMMENT = "automated password generator" clone written in Go # $OpenBSD$
V = 0.3.1 COMMENT = "automated password generator" clone written in Go
DISTNAME = v$V GH_ACCOUNT = wneessen
GH_PROJECT = apg-go
GH_TAGNAME = v0.3.1
REVISION = 1 CATEGORIES = security
PKGNAME = apg-go-$V MAINTAINER = Winni Neessen <wn@neessen.net>
CATEGORIES = security
HOMEPAGE = https://github.com/wneessen/apg-go
MAINTAINER = Winni Neessen <wn@neessen.net>
MASTER_SITES = https://github.com/wneessen/apg-go/archive/refs/tags/
# MIT # MIT
PERMIT_PACKAGE = Yes PERMIT_PACKAGE = Yes
MODULES = lang/go MODULES = lang/go
MODGO_TYPE = bin MODGO_TYPE = bin
ALL_TARGET = wneessen/apg-go ALL_TARGET = wneessen/apg-go
post-extract: .include <bsd.port.mk>
mv ${WRKDIR}/${PKGNAME} ${WRKDIR}/${DISTNAME}
test:
cd ${WRKDIR} && ${MODGO_CMD} test ${ALL_TARGET}
build:
mkdir -p ${MODGO_WORKSPACE}/bin
cd ${WRKDIR} && ${MODGO_CMD} build \
-o ${MODGO_WORKSPACE}/bin ${ALL_TARGET}
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (v0.3.1.tar.gz) = 1a798bd729c2985a11001118ad7d222e75c4f01e642184c37dec409a899a565b SHA256 (apg-go-0.3.1.tar.gz) = GnmL1ynCmFoRABEYrX0iLnXE8B5kIYTDfexAmomaVls=
SIZE (v0.3.1.tar.gz) = 16576 SIZE (apg-go-0.3.1.tar.gz) = 16576

View file

@ -11,4 +11,4 @@ no use in replicating that feature. Therfore apg-go does not support
pronouncable passwords. pronouncable passwords.
For feature requests or bug reports, please create an issue in the Github For feature requests or bug reports, please create an issue in the Github
repository at https://github.com/wneessen/apg-go repository at https://github.com/wneessen/apg-go

View file

@ -1,2 +1,2 @@
@comment $OpenBSD: PLIST,v$ @comment $OpenBSD: PLIST,v$
@bin bin/apg-go @bin bin/apg-go