port changes in whiterussian ([3341]) to trunk.
[openwrt/svn-archive/archive.git] / openwrt / package / ez-ipupdate / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ez-ipupdate
6 PKG_VERSION:=3.0.11b8
7 PKG_RELEASE:=2
8 PKG_MD5SUM:=000211add4c4845ffa4211841bff4fb0
9
10 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \
11 http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate
12 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_CAT:=zcat
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,EZIPUPDATE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --exec-prefix=/usr \
30 --bindir=/usr/bin \
31 --datadir=/usr/share \
32 --includedir=/usr/include \
33 --infodir=/usr/share/info \
34 --libdir=/usr/lib \
35 --libexecdir=/usr/lib/locate \
36 --localstatedir=/var/lib \
37 --mandir=/usr/share/man \
38 --sbindir=/usr/sbin \
39 --sysconfdir=/etc \
40 $(DISABLE_NLS) \
41 );
42 touch $@
43
44 $(PKG_BUILD_DIR)/.built:
45 $(MAKE) -C $(PKG_BUILD_DIR)
46 touch $@
47
48 $(IPKG_EZIPUPDATE):
49 install -d -m0755 $(IDIR_EZIPUPDATE)/etc
50 install -m0600 ./files/$(PKG_NAME).conf $(IDIR_EZIPUPDATE)/etc/
51 install -d -m0755 $(IDIR_EZIPUPDATE)/etc/hotplug.d/iface
52 install -m0755 ./files/$(PKG_NAME).hotplug $(IDIR_EZIPUPDATE)/etc/hotplug.d/iface/10-$(PKG_NAME)
53 install -d -m0755 $(IDIR_EZIPUPDATE)/usr/sbin
54 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_EZIPUPDATE)/usr/sbin/
55 $(RSTRIP) $(IDIR_EZIPUPDATE)
56 $(IPKG_BUILD) $(IDIR_EZIPUPDATE) $(PACKAGE_DIR)
57