2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=http
://neil.brown.name
/portmap
/
16 PKG_HASH
:=02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a281d41de
19 PKG_LICENSE_FILES
:=portmap.man
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/portmap
28 DEPENDS
:=+libwrap
$(LIBRPC_DEPENDS
)
29 TITLE
:=The RPC Portmapper
30 URL
:=http
://neil.brown.name
/portmap
/
31 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
32 USERID
:=rpc
=65533:rpc
=65533
35 define Package
/portmap
/description
36 Portmap is a server that converts RPC
(Remote Procedure Call
) program
37 numbers into DARPA protocol port numbers.
41 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
43 LDLIBS
="$(TARGET_LDFLAGS) -lwrap $(LIBRPC)" \
46 define Package
/portmap
/install
47 $(INSTALL_DIR
) $(1)/usr
/sbin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/portmap
$(1)/usr
/sbin
/
49 $(INSTALL_DIR
) $(1)/etc
/init.d
50 $(INSTALL_BIN
) .
/files
/portmap.init
$(1)/etc
/init.d
/portmap
53 $(eval
$(call BuildPackage
,portmap
))