Makefile (1242B)
1 # 2 # Copyright (C) 2017 Stijn Tintel <stijn@linux-ipv6.be> 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=vallumd 11 PKG_VERSION:=0.1.3 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=https://github.com/stintel/vallumd/archive/$(PKG_VERSION)/ 16 PKG_MD5SUM:=b40bede34ea321daf799276111e0e804007dc7c10eb031a0a654982957dcfb25 17 18 PKG_LICENSE:=GPL-3.0 19 PKG_LICENSE_FILES:=COPYING 20 21 PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be> 22 23 include $(INCLUDE_DIR)/package.mk 24 include $(INCLUDE_DIR)/cmake.mk 25 26 define Package/vallumd 27 SECTION:=net 28 CATEGORY:=Network 29 TITLE:=Centralized or distributed blacklist 30 DEPENDS:=+ipset +libmosquitto 31 endef 32 33 define Package/vallumd/description 34 Centralized or distributed blacklist 35 endef 36 37 define Package/vallumd/conffiles 38 /etc/config/vallumd 39 endef 40 41 define Package/vallumd/install 42 $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin 43 $(INSTALL_CONF) ./files/vallumd.conf $(1)/etc/config/vallumd 44 $(INSTALL_BIN) ./files/vallumd.init $(1)/etc/init.d/vallumd 45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/vallumd $(1)/usr/sbin/vallumd 46 endef 47 48 49 $(eval $(call BuildPackage,vallumd))