[patchteam] dudders needs to be started after time synchronisation, because
[openwrt.org/packages.git] / net / dudders / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=dudders
PKG_VERSION:=1.04
PKG_RELEASE:=2
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=1d368a86f3c284e95d260a94767a8ded
 
PKG_BUILD_DEPENDS:=+libopenssl +libgcrypt
PKG_FIXUP:=libtool
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
define Package/dudders
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=DNS
  TITLE:=DNS Update SIG(0) client
  MAINTAINER:=Dean Scarff <dos@scarff.id.au>
  URL:=http://dudders.sourceforge.net/
endef
 
define Package/dudders/description
  Dudders is a utility for updating DNS records.  It points
  a domain name to a given IP address, using the RFC2136 DNS
  UPDATE protocol and a SIG(0) signature.  It is designed with
  embedded systems in mind.
 
  You must have either libopenssl or libgcrypt installed to
  use this package.
endef
 
define Package/dudders/conffiles
/etc/config/dudders
endef
 
EXTRA_CFLAGS:= -DNDEBUG -std=gnu99
 
CONFIGURE_ARGS+= \
        --with-libgcrypt-prefix="$(STAGING_DIR)/usr"
 
define Package/dudders/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dudders $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/usr/lib/dudders
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_gcrypt.so \
                       $(1)/usr/lib/dudders/
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_openssl.so \
                       $(1)/usr/lib/dudders/
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_CONF) ./files/dudders.conf $(1)/etc/config/dudders
        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
        $(INSTALL_BIN) ./files/dudders.hotplug $(1)/etc/hotplug.d/iface/50-dudders
endef
 
$(eval $(call BuildPackage,dudders))
 
comments