summaryrefslogtreecommitdiffstats
path: root/package/ez-ipupdate/rules
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-24 11:54:30 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-24 11:54:30 +0000
commitd6f6ccbec87f1e4504f37c4a534c12c9cd6ade8e (patch)
treef2ff6d7152fdda78e8daf31d94aaf9e090b953b2 /package/ez-ipupdate/rules
parentaadd0e4b88ff1c6da42d940dc63919b044759a92 (diff)
add ez-ipupdate
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@438 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ez-ipupdate/rules')
-rw-r--r--package/ez-ipupdate/rules97
1 files changed, 97 insertions, 0 deletions
diff --git a/package/ez-ipupdate/rules b/package/ez-ipupdate/rules
new file mode 100644
index 000000000..f56d2b276
--- /dev/null
+++ b/package/ez-ipupdate/rules
@@ -0,0 +1,97 @@
+#!/usr/bin/make -f
+
+ifeq ($(strip ${IPKG_DIR}),)
+ IPKG_DIR := $(shell pwd)/../..
+endif
+
+include $(IPKG_DIR)/Makefile.inc
+
+##
+
+EZ_IPUPDATE_DIR := ipkg/ez-ipupdate
+
+BUILD_DEPS := \
+
+##
+
+all: package
+
+build: .stamp-built
+
+install: .stamp-installed
+
+clean:
+
+ $(MAKE) clean
+ rm -rf .stamp-*
+ rm -rf $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate
+ rm -rf $(EZ_IPUPDATE_DIR)/usr
+
+
+control:
+
+ @cat $(EZ_IPUPDATE_DIR)/CONTROL/control
+ @echo
+
+
+binary package: .stamp-installed
+
+ @cat $(EZ_IPUPDATE_DIR)/CONTROL/control
+ $(IPKG_BUILD) $(EZ_IPUPDATE_DIR) $(IPKG_TARGET_DIR)
+
+
+.stamp-built: $(BUILD_DEPS)
+
+ rm -rf config.cache
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --includedir=/usr/include \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib/locate \
+ --localstatedir=/var/lib \
+ --mandir=/usr/share/man \
+ --sbindir=/usr/sbin \
+ --sysconfdir=/etc \
+ $(DISABLE_NLS) \
+
+ $(MAKE) \
+ $(TARGET_CONFIGURE_OPTS) \
+
+ touch .stamp-built
+
+
+.stamp-installed: .stamp-built
+
+ mkdir -p $(EZ_IPUPDATE_DIR)
+
+ $(MAKE) \
+ DESTDIR="$(shell pwd)/$(EZ_IPUPDATE_DIR)" \
+ install
+
+ mkdir -p $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate
+ cp -a example-dyndns.conf $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate/
+
+ $(STRIP) $(EZ_IPUPDATE_DIR)/usr/bin/*
+
+ chmod 0755 $(EZ_IPUPDATE_DIR)/CONTROL
+ chmod 0644 $(EZ_IPUPDATE_DIR)/CONTROL/control
+ chmod 0755 $(EZ_IPUPDATE_DIR)/etc
+ chmod 0700 $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate
+ chmod 0600 $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate/*
+ chmod 0755 $(EZ_IPUPDATE_DIR)/usr
+ chmod 0755 $(EZ_IPUPDATE_DIR)/usr/bin
+ chmod 0755 $(EZ_IPUPDATE_DIR)/usr/bin/ez-ipupdate
+
+ touch .stamp-installed
+
+
+.PHONY: build install clean control binary package