From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01668138334 for ; Thu, 30 May 2019 12:53:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC8D3E09A5; Thu, 30 May 2019 12:50:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7EE5CE09A1 for ; Thu, 30 May 2019 12:50:57 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id E7DB234533E; Thu, 30 May 2019 12:50:55 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 8/9] user/ftp: Add 'ftp' user (UID 21) Date: Thu, 30 May 2019 14:50:38 +0200 Message-Id: <20190530125039.15591-9-mgorny@gentoo.org> X-Mailer: git-send-email 2.22.0.rc1 In-Reply-To: <20190530125039.15591-1-mgorny@gentoo.org> References: <20190530125039.15591-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: df1b564b-1ab2-4a55-874a-f17461fad163 X-Archives-Hash: f7e224ecbd97742501becb5ba66b82c3 Signed-off-by: Michał Górny --- profiles/categories | 1 + user/ftp/ftp-0.ebuild | 19 +++++++++++++++++++ user/ftp/metadata.xml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 user/ftp/ftp-0.ebuild create mode 100644 user/ftp/metadata.xml diff --git a/profiles/categories b/profiles/categories index acbade9601ea..db35420df398 100644 --- a/profiles/categories +++ b/profiles/categories @@ -148,6 +148,7 @@ sys-kernel sys-libs sys-power sys-process +user virtual www-apache www-apps diff --git a/user/ftp/ftp-0.ebuild b/user/ftp/ftp-0.ebuild new file mode 100644 index 000000000000..f02b52e12deb --- /dev/null +++ b/user/ftp/ftp-0.ebuild @@ -0,0 +1,19 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit sys-user + +SYS_USER_ID=21 +SYS_USER_HOME=/home/ftp +SYS_USER_GROUPS=( ftp ) + +sys-user_add_deps + +pkg_preinst() { + sys-user_pkg_preinst + + # override home directory ownership + fowners root:ftp "${SYS_USER_HOME}" +} diff --git a/user/ftp/metadata.xml b/user/ftp/metadata.xml new file mode 100644 index 000000000000..7a38bb900964 --- /dev/null +++ b/user/ftp/metadata.xml @@ -0,0 +1,5 @@ + + + + + -- 2.22.0.rc1