disable non-essential packages by default if DEVELOPER is unset on make menuconfig
[openwrt.git] / openwrt / package / ntpclient / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ntpclient
4 PKG_VERSION:=2003_194
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=94e84d5c6023c5e1f3890b28d0a08c92
7
8 PKG_SOURCE_URL:=http://doolittle.faludi.com/ntpclient
9 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
10 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
11 PKG_CAT:=zcat
12 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
13 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
14
15 $(DL_DIR)/$(PKG_SOURCE):
16 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
17
18 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE)
19 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
20 touch $(PKG_BUILD_DIR)/.unpacked
21
22 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.unpacked
23 $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR)
24
25 $(PKG_IPK): $(PKG_BUILD_DIR)/$(PKG_NAME)
26 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
27 mkdir -p $(PKG_IPK_DIR)/usr/sbin $(PKG_IPK_DIR)/etc/init.d
28 install -m 755 $(PKG_BUILD_DIR)/ntpclient $(PKG_IPK_DIR)/usr/sbin/
29 install -m 755 ./files/S41ntpclient $(PKG_IPK_DIR)/etc/init.d/
30 $(STRIP) $(PKG_IPK_DIR)/usr/sbin/*
31 mkdir -p $(PACKAGE_DIR)
32 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
33
34 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
35 $(IPKG) install $(PKG_IPK)
36
37 source: $(DL_DIR)/$(PKG_SOURCE)
38 prepare: $(PKG_BUILD_DIR)/.unpacked
39 compile: $(PKG_IPK)
40 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
41
42 clean:
43 rm -rf $(PKG_BUILD_DIR)
44 rm -f $(PKG_IPK)
This page took 0.03931 seconds and 5 git commands to generate.