3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=781e16ed4487c4caa082c6fef09ead4f
10 # space separated list or special @SF for sourceforge projects
11 PKG_SOURCE_URL
:=ftp
://ftp.porcupine.org
/pub
/security
12 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,PORTMAP
,portmap
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
:
26 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
29 WRAP_LIB
="-L$(STAGING_DIR)/usr/lib -lwrap" \
34 install -d
-m0755
$(IDIR_PORTMAP
)/etc
/init.d
35 install -m0755 .
/files
/portmap.init
$(IDIR_PORTMAP
)/etc
/init.d
/portmap
36 ln
-sf portmap
$(IDIR_PORTMAP
)/etc
/init.d
/S59portmap
37 install -d
-m0755
$(IDIR_PORTMAP
)/usr
/sbin
38 install -m0755
$(PKG_BUILD_DIR
)/portmap
$(IDIR_PORTMAP
)/usr
/sbin
/
39 $(RSTRIP
) $(IDIR_PORTMAP
)
40 $(IPKG_BUILD
) $(IDIR_PORTMAP
) $(PACKAGE_DIR
)