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 5D102DC0285 for ; Thu, 26 Nov 2015 15:31:42 +0000 (UTC) Received: from anomx-ro.ovpn.to (anomx.ovpn.to [93.115.92.252]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 8FEAEDC0096 for ; Thu, 26 Nov 2015 15:31:40 +0000 (UTC) Received: from anomx.ovpn.to (unknown [IPv6:fd48:8bea:68a5:aaaa::aa01]) by anomx-ro.ovpn.to (Postfix) with ESMTPS id 14C481F8AE for ; Thu, 26 Nov 2015 16:31:38 +0100 (CET) Received: from localhost (anomx.ovpn.to [127.0.0.1]) by anomx.ovpn.to (Postfix) with ESMTP id 00C10C020E for ; Thu, 26 Nov 2015 16:31:38 +0100 (CET) Received: from anomx.ovpn.to ([127.0.0.1]) by localhost (anomx.ovpn.to [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oUwAFJ7YbKZ9 for ; Thu, 26 Nov 2015 16:31:34 +0100 (CET) From: sillysausage To: alpine-aports@lists.alpinelinux.org Cc: sillysausage Subject: [alpine-aports] [PATCH] Added user and group radvd.pre-install and copied sample to /etc/radvd.conf Date: Fri, 27 Nov 2015 02:01:06 +1030 Message-Id: <1448551866-21922-1-git-send-email-sillysausage@privatedemail.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/radvd/APKBUILD | 8 ++++++-- main/radvd/radvd.pre-install | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 main/radvd/radvd.pre-install diff --git a/main/radvd/APKBUILD b/main/radvd/APKBUILD index e7dd838..b187670 100644 --- a/main/radvd/APKBUILD +++ b/main/radvd/APKBUILD @@ -2,15 +2,17 @@ # Maintainer: Natanael Copa pkgname=radvd pkgver=2.11 -pkgrel=0 +pkgrel=1 pkgdesc="A Router Advertisement daemon" +pkgusers="radvd" +pkggroups="radvd" url="http://www.litech.org/radvd/" arch="all" license="BSD with advertising" depends="" depends_dev="" makedepends="flex bison libdaemon-dev linux-headers" -install="" +install="$pkgname.pre-install" subpackages="$pkgname-doc" source="http://www.litech.org/radvd/dist/radvd-$pkgver.tar.gz radvd-1.1-gnu-source.patch @@ -52,6 +54,8 @@ package() { || return 1 install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd \ || return 1 + install -Dm400 -o radvd -g radvd "$_builddir"/radvd.conf.example "$pkgdir"/etc/radvd.conf \ + || return 1 } md5sums="57fc6021f6a5e5472e455937685472a3 radvd-2.11.tar.gz diff --git a/main/radvd/radvd.pre-install b/main/radvd/radvd.pre-install new file mode 100644 index 0000000..cc06c7d --- /dev/null +++ b/main/radvd/radvd.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh +addgroup -S radvd 2>/dev/null +adduser -S -s /sbin/nologin -D -H -G radvd \ + -g "Router advertisement (radvd) user" radvd 2>/dev/null +exit 0 -- 2.4.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---