enable mount nfs, thx ejka@imfi.kspu.ru
[openwrt.git] / package / p910nd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=p910nd
4 PKG_VERSION:=0.7
5 PKG_RELEASE:=2
6 PKG_MD5SUM:=7bf752532d26c9106f8039db95df3a6b
7
8 PKG_SOURCE_URL:=http://www.etherboot.org/p910nd
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
10 PKG_CAT:=bzcat
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 PKG_INIT_PRIO=70
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,P910ND,p910nd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS) -DLOCKFILE_DIR=\"\\\"/tmp\\\"\""
27 touch $@
28
29 $(IPKG_P910ND):
30 install -d -m0755 $(IDIR_P910ND)/etc/default
31 install -m0644 ./files/p910nd.default $(IDIR_P910ND)/etc/default/p910nd
32 install -d -m0755 $(IDIR_P910ND)/etc/init.d
33 install -m0755 ./files/p910nd.init $(IDIR_P910ND)/etc/init.d/p910nd
34 install -d -m0755 $(IDIR_P910ND)/usr/sbin
35 ln -sf p910nd $(IDIR_P910ND)/etc/init.d/S$(PKG_INIT_PRIO)p910nd
36 $(CP) $(PKG_BUILD_DIR)/p910nd $(IDIR_P910ND)/usr/sbin
37 $(RSTRIP) $(IDIR_P910ND)
38 $(IPKG_BUILD) $(IDIR_P910ND) $(PACKAGE_DIR)
39
40 mostlyclean:
41 -$(MAKE) -C $(PKG_BUILD_DIR) clean
42 rm -rf $(PKG_BUILD_DIR)/.built
This page took 0.050505 seconds and 5 git commands to generate.