From patchwork Fri Aug 10 14:46:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 956270 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Jytqwqvr"; dkim-atps=neutral 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 41n7J02PYKz9ryt for ; Sat, 11 Aug 2018 00:47:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A6D4488368; Fri, 10 Aug 2018 14:47:08 +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 bs3-gWg25AWU; Fri, 10 Aug 2018 14:47:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B5ED387D3A; Fri, 10 Aug 2018 14:47:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A51811C1011 for ; Fri, 10 Aug 2018 14:47:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A2E1086CDB for ; Fri, 10 Aug 2018 14:47:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5wKSD47lZPdk for ; Fri, 10 Aug 2018 14:47:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl0-f49.google.com (mail-pl0-f49.google.com [209.85.160.49]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 52D3486D76 for ; Fri, 10 Aug 2018 14:47:04 +0000 (UTC) Received: by mail-pl0-f49.google.com with SMTP id d5-v6so4149022pll.4 for ; Fri, 10 Aug 2018 07:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=sUYiOashFTegZJSfJvC9aA6y29/XYEwPyWzje9NFnmg=; b=JytqwqvrvrXldYSuhRpH6ROyM9xWbN0j9Sn0HUQVaRR35/PT85aCuh5yxtZxNsEyet Se1l/Vd/vgE4FAoWhQ0F8vBAjcJv5eV3gXFr/6j/RudUtdWOjM9XLTPZ+2BOs+xkyLUF 8ZEUqzBq986/tLttsH9ZolPfFRicPPaRbiGe3R8RyRYfZMe3AWKddw3WuSGj/CdwcVxY AgD2e4+Ph7dXg2qVxYx6/e5TR9T0OJDPcZItn/W3V21RFQUVjq59XIHfrAwEY/ug1DRK PslLc0ptAx0J6BTbHZGWRSObYdf/W3Snbi8qrNO5l8ATP+BXVA2hfsBL9wFQwi78q/OB hlqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sUYiOashFTegZJSfJvC9aA6y29/XYEwPyWzje9NFnmg=; b=CktlZ4B+JKJ9V8xwQiNCsYdpSa30wMJ/mXdcUz6Ja7SlUOFp+xCJ5LMNFX2D5eMgTj zX+Zpa8GO2saJuJmn1ZhyH48Ri9shZ24lKCVAQOunmFE8wy8kGWiLKRIG4e/vIUGLzuV OAEpnl21/BJAMPHdBvvQoHzEfBAFZBduLNzNcGwiWggOlRsvlilDZWcJoY2GX44zvK/z QvxHZQXmId5KNF+iJtCy0vTL9Izn1GJqDIusPcjAFCedKVV/Z8/a+kQ5ejoEk3I3lAZl tbGVnlYCJss48vrYBxi9v6IkE6QjDXVum7jiVf/Nefjx57Cjv5dQiyOLZNcKBNgxtFsZ 2nhQ== X-Gm-Message-State: AOUpUlHJmqelCiah758tMsNA6TG7EMz6B/pgpzAaIO01nN3S/vH4/0f/ 3HC9PFee+znR7J+yyiDH+4CpYLkL X-Google-Smtp-Source: AA+uWPwQaVb2pIY3iiALJGbhoDnCBMfUVGWVjh9Q/Fk5f99ShvIYM+46pZBUp9zPYLyjUiCaKqzb9Q== X-Received: by 2002:a17:902:654b:: with SMTP id d11-v6mr6381493pln.8.1533912423513; Fri, 10 Aug 2018 07:47:03 -0700 (PDT) Received: from localhost.localdomain ([2600:1012:b011:a55d:750d:4ad1:410a:5fdd]) by smtp.gmail.com with ESMTPSA id q25-v6sm22479617pfk.96.2018.08.10.07.47.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 07:47:02 -0700 (PDT) From: Christopher McCrory To: buildroot@buildroot.org Date: Fri, 10 Aug 2018 07:46:34 -0700 Message-Id: <20180810144635.16182-1-chrismcc@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Buildroot] [PATCH 1/3] fake-hwclock: 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: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Save/restore system clock on machines without working RTC hardware Signed-off-by: Christopher McCrory --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/fake-hwclock/Config.in | 12 ++++++++++ package/fake-hwclock/fake-hwclock.hash | 2 ++ package/fake-hwclock/fake-hwclock.mk | 40 ++++++++++++++++++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 package/fake-hwclock/Config.in create mode 100644 package/fake-hwclock/fake-hwclock.hash create mode 100644 package/fake-hwclock/fake-hwclock.mk diff --git a/DEVELOPERS b/DEVELOPERS index 215506c71c..9ea934fa57 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -479,6 +479,9 @@ F: package/python-rtslib-fb/ F: package/python-urwid/ F: package/targetcli-fb/ +N: Christopher McCrory +F: package/fake-hwclock/ + N: Clayton Shotwell F: package/audit/ F: package/checkpolicy/ diff --git a/package/Config.in b/package/Config.in index f5a17492c7..42c61c242e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1982,6 +1982,7 @@ comment "Utilities" source "package/dialog/Config.in" source "package/dtach/Config.in" source "package/easy-rsa/Config.in" + source "package/fake-hwclock/Config.in" source "package/file/Config.in" source "package/gnupg/Config.in" source "package/gnupg2/Config.in" diff --git a/package/fake-hwclock/Config.in b/package/fake-hwclock/Config.in new file mode 100644 index 0000000000..f7e01dfb46 --- /dev/null +++ b/package/fake-hwclock/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_FAKE_HWCLOCK + bool "fake-hwclock" + help + Save/restore system clock on machines without working RTC hardware + +if BR2_PACKAGE_FAKE_HWCLOCK +config BR2_PACKAGE_FAKE_HWCLOCK_CRONJOB + bool "install fake-hwclock cronjob" + help + Hourly cronjob to save current timestamp + +endif diff --git a/package/fake-hwclock/fake-hwclock.hash b/package/fake-hwclock/fake-hwclock.hash new file mode 100644 index 0000000000..7bf147d7a6 --- /dev/null +++ b/package/fake-hwclock/fake-hwclock.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 b658d6d130f66eeaa79bae6943ebae45a85bc6a932260befff75c630a8cfe428 fake-hwclock-v0.11.tar.gz diff --git a/package/fake-hwclock/fake-hwclock.mk b/package/fake-hwclock/fake-hwclock.mk new file mode 100644 index 0000000000..caae8605b9 --- /dev/null +++ b/package/fake-hwclock/fake-hwclock.mk @@ -0,0 +1,40 @@ +################################################################################ +# +# fake-hwclock +# +################################################################################ + +FAKE_HWCLOCK_VERSION = v0.11 +FAKE_HWCLOCK_SITE = https://git.einval.com/git/fake-hwclock.git +FAKE_HWCLOCK_SITE_METHOD = git +FAKE_HWCLOCK_LICENSE_FILES = COPYING +FAKE_LICENSE = GPL-2.0 + +define FAKE_HWCLOCK_NO_LSB + $(SED) 's@. /lib/lsb/init-functions@#. /lib/lsb/init-functions@' \ + $(@D)/debian/fake-hwclock.init +endef + +FAKE_HWCLOCK_POST_PATCH_HOOKS += FAKE_HWCLOCK_NO_LSB + +ifeq ($(BR2_PACKAGE_FAKE_HWCLOCK_CRONJOB),y) +define FAKE_HWCLOCK_INSTALL_CRONJOB + $(INSTALL) -D -m 755 $(@D)/debian/fake-hwclock.cron.hourly $(TARGET_DIR)/etc/cron.hourly/fake-hwclock +endef +endif + +define FAKE_HWCLOCK_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/fake-hwclock $(TARGET_DIR)/sbin/fake-hwclock + # Use buildroot buildtime as a seed. + # Not ideal, but better than 1970-01-01 UTC + date -u '+%Y-%m-%d %H:%M:%S' > $(TARGET_DIR)/etc/fake-hwclock.data + $(FAKE_HWCLOCK_INSTALL_CRONJOB) +endef + +# This should run before everything else, so use S00 +define FAKE_HWCLOCK_INSTALL_INIT_SYSV + $(INSTALL) -D -m 755 $(@D)/debian/fake-hwclock.init $(TARGET_DIR)/etc/init.d/S00fake-hwclock + $(INSTALL) -D -m 755 $(@D)/etc/default/fake-hwclock $(TARGET_DIR)/etc/default/fake-hwclock +endef + +$(eval $(generic-package)) From patchwork Fri Aug 10 14:47:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 956272 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.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ESxqZfdB"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41n7JX0qDCz9ryt for ; Sat, 11 Aug 2018 00:47:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CD03C86D8F; Fri, 10 Aug 2018 14:47:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ad16592w0vGd; Fri, 10 Aug 2018 14:47:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 08FEB86CDB; Fri, 10 Aug 2018 14:47:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 38EAD1C1011 for ; Fri, 10 Aug 2018 14:47:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3650787A34 for ; Fri, 10 Aug 2018 14:47:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id horxqFwVpBmO for ; Fri, 10 Aug 2018 14:47:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 946DA87A33 for ; Fri, 10 Aug 2018 14:47:33 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id x5-v6so4507767pgp.7 for ; Fri, 10 Aug 2018 07:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6g/PEfSKqr11yA6vB4TN0UaTFEI3b1lh9cVAMj/kUY8=; b=ESxqZfdBi7M5MsITunlpl4ieRyVnTjODtomNZTaHm9t1/kfaa9K3YXvn298UhA6Jhj wLOWD4XP/cp3Am6EYAVwF462v5h+6Wt93qzECqW9eh0ChrKVbPZX+bG3wW8XDVh8dUpC Ae8METfnSxh2hYQ7iWDMI/ddAQRSDt72up+wm7bu7xCoBDHu2eTamDpyIlzpUfSj9SAL qZ9m71pjAlEjfVnW3t9/mQvPT/MPrs1nP3kLSr0rgXXq4eJBkH1pis95C2ZojO3lsYvC 73wszUIHCGz0Fi1V15Irrk8x4wRpLwXSihedQydDXDjo9sX5FPsdbCV5Uoo87YWnHtAa 5h+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6g/PEfSKqr11yA6vB4TN0UaTFEI3b1lh9cVAMj/kUY8=; b=e8tcH987OPlvr7nlrqso3DfmDlR+M7dcmErCvHR+jGvY5zdEFu1+jRqQXrWwaUmfwo mY4Ycq6IhbBHMRnsLvT6WV5k15ertEtJ774IWN+bcakI/MFGQfcK88R1MWb2EZqK/rJW 9zNCkJj0yZ9mhU6OpKQilOxqpsrWxL/U/1rXk2yxXM32ci/GkH8O2K6A9qaWLAwn8bRR uM6W/2dFwRdplRQf8S4P7LbXH/TIGGW/l+h5G8bzTd7F02A6Tdv5JFPzvabd1DuumTiD QMgC8pJ7zEMRllMDzGxJbK8nzIE4xyNweHDJ2hQCylZ7UbZQWTZOUVO8ANBOPPaUJIuG lB0g== X-Gm-Message-State: AOUpUlG9HqH6SoiAPc3d0nVrJ8yd0304Cwu6KgtldznzwudlT6ymoDxK U3ehlNUfq5+tsTij8TmOVp8jgzFT X-Google-Smtp-Source: AA+uWPxBYIee4ZLeoelw91+ndRiCFdmpLJkh/2jnzNlb9/ghpmx6Gb+l6kevmcBLLHLVpqHLg11NoA== X-Received: by 2002:a63:3246:: with SMTP id y67-v6mr6668077pgy.399.1533912452901; Fri, 10 Aug 2018 07:47:32 -0700 (PDT) Received: from localhost.localdomain ([2600:1012:b011:a55d:750d:4ad1:410a:5fdd]) by smtp.gmail.com with ESMTPSA id j5-v6sm10084222pgp.6.2018.08.10.07.47.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 07:47:32 -0700 (PDT) From: Christopher McCrory To: buildroot@buildroot.org Date: Fri, 10 Aug 2018 07:47:24 -0700 Message-Id: <20180810144724.16347-1-chrismcc@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Buildroot] [PATCH 2/3] perl: add vendorprefix 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: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This adds vendorprefix to configure args Signed-off-by: Christopher McCrory Signed-off-by: Christopher McCrory <chrismcc@gmail.com>


