Upgrade portmap to 6.0 (#2317)
[openwrt/svn-archive/archive.git] / net / portmap / Makefile
1 #
2 # Copyright (C) 2006 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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(PKG_NAME)_$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/portmap
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libwrap
28 TITLE:=RPC Portmapper
29 URL:=ftp://ftp.porcupine.org/pub/security
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
36 WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
37 all
38 endef
39
40 define Package/portmap/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/portmap.init $(1)/etc/init.d/portmap
45 endef
46
47 $(eval $(call BuildPackage,portmap))