From patchwork Tue Jun 26 00:02:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 934641 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=datacom.com.br Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41F5pB6Cqjz9s1R for ; Tue, 26 Jun 2018 10:02:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D07A687105; Tue, 26 Jun 2018 00:02:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0-viL9+O-t3f; Tue, 26 Jun 2018 00:02:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3C7E7870A9; Tue, 26 Jun 2018 00:02:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3E1231CF29A for ; Tue, 26 Jun 2018 00:02:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3AA4726963 for ; Tue, 26 Jun 2018 00:02:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0dMismwE4-Mf for ; Tue, 26 Jun 2018 00:02:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.com.br (mx.datacom.ind.br [177.66.5.10]) by silver.osuosl.org (Postfix) with ESMTPS id 2B23F22097 for ; Tue, 26 Jun 2018 00:02:35 +0000 (UTC) Received: from mail.datacom.com.br (localhost [127.0.0.1]) by mail.datacom.com.br (Postfix) with ESMTPS id C947A1BA2F49 for ; Mon, 25 Jun 2018 21:03:06 -0300 (-03) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.com.br (Postfix) with ESMTP id B91391BA2DD0 for ; Mon, 25 Jun 2018 21:03:06 -0300 (-03) Received: from mail.datacom.com.br ([127.0.0.1]) by localhost (mail.datacom.com.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id owYAxVjVKVRh for ; Mon, 25 Jun 2018 21:03:06 -0300 (-03) Received: from p7-1130br.casantos.org (201.47.207.122.dynamic.adsl.gvt.net.br [201.47.207.122]) by mail.datacom.com.br (Postfix) with ESMTPSA id 7AF391BA0460 for ; Mon, 25 Jun 2018 21:03:06 -0300 (-03) From: Carlos Santos To: buildroot@buildroot.org Date: Mon, 25 Jun 2018 21:02:24 -0300 Message-Id: <20180626000224.3405-1-casantos@datacom.com.br> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH v4] pamtester: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Utility for testing pluggable authentication modules (PAM) facility. While specifically designed to help PAM module authors to test their modules, that might also be handy for system administrators interested in building a centralised authentication system using common standards such as NIS, SASL and LDAP. Pull a patch from Debian, rename it and add an SOB to match Buildroot conventions. Signed-off-by: Carlos Santos --- DEVELOPERS | 1 + package/Config.in | 1 + .../pamtester/0001-fix-spelling-errors.patch | 19 +++++++++++++++++++ package/pamtester/Config.in | 15 +++++++++++++++ package/pamtester/pamtester.hash | 2 ++ package/pamtester/pamtester.mk | 13 +++++++++++++ 6 files changed, 51 insertions(+) create mode 100644 package/pamtester/0001-fix-spelling-errors.patch create mode 100644 package/pamtester/Config.in create mode 100644 package/pamtester/pamtester.hash create mode 100644 package/pamtester/pamtester.mk diff --git a/DEVELOPERS b/DEVELOPERS index 27e24896fb..ee749b08c8 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -416,6 +416,7 @@ F: package/initscripts/ F: package/libpam-radius-auth/ F: package/libpam-tacplus/ F: package/modem-manager/ +F: package/pamtester/ F: package/perl-file-util/ F: package/skeleton-custom/ F: package/skeleton-init-common/ diff --git a/package/Config.in b/package/Config.in index c5365547a4..93f48557d9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2026,6 +2026,7 @@ menu "System tools" source "package/numactl/Config.in" source "package/nut/Config.in" source "package/openvmtools/Config.in" + source "package/pamtester/Config.in" source "package/polkit/Config.in" source "package/powerpc-utils/Config.in" source "package/procps-ng/Config.in" diff --git a/package/pamtester/0001-fix-spelling-errors.patch b/package/pamtester/0001-fix-spelling-errors.patch new file mode 100644 index 0000000000..5f79754e34 --- /dev/null +++ b/package/pamtester/0001-fix-spelling-errors.patch @@ -0,0 +1,19 @@ +Description: Fix spelling error in pamtester +Origin: vendor +Bug: https://sourceforge.net/tracker/?func=detail&aid=3599109&group_id=135111&atid=731890 +Forwarded: yes +Author: Salvatore Bonaccorso +Last-Update: 2013-01-01 +Signed-off-by: Salvatore Bonaccorso + +--- a/src/app.c ++++ b/src/app.c +@@ -373,7 +373,7 @@ + err_msg = xstrdup(pam_strerror(pamh, err)); + goto out; + } else { +- printf("%s: sucessfully opened a session\n", params->app_name); ++ printf("%s: successfully opened a session\n", params->app_name); + } + } else if (!strcasecmp(op->name, "close_session")) { + int flag = 0; diff --git a/package/pamtester/Config.in b/package/pamtester/Config.in new file mode 100644 index 0000000000..9415c0e31f --- /dev/null +++ b/package/pamtester/Config.in @@ -0,0 +1,15 @@ +config BR2_PACKAGE_PAMTESTER + bool "pamtester" + depends on BR2_PACKAGE_LINUX_PAM + help + A tiny utility for testing pluggable authentication modules + (PAM) facility. While specifically designed to help PAM module + authors to test their modules, that might also be handy for + system administrators interested in building a centralised + authentication system using common standards such as NIS, SASL + and LDAP. + + http://pamtester.sourceforge.net/ + +comment "pamptester depends on linux-pam" + depends on !BR2_PACKAGE_LINUX_PAM diff --git a/package/pamtester/pamtester.hash b/package/pamtester/pamtester.hash new file mode 100644 index 0000000000..6ce187f19f --- /dev/null +++ b/package/pamtester/pamtester.hash @@ -0,0 +1,2 @@ +# from https://sourceforge.net/projects/pamtester/files/pamtester/0.1.2/ +sha1 33bcc610d7f208b50a0a23c144bdbd1e2cae4ac6 pamtester-0.1.2.tar.gz diff --git a/package/pamtester/pamtester.mk b/package/pamtester/pamtester.mk new file mode 100644 index 0000000000..b09e4d1cc0 --- /dev/null +++ b/package/pamtester/pamtester.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# pamtester +# +################################################################################ + +PAMTESTER_VERSION = 0.1.2 +PAMTESTER_SITE = https://download.sourceforge.net/project/pamtester/pamtester/$(PAMTESTER_VERSION) +PAMTESTER_DEPENDENCIES = linux-pam +PAMTESTER_LICENSE = BSD-3-Clause +PAMTESTER_LICENSE_FILES = LICENSE + +$(eval $(autotools-package))