From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +JM+Eh5idmOD+wAAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 17:32:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6FUtEh5idmMZ/QAA9RJhRA (envelope-from ) for ; Thu, 17 Nov 2022 17:32:30 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 224F216B3B for ; Thu, 17 Nov 2022 17:32:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovhoC-0002xr-2x; Thu, 17 Nov 2022 11:32:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovho2-0002wd-Gy for guix-patches@gnu.org; Thu, 17 Nov 2022 11:32:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovho1-0002gN-UI for guix-patches@gnu.org; Thu, 17 Nov 2022 11:32:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovho1-0003hI-Qh for guix-patches@gnu.org; Thu, 17 Nov 2022 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59336] [PATCH 2/6] gnu: Add apparmor. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Nov 2022 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59336 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59336@debbugs.gnu.org Received: via spool by 59336-submit@debbugs.gnu.org id=B59336.166870268514167 (code B ref 59336); Thu, 17 Nov 2022 16:32:01 +0000 Received: (at 59336) by debbugs.gnu.org; 17 Nov 2022 16:31:25 +0000 Received: from localhost ([127.0.0.1]:34116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhnQ-0003gQ-Vg for submit@debbugs.gnu.org; Thu, 17 Nov 2022 11:31:25 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:56414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhnP-0003gE-Om for 59336@debbugs.gnu.org; Thu, 17 Nov 2022 11:31:24 -0500 Date: Fri, 18 Nov 2022 00:30:48 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1668702678; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gszaZmmBEUArVXGIjagIh9mJqQGqecSnWkXC4+lm5Pc=; b=rkaayiTDuUyZvMkpZXqnfHNU5wChhMkSXdRCtPajWjP5C6jwkYEubOj3/l5/CmtdWiCsgz urD9Flb1wTq1t61mGLy9LvzxDxbLkDTJvG63dwnyxi9dmP957vWapoXHK3bFcp8i/FFsmO XlZQX9S36LbVkgNTUrR3DCE6CAoXNisw15h3wZ4qEHFBzfVaBu56/nKt8Z02hWAvPN1OHP q+6CUR6tGAa/6ZKESB3srmUSP2PQFhI5jH8ydic9ONST7Zab6iik38PATTSKyPW494/Kuc gwbEYUMbI6vCMGywmxDiHj1d0zNQ5TFCrG0OdBKp84XIuqCeDSNWS74FYFE82Q== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668702750; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gszaZmmBEUArVXGIjagIh9mJqQGqecSnWkXC4+lm5Pc=; b=C34TVx96j7zOpVXBe1nxvbUqHMfiuAskKTq0q9lIUY2s8ilfbzqhNLNHWHZWpIx2fwT59s utJurF/txTauVW1mDe6F9kbGNd1Z808GujgQY6HHX0XnjT5pT+n2tpacrFNNFe42+dn4xX 9w9uxFWfYDR5s6o4ztKFTBUzn6647olK4vJLVAuAhMQ34b2jZiTF1HDGMOmdVPmQzQ+RFG Rs9eu4LPaVjnIyAEAnOSJN87sB8jAOLO5dVTIj0zydkn0r4zHkcEuxC5ZeYBuByFFGFpbC qyb3L0g4IcCjMF12c6K0dyg0YcULoxOjp8BImGWA5/dakWMDHNnNcw8228SqrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668702750; a=rsa-sha256; cv=none; b=kU7UC4ecpsi+XLVdYKaP9Ayy5JF/v0J4tU/QDXpGtMLOm46CGBH9Cw4Mm1u4vQGlzLn0ur QPAHRjzx8cMXe7srvbMdWAuCL1Npdnlwmyskoy0/n/o9npEl5xeQPLzXJ9fbS9gyFSh/Ba TZHVBEKWBvZddEXAhT+5qYTbtN+G642++9pkLWXuhuxoBXVbhaIO/u1AO3h8l7kmapkXbW RhyhGQXBUyxp3v6WEVOAXZ8r6zc7SGceMmfVrTjVzcHbnBUytZ7qjWqc+m6crqYuOt1uQu k1w/Li4v3ydCVnfp1k2pP4s7GjcgSppvTFx+lp8Kd82NWwAd2vM7Zw0IoXwmfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=rkaayiTD; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=rkaayiTD; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 224F216B3B X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: gfu934N69zZk * gnu/packages/apparmor.scm (apparmor): New variable. --- gnu/packages/apparmor.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/apparmor.scm b/gnu/packages/apparmor.scm index 8cb4c7e94d..742414e18b 100644 --- a/gnu/packages/apparmor.scm +++ b/gnu/packages/apparmor.scm @@ -88,3 +88,40 @@ (define-public libapparmor the mainline Linux kernel since version 2.6.36 and its development has been supported by Canonical since 2009.") (license license:lgpl2.1))) + +(define-public apparmor + (package + (inherit libapparmor) + (name "apparmor") + (arguments + (list #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "DESTDIR=" #$output) + "USE_SYSTEM=1") + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-makefile-paths + (lambda _ + (for-each patch-shebang + '("common/list_af_names.sh" + "common/list_capabilities.sh")) + (for-each (lambda (file) + (substitute* file + (("/usr/bin/\\<(pod2man|pod2html|prove)\\>" all cmd) cmd) + (("/usr") ""))) + '("common/Make-po.rules" + "common/Make.rules" + "binutils/Makefile" + "parser/Makefile" + "parser/tst/Makefile" + "profiles/Makefile" + "utils/Makefile" + "utils/python-tools-setup.py" + "utils/vim/Makefile")))) + (add-after 'fix-makefile-paths 'change-directory + (lambda _ + (chdir "binutils")))))) + (native-inputs (list gettext-minimal perl which)) + (inputs (list libapparmor)) + (license license:gpl2))) -- 2.38.1