Package Details: asn-git r73.d280c0a-1

Git Clone URL: https://aur.archlinux.org/asn-git.git (read-only, click to copy)
Package Base: asn-git
Description: ASN/IPv4/IPv6/Prefix/ASPath lookup tool
Upstream URL: https://github.com/nitefood/asn
Licenses: MIT
Conflicts: asn
Submitter: w0rty
Maintainer: w0rty
Last Packager: w0rty
Votes: 2
Popularity: 0.000000
First Submitted: 2020-08-07 16:34 (UTC)
Last Updated: 2021-03-24 11:21 (UTC)

Dependencies (11)

Required by (0)

Sources (1)

Latest Comments

m040601 commented on 2025-05-01 06:36 (UTC) (edited on 2025-05-01 07:24 (UTC) by m040601)

$ pacman -Ql asn-git

asn-git /usr/bin/asn
asn-git /usr/share/licenses/asn-git/LICENSE

The repo https://github.com/nitefood/asn/ contains,

....
/dev/shm/w3mclony/asn/README.md
...
/dev/shm/w3mclony/asn/asn.1

So they are missing here in this PKGBUILD. Please make sure they also land on

/usr/share/doc/asn/README.md
/usr/share/man/man1/asn.1.gz

This same "asn-git" PKGBUILD,

   First     2021-09-16 11:26 (UTC)
 Submitted:
    Last     2023-10-25 12:18 (UTC)
  Updated:

Hasnt been touched since 2023. The repo itself is very alive and active, and is now almost 5000 bash lines !!! ,

  2025-03-22 09:37  properly detect when being ran through G
  2025-02-15 17:27  Google Cloud Shell bookmarklet fix (intr
  2025-01-26 16:37  Increased whois timeout, cursor hiding i
  2025-01-12 22:49  Add IPv6 bogon patterns (#84)
  2024-12-31 12:24  bump version number in manpage
  2024-12-31 12:16  validate ipinfo.io API output to handle
  2024-12-09 20:47  - fix duplicate CPE entry
  2024-12-09 20:46  Fix typos (#81)
  2024-10-03 09:12  minor readme fixes
  ..... etc

They even do "releases" very often. You might want to create a stable "asn" PKGBUILD.

TITLE    TYPE    TAG NAME  PUBLISHED
v0.78.3  Latest  v0.78.3   about 3 months ago
v0.78.0          v0.78.0   about 8 months ago
v0.77.0          v0.77.0   about 9 months ago
v0.76.1          v0.76.1   about 1 year ago
v0.76.0          v0.76.0   about 1 year ago
v0.75.3          v0.75.3   about 1 year ago
v0.75.2          v0.75.2   about 1 year ago
v0.75            v0.75     about 1 year ago
v0.74            v0.74     about 1 year ago
v0.73.3          v0.73.3   about 2 years ago
v0.73.2          v0.73.2   about 2 years ago
v0.73.1          v0.73.1   about 2 years ago
v0.73            v0.73     about 2 years ago

It might be a good time to check and review this "asn-git" PKGBUILD.

I am getting some errors, but I havent yet 100% found out if this is a problem in my personal system,

host: error while loading shared libraries: libxml2.so.16: cannot open shared object file: No such file or directory

Hhhmmmmm ... wtf is that "so.16" ???

$ locate libxml2.so

/usr/lib/libxml2.so
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.13.8

$ pacman -Qo /usr/lib/libxml2.so

/usr/lib/libxml2.so is owned by libxml2 2.13.8-1

$ pacman -Ql libxml2

.....
libxml2 /usr/lib/libxml2.so
libxml2 /usr/lib/libxml2.so.2
libxml2 /usr/lib/libxml2.so.2.13.8
libxml2 /usr/share/man/man1/xmllint.1.gz
....

Maybe also clean up that obsolete explicit "bind-tools" dependency,

Dependencies (11)
  • bind-tools (bind-git^AUR, bind)

There is no thing called "bind-tools" anymore on the AUR/Arch.

That functionality is now provided either by "bind-git",

 Conflicts:  bind, bind-tools, dnsutils
 Provides:   bind, bind-tools, dns-server, dnsutils
 Replaces:   bind-tools, dnsutils, host

Or the official Arch package "bind",

provides=('bind-tools' 'dnsutils' 'dns-server')

As few as possible other AUR dependencies, the better.

Also for, possible, consideration. Should all the dependencies be mandatory ? Or could some be optional ? The developer himself says on the README,

Some packages are required for full functionality:

So the script also works if not all full "pre requisites" are installed. Of course with reduced functionality. But it works. It is so sophisticated it even probes, checks and warns about that missing functionality. Example I tested,

│ ! WARNING ! │
╰─────────────╯

The following tools were not found on this system:
 - host
 - nmap
 - ipcalc
 - grepcidr
 - ncat

The following features will be disabled:
 - Recon mode (Shodan scanning)
 - CIDR deaggregation
 - IXP prefix detection
 - ASN Lookup Server

In the same vein, some extra functionality requires "tokens" and signing up for things. They are declared "optional"

  • Optional: adding your API tokens to improve functionalities
────────────────────────────────────────────────────
Warning: At least one external API token is missing.
To enable full script functionalities, please visit
https://github.com/nitefood/asn#api-tokens
────────────────────────────────────────────────────

So you could, eventually, choose to make some of its dependencies not "mandatory" but "optional". Example, maybe "nmap" ? Because its 25MB ? Just a suggestion.

Thanks in advance.

mgisbers commented on 2021-03-24 12:08 (UTC)

Works now. Thanks!!!

mgisbers commented on 2021-03-24 10:14 (UTC)

Please add

makedepends=('git')

for package to be build in fresh environments without previously installed git.