From patchwork Fri Jun 19 14:57:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1313015 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=WEA4ZA6q; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49pMP03YLpz9sfN for ; Sat, 20 Jun 2020 00:57:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DBA878960C; Fri, 19 Jun 2020 14:57:53 +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 VWqpCe14WIbX; Fri, 19 Jun 2020 14:57:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 30D23895ED; Fri, 19 Jun 2020 14:57:51 +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 E07CE1BF860 for ; Fri, 19 Jun 2020 14:57:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DA2792283C for ; Fri, 19 Jun 2020 14:57: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 84QI-8NNhFRB for ; Fri, 19 Jun 2020 14:57:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by silver.osuosl.org (Postfix) with ESMTPS id E492A2040E for ; Fri, 19 Jun 2020 14:57:29 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id l11so10015143wru.0 for ; Fri, 19 Jun 2020 07:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qM149OxufJaKATEgeDB+s0L29mOQVlDyX+9aMxqyjUQ=; b=WEA4ZA6qLmyydsXPZFVZcnfvVNK7EsJmQMm75KUmdxowAiGwd/mgLdqN0WU2HpsWzi lP1692+CQOsfnOQIRgaufZ7g9s3amjZzUknFAQfLZTW2NtYfq9ezMzC5OrTfSSY0zUia 4eY+hDsLZ37G+LRXKU+NCbXVMT7gVBeG2lhPk= 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:mime-version:content-transfer-encoding; bh=qM149OxufJaKATEgeDB+s0L29mOQVlDyX+9aMxqyjUQ=; b=WfMDxST9V2K6flGnkAi87JJgZ1OpLr3EBFSPeWsxkwFqPg4QTKGU4KH44iJuMgoJgM C1gzGKxao0JUpPVEFm0lRl4KM2fb2Ieg+bOCdxxxqFtiqiXmozfaY6PH6KFf6LTsjlRi Nt7jHOTpG3Y6ogOrvW0LpNS+Bm5+iItzWK6A14YJt+J5VeHDZbQnFIZhSv5NQz8siH64 52rgUeEjj8wF1J5r2tUFfjA1VLDwttJ3qrNleHOcUxiiGFe2lf70pgpfkUQPQVUWJ1qO 9HP6uRjFKJSk3/QjAIgDIEgFzlzvLC6WMPwoU52DrkTwdQIH6Lwqpd6dmi0O7Lekz134 QDsA== X-Gm-Message-State: AOAM531ukbCOnrDACeKwMKc4lXOhKp8/Ug8OhApAcyZfErn1vFDzalUJ 3YnCZA7MDEJCvHO15Y4LqheEmOPGznK1EA== X-Google-Smtp-Source: ABdhPJzK8ZP+2mGcCPN+tj/yyiSNpe7kgU8YFVRSGaUAnt0+RqeoKo7MnXs21x1GmGoKH98wHn6MMQ== X-Received: by 2002:a5d:49c4:: with SMTP id t4mr4408638wrs.127.1592578647894; Fri, 19 Jun 2020 07:57:27 -0700 (PDT) Received: from localhost.localdomain (host194055151123.static.fidoka.tech. [194.55.151.123]) by smtp.gmail.com with ESMTPSA id a16sm7302165wrx.8.2020.06.19.07.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 07:57:27 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 19 Jun 2020 16:57:16 +0200 Message-Id: <20200619145719.2352019-5-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200619145719.2352019-1-angelo@amarulasolutions.com> References: <20200619145719.2352019-1-angelo@amarulasolutions.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 4/7] package/cups: Add lp user as default cups user X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch is a backport from the rockchip tree. Author: Jeffy Chen Date: Tue Nov 13 18:25:34 2018 +0800 package: cups: Add lp user as default cups user Change-Id: Ic7434fe0a7b41b86b5b8b097fa29dd9718e29aa5 Signed-off-by: Jeffy Chen but fixes the CUPS_USERS table. Signed-off-by: Angelo Compagnucci --- package/cups/cups.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/cups/cups.mk b/package/cups/cups.mk index 461e0d9143..40fe210c94 100644 --- a/package/cups/cups.mk +++ b/package/cups/cups.mk @@ -22,6 +22,9 @@ CUPS_CONF_OPTS = \ --disable-gssapi \ --disable-pam \ --libdir=/usr/lib \ + --with-cups-user=lp \ + --with-cups-group=lp \ + --with-system-groups="lpadmin sys root" \ --with-rcdir=no CUPS_CONFIG_SCRIPTS = cups-config CUPS_DEPENDENCIES = \ @@ -78,4 +81,9 @@ define CUPS_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S81cupsd endef +define CUPS_USERS + lp -1 lp -1 * /var/spool/lpd /bin/false - lp + - - lpadmin -1 * - - - Printers admin group. +endef + $(eval $(autotools-package))