* Fix compilation
 * Cleanup Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8651 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
olli 2007-09-06 14:32:33 +00:00
parent 24e0fea469
commit 7375c4662a

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2007 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -15,9 +15,8 @@ PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://neil.brown.name/portmap/ PKG_SOURCE_URL:=http://neil.brown.name/portmap/
PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(PKG_NAME)_$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -25,17 +24,19 @@ define Package/portmap
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
DEPENDS:=+libwrap DEPENDS:=+libwrap
TITLE:=RPC Portmapper TITLE:=The RPC Portmapper
URL:=ftp://ftp.porcupine.org/pub/security URL:=ftp://ftp.porcupine.org/pub/security
endef endef
define Build/Compile define Package/portmap/description
$(MAKE) -C $(PKG_BUILD_DIR) \ Portmap is a server that converts RPC (Remote Procedure Call) program
$(TARGET_CONFIGURE_OPTS) \ numbers into DARPA protocol port numbers.
endef
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \ WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
all all
endef
define Package/portmap/install define Package/portmap/install
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin