Merge pull request #8157 from aparcar/rpcd-mod-poe
[feed/packages.git] / utils / rpcd-mod-poe / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=rpcd-mod-poe
8 PKG_VERSION:=0.1
9 PKG_RELEASE:=1
10 PKG_LICENSE:=GPL-2.0
11
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/rpcd-mod-poe
15 SECTION:=utils
16 CATEGORY:=Base system
17 TITLE:=OpenWrt ubus PoE interface
18 MAINTAINER:=Paul Spooren <mail@aparcar.org>
19 DEPENDS:=+rpcd +kmod-i2c-gpio-custom
20 endef
21
22 define Package/rpcd-mod-poe/description
23 Expose ubus procedures to query, enable and disable the per-port PoE power
24 on Ubiquity devices and similar platforms.
25 endef
26
27 define Build/Compile
28 endef
29
30 define Build/Configure
31 endef
32
33 define Package/rpcd-mod-poe/install
34 $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d/
35 $(INSTALL_BIN) ./files/poe.acl $(1)/usr/share/rpcd/acl.d/poe.json
36
37 $(INSTALL_DIR) $(1)/usr/libexec/rpcd/
38 $(INSTALL_BIN) ./files/poe.rpcd $(1)/usr/libexec/rpcd/poe
39 endef
40
41 $(eval $(call BuildPackage,rpcd-mod-poe))