]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
whois: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Feb 2023 18:31:45 +0000 (19:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Feb 2023 10:04:23 +0000 (10:04 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
whois/whois.nm [new file with mode: 0644]

diff --git a/whois/whois.nm b/whois/whois.nm
new file mode 100644 (file)
index 0000000..a96855c
--- /dev/null
@@ -0,0 +1,60 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = whois
+version    = 5.5.15
+release    = 1
+
+groups     = Applications/Internet
+url        = https://github.com/rfc1036/whois
+license    = GPLv2
+summary    = Intelligent WHOIS client.
+
+description
+               whois searches for an object in a RFC 3912 database.
+
+               This version of the whois client tries to guess the right server to
+               ask for the specified object. If no guess can be made it will connect to
+               whois.networksolutions.com
+end
+
+source_dl  = http://ftp.debian.org/debian/pool/main/w/whois/
+sources    = %{name}_%{version}.tar.xz
+
+build
+       DIR_APP = %{DIR_SRC}/%{name}
+
+       requires
+               libidn2-devel
+               perl
+               perl(autodie)
+               perl(strict)
+               perl(warnings)
+       end
+
+       build
+               make \
+                       CONFIG_FILE="%{sysconfdir}/%{name}.conf" \
+                       HAVE_ICONV=1 \
+                       CFLAGS="%{CFLAGS}" \
+                       LDFLAGS="%{LDFLAGS}"
+       end
+
+       # Only install the whois tool.
+       make_install_targets = install-whois
+
+       install_cmds
+               # Install config file.
+               install -p -m644 -D %{name}.conf %{BUILDROOT}%{sysconfdir}/%{name}.conf
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end