mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 08:42:11 +01:00
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=radvd
|
|
pkgver=1.8
|
|
pkgrel=0
|
|
pkgdesc="A Router Advertisement daemon"
|
|
url="http://www.litech.org/radvd/"
|
|
arch="all"
|
|
license="BSD with advertising"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="flex bison"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="http://www.litech.org/radvd/dist/radvd-$pkgver.tar.gz
|
|
radvd-1.1-gnu-source.patch
|
|
radvd.initd
|
|
radvd.confd
|
|
"
|
|
|
|
_builddir="$srcdir"/radvd-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc/ \
|
|
--with-pidfile=/var/run/radvd/radvd.pid \
|
|
|| return 1
|
|
# work around parallel build issue
|
|
make gram.h && make || return 1
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
md5sums="50b4cfbdfa04d629d80437fd1d9e2aef radvd-1.8.tar.gz
|
|
c0297515f242d8e8e890d4cdc38bc5b4 radvd-1.1-gnu-source.patch
|
|
6af530b901277953d662dfaf2f5d42e6 radvd.initd
|
|
7593b61c3198d961cc86dd5b85b9f44a radvd.confd"
|