diff options
author | sillysausage <sillysausage@privatedemail.net> | 2015-11-27 02:01:06 +1030 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-07 15:24:35 +0000 |
commit | 0c16be5d690052aa3d4355a9cb6c56c6c6a9ac0e (patch) | |
tree | f7a4e59629f72ab4f2e726bac74044fcdaab1334 /main/radvd | |
parent | 1f09ae0b518f41f4228f641522da99e12e4142a2 (diff) | |
download | aports-0c16be5d690052aa3d4355a9cb6c56c6c6a9ac0e.tar.bz2 aports-0c16be5d690052aa3d4355a9cb6c56c6c6a9ac0e.tar.xz |
main/radvd: Added user and group radvd.pre-install and install sample
Diffstat (limited to 'main/radvd')
-rw-r--r-- | main/radvd/APKBUILD | 8 | ||||
-rw-r--r-- | main/radvd/radvd.pre-install | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/main/radvd/APKBUILD b/main/radvd/APKBUILD index e7dd83876b..83a59e221e 100644 --- a/main/radvd/APKBUILD +++ b/main/radvd/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=radvd pkgver=2.11 -pkgrel=0 +pkgrel=1 pkgdesc="A Router Advertisement daemon" url="http://www.litech.org/radvd/" arch="all" @@ -10,7 +10,7 @@ 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 @@ -46,12 +46,12 @@ build() { package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 - mkdir -p "$pkgdir"/var/run/radvd - install -Dm755 "$srcdir"/radvd.initd "$pkgdir"/etc/init.d/radvd \ || return 1 install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd \ || return 1 + install -Dm644 radvd.conf.example \ + "$pkgdir"/usr/share/doc/radvd/radvd.conf.example || 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 0000000000..cc06c7d3e0 --- /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 |