[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[packages.git] / net / portmap / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=portmap
11 PKG_VERSION:=6.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://neil.brown.name/portmap/
16 PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/portmap
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+libwrap
26   TITLE:=The RPC Portmapper
27   URL:=ftp://ftp.porcupine.org/pub/security
28 endef
29
30 define Package/portmap/description
31  Portmap is a server that converts RPC (Remote Procedure Call) program
32  numbers into DARPA protocol port numbers.
33 endef
34
35 MAKE_FLAGS += \
36         CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
37         RPCUSER="nobody" \
38         WRAP_LIB="$(TARGET_LDFLAGS) -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))