1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2006-2015 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:=fakeidentd
  9. PKG_VERSION:=2.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).c
  12. PKG_SOURCE_URL:=http://distfiles.gentoo.org/distfiles/
  13. PKG_MD5SUM:=d26693c1a7c883d1432e05fb6f7ead6e
  14. PKG_MAINTAINER:=Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
  15. PKG_LICENSE:=GPL-2.0+
  16. UNPACK_CMD=$(CP) $(DL_DIR)/$(PKG_SOURCE) $(1)/
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/fakeidentd
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=A static, secure identd.
  22. URL:=http://www.guru-group.fi/~too/sw/releases/
  23. endef
  24. define Package/fakeidentd/description
  25. A static secure identd, only one source file.
  26. endef
  27. define Build/Compile
  28. $(SHELL) "$(PKG_BUILD_DIR)/$(MAKE_PATH)/$(PKG_SOURCE)" \
  29. CC="$(TARGET_CC)" TRG="$(PKG_BUILD_DIR)/$(MAKE_PATH)/$(PKG_NAME)" \
  30. $(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) \
  31. $(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) -DUSE_UNIX_OS
  32. endef
  33. define Package/fakeidentd/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  38. endef
  39. $(eval $(call BuildPackage,fakeidentd))