24e0fea469
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8650 3c298f89-4303-0410-b956-a3cf2f4a3e73
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=portmap
|
|
PKG_VERSION:=6.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
PKG_SOURCE_URL:=http://neil.brown.name/portmap/
|
|
PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff
|
|
PKG_CAT:=zcat
|
|
|
|
PKG_BUILD_DIR:=$(PKG_NAME)_$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/portmap
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libwrap
|
|
TITLE:=RPC Portmapper
|
|
URL:=ftp://ftp.porcupine.org/pub/security
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
|
|
WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
|
|
all
|
|
endef
|
|
|
|
define Package/portmap/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/portmap.init $(1)/etc/init.d/portmap
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,portmap))
|