From patchwork Wed Sep 25 19:32:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clayton Shotwell X-Patchwork-Id: 277984 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 9911B2C0096 for ; Thu, 26 Sep 2013 05:34:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8BD1C31C93; Wed, 25 Sep 2013 19:34:31 +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 apijbrY+8ykp; Wed, 25 Sep 2013 19:34:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4ECF03209B; Wed, 25 Sep 2013 19:33:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 108D21C1007 for ; Wed, 25 Sep 2013 19:33:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0DCC08AA02 for ; Wed, 25 Sep 2013 19:33:06 +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 xxWRZ6hWDWfc for ; Wed, 25 Sep 2013 19:33:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com [205.175.225.241]) by whitealder.osuosl.org (Postfix) with ESMTPS id 71D278A9CD for ; Wed, 25 Sep 2013 19:33:05 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp01.rockwellcollins.com) ([131.198.63.132]) by mail-virt.rockwellcollins.com with ESMTP; 25 Sep 2013 14:33:05 -0500 Received: from nyx ([131.198.63.11]) by collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013092514330449-4250853 ; Wed, 25 Sep 2013 14:33:04 -0500 From: Clayton Shotwell To: buildroot@busybox.net Date: Wed, 25 Sep 2013 14:32:45 -0500 Message-Id: <1380137571-688-11-git-send-email-clshotwe@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1380137571-688-1-git-send-email-clshotwe@rockwellcollins.com> References: <1380137571-688-1-git-send-email-clshotwe@rockwellcollins.com> X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 09/25/2013 02:33:04 PM, Serialize by Router on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 09/25/2013 02:33:05 PM, Serialize complete at 09/25/2013 02:33:05 PM X-TNEFEvaluated: 1 Cc: Clayton Shotwell Subject: [Buildroot] [PATCH v3 10/16] libcgroup: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Clayton Shotwell --- Changes v2 -> v3: - No changes. Changes v1 -> v2: - General cleanup to the mk file to conform to the standard format. - Corrected the license version and license file to be correct. - Cleaned up the configure options to enable options for static libraries and linux-pam if they are selected in the configuration. package/Config.in | 1 + package/libcgroup/Config.in | 4 ++++ package/libcgroup/libcgroup.mk | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 0 deletions(-) create mode 100644 package/libcgroup/Config.in create mode 100644 package/libcgroup/libcgroup.mk diff --git a/package/Config.in b/package/Config.in index a85cbdd..0a18d8d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -659,6 +659,7 @@ source "package/libatomic_ops/Config.in" source "package/libbsd/Config.in" source "package/libcap/Config.in" source "package/libcap-ng/Config.in" +source "package/libcgroup/Config.in" source "package/libdaemon/Config.in" source "package/libelf/Config.in" source "package/libevent/Config.in" diff --git a/package/libcgroup/Config.in b/package/libcgroup/Config.in new file mode 100644 index 0000000..17d2db2 --- /dev/null +++ b/package/libcgroup/Config.in @@ -0,0 +1,4 @@ +config BR2_PACKAGE_LIBCGROUP + bool "libcgroup" + help + libcgroup is a library that abstracts the control group file system in Linux. diff --git a/package/libcgroup/libcgroup.mk b/package/libcgroup/libcgroup.mk new file mode 100644 index 0000000..06f1e60 --- /dev/null +++ b/package/libcgroup/libcgroup.mk @@ -0,0 +1,38 @@ +################################################################################ +# +# libcgroup +# +################################################################################ + +LIBCGROUP_VERSION = 0.38 +LIBCGROUP_SOURCE = libcgroup-$(LIBCGROUP_VERSION).tar.bz2 +LIBCGROUP_SITE = http://sourceforge.net/projects/libcg/files/latest/download +LIBCGROUP_LICENSE = LGPLv2.1 +LIBCGROUP_LICENSE_FILES = COPYING + +LIBCGROUP_INSTALL_STAGING = YES + +# Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h +# large file support. See https://bugzilla.redhat.com/show_bug.cgi?id=574992 +# for more information. +LIBCGROUP_CONF_ENV = \ + CXXFLAGS+="-U_FILE_OFFSET_BITS" \ + CFLAGS+="-U_FILE_OFFSET_BITS" + +LIBCGROUP_CONF_OPT = \ + --disable-tools \ + --disable-daemon \ + --disable-initscript-install + +ifeq ($(BR2_PREFER_STATIC_LIB),y) + LIBCGROUP_CONF_OPT += --enable-static --disable-shared +endif + +ifeq ($(BR2_PACKAGE_LINUX_PAM),y) + LIBCGROUP_DEPENDENCIES += linux-pam + LIBCGROUP_CONF_OPT += --enable-pam +else + LIBCGROUP_CONF_OPT += --disable-pam +endif + +$(eval $(autotools-package))