2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-src.
tar.gz
15 PKG_SOURCE_URL
:=http
://klub.com.pl
/dhcpv6
/dibbler
/
18 include $(INCLUDE_DIR
)/package.mk
20 # add dependency on 2.6 since recent dibbler needs <linux/ip_mp_alg.h>
21 define Package
/dibbler
/Default
24 DEPENDS
:=+uclibcxx @LINUX_2_6
25 TITLE
:=Dibbler
, a portable DHCPv6 implementation
26 URL
:=http
://klub.com.pl
/dhcpv6
/
29 define Package
/dibbler
/Default
/description
30 Dibbler is a portable DHCPv6 implementation. It supports stateful
(i.e.
31 IPv6 address granting
) as well
as stateless
(i.e. option granting
)
32 autoconfiguration for IPv6.
35 define Package
/dibbler-client
36 $(call Package
/dibbler
/Default
)
40 define Package
/dibbler-client
/description
41 $(call Package
/dibbler
/Default
/description
)
42 This package contains the dibbler client.
45 define Package
/dibbler-relay
46 $(call Package
/dibbler
/Default
)
50 define Package
/dibbler-relay
/description
51 $(call Package
/dibbler
/Default
/description
)
52 This package contains the dibbler relay.
55 define Package
/dibbler-server
56 $(call Package
/dibbler
/Default
)
60 define Package
/dibbler-server
/description
61 $(call Package
/dibbler
/Default
/description
)
62 This package contains the dibbler server.
65 define Build
/Configure
66 (cd
$(PKG_BUILD_DIR
)/poslib
; \
67 $(TARGET_CONFIGURE_OPTS
) \
68 CFLAGS
="$(TARGET_CFLAGS)" \
69 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
70 LDFLAGS
="$(TARGET_LDFLAGS)" \
72 --target
=$(GNU_TARGET_NAME
) \
73 --host
=$(GNU_TARGET_NAME
) \
74 --build
=$(GNU_HOST_NAME
) \
80 --datadir=/usr
/share \
81 --includedir=/usr
/include \
82 --infodir=/usr
/share
/info \
84 --libexecdir
=/usr
/lib \
85 --localstatedir
=/var \
86 --mandir=/usr
/share
/man \
90 $(DISABLE_LARGEFILE
) \
94 # link stuff missing from uClibc++ but present in stdc++ statically
95 CXX_LIBS
:= -nodefaultlibs
-luClibc
++ -Wl
,-Bstatic
,-lstdc
++,-Bdynamic
-lm
-lgcc
98 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
99 $(TARGET_CONFIGURE_OPTS
) \
100 PORT_CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-builtin" \
101 PORT_LDFLAGS
="$(TARGET_LDFLAGS)" \
103 CXXLD
="$(TARGET_CC)" \
104 CLNT_LIBS
="$(CXX_LIBS)" \
105 SRV_LIBS
="$(CXX_LIBS)" \
109 define Package
/dibbler-client
/install
110 $(INSTALL_DIR
) $(1)/usr
/sbin
111 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dibbler-client
$(1)/usr
/sbin
/
114 define Package
/dibbler-relay
/install
115 $(INSTALL_DIR
) $(1)/usr
/sbin
116 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dibbler-relay
$(1)/usr
/sbin
/
119 define Package
/dibbler-server
/install
120 $(INSTALL_DIR
) $(1)/usr
/sbin
121 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dibbler-server
$(1)/usr
/sbin
/
124 $(eval
$(call BuildPackage
,dibbler-client
))
125 $(eval
$(call BuildPackage
,dibbler-relay
))
126 $(eval
$(call BuildPackage
,dibbler-server
))