fix ssmtp compile
[openwrt/svn-archive/archive.git] / ipv6 / totd / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=totd
12 PKG_VERSION:=1.5.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.pasta.cs.uit.no/pub/totd/
17 PKG_MD5SUM:=7edaedae9f6aca5912dd6c123582cf08
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/totd
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 DEPENDS:=+kmod-ipv6
27 TITLE:=Small DNS proxy that supports IPv6/IPv4 record translation
28 URL:=http://pasta.cs.uit.no/software/totd.html
29 endef
30
31 define Package/totd/description
32 totd is a small DNS proxy nameserver which supports IPv6 and enable IPv6
33 only sites to access IPv4 sites by using some translation mechanism such
34 as NAT-PT, KAME faith, etc...
35 endef
36
37 define Package/totd/conffiles
38 /etc/totd.conf
39 endef
40
41 # uses GNU configure
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 CC="$(TARGET_CC)" \
47 all
48 endef
49
50 define Package/totd/install
51 $(INSTALL_DIR) $(1)/usr/sbin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
53 $(INSTALL_DIR) $(1)/etc/
54 $(INSTALL_CONF) ./files/totd.conf $(1)/etc/
55 $(INSTALL_DIR) $(1)/etc/init.d/
56 $(INSTALL_BIN) ./files/totd.init $(1)/etc/init.d/totd
57 endef
58
59 $(eval $(call BuildPackage,totd))