What is the rational of this patch ?

Currently, core modules (ie. built directly with the perl distribution) are installed in /usr/lib/perl5/5.xx.y,
others modules (built by the perl-package infrastructure) are installed in /usr/lib/perl5/site-perl/5.xx.y.
Why adding /usr/lib/perl5/vendor-perl/5.xx.y ?

François

Signed-off-by: Christopher McCrory <chrismcc@gmail.com>


What is the rational of this patch ?

Currently, core modules (ie. built directly with the perl distribution) are installed in /usr/lib/perl5/5.xx.y,
others modules (built by the perl-package infrastructure) are installed in /usr/lib/perl5/site-perl/5.xx.y.
Why adding /usr/lib/perl5/vendor-perl/5.xx.y ?


I'm far from a perl expert.  Short answer is so it is there. 

Longer answer, I'm trying to package ZoneMinder for buildroot.  It is a complicated package to say the least.  It is written in C++, configured with cmake, and perl, and php.  It uses the vendor perl directories.  So when it installs, instead of using TARGET_DIR/usr/lib/perl5/site_perl/... it uses  TARGET_DIR/ .  So all the perl bits end up in the top directory, which is sub optimal.  The ZoneMinder authors provide prebuilt binaries for the major distributions because it is very difficult to successfully compile from source.  Cross compiling with buildroot adds even more challenges.  Adding a vendor directory to perl like most other distributions is the easiest solution by far.

