Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=eventlog
  3. PKG_VERSION:=0.2.12
  4. PKG_RELEASE:=2
  5. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  6. PKG_SOURCE_URL:=https://my.balabit.com/downloads/eventlog/0.2/
  7. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  8. PKG_MD5SUM:=3d6ebda8a161d36cb40d09328f78786b
  9. PKG_FIXUP:=autoreconf
  10. PKG_INSTALL:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/libeventlog
  13. SECTION:=libs
  14. CATEGORY:=Libraries
  15. TITLE:=A new API to format and send structured log messages.
  16. endef
  17. define Package/eventlog/description
  18. A new API to format and send structured log messages. It supports multiple message
  19. representations (plain, XML attributes and XML tags) and multiple output methods
  20. (local syslogd).
  21. endef
  22. define Build/InstallDev
  23. $(INSTALL_DIR) $(1)/usr/include
  24. $(CP) $(PKG_INSTALL_DIR)/usr/include/eventlog $(1)/usr/include/
  25. $(INSTALL_DIR) $(1)/usr/lib
  26. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.{a,so*} $(1)/usr/lib/
  27. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  28. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/eventlog.pc $(1)/usr/lib/pkgconfig/
  29. endef
  30. define Package/libeventlog/install
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libevtlog.so* $(1)/usr/lib/
  33. endef
  34. $(eval $(call BuildPackage,libeventlog))