2 # Copyright (C) 2007 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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
16 PKG_SOURCE_URL
:=http
://neil.brown.name
/portmap
/
17 PKG_MD5SUM
:=ac108ab68bf0f34477f8317791aaf1ff
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/portmap
27 TITLE
:=The RPC Portmapper
28 URL
:=ftp
://ftp.porcupine.org
/pub
/security
31 define Package
/portmap
/description
32 Portmap is a server that converts RPC
(Remote Procedure Call
) program
33 numbers into DARPA protocol port numbers.
37 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
39 WRAP_LIB
="-L$(STAGING_DIR)/usr/lib -lwrap" \
42 define Package
/portmap
/install
43 $(INSTALL_DIR
) $(1)/usr
/sbin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/portmap
$(1)/usr
/sbin
/
45 $(INSTALL_DIR
) $(1)/etc
/init.d
46 $(INSTALL_BIN
) .
/files
/portmap.init
$(1)/etc
/init.d
/portmap
49 $(eval
$(call BuildPackage
,portmap
))