summaryrefslogtreecommitdiff
path: root/package/network/utils/nftables/patches/100-no-interactive.patch
blob: 58442b7f0f753dd9afb1458f5d9d93076d78532d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -3,7 +3,6 @@ PROGRAMS		+= nft
 nft-destdir		:= @sbindir@
 
 nft-obj			+= main.o
-nft-obj			+= cli.o
 nft-obj			+= rule.o
 nft-obj			+= statement.o
 nft-obj			+= datatype.o
--- a/src/main.c
+++ b/src/main.c
@@ -335,7 +335,7 @@ int main(int argc, char * const *argv)
 		if (scanner_read_file(scanner, filename, &internal_location) < 0)
 			goto out;
 	} else if (interactive) {
-		cli_init(&state);
+		fprintf(stderr, "%s: interactive mode not supported\n", argv[0]);
 		return 0;
 	} else {
 		fprintf(stderr, "%s: no command specified\n", argv[0]);
--- a/configure.ac
+++ b/configure.ac
@@ -71,13 +71,11 @@ AC_CHECK_LIB([nftnl], [nft_rule_alloc],
 AC_CHECK_LIB([gmp], [__gmpz_init], ,
 	     AC_MSG_ERROR([No suitable version of libgmp found]))
 
-AC_CHECK_LIB([readline], [readline], ,
-	     AC_MSG_ERROR([No suitable version of libreadline found]))
 
 # Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_ASSERT
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h malloc.h \
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h malloc.h \
 		  netdb.h netinet/in.h netinet/ip.h netinet/ip6.h \
 		  netinet/tcp.h netinet/udp.h netinet/ip_icmp.h \
 		  stddef.h stdint.h stdlib.h string.h unistd.h], ,