fix bogus ln -sf line
[openwrt/svn-archive/archive.git] / net / portmap / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=portmap
12 PKG_VERSION:=5beta
13 PKG_RELEASE:=2
14 PKG_MD5SUM:=781e16ed4487c4caa082c6fef09ead4f
15
16 PKG_SOURCE_URL:=ftp://ftp.porcupine.org/pub/security
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/portmap
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libwrap
29 TITLE:=RPC Portmapper
30 DESCRIPTION:=The RPC Portmapper (used by the NFS Server)
31 URL:=ftp://ftp.porcupine.org/pub/security
32 endef
33
34 define Build/Compile
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" \
39 all
40 endef
41
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/
47 endef
48
49 $(eval $(call BuildPackage,portmap))