firmware/src/packages/fff/fff-macnock/Makefile
Adrian Schmutzler 173ce577ae fff-macnock: clean up package variables
This removes unnecessary package variables and rearranges the
remaining ones based on the common style in OpenWrt trunk.

In particular, this drops PKG_VERSION in favor of PKG_SOURCE_DATE,
since it does not seem reasonable to tag a version every time we
want to pull it. Despite, while we effectively pull via the
variable PKG_SOURCE_VERSION anyway, the PKG_VERSION might even
have hidden changes if not properly adjusted.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
2020-04-23 12:00:17 +02:00

38 lines
880 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=fff-macnock
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/FreifunkFranken/macnocker.git
PKG_SOURCE_DATE:=2018-04-03
PKG_SOURCE_VERSION:=ffd1a64515709d75afaab0f990308fd164dc4cc6
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_OPTIONS:=-DMACNOCK_DEBUG=ON
define Package/$(PKG_NAME)
SECTION:=base
CATEGORY:=Freifunk
TITLE:= Freifunk-Franken mac nocker
URL:=http://www.freifunk-franken.de
KCONFIG:= \
CONFIG_NET_EMATCH=y \
CONFIG_NET_EMATCH_U32=y \
CONFIG_NET_CLS_BASIC=y \
CONFIG_NET_CLS_ACT=y \
CONFIG_NET_ACT_GACT=y \
CONFIG_NET_CLS_U32=y
DEPENDS:=+fff-network +tc
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/macnock $(1)/usr/sbin/macnock
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))