[packages] licensing: Licensing metadata added to many packages
[packages.git] / net / portmap / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=portmap
11 PKG_VERSION:=6.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://neil.brown.name/portmap/
16 PKG_MD5SUM:=ac108ab68bf0f34477f8317791aaf1ff
17
18 PKG_LICENSE:=BSD-4c
19 PKG_LICENSE_FILES:=portmap.man
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/portmap
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+libwrap $(LIBRPC_DEPENDS)
29   TITLE:=The RPC Portmapper
30   URL:=http://neil.brown.name/portmap/
31 endef
32
33 define Package/portmap/description
34  Portmap is a server that converts RPC (Remote Procedure Call) program
35  numbers into DARPA protocol port numbers.
36 endef
37
38 MAKE_FLAGS += \
39         CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
40         RPCUSER="nobody" \
41         LDLIBS="$(TARGET_LDFLAGS) -lwrap $(LIBRPC)" \
42         all
43
44 define Package/portmap/install
45         $(INSTALL_DIR) $(1)/usr/sbin
46         $(INSTALL_BIN) $(PKG_BUILD_DIR)/portmap $(1)/usr/sbin/
47         $(INSTALL_DIR) $(1)/etc/init.d
48         $(INSTALL_BIN) ./files/portmap.init $(1)/etc/init.d/portmap
49 endef
50
51 $(eval $(call BuildPackage,portmap))