app-admin/apg: add 2.3.0b_p20240821

Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/43352
Closes: https://github.com/gentoo/gentoo/pull/43352
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Cristian Othón Martínez Vera 2025-08-06 09:45:54 -06:00 committed by Sam James
parent 6f6dcdc450
commit 0b38d85567
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 70 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST apg-2.3.0b_p20150129.tar.xz 313372 BLAKE2B f5a1b894a0379294c478020de512af047aec2e7c9d881cb2f4c79df88583707b5ce0e995623915b6bd11b720e60e0f8696e0ddce472441cb1d04f3bf7a818e32 SHA512 7be813368b4b6fe4ae2882d85c40b6cf80ad44b7aa7e46c8cb97926ef89edf4f59e9a4c76a7aa9f725ac6ce1f0df361f8b68ef6dce798e1e0a8d55767c7a16e8
DIST apg-2.3.0b_p20240821.tar.gz 465729 BLAKE2B caa5add3ba5f54a1d57f135f2b72a4ca1aa1d8374bcb1a5532bec9075a56d1c96ff740330be6f2f3cef54c759e34c00b463387de6962d3ba0407adb02398289f SHA512 d34667f1ead74c7ac284dd8d40eb49c2a5885aee3da2e1607ca54465ffa69caa489ffe669036fbc881d54e75f9ca1c551dff84e87f8ce03439c4efbfeedd322f

View File

@ -0,0 +1,47 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
GIT_COMMIT="dcddc65648f8b71ba8b9a9c1946034badb4ae7f3"
BASEVER=$(ver_cut 1-4)
DESCRIPTION="Another Password Generator"
HOMEPAGE="https://github.com/wilx/apg"
SRC_URI="https://github.com/wilx/${PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="cracklib"
DEPEND="
virtual/libcrypt:=
cracklib? ( sys-libs/cracklib )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-crypt_password.patch"
"${FILESDIR}/${PN}-2.3.0b_p20150129-cracklib.patch"
)
DOCS=( CHANGES README THANKS TODO doc/APG_TIPS doc/rfc0972.txt doc/rfc1750.txt )
src_prepare() {
default
eautoreconf
}
src_configure() {
econf $(use_with cracklib)
}
src_install() {
default
doman doc/man/apg*
}

View File

@ -0,0 +1,22 @@
--- a/restrict.c
+++ b/restrict.c
@@ -33,6 +33,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if defined(APG_USE_CRACKLIB)
+#include <crack.h>
+#endif /* APG_USE_CRACKLIB */
#include "restrict.h"
extern struct sym smbl[94];
/*
--- a/apg.c
+++ b/apg.c
@@ -100,6 +100,7 @@
#else /* CLISERV */
#if defined(APG_USE_CRACKLIB)
#define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vkt"
+#include <crack.h>
#else /* CRACKLIB */
#define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vt"
#endif /* CRACKLIB */