mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libnl: drop package
No other packages linked to libnl anymore. Everyone supposed to use libnl-3 instead.
This commit is contained in:
parent
28e44300ca
commit
ae9ff19b5c
6 changed files with 0 additions and 110 deletions
|
@ -1 +0,0 @@
|
||||||
libnl
|
|
|
@ -1,25 +0,0 @@
|
||||||
--- a/lib/netfilter/log.c
|
|
||||||
+++ b/lib/netfilter/log.c
|
|
||||||
@@ -18,6 +18,7 @@
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#include <byteswap.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <linux/netfilter/nfnetlink_log.h>
|
|
||||||
|
|
||||||
--- a/include/netlink/netlink.h
|
|
||||||
+++ b/include/netlink/netlink.h
|
|
||||||
@@ -12,11 +12,11 @@
|
|
||||||
#ifndef NETLINK_NETLINK_H_
|
|
||||||
#define NETLINK_NETLINK_H_
|
|
||||||
|
|
||||||
+#include <poll.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
-#include <sys/poll.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/time.h>
|
|
|
@ -1,50 +0,0 @@
|
||||||
--- a/lib/fib_lookup/lookup.c
|
|
||||||
+++ b/lib/fib_lookup/lookup.c
|
|
||||||
@@ -124,7 +124,7 @@
|
|
||||||
static int result_dump_brief(struct nl_object *obj, struct nl_dump_params *p)
|
|
||||||
{
|
|
||||||
struct flnl_result *res = (struct flnl_result *) obj;
|
|
||||||
- char buf[256];
|
|
||||||
+ char buf[256], buf2[256];
|
|
||||||
int line = 1;
|
|
||||||
|
|
||||||
dp_dump(p, "table %s prefixlen %u next-hop-selector %u\n",
|
|
||||||
@@ -132,9 +132,10 @@
|
|
||||||
res->fr_prefixlen, res->fr_nh_sel);
|
|
||||||
dp_dump_line(p, line++, "type %s ",
|
|
||||||
nl_rtntype2str(res->fr_type, buf, sizeof(buf)));
|
|
||||||
+ strerror_r(-res->fr_error, buf2, sizeof(buf2));
|
|
||||||
dp_dump(p, "scope %s error %s (%d)\n",
|
|
||||||
rtnl_scope2str(res->fr_scope, buf, sizeof(buf)),
|
|
||||||
- strerror_r(-res->fr_error, buf, sizeof(buf)), res->fr_error);
|
|
||||||
+ buf2, res->fr_error);
|
|
||||||
|
|
||||||
return line;
|
|
||||||
}
|
|
||||||
--- a/lib/handlers.c
|
|
||||||
+++ b/lib/handlers.c
|
|
||||||
@@ -136,8 +136,8 @@
|
|
||||||
FILE *ofd = arg ? arg : stderr;
|
|
||||||
char buf[256];
|
|
||||||
|
|
||||||
- fprintf(ofd, "-- Error received: %s\n-- Original message: ",
|
|
||||||
- strerror_r(-e->error, buf, sizeof(buf)));
|
|
||||||
+ strerror_r(-e->error, buf, sizeof(buf));
|
|
||||||
+ fprintf(ofd, "-- Error received: %s\n-- Original message: ", buf);
|
|
||||||
print_header_content(ofd, &e->msg);
|
|
||||||
fprintf(ofd, "\n");
|
|
||||||
|
|
||||||
--- a/lib/msg.c
|
|
||||||
+++ b/lib/msg.c
|
|
||||||
@@ -961,9 +961,9 @@
|
|
||||||
struct nlmsgerr *err = nlmsg_data(hdr);
|
|
||||||
char buf[256];
|
|
||||||
|
|
||||||
+ strerror_r(-err->error, buf, sizeof(buf));
|
|
||||||
fprintf(ofd, " [ERRORMSG] %Zu octets\n", sizeof(*err));
|
|
||||||
- fprintf(ofd, " .error = %d \"%s\"\n", err->error,
|
|
||||||
- strerror_r(-err->error, buf, sizeof(buf)));
|
|
||||||
+ fprintf(ofd, " .error = %d \"%s\"\n", err->error, buf);
|
|
||||||
fprintf(ofd, " [ORIGINAL MESSAGE] %Zu octets\n", sizeof(*hdr));
|
|
||||||
|
|
||||||
errmsg = nlmsg_inherit(&err->msg);
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/lib/Makefile 2008-01-14 16:48:45.000000000 +0100
|
|
||||||
+++ b/lib/Makefile 2009-05-26 09:47:42.000000000 +0200
|
|
||||||
@@ -48,7 +48,7 @@
|
|
||||||
|
|
||||||
$(OUT_SLIB): ../Makefile.opts $(OBJ)
|
|
||||||
@echo " LD $(OUT_SLIB)"; \
|
|
||||||
- $(CC) -shared -Wl,-soname,libnl.so.1 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc
|
|
||||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,libnl.so.1 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc
|
|
||||||
@echo " LN $(OUT_SLIB) $(LN1_SLIB)"; \
|
|
||||||
rm -f $(LN1_SLIB) ; $(LN) -s $(OUT_SLIB) $(LN1_SLIB)
|
|
||||||
@echo " LN $(LN1_SLIB) $(LN_SLIB)"; \
|
|
|
@ -1,22 +0,0 @@
|
||||||
# Template file for 'libnl'
|
|
||||||
pkgname=libnl
|
|
||||||
version=1.1.4
|
|
||||||
revision=4
|
|
||||||
build_style=gnu-configure
|
|
||||||
short_desc="Library for applications dealing with netlink sockets"
|
|
||||||
homepage="http://www.infradead.org/~tgr/libnl/"
|
|
||||||
license="LGPL-2.1-only"
|
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
||||||
distfiles="http://www.infradead.org/~tgr/libnl/files/libnl-${version}.tar.gz"
|
|
||||||
checksum=4f80c21fe5bbcdde6e72b59b4f98306063a41421f909887c34e58d93e746d063
|
|
||||||
|
|
||||||
libnl-devel_package() {
|
|
||||||
depends="libnl>=${version}_${revision}"
|
|
||||||
short_desc+=" - development files"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/include
|
|
||||||
vmove usr/lib/pkgconfig
|
|
||||||
vmove "usr/lib/*.a"
|
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
pattern=">libnl-\K1\..+(?=\.tar\.gz</a>)"
|
|
Loading…
Add table
Reference in a new issue