Blame patches/whois-5.5.13.local.patch

Lucio Andrés Illanes Albornoz 7021b8
--- whois-5.5.7/Makefile.orig	2020-10-03 16:43:15.000000000 +0100
Lucio Andrés Illanes Albornoz 7021b8
+++ whois-5.5.7/Makefile	2021-01-23 07:55:24.889153830 +0000
Lucio Andrés Illanes Albornoz 7021b8
@@ -42,12 +42,12 @@
Lucio Andrés Illanes Albornoz 7021b8
 $(error Please fix your build system to stop defining HAVE_LIBIDN!)
Lucio Andrés Illanes Albornoz 7021b8
 endif
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
-ifeq ($(shell $(PKG_CONFIG) --exists 'libidn2 >= 2.0.3' || echo NO),)
Lucio Andrés Illanes Albornoz 7021b8
-whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn2)
Lucio Andrés Illanes Albornoz 7021b8
-DEFS += -DHAVE_LIBIDN2 $(shell $(PKG_CONFIG) --cflags libidn2)
Lucio Andrés Illanes Albornoz 7021b8
-else ifeq ($(shell $(PKG_CONFIG) --exists 'libidn' || echo NO),)
Lucio Andrés Illanes Albornoz 7021b8
-whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn)
Lucio Andrés Illanes Albornoz 7021b8
-DEFS += -DHAVE_LIBIDN $(shell $(PKG_CONFIG) --cflags libidn)
Lucio Andrés Illanes Albornoz 7021b8
+ifeq ($(shell ${PKG_CONFIG} --exists 'libidn2 >= 2.0.3' || echo NO),)
Lucio Andrés Illanes Albornoz 7021b8
+whois_LDADD += $(shell ${PKG_CONFIG} --libs libidn2)
Lucio Andrés Illanes Albornoz 7021b8
+DEFS += -DHAVE_LIBIDN2 $(shell ${PKG_CONFIG} --cflags libidn2)
Lucio Andrés Illanes Albornoz 7021b8
+else ifeq ($(shell ${PKG_CONFIG} --exists 'libidn' || echo NO),)
Lucio Andrés Illanes Albornoz 7021b8
+whois_LDADD += $(shell ${PKG_CONFIG} --libs libidn)
Lucio Andrés Illanes Albornoz 7021b8
+DEFS += -DHAVE_LIBIDN $(shell ${PKG_CONFIG} --cflags libidn)
Lucio Andrés Illanes Albornoz 7021b8
 endif
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
 ifdef HAVE_ICONV
Lucio Andrés Illanes Albornoz 7021b8
@@ -72,7 +72,7 @@
Lucio Andrés Illanes Albornoz 7021b8
 CPPFLAGS += $(DEFS) $(INCLUDES)
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
 ##############################################################################
Lucio Andrés Illanes Albornoz 7021b8
-all: Makefile.depend whois mkpasswd pos
Lucio Andrés Illanes Albornoz 7021b8
+all: Makefile.depend whois mkpasswd
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
 ##############################################################################
Lucio Andrés Illanes Albornoz 7021b8
 %.o: %.c
Lucio Andrés Illanes Albornoz 7021b8
@@ -121,7 +121,7 @@
Lucio Andrés Illanes Albornoz 7021b8
 	nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
 ##############################################################################
Lucio Andrés Illanes Albornoz 7021b8
-install: install-whois install-mkpasswd install-pos
Lucio Andrés Illanes Albornoz 7021b8
+install: install-whois install-mkpasswd
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
 install-whois: whois
Lucio Andrés Illanes Albornoz 7021b8
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
Lucio Andrés Illanes Albornoz 7021b8
@@ -137,9 +137,6 @@
Lucio Andrés Illanes Albornoz 7021b8
 	$(INSTALL) -m 0755 mkpasswd $(BASEDIR)$(prefix)/bin/
Lucio Andrés Illanes Albornoz 7021b8
 	$(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/share/man/man1/
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
-install-pos:
Lucio Andrés Illanes Albornoz 7021b8
-	cd po && $(MAKE) install
Lucio Andrés Illanes Albornoz 7021b8
-
Lucio Andrés Illanes Albornoz 7021b8
 distclean: clean
Lucio Andrés Illanes Albornoz 7021b8
 	rm -f po/whois.pot
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
@@ -148,9 +145,6 @@
Lucio Andrés Illanes Albornoz 7021b8
 		new_gtlds.h tld_serv.h servers_charset.h *.o whois mkpasswd
Lucio Andrés Illanes Albornoz 7021b8
 	rm -f po/*.mo
Lucio Andrés Illanes Albornoz 7021b8
 
Lucio Andrés Illanes Albornoz 7021b8
-pos:
Lucio Andrés Illanes Albornoz 7021b8
-	cd po && $(MAKE)
Lucio Andrés Illanes Albornoz 7021b8
-
Lucio Andrés Illanes Albornoz 7021b8
 depend: Makefile.depend
Lucio Andrés Illanes Albornoz 7021b8
 Makefile.depend:
Lucio Andrés Illanes Albornoz 7021b8
 	$(CC) $(CPPFLAGS) $(CFLAGS) -MM -MG *.c > $@