2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-src.
tar.gz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=76a814d528274b2dc7ff7623bd6f6b45
19 include $(INCLUDE_DIR
)/package.mk
21 # add dependency on 2.6 since recent dibbler needs <linux/ip_mp_alg.h>
22 define Package
/dibbler
/Default
25 DEPENDS
:=+uclibcxx @LINUX_2_6
26 TITLE
:=Dibbler
, a portable DHCPv6 implementation
27 URL
:=http
://klub.com.pl
/dhcpv6
/
30 define Package
/dibbler
/Default
/description
31 Dibbler is a portable DHCPv6 implementation. It supports stateful
(i.e.
32 IPv6 address granting
) as well
as stateless
(i.e. option granting
)
33 autoconfiguration for IPv6.
36 define Package
/dibbler-client
37 $(call Package
/dibbler
/Default
)
41 define Package
/dibbler-client
/description
42 $(call Package
/dibbler
/Default
/description
)
43 This package contains the dibbler client.
46 define Package
/dibbler-relay
47 $(call Package
/dibbler
/Default
)
51 define Package
/dibbler-relay
/description
52 $(call Package
/dibbler
/Default
/description
)
53 This package contains the dibbler relay.
56 define Package
/dibbler-server
57 $(call Package
/dibbler
/Default
)
61 define Package
/dibbler-server
/description
62 $(call Package
/dibbler
/Default
/description
)
63 This package contains the dibbler server.
66 define Build
/Configure
67 (cd
$(PKG_BUILD_DIR
)/poslib
; \
68 $(TARGET_CONFIGURE_OPTS
) \
69 CFLAGS
="$(TARGET_CFLAGS)" \
70 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
71 LDFLAGS
="$(TARGET_LDFLAGS)" \
73 --target
=$(GNU_TARGET_NAME
) \
74 --host
=$(GNU_TARGET_NAME
) \
75 --build
=$(GNU_HOST_NAME
) \
81 --datadir=/usr
/share \
82 --includedir=/usr
/include \
83 --infodir=/usr
/share
/info \
85 --libexecdir
=/usr
/lib \
86 --localstatedir
=/var \
87 --mandir=/usr
/share
/man \
91 $(DISABLE_LARGEFILE
) \
95 # link stuff missing from uClibc++ but present in stdc++ statically
96 CXX_LIBS
:= -nodefaultlibs
-luClibc
++ -Wl
,-Bstatic
,-lstdc
++,-Bdynamic
-lm
-lgcc
99 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
100 $(TARGET_CONFIGURE_OPTS
) \
101 PORT_CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-builtin" \
102 PORT_LDFLAGS
="$(TARGET_LDFLAGS)" \
104 CXXLD
="$(TARGET_CC)" \
105 CLNT_LIBS
="$(CXX_LIBS)" \
106 SRV_LIBS
="$(CXX_LIBS)" \
110 define Package
/dibbler-client
/install
111 $(INSTALL_DIR
) $(1)/usr
/sbin
112 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dibbler-client
$(1)/usr
/sbin
/
115 define Package
/dibbler-relay
/install
116 $(INSTALL_DIR
) $(1)/usr
/sbin
117 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dibbler-relay
$(1)/usr
/sbin
/
120 define Package
/dibbler-server
/install
121 $(INSTALL_DIR
) $(1)/usr
/sbin
122 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dibbler-server
$(1)/usr
/sbin
/
125 $(eval
$(call BuildPackage
,dibbler-client
))
126 $(eval
$(call BuildPackage
,dibbler-relay
))
127 $(eval
$(call BuildPackage
,dibbler-server
))