Convert portmap to new packaging style
[openwrt.git] / openwrt / package / portmap / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=portmap
6 PKG_VERSION:=5beta
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=781e16ed4487c4caa082c6fef09ead4f
9
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
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,PORTMAP,portmap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $(PKG_BUILD_DIR)/.configured
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" all
29 touch $(PKG_BUILD_DIR)/.built
30
31 $(IPKG_PORTMAP):
32 install -d -m0755 $(IDIR_PORTMAP)/usr/sbin
33 install -m0755 $(PKG_BUILD_DIR)/portmap $(IDIR_PORTMAP)/usr/sbin/
34 $(RSTRIP) $(IDIR_PORTMAP)
35 $(IPKG_BUILD) $(IDIR_PORTMAP) $(PACKAGE_DIR)
This page took 0.037621 seconds and 5 git commands to generate.