720f8a555be56a19ed8240040c2e9550bd5b6e4b
[packages.git] / net / portmap / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=2
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         RPCUSER="nobody" \
39         WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
40         all
41
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
47 endef
48
49 $(eval $(call BuildPackage,portmap))