[packages] glib2: fix autoreconf
[openwrt/svn-archive/archive.git] / net / ipupdate / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipupdate
11 PKG_VERSION:=1.1.1
12 PKG_RELEASE:=0
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ipupdate
16 PKG_MD5SUM:=88ad3ac097190055db4ba816b9d26d13
17
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ipupdate
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=IPUpdate-Daemon
25 URL:=http://ipupdate.sourceforge.net
26 endef
27
28 define Package/ipupdate/description
29 Lightweight remote DNS update-daemon which implements RFC 2136 dynamic updates.
30 Compatible with BIND, Simple DNS, and Microsoft DNS Server.
31 endef
32
33
34 define Build/Configure
35 $(call Build/Configure/Default,, \
36 UNAME_S="Linux" \
37 UNAME_R="$(LINUX_VERSION)" \
38 UNAME_M="$(ARCH)" \
39 )
40 endef
41
42 define Build/Compile
43 rm -rf $(PKG_INSTALL_DIR)
44 mkdir -p $(PKG_INSTALL_DIR)/usr
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 $(TARGET_CONFIGURE_OPTS) \
47 CC="$(TARGET_CC) $(TARGET_CFLAGS) -s" \
48 PRECOMPILED_FILTER=1 \
49 STAGING_DIR="$(STAGING_DIR)" \
50 DESTDIR="$(PKG_INSTALL_DIR)/usr" \
51 all
52 endef
53
54 define Package/ipupdate/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipupdate $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/etc/ipupdate
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dollardns $(1)/etc/ipupdate/
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/failover $(1)/etc/ipupdate/
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifip $(1)/etc/ipupdate/
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/whatismyip $(1)/etc/ipupdate/
62 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ipupdate.conf $(1)/etc/
63 endef
64
65 $(eval $(call BuildPackage,ipupdate))