forked from ZigFisher/glutinium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Zalatov
committed
Sep 30, 2018
1 parent
c12b238
commit 873d7fc
Showing
3 changed files
with
881 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright (C) 2011-2018 Entware | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=25volt | ||
PKG_VERSION:=1.0.5 | ||
PKG_RELEASE:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/25volt | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
DEPENDS:=+libusb-compat | ||
TITLE:=25volt a tool for monitoring Powercom/APC UPSs | ||
URL:=http://c61.no-ip.org/forum/viewtopic.php?f=2&t=69 | ||
MAINTAINER:=Entware team, http://entware.net | ||
endef | ||
|
||
define Package/25volt/description | ||
25volt - A lightweight tool for monitoring APC Smart-UPS and Powercom WOW UPSs | ||
endef | ||
|
||
BINARIES:= \ | ||
usb_ups_apc_smart \ | ||
usb_ups_powercom_wow | ||
|
||
define Build/Compile | ||
for bin in $(BINARIES); \ | ||
do \ | ||
$(TARGET_CC) $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include \ | ||
$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -lusb -s \ | ||
-o $(PKG_BUILD_DIR)/$$$${bin} $(PKG_BUILD_DIR)/$$$${bin}.c; \ | ||
done | ||
endef | ||
|
||
define Package/25volt/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(foreach bin,$(BINARIES),$(PKG_BUILD_DIR)/$(bin)) $(1)/usr/bin | ||
endef | ||
|
||
$(eval $(call BuildPackage,25volt)) |
Oops, something went wrong.