diff options
author | bisson <bisson@eb2447ed-0c53-47e4-bac8-5bc4a241df78> | 2019-11-24 08:26:14 +0000 |
---|---|---|
committer | bisson <bisson@eb2447ed-0c53-47e4-bac8-5bc4a241df78> | 2019-11-24 08:26:14 +0000 |
commit | 530b0db35fe54f898cf0bb7287eae4812e7b7cd4 (patch) | |
tree | db54723f6c4d6bde6dd001f75b48c392ad994271 | |
parent | 19c16a268225321ed99e6ff8673c952a8adfe15f (diff) |
upstream update, revamp PKGBUILD to better suit new arch upstream
git-svn-id: file:///srv/repos/svn-packages/svn@369692 eb2447ed-0c53-47e4-bac8-5bc4a241df78
-rw-r--r-- | iana-etc/trunk/PKGBUILD | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/iana-etc/trunk/PKGBUILD b/iana-etc/trunk/PKGBUILD index dcfda0d3b4d..202ad834823 100644 --- a/iana-etc/trunk/PKGBUILD +++ b/iana-etc/trunk/PKGBUILD @@ -2,17 +2,19 @@ # Maintainer: Gaetan Bisson <bisson@archlinux.org> pkgname=iana-etc -pkgver=20191122 +pkgver=20191123 +_ports=service-names-port-numbers-20191123 +_protocols=protocol-numbers-20171013 pkgrel=1 pkgdesc='/etc/protocols and /etc/services provided by IANA' url='https://www.iana.org/protocols' arch=('any') license=('custom:none') backup=('etc/'{protocols,services}) -source=("https://sources.archlinux.org/other/packages/iana-etc/service-names-port-numbers-${pkgver}.xml" - "https://sources.archlinux.org/other/packages/iana-etc/protocol-numbers-${pkgver}.xml" +source=("https://sources.archlinux.org/other/packages/iana-etc/${_ports}.xml" + "https://sources.archlinux.org/other/packages/iana-etc/${_protocols}.xml" 'LICENSE') -sha256sums=('2535270891e99febb368bf66c0e99550523db8123411652a33a77a94db9b6cd9' +sha256sums=('372620ba6bdd72080dcabb315a3d092ea4e080064565b2e3d8549c015a538480' '4992fbc5453d0feb48492e6abda96bf9285ff4d2516f6924a0f92f773dc4cea2' 'dd37e92942d5a4024f1c77df49d61ca77fc6284691814903a741785df61f78cb') @@ -23,13 +25,10 @@ sha256sums=('2535270891e99febb368bf66c0e99550523db8123411652a33a77a94db9b6cd9' package() { cd "${srcdir}" - _ports="service-names-port-numbers-${pkgver}.xml" - _protocols="protocol-numbers-${pkgver}.xml" - install -d "${pkgdir}/etc" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/iana-etc/LICENSE" - install -Dm644 ${_ports} "${pkgdir}/usr/share/iana-etc/port-numbers.iana" - install -Dm644 ${_protocols} "${pkgdir}/usr/share/iana-etc/protocol-numbers.iana" + install -Dm644 ${_ports}.xml "${pkgdir}/usr/share/iana-etc/port-numbers.iana" + install -Dm644 ${_protocols}.xml "${pkgdir}/usr/share/iana-etc/protocol-numbers.iana" gawk -F"[<>]" ' BEGIN { print "# Full data: /usr/share/iana-etc/protocol-numbers.iana\n" } @@ -37,7 +36,7 @@ BEGIN { print "# Full data: /usr/share/iana-etc/protocol-numbers.iana\n" } (/<value/) { v=$3 } (/<name/ && $3!~/ /) { n=$3 } (/<\/record/ && n && v!="") { printf "%-12s %3i %s\n", tolower(n),v,n } -' ${_protocols} > "${pkgdir}/etc/protocols" +' ${_protocols}.xml > "${pkgdir}/etc/protocols" gawk -F"[<>]" ' BEGIN { print "# Full data: /usr/share/iana-etc/port-numbers.iana\n" } @@ -47,6 +46,6 @@ BEGIN { print "# Full data: /usr/share/iana-etc/port-numbers.iana\n" } (/<protocol/) { p=$3 } (/Unassigned/ || /Reserved/ || /historic/) { c=1 } (/<\/record/ && n && u && p && !c) { printf "%-15s %5i/%s\n", n,u,p } -' ${_ports} > "${pkgdir}/etc/services" +' ${_ports}.xml > "${pkgdir}/etc/services" } |