source: packages/net/nfs-server/Makefile @ 29181

Last change on this file since 29181 was 29181, checked in by nico, 4 years ago

packages/nfs-server: use new service functions, remove portmap from start/stop (it is in its own initscript)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=nfs-server
11PKG_VERSION:=2.2beta47
12PKG_RELEASE:=2
13
14PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server
15PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz
16PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/nfs-server
21  SECTION:=net
22  CATEGORY:=Network
23  SUBMENU:=Filesystem
24  DEPENDS:=+portmap $(LIBRPC_DEPENDS)
25  TITLE:=User Space NFS server
26  URL:=http://packages.debian.org/nfs-user-server
27endef
28
29define Package/nfs-server/description
30User Space NFS server
31endef
32
33define Build/Compile
34        $(MAKE) -C $(PKG_BUILD_DIR)
35endef
36
37TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
38TARGET_LDFLAGS += $(LIBRPC)
39
40define Package/nfs-server/install
41        $(INSTALL_DIR) $(1)/etc
42        $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports
43        $(INSTALL_DIR) $(1)/etc/init.d
44        $(INSTALL_BIN) ./files/nfsd.init $(1)/etc/init.d/nfsd
45        $(INSTALL_DIR) $(1)/usr/sbin
46        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rpc.* $(1)/usr/sbin/
47endef
48
49$(eval $(call BuildPackage,nfs-server))
Note: See TracBrowser for help on using the repository browser.