From b1a201bcff0f3105bedb35176dde323ec3ad7ed9 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 17 Apr 2021 13:55:31 +0200 Subject: [PATCH] Added OpenBSD ports files --- buildfiles/openbsd/Makefile | 40 ++++++++++++++++++++++++++++++++++++ buildfiles/openbsd/distinfo | 2 ++ buildfiles/openbsd/pkg/DESCR | 14 +++++++++++++ buildfiles/openbsd/pkg/PLIST | 2 ++ 4 files changed, 58 insertions(+) create mode 100644 buildfiles/openbsd/Makefile create mode 100644 buildfiles/openbsd/distinfo create mode 100644 buildfiles/openbsd/pkg/DESCR create mode 100644 buildfiles/openbsd/pkg/PLIST diff --git a/buildfiles/openbsd/Makefile b/buildfiles/openbsd/Makefile new file mode 100644 index 0000000..5987fe4 --- /dev/null +++ b/buildfiles/openbsd/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.3 2020/04/17 23:59:50 sthen Exp $ + +COMMENT = "automated password generator" clone written in Go + +V = 0.3.1 + +DISTNAME = v$V + +REVISION = 1 + +PKGNAME = apg-go-$V + +CATEGORIES = security + +HOMEPAGE = https://github.com/wneessen/apg-go + +MAINTAINER = Winni Neessen + +MASTER_SITES = https://github.com/wneessen/apg-go/archive/refs/tags/ + +# MIT +PERMIT_PACKAGE = Yes + +MODULES = lang/go +MODGO_TYPE = bin + +ALL_TARGET = wneessen/apg-go + +post-extract: + 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 diff --git a/buildfiles/openbsd/distinfo b/buildfiles/openbsd/distinfo new file mode 100644 index 0000000..b1c8698 --- /dev/null +++ b/buildfiles/openbsd/distinfo @@ -0,0 +1,2 @@ +SHA256 (v0.3.1.tar.gz) = 1a798bd729c2985a11001118ad7d222e75c4f01e642184c37dec409a899a565b +SIZE (v0.3.1.tar.gz) = 16576 diff --git a/buildfiles/openbsd/pkg/DESCR b/buildfiles/openbsd/pkg/DESCR new file mode 100644 index 0000000..2ce4257 --- /dev/null +++ b/buildfiles/openbsd/pkg/DESCR @@ -0,0 +1,14 @@ +apg-go is a simple APG-like password generator written in Go. + +It tries to replicate the functionality of the "Automated Password Generator", +which hasn't been maintained since 2003. Since more and more Unix distributions +are abondoning the tool, I was looking for an alternative. FreeBSD for example +recommends "security/makepasswd", which is written in Perl but requires a lot +of dependency packages and doesn't offer the feature-set/flexibility of APG. + +Since FIPS-181 (pronouncable passwords) has been withdrawn in 2015, was is +no use in replicating that feature. Therfore apg-go does not support +pronouncable passwords. + +For feature requests or bug reports, please create an issue in the Github +repository at https://github.com/wneessen/apg-go diff --git a/buildfiles/openbsd/pkg/PLIST b/buildfiles/openbsd/pkg/PLIST new file mode 100644 index 0000000..baa862a --- /dev/null +++ b/buildfiles/openbsd/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v$ +@bin bin/apg-go