2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=781e16ed4487c4caa082c6fef09ead4f
16 PKG_SOURCE_URL
:=ftp
://ftp.porcupine.org
/pub
/security
17 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/portmap
30 DESCRIPTION
:=The RPC Portmapper
(used by the NFS Server
)
31 URL
:=ftp
://ftp.porcupine.org
/pub
/security
35 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 $(TARGET_CONFIGURE_OPTS
) \
37 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
38 WRAP_LIB
="-L$(STAGING_DIR)/usr/lib -lwrap" \
42 define Package
/portmap
/install
43 install -d
-m0755
$(1)/etc
/init.d
44 install -m0755 .
/files
/portmap.init
$(1)/etc
/init.d
/portmap
45 install -d
-m0755
$(1)/usr
/sbin
46 install -m0755
$(PKG_BUILD_DIR
)/portmap
$(1)/usr
/sbin
/
49 $(eval
$(call BuildPackage
,portmap
))