mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
whois: add package
Better a separate package than enabling it via busybox. Special thanks to @neheb for the Makefile patches. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -56,8 +56,6 @@ DEFS += -DHAVE_ICONV
|
||||
endif
|
||||
|
||||
ifeq ($(shell $(PKG_CONFIG) --exists 'libxcrypt >= 4.1' || echo NO),)
|
||||
-DEFS += -DHAVE_CRYPT_H -DHAVE_LINUX_CRYPT_GENSALT $(shell $(PKG_CONFIG) --cflags libcrypt)
|
||||
-mkpasswd_LDADD += $(shell $(PKG_CONFIG) --libs libcrypt)
|
||||
else ifdef HAVE_XCRYPT
|
||||
DEFS += -DHAVE_XCRYPT_H -DHAVE_LINUX_CRYPT_GENSALT
|
||||
mkpasswd_LDADD += -lxcrypt
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -43,8 +43,6 @@ $(error Please fix your build system to stop defining HAVE_LIBIDN!)
|
||||
endif
|
||||
|
||||
ifeq ($(shell $(PKG_CONFIG) --exists 'libidn2 >= 2.0.3' || echo NO),)
|
||||
-whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn2)
|
||||
-DEFS += -DHAVE_LIBIDN2 $(shell $(PKG_CONFIG) --cflags libidn2)
|
||||
else ifeq ($(shell $(PKG_CONFIG) --exists 'libidn' || echo NO),)
|
||||
whois_LDADD += $(shell $(PKG_CONFIG) --libs libidn)
|
||||
DEFS += -DHAVE_LIBIDN $(shell $(PKG_CONFIG) --cflags libidn)
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -72,7 +72,7 @@ endif
|
||||
CPPFLAGS += $(DEFS) $(INCLUDES)
|
||||
|
||||
##############################################################################
|
||||
-all: Makefile.depend whois mkpasswd pos
|
||||
+all: Makefile.depend whois pos
|
||||
|
||||
##############################################################################
|
||||
%.o: %.c
|
||||
Reference in New Issue
Block a user