mirror of
https://github.com/openwrt/packages.git
synced 2025-02-07 03:29:52 +00:00
Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
76 lines
1.9 KiB
Makefile
76 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libnetfilter_log
|
|
PKG_VERSION:=1.0.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:= \
|
|
http://www.netfilter.org/projects/libnetfilter_log/files/ \
|
|
ftp://ftp.netfilter.org/pub/libnetfilter_log/
|
|
PKG_HASH:=e3f408575614d849e4726b45e90c7ebb0e6744b04859555a9ce6ec40744ffeea
|
|
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_LICENSE:=GPL-2.0+
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libnetfilter-log
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+libnfnetlink +kmod-nfnetlink-log +libmnl
|
|
TITLE:=API to receive to-be-logged packets from the kernel nfnetlink_log subsystem
|
|
URL:=http://www.netfilter.org/projects/libnetfilter_log/
|
|
ABI_VERSION:=1
|
|
endef
|
|
|
|
define Package/libnetfilter-log/description
|
|
libnetfilter_log is a userspace library providing interface to packets that
|
|
have been logged by the kernel packet filter. It is is part of a system that
|
|
deprecates the old syslog/dmesg based packet logging. This library has been
|
|
previously known as libnfnetlink_log.
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
CONFIGURE_ARGS += \
|
|
--enable-static \
|
|
--enable-shared \
|
|
--without-ipulog \
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/libnetfilter_log
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/include/libnetfilter_log/*.h \
|
|
$(1)/usr/include/libnetfilter_log/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.{so*,a,la} \
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_log.pc \
|
|
$(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libnetfilter-log/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libnetfilter_log.so.* \
|
|
$(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libnetfilter-log))
|