more tristate -> prompt fixes
[openwrt.git] / 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 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 $(DISABLE_LARGEFILE) \
46 $(DISABLE_NLS) \
47 );
48 touch $@
49
50 $(PKG_BUILD_DIR)/.built:
51 $(MAKE) -C $(PKG_BUILD_DIR)
52 touch $@
53
54 $(IPKG_NFS_SERVER):
55 install -d -m0755 $(IDIR_NFS_SERVER)/etc
56 install -m0644 ./files/nfsd.exports $(IDIR_NFS_SERVER)/etc/exports
57 install -d -m0755 $(IDIR_NFS_SERVER)/etc/init.d
58 install -m0755 ./files/nfsd.init $(IDIR_NFS_SERVER)/etc/init.d/S60nfsd
59 install -d -m0755 $(IDIR_NFS_SERVER)/usr/sbin
60 install -m0755 $(PKG_BUILD_DIR)/rpc.* $(IDIR_NFS_SERVER)/usr/sbin/
61 $(RSTRIP) $(IDIR_NFS_SERVER)
62 $(IPKG_BUILD) $(IDIR_NFS_SERVER) $(PACKAGE_DIR)
This page took 0.043254 seconds and 5 git commands to generate.