Date: Saturday, March 10, 2018 @ 12:58:09 Author: foxxx0 Revision: 306055
archrelease: copy trunk to community-x86_64 Added: radvd/repos/community-x86_64/PKGBUILD (from rev 306054, radvd/trunk/PKGBUILD) radvd/repos/community-x86_64/avoid-premature-warning-about-all-zeros-prefix.patch (from rev 306054, radvd/trunk/avoid-premature-warning-about-all-zeros-prefix.patch) radvd/repos/community-x86_64/radvd.service (from rev 306054, radvd/trunk/radvd.service) Deleted: radvd/repos/community-x86_64/PKGBUILD radvd/repos/community-x86_64/radvd.service ------------------------------------------------------+ PKGBUILD | 133 ++++++++--------- avoid-premature-warning-about-all-zeros-prefix.patch | 36 ++++ radvd.service | 18 +- 3 files changed, 113 insertions(+), 74 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-03-10 12:57:57 UTC (rev 306054) +++ PKGBUILD 2018-03-10 12:58:09 UTC (rev 306055) @@ -1,65 +0,0 @@ -# $Id$ -# Maintainer: Sébastien Luttringer -# Contributor: Kaiting Chen <kaitocr...@gmail.com> -# Contributor: Mark Smith <markzzzsm...@yahoo.com.au> - -pkgname=radvd -pkgver=2.17 -pkgrel=1 -pkgdesc='IPv6 Router Advertisement Daemon' -url='http://www.litech.org/radvd/' -license=('custom') -depends=('glibc') -makedepends=('check') -arch=('x86_64') -backup=('etc/radvd.conf') -validpgpkeys=('B11F2EED32FB6728F700337C411FA8C112D91A31') # Reuben Hawkins -source=("http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.xz"{,.asc} - "$pkgname.service") -sha1sums=('e6aefd1f94c11c198271622989deefa647a489b5' - 'SKIP' - '2fdba3b0ed28c67dc1c04bfd1439fa4dece88bbc') - -prepare() { - cd $pkgname-$pkgver - # apply patch from the source array (should be a pacman feature) - local filename - for filename in "${source[@]}"; do - if [[ "$filename" =~ \.patch$ ]]; then - msg2 "Applying patch ${filename##*/}" - patch -p1 -N -i "$srcdir/${filename##*/}" - fi - done - : -} - -build() { - cd $pkgname-$pkgver - ./configure \ - --prefix=/usr \ - --sbindir=/usr/bin \ - --sysconfdir=/etc \ - --with-pidfile=/run/radvd.pid \ - --with-check \ - --mandir=/usr/share/man - make -} - -check() { - cd $pkgname-$pkgver - make check -} - -package() { - cd $pkgname-$pkgver - make DESTDIR="$pkgdir" install - # default config - install -D -m 644 radvd.conf.example "$pkgdir/etc/radvd.conf" - # license - install -D -m 644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT" - # systemd - install -D -m 644 ../$pkgname.service \ - "$pkgdir/usr/lib/systemd/system/$pkgname.service" -} - -# vim:set ts=2 sw=2 et: Copied: radvd/repos/community-x86_64/PKGBUILD (from rev 306054, radvd/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-03-10 12:58:09 UTC (rev 306055) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Sébastien Luttringer +# Maintainer: Thore Bödecker <fox...@archlinux.org> +# Contributor: Kaiting Chen <kaitocr...@gmail.com> +# Contributor: Mark Smith <markzzzsm...@yahoo.com.au> + +pkgname=radvd +pkgver=2.17 +pkgrel=2 +pkgdesc='IPv6 Router Advertisement Daemon' +url='http://www.litech.org/radvd/' +license=('custom') +depends=('glibc') +makedepends=('check') +arch=('x86_64') +backup=('etc/radvd.conf') +validpgpkeys=('B11F2EED32FB6728F700337C411FA8C112D91A31') # Reuben Hawkins +source=("http://www.litech.org/radvd/dist/${pkgname}-${pkgver}.tar.xz"{,.asc} + "$pkgname.service" + 'avoid-premature-warning-about-all-zeros-prefix.patch') +sha512sums=('f62aa8acb423320423637c7908abe1d3b8ec4b32f78a81ba67c1a4ecf9bcaaae4e3671fc0c2c5b5776edfe5e6b5d3bf1daf60e55387dd0c0d7370a86d867873c' + 'SKIP' + 'ff24665937ab2b937d24599e3ae14956d531f969a471b6616775c3d5c48330ae1b22cdd4d569867a92c3d6af1548be75de70e5ead6a9ae4ae45566a6523988dd' + '413ce0c04f1024d9bfba34911834e9db4a2d30e6c270f989f63c33cd04deabb87627ea2e62a364ac80e44c5501c8ed5afd50f8d7446725240815cae95ae086d5') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do + if [[ "${filename}" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "${srcdir}/${filename##*/}" + fi + done + : +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --with-pidfile=/run/radvd.pid \ + --with-check \ + --mandir=/usr/share/man + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + # default config + install -D -m 644 radvd.conf.example "${pkgdir}/etc/radvd.conf" + # license + install -D -m 644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT" + # systemd + install -D -m 644 "${srcdir}/${pkgname}.service" \ + "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" +} + +# vim:set ts=2 sw=2 et: Copied: radvd/repos/community-x86_64/avoid-premature-warning-about-all-zeros-prefix.patch (from rev 306054, radvd/trunk/avoid-premature-warning-about-all-zeros-prefix.patch) =================================================================== --- avoid-premature-warning-about-all-zeros-prefix.patch (rev 0) +++ avoid-premature-warning-about-all-zeros-prefix.patch 2018-03-10 12:58:09 UTC (rev 306055) @@ -0,0 +1,36 @@ +From b37baa1137d0bd5b9cceb2e447550f1c0a105ac6 Mon Sep 17 00:00:00 2001 +From: Sergey Alirzaev <zl2...@gmail.com> +Date: Thu, 16 Nov 2017 14:53:45 +0300 +Subject: [PATCH] avoid premature warning about all-zeros prefix + +--- + gram.y | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/gram.y b/gram.y +index 1c74c9d..cc0dd4b 100644 +--- a/gram.y ++++ b/gram.y +@@ -436,9 +436,11 @@ prefixhead : T_PREFIX IPV6ADDR '/' NUMBER + struct in6_addr zeroaddr; + memset(&zeroaddr, 0, sizeof(zeroaddr)); + ++#ifndef HAVE_IFADDRS_H // all-zeros prefix is a way to tell us to get the prefix from the interface config + if (!memcmp($2, &zeroaddr, sizeof(struct in6_addr))) { + flog(LOG_WARNING, "invalid all-zeros prefix in %s, line %d", filename, num_lines); + } ++#endif + prefix = malloc(sizeof(struct AdvPrefix)); + + if (prefix == NULL) { +--- a/test/send.c 2017-06-29 06:32:29.000000000 +0200 ++++ b/test/send.c 2018-01-09 16:50:01.329226089 +0100 +@@ -50,7 +50,7 @@ + }; + + ck_assert_int_eq(sizeof(expected), sb.used); +- ck_assert_int_eq(0, memcmp(expected, sb.buffer, sb.used)); ++ //ck_assert_int_eq(0, memcmp(expected, sb.buffer, sb.used)); + #endif + + safe_buffer_free(&sb); Deleted: radvd.service =================================================================== --- radvd.service 2018-03-10 12:57:57 UTC (rev 306054) +++ radvd.service 2018-03-10 12:58:09 UTC (rev 306055) @@ -1,9 +0,0 @@ -[Unit] -Description=IPv6 Router Advertisement Daemon -After=network.target - -[Service] -ExecStart=/usr/bin/radvd --nodaemon --logmethod=stderr - -[Install] -WantedBy=multi-user.target Copied: radvd/repos/community-x86_64/radvd.service (from rev 306054, radvd/trunk/radvd.service) =================================================================== --- radvd.service (rev 0) +++ radvd.service 2018-03-10 12:58:09 UTC (rev 306055) @@ -0,0 +1,9 @@ +[Unit] +Description=IPv6 Router Advertisement Daemon +After=network.target + +[Service] +ExecStart=/usr/bin/radvd --nodaemon --logmethod=stderr + +[Install] +WantedBy=multi-user.target