From patchwork Sun Oct 4 13:31:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 526148 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 588131402A8 for ; Mon, 5 Oct 2015 00:32:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=VQDIXZvY; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 504EA8D578; Sun, 4 Oct 2015 13:32:01 +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 KZ+Apsx4fSvJ; Sun, 4 Oct 2015 13:31:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 99C4F8D2DA; Sun, 4 Oct 2015 13:31:59 +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 4B00E1C1054 for ; Sun, 4 Oct 2015 13:31:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 133318D25A for ; Sun, 4 Oct 2015 13:31:57 +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 PpzfKC5nIc7g for ; Sun, 4 Oct 2015 13:31:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 540C98D2B3 for ; Sun, 4 Oct 2015 13:31:56 +0000 (UTC) Received: by wicge5 with SMTP id ge5so87016396wic.0 for ; Sun, 04 Oct 2015 06:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DlyX/weY4mLi5Ine/75xO8WJxfRqNtlSHDeaOobvb9g=; b=VQDIXZvYP2oaJUGr8FBGeo7RTGgDFFXKpxs4Wg+lBMylHO5Cs79lQ35WzKlaqIol4e s0TwXRCv8TYamkY+cIXwnzxGywJOiQP5EcqPP8ize9QRImfnr9iv1x8lyI2uUNy/vsKn K72FLIV9wdfHJDcEZBAgWyJoboKBCnqTB8wq+DAF8NEVRebzJRp0gxECQSEDQftd38c5 /ExGOYVHRYYC2bkoha62LkUq/BV4wWdQLQhllQXcj5mFIKzLFFHwc3TAh4bjfWv3hq99 z0Da4bFQD4kp39oYvmfyefclWTNr0GE9F6QyQA/yPg88xofIQ72eAEZ/fSEJP/HfMUEj qSfQ== X-Received: by 10.194.77.77 with SMTP id q13mr29476314wjw.79.1443965514986; Sun, 04 Oct 2015 06:31:54 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-204-92.w80-11.abo.wanadoo.fr. [80.11.219.92]) by smtp.gmail.com with ESMTPSA id lj12sm9349542wic.0.2015.10.04.06.31.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Oct 2015 06:31:53 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sun, 4 Oct 2015 15:31:33 +0200 Message-Id: <1443965495-12774-1-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.5.3 Subject: [Buildroot] [PATCH 1/3] proftpd: Add ftp user creation X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" In order to remove '/home/ftp' and the ftp user from the 'skeleton' package, we need to add the creation of the ftp users to the package so it still work out of the box (with an anonymous user). Signed-off-by Maxime Hadjinlian Reviewed-by: Vicente Olivert Riera --- package/proftpd/proftpd.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk index dec243d..d040b8c 100644 --- a/package/proftpd/proftpd.mk +++ b/package/proftpd/proftpd.mk @@ -51,6 +51,10 @@ define PROFTPD_INSTALL_TARGET_CMDS $(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf endef +define PROFTPD_USERS + ftp -1 ftp -1 * /home/ftp - - Anonymous FTP User +endef + define PROFTPD_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d/S50proftpd endef