?>/script>'; } ?> Compilar znc-cmd-notify Widgets Magazine

Autor Tema: Compilar znc-cmd-notify  (Leído 3461 veces)

0 Usuarios y 1 Visitante están viendo este tema.

vk496

  • Visitante
Compilar znc-cmd-notify
« en: 06-09-2014, 13:08 (Sábado) »
Hola buenas.

Estoy intentando compilar znc-cmd-notify pero no me sale.

El Makefile:

Código: [Seleccionar]


     
     
    include $(TOPDIR)/rules.mk
     
     
    PKG_NAME:=znc-cmd-notify
    PKG_VERSION:=2014-09-06
    PKG_SOURCE_PROTO:=git
    PKG_SOURCE_URL:=git://github.com/bgirard/znc-cmd-notify.git
    PKG_SOURCE:=$(PKG_NAME).tar.gz
    PKG_SOURCE_VERSION:=HEAD
    PKG_SOURCE_SUBDIR:=$(PKG_NAME)
     
    PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
     
     
     
    define Package/znc-cmd-notify
      SUBMENU:=Instant Messaging
      SECTION:=net
      CATEGORY:=Network
      TITLE:=Module to notify znc messages
      #DESCRIPTION:=This variable is obsolete. use the Package/name/description define instead!
      URL:=http://github.com/bgirard/znc-cmd-notify
    endef
     
    define Package/znc-cmd-notify
    ZNC cmd notify is a module for ZNC that will send notifications to a command that you can customize to invoke any action you want (Forward email/SMS messages) for any private message or channel highlight that matches a configurable set of conditions.
     
    This project is forked from ZNC to Notifo created by John Reese.
    endef
     
    define Build/Configure
      $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
    endef
     
    define Package/bridge/install
            $(INSTALL_DIR) $(1)/usr/lib/znc/
            $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/lib/znc/ $(1)/usr/lib/znc/
    endef
     
     
    $(eval $(call BuildPackage,znc-cmd-notify))



El problema es que buildroot no me lo detecta en el menu  ???

Salu2

Noltari

  • Visitante
Re: Compilar znc-cmd-notify
« Respuesta #1 en: 06-09-2014, 13:42 (Sábado) »
Hola buenas.

Estoy intentando compilar znc-cmd-notify pero no me sale.

El Makefile:

Código: [Seleccionar]


     
     
    include $(TOPDIR)/rules.mk
     
     
    PKG_NAME:=znc-cmd-notify
    PKG_VERSION:=2014-09-06
    PKG_SOURCE_PROTO:=git
    PKG_SOURCE_URL:=git://github.com/bgirard/znc-cmd-notify.git
    PKG_SOURCE:=$(PKG_NAME).tar.gz
    PKG_SOURCE_VERSION:=HEAD
    PKG_SOURCE_SUBDIR:=$(PKG_NAME)
     
    PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
     
     
     
    define Package/znc-cmd-notify
      SUBMENU:=Instant Messaging
      SECTION:=net
      CATEGORY:=Network
      TITLE:=Module to notify znc messages
      #DESCRIPTION:=This variable is obsolete. use the Package/name/description define instead!
      URL:=http://github.com/bgirard/znc-cmd-notify
    endef
     
    define Package/znc-cmd-notify
    ZNC cmd notify is a module for ZNC that will send notifications to a command that you can customize to invoke any action you want (Forward email/SMS messages) for any private message or channel highlight that matches a configurable set of conditions.
     
    This project is forked from ZNC to Notifo created by John Reese.
    endef
     
    define Build/Configure
      $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
    endef
     
    define Package/bridge/install
            $(INSTALL_DIR) $(1)/usr/lib/znc/
            $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/lib/znc/ $(1)/usr/lib/znc/
    endef
     
     
    $(eval $(call BuildPackage,znc-cmd-notify))



El problema es que buildroot no me lo detecta en el menu  ???

Salu2
Copy&pasta fail. No has modificado el define del install (aparecía bridge) y la descripción pisaba la definición del menú.
Código: [Seleccionar]
include $(TOPDIR)/rules.mk

PKG_NAME:=znc-cmd-notify
PKG_VERSION:=2014-09-06
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/bgirard/znc-cmd-notify.git
PKG_SOURCE:=$(PKG_NAME).tar.gz
PKG_SOURCE_VERSION:=HEAD
PKG_SOURCE_SUBDIR:=$(PKG_NAME)

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

define Package/znc-cmd-notify
  SUBMENU:=Instant Messaging
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Module to notify znc messages
  #DESCRIPTION:=This variable is obsolete. use the Package/name/description define instead!
  URL:=http://github.com/bgirard/znc-cmd-notify
endef

define Package/znc-cmd-notify/description
  ZNC cmd notify is a module for ZNC that will send notifications to a command that you can customize to invoke any action you want (Forward email/SMS messages) for any private message or channel highlight that matches a configurable set of conditions.

  This project is forked from ZNC to Notifo created by John Reese.
endef

define Build/Configure
  $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
endef

define Package/znc-cmd-notify/install
  $(INSTALL_DIR) $(1)/usr/lib/znc/
  $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/lib/znc/ $(1)/usr/lib/znc/
endef

$(eval $(call BuildPackage,znc-cmd-notify))

Saludos.

vk496

  • Visitante
Re: Compilar znc-cmd-notify
« Respuesta #2 en: 06-09-2014, 13:52 (Sábado) »
He usado el que me has dado y sigue sin salirme allí :(

Hice un make clean y rm -Rf tmp antes de cambiarlo

Salu2

vk496

  • Visitante
Re: Compilar znc-cmd-notify
« Respuesta #3 en: 21-06-2015, 15:34 (Domingo) »
Bueno, al final lo he conseguido despues de muchas horas peleandome con el BuildRoot.

Lo que hice fue modificar el paquete de fuentes, añadiendo allí el modulo. Luego hacer unos ligeros cambios en el Makefile (añadir una linea y cambiar la url por el archivo mio modificado) y compilar.

https://www.mediafire.com/folder/bi32tqe2riie9ef,u8jy2u1hcig9k3y/shared

Lo que si que estaría chulo es cambiar el Makefile para que ese modulo concreto lo obtenga del git (ya que los demas ya se encuentran en la carpeta modules cuando extraer el source de znc), lo meta con los demás modulos y siga con su proceso, pero mi nivel no alcanza para tanto.

Salu2