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
15 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.porcupine.org
/pub
/security
17 PKG_MD5SUM
:=781e16ed4487c4caa082c6fef09ead4f
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/portmap
29 URL
:=ftp
://ftp.porcupine.org
/pub
/security
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" \
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
47 $(eval
$(call BuildPackage
,portmap
))