summaryrefslogtreecommitdiff
path: root/package/libnfsidmap/Makefile
blob: 2d22b7dacfe8f6c17ee6ceb19d1b4a8b1f2c3b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		libnfsidmap
PKG_VERSION:=		0.25
PKG_RELEASE:=		1
PKG_MD5SUM:=		2ac4893c92716add1a1447ae01df77ab
PKG_DESCR:=		idmap library for NFSv4
PKG_SECTION:=		libs
PKG_URL:=		http://www.citi.umich.edu/projects/nfsv4/linux/
PKG_SITES:=		http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/

PKG_SUBPKGS:=		LIBNFSIDMAP LIBNFSIDMAP_DEV
PKGSC_LIBNFSIDMAP_DEV:=	devel
PKGSD_LIBNFSIDMAP_DEV:=	headers for NFSv4 idmap library

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,LIBNFSIDMAP,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBNFSIDMAP_DEV,libnfsidmap-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNFSIDMAP_DEV},${PKGSC_LIBNFSIDMAP_DEV}))

libnfsidmap-install:
	$(INSTALL_DIR) $(IDIR_LIBNFSIDMAP)/usr/lib/libnfsidmap
	$(CP) $(WRKINST)/usr/lib/libnfsidmap.so* \
		$(IDIR_LIBNFSIDMAP)/usr/lib/
	$(CP) $(WRKINST)//usr/lib/libnfsidmap/static.so \
		$(IDIR_LIBNFSIDMAP)/usr/lib/libnfsidmap

libnfsidmap-dev-install:
	$(INSTALL_DIR) $(IDIR_LIBNFSIDMAP_DEV)/usr/include
	$(INSTALL_DATA) ${WRKINST}/usr/include/nfsidmap.h \
		$(IDIR_LIBNFSIDMAP_DEV)/usr/include

include ${TOPDIR}/mk/pkg-bottom.mk