1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=94e84d5c6023c5e1f3890b28d0a08c92
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
)
12 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
13 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
15 $(DL_DIR
)/$(PKG_SOURCE
):
16 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
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
22 $(PKG_BUILD_DIR
)/$(PKG_NAME
): $(PKG_BUILD_DIR
)/.unpacked
23 $(MAKE
) CC
=$(TARGET_CC
) CFLAGS
="$(TARGET_CFLAGS)" -C
$(PKG_BUILD_DIR
)
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
)
34 $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
: $(PKG_IPK
)
35 $(IPKG
) install $(PKG_IPK
)
37 source
: $(DL_DIR
)/$(PKG_SOURCE
)
38 prepare
: $(PKG_BUILD_DIR
)/.unpacked
40 install: $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
43 rm -rf
$(PKG_BUILD_DIR
)