[pisa-src] r1324 - trunk/openwrt/trunk/package/pisa/Makefile

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 27 Oct 2009 15:23:55 +0100

Author: biurrun
Date: Tue Oct 27 15:23:54 2009
New Revision: 1324

Log:
Hook up pisabeacon in the OpenWrt build system.
Pisabeacon is now selectable during 'make menuconfig'.

Modified:
   trunk/openwrt/trunk/package/pisa/Makefile

Modified: trunk/openwrt/trunk/package/pisa/Makefile
==============================================================================
--- trunk/openwrt/trunk/package/pisa/Makefile   Tue Oct 27 15:12:28 2009        
(r1323)
+++ trunk/openwrt/trunk/package/pisa/Makefile   Tue Oct 27 15:23:54 2009        
(r1324)
@@ -72,6 +72,24 @@
        cp -d $(PKG_INSTALL_DIR)/usr/lib/libpisa.so* $(1)/usr/lib/
 endef
 
+define Package/pisa-beacon
+$(call Package/pisa/Default)
+  TITLE:=PISA beacon application
+  DEPENDS:=+libpisa
+endef
+
+define Package/pisa-beacon/description
+ This package contains the PISA beacon application.
+endef
+
+define Package/pisa-beacon/install
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_DIR) $(1)/usr/sbin/
+
+       $(INSTALL_BIN) ./files/pisabeacon.init $(1)/etc/init.d/pisabeacon
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pisabeacon $(1)/usr/sbin/
+endef
+
 define Package/pisa-mobile-guest
 $(call Package/pisa/Default)
   TITLE:=PISA mobile guest applications
@@ -114,5 +132,6 @@
 
 $(eval $(call BuildPackage,pisa))
 $(eval $(call BuildPackage,libpisa))
+$(eval $(call BuildPackage,pisa-beacon))
 $(eval $(call BuildPackage,pisa-mobile-guest))
 $(eval $(call BuildPackage,pisa-trust-point))

Other related posts:

  • » [pisa-src] r1324 - trunk/openwrt/trunk/package/pisa/Makefile - Diego Biurrun