X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id E4D32DC0561 for ; Tue, 21 Jul 2015 23:44:03 +0000 (UTC) Received: from apollo.thewebhostserver.com (apollomail.thewebhostserver.com [46.23.65.248]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 9A59BDC00BA for ; Tue, 21 Jul 2015 23:44:01 +0000 (UTC) Received: from [81.4.121.188] (port=49580 helo=localhost.localdomain) by apollo.thewebhostserver.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZHhCU-000R6c-SI; Wed, 22 Jul 2015 00:43:54 +0100 From: Stuart Cardall To: alpine-aports@lists.alpinelinux.org Cc: Stuart Cardall Subject: [alpine-aports] [PATCH] testing/secpwgen: new aport Date: Tue, 21 Jul 2015 23:43:30 +0000 Message-Id: <1437522210-36677-1-git-send-email-developer@it-offshore.co.uk> X-Mailer: git-send-email 2.4.6 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - apollo.thewebhostserver.com X-AntiAbuse: Original Domain - lists.alpinelinux.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - it-offshore.co.uk X-Get-Message-Sender-Via: apollo.thewebhostserver.com: authenticated_id: developer@it-offshore.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: A utility for generating secure passphrases. Implements several methods for passphrase generation, including the Diceware method with 8192 word dictionary compiled in the executable. http://linux.die.net/man/1/secpwgen As it builds against OpenSSL you need to run haveged if you use this. Used in OpenSUSE & Midnight BSD. --- testing/secpwgen/APKBUILD | 57 +++++++++++++++++++++++++++++++++++++ testing/secpwgen/make-openssl.patch | 33 +++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 testing/secpwgen/APKBUILD create mode 100644 testing/secpwgen/make-openssl.patch diff --git a/testing/secpwgen/APKBUILD b/testing/secpwgen/APKBUILD new file mode 100644 index 0000000..7862a26 --- /dev/null +++ b/testing/secpwgen/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Stuart Cardall +# Maintainer: Stuart Cardall +pkgname=secpwgen +pkgver=1.3 +pkgrel=0 +pkgdesc="secure password generator" +url="http://zvrba.net/" +arch="all" +license="MIT" +depends="" +depends_dev="openssl-dev" +makedepends="$depends_dev" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/itoffshore/$pkgname/archive/v$pkgver.tar.gz + make-openssl.patch + " + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + mv Makefile.proto Makefile || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/usr/bin + mkdir -p "$pkgdir"/usr/share/man/man1 + install -m 755 secpwgen "$pkgdir"/usr/bin || return 1 + install -m 644 secpwgen.1 "$pkgdir"/usr/share/man/man1 || return 1 + # post-install message + mkdir -p "$pkgdir/usr/share/doc/$pkgname" + cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <