Date: Tuesday, May 12, 2015 @ 16:16:01 Author: bisson Revision: 239155
archrelease: copy trunk to testing-any Added: iana-etc/repos/testing-any/ iana-etc/repos/testing-any/PKGBUILD (from rev 239154, iana-etc/trunk/PKGBUILD) iana-etc/repos/testing-any/newer.patch (from rev 239154, iana-etc/trunk/newer.patch) iana-etc/repos/testing-any/protocols.gawk (from rev 239154, iana-etc/trunk/protocols.gawk) iana-etc/repos/testing-any/services.gawk (from rev 239154, iana-etc/trunk/services.gawk) ----------------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ newer.patch | 29 +++++++++++++++++++++++++++++ protocols.gawk | 13 +++++++++++++ services.gawk | 15 +++++++++++++++ 4 files changed, 102 insertions(+) Copied: iana-etc/repos/testing-any/PKGBUILD (from rev 239154, iana-etc/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2015-05-12 14:16:01 UTC (rev 239155) @@ -0,0 +1,45 @@ +# $Id$ +# Contributor: Thomas Bächler <tho...@archlinux.org> +# Maintainer: Gaetan Bisson <bis...@archlinux.org> + +pkgname=iana-etc +pkgver=2.30 +pkgrel=5 +pkgdesc='/etc/protocols and /etc/services provided by IANA' +url='http://sethwklein.net/iana-etc.html' +arch=('any') +license=('custom') +backup=('etc/'{protocols,services}) +source=("http://sethwklein.net/${pkgname}-${pkgver}.tar.bz2" + 'protocols.gawk' + 'services.gawk' + 'newer.patch') +sha1sums=('218593bcb9264014c4e397d838b2c218eac9df06' + '48c1b94d9069f73e8a919301da564f414c4108f8' + 'c04278a7f11466efc64b80c193ef630857d9698a' + '2ff4a7aa0854a2b191b0b1a5c36eff072cd6885e') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + cp ../protocols.gawk ../services.gawk . + patch -p1 -i ../newer.patch +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + make get + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make test +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/iana-etc/LICENSE" + install -Dm644 port-numbers.iana "${pkgdir}/usr/share/iana-etc/port-numbers.iana" + install -Dm644 protocol-numbers.iana "${pkgdir}/usr/share/iana-etc/protocol-numbers.iana" +} Copied: iana-etc/repos/testing-any/newer.patch (from rev 239154, iana-etc/trunk/newer.patch) =================================================================== --- testing-any/newer.patch (rev 0) +++ testing-any/newer.patch 2015-05-12 14:16:01 UTC (rev 239155) @@ -0,0 +1,29 @@ +diff -Naur old/Makefile new/Makefile +--- old/Makefile 2008-03-05 08:02:40.000000000 -1000 ++++ new/Makefile 2013-11-20 11:30:01.387562517 -1000 +@@ -42,11 +42,11 @@ + protocol-numbers.iana port-numbers.iana + + protocol-numbers.iana: +- $(AWK) -f get.gawk -v file=protocol-numbers >protocol-numbers.iana ++ $(AWK) -f get.gawk -v file=protocol-numbers/protocol-numbers.xml >protocol-numbers.iana + rm -f protocol-numbers + + port-numbers.iana: +- $(AWK) -f get.gawk -v file=port-numbers >port-numbers.iana ++ $(AWK) -f get.gawk -v file=service-names-port-numbers/service-names-port-numbers.xml >port-numbers.iana + rm -f port-numbers + + protocol-numbers: +diff -Naur old/get.gawk new/get.gawk +--- old/get.gawk 2008-03-05 08:04:18.000000000 -1000 ++++ new/get.gawk 2013-11-20 11:30:01.387562517 -1000 +@@ -26,7 +26,7 @@ + NR++ + + if (in_content) { print } +- if (/^$/) { in_content=1 } ++ if (/^\r?$/) { in_content=1 } + } + + printf "\n" >"/dev/stderr" Copied: iana-etc/repos/testing-any/protocols.gawk (from rev 239154, iana-etc/trunk/protocols.gawk) =================================================================== --- testing-any/protocols.gawk (rev 0) +++ testing-any/protocols.gawk 2015-05-12 14:16:01 UTC (rev 239155) @@ -0,0 +1,13 @@ +#!/usr/bin/awk -f + +BEGIN { + print "# See the full IANA XML file at: /usr/share/iana-etc/protocol-numbers.iana\n" + FS="[<>]" +} + +{ + if (/<record/) { v=n=0 } + if (/<value/) v=$3 + if (/<name/ && !($3~/ /)) n=$3 + if (/<\/record/ && (v || n=="HOPOPT") && n) printf "%-12s %3i %s\n", tolower(n),v,n +} Copied: iana-etc/repos/testing-any/services.gawk (from rev 239154, iana-etc/trunk/services.gawk) =================================================================== --- testing-any/services.gawk (rev 0) +++ testing-any/services.gawk 2015-05-12 14:16:01 UTC (rev 239155) @@ -0,0 +1,15 @@ +#!/usr/bin/awk -f + +BEGIN { + print "# See the full IANA XML file at: /usr/share/iana-etc/port-numbers.iana\n" + FS="[<>]" +} + +{ + if (/<record/) { n=u=p=c=0 } + if (/<name/ && !/\(/) n=$3 + if (/<number/) u=$3 + if (/<protocol/) p=$3 + if (/Unassigned/ || /Reserved/ || /historic/) c=1 + if (/<\/record/ && n && u && p && !c) printf "%-15s %5i/%s\n", n,u,p +}