You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=etherwake
  9. PKG_VERSION:=1.09
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  12. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
  13. PKG_MD5SUM:=628e8b2a28d47f262e4c26c989402a59
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/etherwake
  17. SECTION:=net
  18. CATEGORY:=Network
  19. TITLE:=WoL client for magic packets via ethernet frames
  20. URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
  21. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  22. endef
  23. define Package/etherwake/description
  24. You can wake up WOL compliant Computers which have been powered down to
  25. sleep mode or start WOL compliant Computers with a BIOS feature.
  26. WOL is an abbreviation for Wake-on-LAN. It is a standard that allows you
  27. to turn on a computer from another location over a network connection.
  28. ether-wake also supports WOL passwords.
  29. endef
  30. define Build/Compile
  31. $(TARGET_CC) $(TARGET_CFLAGS) -D__UCLIBC__ $(PKG_BUILD_DIR)/ether-wake.c -o $(PKG_BUILD_DIR)/etherwake
  32. endef
  33. define Package/etherwake/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_DATA) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  40. endef
  41. define Package/etherwake/conffiles
  42. /etc/config/etherwake
  43. endef
  44. $(eval $(call BuildPackage,etherwake))