#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=iana-etc pkgver=20230629 _protocols=protocol-numbers-20230606 _ports=service-names-port-numbers-${pkgver} pkgrel=01 pkgdesc='/etc/protocols and /etc/services provided by IANA' url='https://www.iana.org/protocols' backup=('etc/'{protocols,services}) source=("https://sources.archlinux.org/other/packages/iana-etc/${_ports}.xml" "https://sources.archlinux.org/other/packages/iana-etc/${_protocols}.xml" 'LICENSE') # Original but unversioned IANA files: # https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml # https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml package() { cd "${srcdir}" install -d "${pkgdir}/etc" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/iana-etc/LICENSE" 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" } (/ "${pkgdir}/etc/protocols" gawk -F"[<>]" ' BEGIN { print "# Full data: /usr/share/iana-etc/port-numbers.iana\n" } (/ "${pkgdir}/etc/services" } #---- arch license gpg-key & sha256sums ---- arch=('any') license=('custom:none') sha256sums=(8704b2b6b2574bc050164f6595f69f40fa8f7c146edeeb9c5ab5c05e513efd55 # service-names-port-numbers-20230629.xml e398929846d7e7e6d0aaf6f7d6c41e9889752644eed9205cd99c6809fc08a85b # protocol-numbers-20230606.xml dd37e92942d5a4024f1c77df49d61ca77fc6284691814903a741785df61f78cb) # LICENSE ## 0e1bde7fc32d97720b0dc255e410e5388fe96c4b1cdf40b79e214c879276015d iana-etc-20230629-01-any.pkg.tar.lz