X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 11F73DCBA2C for ; Mon, 26 Oct 2015 13:50:26 +0000 (UTC) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id B40EADC68D4 for ; Mon, 26 Oct 2015 13:50:25 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so117055443wic.0 for ; Mon, 26 Oct 2015 06:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kampka_net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JQBhbHr7n4vi8Hv8BB66rPhLwMtXSJPwC4dq2iwG1Vc=; b=xex8D1HMoOawO9nbZLy/S6YLwv8bE9z3ozlByeKF27m228JPuK3eEIBBhEyHcMK1Zy pP2B9j2rG0FsWG7rmcVdet7aQQqTh55PsMHgM7dk9MTkG0/mylNjAbC5sEkUwpOJLSEs Ze48Qk7Iv03fy9TgMALobHTL7BdwCx1FsFfdwD7S9p4fD0XGl5LFdDuaBTB56oTTCbyB 9TS6TuffrHRhlsKOSbirWTVTOIQUDo4cF33y0OKo8CwPI94C117AGKE8w1mR0iXAzCo7 sdKQ7MsOIhSqkpBjbfXezaHq1McMHT1wqxSeWMXUyOTLKyOEVQ1Fl+mfC2qKCTMu/fP7 LruA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JQBhbHr7n4vi8Hv8BB66rPhLwMtXSJPwC4dq2iwG1Vc=; b=OKuA8D+LPYDi+882Yzsh7WWbJ0B4oiPNuTwMMyMgDNYUNv9S+1aTQuJEH0oJKLk/Na Eihkk2OAXHaEv9CfjrRC/vKvC3mu78xuj4qgd5hx86hTp5DjHTlP6NTW4tLSGtOhj6Pl fH/o5yA4fhnBwr5E0wuTsTmelL1zoKlWcwkps8PuhWqKz/yhkJYgTSd7YoY2xWLk43O7 Yfw1V44Ye3+med1KFy5r9OmHhJozdqDVYpZBp4TtEVKgiEdv44QD+wjggyTX3OLaRY3V BEAasFH5gofgBbpkMzHVJl1S33dT4lSAMdXBTodKcp2S97r6KN4FVbr9PxmQwtfDtovd 61Lw== X-Gm-Message-State: ALoCoQl/dKZLbTbFyvxuwPRqmNWJoX/0nqHGcKG29zqtRNLhNHaH7v0Uqb8fAp8KqWoPJXUuumS8 X-Received: by 10.180.189.5 with SMTP id ge5mr19699780wic.85.1445867423826; Mon, 26 Oct 2015 06:50:23 -0700 (PDT) Received: from localhost (pD9579E77.dip0.t-ipconnect.de. [217.87.158.119]) by smtp.gmail.com with ESMTPSA id b1sm25555244wjx.12.2015.10.26.06.50.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Oct 2015 06:50:22 -0700 (PDT) From: Christian Kampka To: alpine-aports@lists.alpinelinux.org Cc: Christian Kampka Subject: [alpine-aports] [PATCH] main/busybox: split package into core and suid subpackages Date: Mon, 26 Oct 2015 14:48:24 +0100 Message-Id: <1445867304-19154-2-git-send-email-christian@kampka.net> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1445867304-19154-1-git-send-email-christian@kampka.net> References: <20151026093625.1c1f54bb@ncopa-desktop.alpinelinux.org> <1445867304-19154-1-git-send-email-christian@kampka.net> X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- main/alpine-base/APKBUILD | 2 +- main/busybox/APKBUILD | 18 +++++++++++++----- main/busybox/busybox.trigger | 3 +-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/main/alpine-base/APKBUILD b/main/alpine-base/APKBUILD index 834d763..cb55dd3 100644 --- a/main/alpine-base/APKBUILD +++ b/main/alpine-base/APKBUILD @@ -7,7 +7,7 @@ pkgdesc="Meta package for minimal alpine base" url="http://alpinelinux.org" arch="noarch" license="GPL" -depends="alpine-baselayout alpine-conf apk-tools busybox busybox-initscripts +depends="alpine-baselayout alpine-conf apk-tools busybox busybox-suid busybox-initscripts openrc libc-utils alpine-keys" makedepends="" install="" diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD index c548540..bd0780d 100644 --- a/main/busybox/APKBUILD +++ b/main/busybox/APKBUILD @@ -2,15 +2,13 @@ # Maintainer: Natanael Copa pkgname=busybox pkgver=1.23.2 -pkgrel=9 +pkgrel=10 pkgdesc="Size optimized toolbox of many common UNIX utilities" url=http://busybox.net arch="all" license="GPL2" -depends= makedepends="linux-headers" -install="$pkgname.post-install $pkgname.post-upgrade" -subpackages="$pkgname-static" +subpackages="$pkgname-static $pkgname-suid" options="suid" triggers="busybox.trigger=/bin:/usr/bin:/sbin:/usr/sbin:/lib/modules/*" source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2 @@ -41,6 +39,7 @@ _sdir="$srcdir"/$pkgname-$pkgver _staticdir="$srcdir"/build-static _dyndir="$srcdir"/build-dynamic _config="$srcdir"/busyboxconfig + prepare() { mkdir -p "$_staticdir" "$_dyndir" #patches @@ -92,7 +91,6 @@ package() { "$pkgdir"/var/cache/misc "$pkgdir"/bin "$pkgdir"/sbin chmod 1777 "$pkgdir"/tmp install -m755 busybox "$pkgdir"/bin/busybox || return 1 - install -m4111 bbsuid "$pkgdir"/bin/bbsuid || return 1 # we need /bin/sh to be able to execute post-install ln -s /bin/busybox "$pkgdir"/bin/sh @@ -114,6 +112,16 @@ package() { "$pkgdir"/etc/udhcpd.conf || return 1 } +suid() { + pkgdesc="suid binaries of Busybox" + depends="${pkgname}" + triggers="busybox-suid.trigger=/bin:/usr/bin:/sbin:/usr/sbin" + + cd "$_dyndir" + mkdir -p "$subpkgdir"/bin + install -m4111 bbsuid "$subpkgdir"/bin/bbsuid || return 1 +} + static() { pkgdesc="Statically linked Busybox" mkdir -p "$subpkgdir"/bin diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger index 39cc6b4..c9f9059 100644 --- a/main/busybox/busybox.trigger +++ b/main/busybox/busybox.trigger @@ -14,7 +14,6 @@ for i in "$@"; do done if [ -n "$do_bb_install" ]; then - /bin/bbsuid --install + [ -e /bin/bbsuid ] && /bin/bbsuid --install /bin/busybox --install -s fi - -- 2.6.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---