Port portsentry to -ng
[openwrt/svn-archive/archive.git] / net / oidentd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id:$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=oidentd
12 PKG_VERSION:=2.0.8
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=c3d9a56255819ef8904b867284386911
15
16 PKG_SOURCE_URL:=@SF/ojnk
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/oidentd
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=
30 TITLE:=Identd server
31 DESCRIPTION:=A nat aware identd server that will correctly forwared requests to clients
32 endef
33
34
35 define Build/Configure
36 $(call Build/Configure/Default,--includedir=$(PKG_BUILD_DIR)/)
37 endef
38
39 define Build/Compile
40 rm -rf $(PKG_INSTALL_DIR)
41 mkdir -p $(PKG_INSTALL_DIR)
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 CC="$(TARGET_CC)"
44 $(STRIP) $(PKG_BUILD_DIR)/src/$(PKG_NAME)
45 endef
46
47 define Package/oidentd/install
48 install -m0755 -d $(1)/usr/sbin
49 install -m0755 -d $(1)/etc/init.d
50 $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/sbin/
51 $(CP) ./files/S85oidentd $(1)/etc/init.d
52 endef
53
54 $(eval $(call BuildPackage,oidentd))
55
56
57