fix ssmtp compile
[openwrt/svn-archive/archive.git] / ipv6 / ptrtd / 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:=ptrtd
12 PKG_VERSION:=0.5.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://v6web.litech.org/ptrtd/dist/
17 PKG_MD5SUM:=bfe026445fdc4fe509a9c70ec4551744
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ptrtd
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 DEPENDS:=+kmod-ipv6 +kmod-tun +ip
27 TITLE:=Portable Transport Relay Translator Daemon
28 URL:=http://v6web.litech.org/ptrtd/
29 endef
30
31 define Package/ptrtd/description
32 The Portable Transport Relay Translator Daemon (pTRTd)
33 is a method of allowing IPv6 hosts to communicate with IPv4 hosts.
34 endef
35
36 MAKE_FLAGS += \
37 CFLAGS="$(TARGET_CFLAGS)"
38
39 define Package/ptrtd/install
40 $(INSTALL_DIR) $(1)/usr/sbin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
42 $(INSTALL_DIR) $(1)/etc/init.d/
43 $(INSTALL_BIN) ./files/ptrtd.init $(1)/etc/init.d/ptrtd
44 endef
45
46 $(eval $(call BuildPackage,ptrtd))