fix sdk build
[openwrt.git] / openwrt / package / nfs-server / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nfs-server
6 PKG_VERSION:=2.2beta47
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511
9
10 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server
11 PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,NFS_SERVER,nfs-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_LARGEFILE) \
44 $(DISABLE_NLS) \
45 );
46 touch $@
47
48 $(PKG_BUILD_DIR)/.built:
49 $(MAKE) -C $(PKG_BUILD_DIR)
50 touch $@
51
52 $(IPKG_NFS_SERVER):
53 install -d -m0755 $(IDIR_NFS_SERVER)/etc
54 install -m0644 ./files/nfsd.exports $(IDIR_NFS_SERVER)/etc/exports
55 install -d -m0755 $(IDIR_NFS_SERVER)/etc/init.d
56 install -m0644 ./files/nfsd.init $(IDIR_NFS_SERVER)/etc/init.d/S60nfsd
57 install -d -m0755 $(IDIR_NFS_SERVER)/usr/sbin
58 install -m0755 $(PKG_BUILD_DIR)/rpc.* $(IDIR_NFS_SERVER)/usr/sbin/
59 $(RSTRIP) $(IDIR_NFS_SERVER)
60 $(IPKG_BUILD) $(IDIR_NFS_SERVER) $(PACKAGE_DIR)
This page took 0.039384 seconds and 5 git commands to generate.