packages/net/portmap/Makefile
nbd 7608ba449f init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enable|disable) manages symlinks
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5128 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-15 21:03:30 +00:00

50 lines
1.2 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=portmap
PKG_VERSION:=5beta
PKG_RELEASE:=2
PKG_MD5SUM:=781e16ed4487c4caa082c6fef09ead4f
PKG_SOURCE_URL:=ftp://ftp.porcupine.org/pub/security
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/portmap
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libwrap
TITLE:=RPC Portmapper
DESCRIPTION:=The RPC Portmapper (used by the NFS Server)
URL:=ftp://ftp.porcupine.org/pub/security
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
WRAP_LIB="-L$(STAGING_DIR)/usr/lib -lwrap" \
all
endef
define Package/portmap/install
install -d -m0755 $(1)/etc/init.d
install -m0755 ./files/portmap.init $(1)/etc/init.d/portmap
install -d -m0755 $(1)/usr/sbin
install -m0755 $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,portmap))