1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-20 07:38:40 +02:00
openwrt-packages/net/mdio-tools/Makefile
Sebastian Kemper f0e12ae71b mdio-tools: fix buildbot build
On buildbots the build fails because git isn't finding any git repo and
then AC_INIT refuses to run:

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
configure.ac:5: error: AC_INIT should be called with package and version arguments

Address this by substituting the git command with $(PKG_VERSION).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-23 21:13:45 +02:00

44 lines
1.0 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=mdio-tools
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/wkz/mdio-tools
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2021-07-19
PKG_SOURCE_VERSION:=65f6898f25b00deebe1c38811e893d9dcd4d7ef3
PKG_MIRROR_HASH:=9db854037b3e8596ccd71567a45aa60fd3cac88b01c9197d4dd9cf3f32589cb2
PKG_FIXUP:=autoreconf
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Damien Mascord <tusker@tusker.org>
include $(INCLUDE_DIR)/package.mk
define Package/mdio-tools
SECTION:=net
CATEGORY:=Utilities
TITLE:=mdio-tools Linux MDIO register access
URL:=https://github.com/wkz/mdio-tools.git
DEPENDS:=+libmnl
endef
define Package/mdio-tools/description
mdio-tools Linux MDIO register access
endef
define Package/mdio-tools/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mdio/mdio $(1)/usr/bin/
endef
define Build/Prepare
$(call Build/Prepare/Default)
$(SED) 's/m4_esyscmd_s(.*)/$(PKG_VERSION)/' $(PKG_BUILD_DIR)/configure.ac
endef
$(eval $(call BuildPackage,mdio-tools))