7608ba449f
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5128 3c298f89-4303-0410-b956-a3cf2f4a3e73
74 lines
2.0 KiB
Makefile
74 lines
2.0 KiB
Makefile
# $Id: Makefile 4033 2006-06-21 02:32:39Z nbd $
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=nfs-kernel-server
|
|
PKG_VERSION:=1.0.7
|
|
PKG_RELEASE:=1
|
|
PKG_MD5SUM:=8f863120261cd572ad320a9152581e11
|
|
|
|
PKG_SOURCE_URL:=@SF/nfs
|
|
PKG_SOURCE:=nfs-utils-$(PKG_VERSION).tar.gz
|
|
PKG_CAT:=zcat
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/nfs-utils-$(PKG_VERSION)
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/nfs-kernel-server
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Kernel NFS server support
|
|
DESCRIPTION:=Kernel NFS server support
|
|
URL:=http://nfs.sourceforge.net/
|
|
endef
|
|
|
|
define Package/nfs-kernel-server-utils
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=NFS server utils
|
|
DESCRIPTION:=NFS server utils
|
|
URL:=http://nfs.sourceforge.net
|
|
DEPENDS:=nfs-kernel-server
|
|
DEFAULT:=y
|
|
endef
|
|
|
|
|
|
define Package/nfs-kernel-server/conffiles
|
|
/etc/exports
|
|
endef
|
|
|
|
define Build/Configure
|
|
$(call Build/Configure/Default,--enable-static --enable-shared --disable-nfsv4 \
|
|
--disable-gss,ac_cv_func_malloc_0_nonnull=yes \
|
|
ac_cv_func_memcmp_working=yes \
|
|
ac_cv_func_setvbuf_reversed=no)
|
|
endef
|
|
|
|
define Build/Compile
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Package/nfs-kernel-server/install
|
|
install -d -m755 $(1)/etc/init.d $(1)/usr/sbin
|
|
install -m0644 ./files/nfsd.exports $(1)/etc/exports
|
|
install -m0755 ./files/nfsd.init $(1)/etc/init.d/nfsd
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/lockd/lockd $(1)/usr/sbin/rpc.lockd
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/statd/statd $(1)/usr/sbin/rpc.statd
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/nfsd/nfsd $(1)/usr/sbin/rpc.nfsd
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/mountd/mountd $(1)/usr/sbin/rpc.mountd
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/exportfs/exportfs $(1)/usr/sbin/
|
|
endef
|
|
|
|
define Package/nfs-kernel-server-utils/install
|
|
install -d -m0755 $(1)/usr/sbin
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/showmount/showmount $(1)/usr/sbin
|
|
install -m0755 $(PKG_BUILD_DIR)/utils/nfsstat/nfsstat $(1)/usr/sbin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,nfs-kernel-server))
|
|
$(eval $(call BuildPackage,nfs-kernel-server-utils))
|