2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_MD5SUM:=c3d9a56255819ef8904b867284386911
16 PKG_SOURCE_URL:=@SF/ojnk
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24 include $(INCLUDE_DIR)/package.mk
26 define Package/oidentd
31 DESCRIPTION:=A nat aware identd server that will correctly forwared requests to clients
35 define Build/Configure
36 $(call Build/Configure/Default,--includedir=$(PKG_BUILD_DIR)/)
40 $(call Build/Compile/Default)
41 $(STRIP) $(PKG_BUILD_DIR)/src/$(PKG_NAME)
44 define Package/oidentd/install
45 install -m0755 -d $(1)/usr/sbin
46 install -m0755 -d $(1)/etc/init.d
47 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/sbin/
48 $(CP) ./files/S85oidentd $(1)/etc/init.d
51 $(eval $(call BuildPackage,oidentd))