0ba46c6a9fd2b5c5f6bd606bfee77969454b892d
[openwrt/svn-archive/archive.git] / net / portmap / Makefile
1 #
2 # Copyright (C) 2007 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:=portmap
12 PKG_VERSION:=6.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=http://neil.brown.name/portmap/
17 PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/portmap
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libwrap
27 TITLE:=The RPC Portmapper
28 URL:=ftp://ftp.porcupine.org/pub/security
29 endef
30
31 define Package/portmap/description
32 Portmap is a server that converts RPC (Remote Procedure Call) program
33 numbers into DARPA protocol port numbers.
34 endef
35
36 MAKE_FLAGS += \
37 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
38 WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
39 all
40
41 define Package/portmap/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/portmap.init $(1)/etc/init.d/portmap
46 endef
47
48 $(eval $(call BuildPackage,portmap))