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