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.

66 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2009-2012 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:=dmapd
  9. PKG_VERSION:=0.0.72
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=GPLv2
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd
  16. PKG_MD5SUM:=0fe290d1bf003296b1ed9dfcc0108d6f
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=2
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/dmapd
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libdmapsharing +libdb47 +vips
  25. TITLE:= dmapd
  26. URL:=http://www.flyn.org/projects/dmapd/
  27. USERID:=dmapd=56:dmapd=56
  28. endef
  29. define Package/dmapd/decription
  30. Dmapd is a DMAP server
  31. endef
  32. define Package/dmapd/conffiles
  33. /etc/dmapd.conf
  34. endef
  35. TARGET_LDFLAGS+=\
  36. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  37. define Package/dmapd/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_CONF) $(PKG_BUILD_DIR)/distro/dmapd.conf $(1)/etc/
  41. $(INSTALL_BIN) ./files/dmapd.init $(1)/etc/init.d/dmapd
  42. $(INSTALL_DIR) $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/sbin/dmapd \
  45. $(1)/usr/sbin/
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libdmapd.so* \
  48. $(1)/usr/lib/
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/lib/dmapd/$(PKG_VERSION)/modules/*.so \
  51. $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules/
  52. endef
  53. $(eval $(call BuildPackage,dmapd))