Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.93 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. include $(TOPDIR)/rules.mk
  2.  
  3. PKG_NAME:=3ginfo
  4. PKG_VERSION:=1
  5. PKG_RELEASE:=46
  6.  
  7. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  8.  
  9. include $(INCLUDE_DIR)/package.mk
  10.  
  11. define Package/3ginfo
  12.         SECTION:=net
  13.         CATEGORY:=Network
  14.         TITLE:=Informacje o statusie polaczenia 3G
  15.         DEPENDS:=+comgt +uhttpd
  16.         MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
  17.         PKGARCH:=all
  18. endef
  19.  
  20. define Package/3ginfo/description
  21.   Informacje o statusie polaczenia 3G
  22. endef
  23.  
  24. define Package/3ginfo/conffiles
  25. /etc/config/3ginfo
  26. endef
  27.  
  28. define Build/Prepare
  29.         mkdir -p $(PKG_BUILD_DIR)
  30.         $(CP) -r ./src/* $(PKG_BUILD_DIR)/
  31. endef
  32.  
  33. define Build/Configure
  34. endef
  35.  
  36. define Build/Compile
  37. endef
  38.  
  39.  
  40. define Package/3ginfo/install
  41.         $(CP) ./files/* $(1)
  42. endef
  43.  
  44. define Package/3ginfo/postinst
  45. #!/bin/sh
  46. [ -n "$${IPKG_INSTROOT}" ] || {
  47.         [ -z $(uci -q show uhttpd | grep -E "listen_http.*:80") ] || /etc/init.d/uhttpd disable
  48. }
  49. endef
  50.  
  51. $(eval $(call BuildPackage,3ginfo))