That said, if you don't want to add this change, I would understand.



OK, for configuring vendorprefix.

But a target-finalize hook is not the right place to create a directory (see https://buildroot.org/downloads/manual/manual.html#hooks).

You could create the directory usr/lib/perl5/vendor_perl in the INSTALL_TARGET_CMDS of your package ZoneMinder.

François
 

 

François

--- package/perl/perl.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/perl/perl.mk b/package/perl/perl.mk index b0eea3eff4..19a8f95f7b 100644 --- a/package/perl/perl.mk +++ b/package/perl/perl.mk @@ -48,6 +48,7 @@ PERL_CONF_OPTS = \ --target=$(GNU_TARGET_NAME) \ --target-tools-prefix=$(TARGET_CROSS) \ --prefix=/usr \ + --vendorprefix=/usr \ -Dld="$(TARGET_CC)" \ -Dccflags="$(TARGET_CFLAGS)" \ -Dldflags="$(TARGET_LDFLAGS) -lm" \ @@ -92,6 +93,7 @@ endef HOST_PERL_CONF_OPTS = \ -des \ -Dprefix="$(HOST_DIR)" \ + -Dvendorprefix="$(HOST_DIR)" \ -Dcc="$(HOSTCC)" define HOST_PERL_CONFIGURE_CMDS @@ -111,6 +113,7 @@ $(eval $(generic-package)) $(eval $(host-generic-package)) define PERL_FINALIZE_TARGET + mkdir -p $(TARGET_DIR)/usr/lib/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCHNAME) rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/pod rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE find $(TARGET_DIR)/usr/lib/perl5/ -name 'extralibs.ld' -print0 | xargs -0 rm -f From patchwork Fri Aug 10 14:46:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 956271 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EQDNKB3t"; dkim-atps=neutral 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 41n7J93Nvrz9ryt for ; Sat, 11 Aug 2018 00:47:21 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7756388662; Fri, 10 Aug 2018 14:47:18 +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 8PZusLwITgWe; Fri, 10 Aug 2018 14:47:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5F2E9884B3; Fri, 10 Aug 2018 14:47:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BCBBE1C1011 for ; Fri, 10 Aug 2018 14:47:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BA15186D03 for ; Fri, 10 Aug 2018 14:47:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wgN4ExIuZ6Hz for ; Fri, 10 Aug 2018 14:47:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3246086CDB for ; Fri, 10 Aug 2018 14:47:13 +0000 (UTC) Received: by mail-pg1-f180.google.com with SMTP id a14-v6so4497787pgv.10 for ; Fri, 10 Aug 2018 07:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7KytJGJIg9IffCh69BIM3GpN0ifBS/oah3+neLSddNM=; b=EQDNKB3tOuRhodY9U09HJewJvrQIFEqBT8ch35ADe8IXTum9z0lLIxzrl5jQTu5+CN q+/r1yscyXBj4CEz+0jTT3ItwX6g5O+sJXTHgFvUHYfzMa+BLFhDn3qrFy8Qb8yoYrBN GVSYH/lzIWg6Fil5+HMdEBf5AR95FLczXx7g+Kn6Rz6OpLN9hY9VojKrUlarXfwmurO4 BUT7VUCL5veFC4iQKR9WXiWv3G6bzkeLWZ677099YNs9KkPmDlJzOiG2/u5zJoUc3HWY Y9TEu1Bl5mOk37DHfNkS6zIvw/H4gV/IRNcj4he6hxSzFz3Vduy6aQFg9sIgqL+LwoKy L26A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7KytJGJIg9IffCh69BIM3GpN0ifBS/oah3+neLSddNM=; b=feQlJORX05zHhCZ8bloToa9OdTK97JrI+Y/LLPFYHQ0/k5eg+O8acTrONaeAVmogn8 jHlgXAPZxfoJy3nORjQdLQUkChyQv2BnhCFLB6e/LJWe2RP6V7ljI0Kcwq51njUmEvVc ZPl+3z7hQycs/DK/ZjznNOE0JBy0l79vouTyYufbpsBD0MncW+wacEW2bXFPBYzmziOD /xU2kD9RKX556ivUfi+GoQnOwrQeQKZGABLBq61+26bRLASdOlsUoGV2GVJj53n+4PtT p5ca/qTpW/xnHpkVgrCWezKNjH1URHGEnduzj3cDSYcUuhSDSEEnvgKRcUedNCzA8MyV 4JJA== X-Gm-Message-State: AOUpUlG+e0wzshQYOdrsmN88d7Rw+qn40ASQDURX4w7s7Rh1lpW+NzWt EzHHbKRt0b9f1Gb0Qmh+QpAwvucy X-Google-Smtp-Source: AA+uWPxgL3rGch3tK3+a4BVf0KSqSS605X3agcVKsCtO3hd1+CFaRF3OPrCXaF4MavMjJrO7GD5TtQ== X-Received: by 2002:a63:1d3:: with SMTP id 202-v6mr6747939pgb.136.1533912432545; Fri, 10 Aug 2018 07:47:12 -0700 (PDT) Received: from localhost.localdomain ([2600:1012:b011:a55d:750d:4ad1:410a:5fdd]) by smtp.gmail.com with ESMTPSA id q25-v6sm22479617pfk.96.2018.08.10.07.47.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 07:47:12 -0700 (PDT) From: Christopher McCrory To: buildroot@buildroot.org Date: Fri, 10 Aug 2018 07:46:35 -0700 Message-Id: <20180810144635.16182-2-chrismcc@gmail.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180810144635.16182-1-chrismcc@gmail.com> References: <20180810144635.16182-1-chrismcc@gmail.com> Subject: [Buildroot] [PATCH 3/3] perl-cgi: 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: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Christopher McCrory Acked-by: Francois Perrad --- package/Config.in | 1 + package/perl-cgi/Config.in | 11 +++++++++++ package/perl-cgi/perl-cgi.hash | 6 ++++++ package/perl-cgi/perl-cgi.mk | 14 ++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/perl-cgi/Config.in create mode 100644 package/perl-cgi/perl-cgi.hash create mode 100644 package/perl-cgi/perl-cgi.mk diff --git a/package/Config.in b/package/Config.in index 42c61c242e..9704aba846 100644 --- a/package/Config.in +++ b/package/Config.in @@ -665,6 +665,7 @@ endif source "package/perl/Config.in" if BR2_PACKAGE_PERL menu "Perl libraries/modules" + source "package/perl-cgi/Config.in" source "package/perl-convert-asn1/Config.in" source "package/perl-crypt-blowfish/Config.in" source "package/perl-crypt-cbc/Config.in" diff --git a/package/perl-cgi/Config.in b/package/perl-cgi/Config.in new file mode 100644 index 0000000000..a054ed7929 --- /dev/null +++ b/package/perl-cgi/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_PERL_CGI + bool "perl-cgi" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PERL_HTML_PARSER + help + Handle Common Gateway Interface requests and responses + + https://metacpan.org/module/CGI + +comment "perl-cgi needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/perl-cgi/perl-cgi.hash b/package/perl-cgi/perl-cgi.hash new file mode 100644 index 0000000000..a65b8e5446 --- /dev/null +++ b/package/perl-cgi/perl-cgi.hash @@ -0,0 +1,6 @@ +# retrieved by scancpan from http://cpan.metacpan.org/ +md5 0aeb8563d533e7f83724ed068b5bfc37 CGI-4.38.tar.gz +sha256 8c58f4a529bb92a914b22b7e64c5e31185c9854a4070a6dfad44fe5cc248e7d4 CGI-4.38.tar.gz + +# computed by scancpan +sha256 c7cae89f03a970e90443b93cbf4b65d287ed20572e5d81543589c4b45c80fad8 LICENSE diff --git a/package/perl-cgi/perl-cgi.mk b/package/perl-cgi/perl-cgi.mk new file mode 100644 index 0000000000..b8115de6ad --- /dev/null +++ b/package/perl-cgi/perl-cgi.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# perl-cgi +# +################################################################################ + +PERL_CGI_VERSION = 4.38 +PERL_CGI_SOURCE = CGI-$(PERL_CGI_VERSION).tar.gz +PERL_CGI_SITE = $(BR2_CPAN_MIRROR)/authors/id/L/LE/LEEJO +PERL_CGI_DEPENDENCIES = perl-html-parser +PERL_CGI_LICENSE = Artistic or GPL-1.0+ +PERL_CGI_LICENSE_FILES = LICENSE + +$(eval $(perl-package))