Changeset 20212


Ignore:
Timestamp:
2010-03-14T19:16:29+01:00 (7 years ago)
Author:
thepeople
Message:

Update wide-dhcpv6 package, from #6820

Location:
packages/ipv6/wide-dhcpv6
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/wide-dhcpv6/Makefile

    r19862 r20212  
    1 # 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
    3 # 
    4 # This is free software, licensed under the GNU General Public License v2. 
    5 # See /LICENSE for more information. 
    6 # 
    71 
    82include $(TOPDIR)/rules.mk 
     
    104PKG_NAME:=wide-dhcpv6 
    115PKG_VERSION:=20080615 
    12 PKG_RELEASE:=1 
     6PKG_RELEASE:=3 
    137 
    148PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    2115  SECTION:=ipv6 
    2216  CATEGORY:=IPv6 
    23   TITLE:=IPv6 DHCPv6 implementaion for BSD and Linux 
    24   URL:=http://wide-dhcpv6.sourceforge.net/ 
    25 endef 
    26  
    27 define Package/wide-dhcpv6/description 
    28 WIDE-DHCPv6 is an open-source implementation of Dynamic Host Configuration 
    29 Protocol for IPv6 (DHCPv6) originally developed by the KAME project. The 
    30 implementation mainly conforms to the following standards: RFC3315,3319,3633, 
    31 3646,4075,4272,etc. 
     17  TITLE:=WIDE-DHCPv6 
     18  SUBMENU:=wide-dhcpv6 
     19  DEPENDS:=+kmod-ipv6  
     20  URL:=https://sourceforge.net/projects/wide-dhcpv6/ 
    3221endef 
    3322 
    3423define Package/wide-dhcpv6-client 
    35         $(call Package/wide-dhcpv6/Default) 
    36         TITLE+= client 
     24  $(call Package/wide-dhcpv6/Default) 
     25  TITLE+= client 
     26endef 
     27 
     28define Package/wide-dhcpv6-client/description 
     29        WIDE-DHCPv6 is an open-source implementation of Dynamic Host Configuration Protocol 
     30        for IPv6 (DHCPv6) originally developed by the KAME project. The implementation 
     31        mainly conforms to the following standards: RFC3315,3319,3633,3646,4075,4272,etc. 
     32 
     33        This package installs the client component. 
    3734endef 
    3835 
    3936define Package/wide-dhcpv6-server 
    40         $(call Package/wide-dhcpv6/Default) 
    41         TITLE+= server 
     37  $(call Package/wide-dhcpv6/Default) 
     38  TITLE+= server 
     39endef 
     40 
     41define Package/wide-dhcpv6-server/description 
     42        WIDE-DHCPv6 is an open-source implementation of Dynamic Host Configuration Protocol 
     43        for IPv6 (DHCPv6) originally developed by the KAME project. The implementation 
     44        mainly conforms to the following standards: RFC3315,3319,3633,3646,4075,4272,etc. 
     45 
     46        This package installs the server component. 
    4247endef 
    4348 
    4449define Package/wide-dhcpv6-relay 
    45         $(call Package/wide-dhcpv6/Default) 
    46         TITLE+= relay 
     50  $(call Package/wide-dhcpv6/Default) 
     51  TITLE+= relay 
    4752endef 
    4853 
    49 define Package/wide-dhcpv6-ctl 
    50         $(call Package/wide-dhcpv6/Default) 
    51         TITLE+= ctl 
     54define Package/wide-dhcpv6-relay/description 
     55        WIDE-DHCPv6 is an open-source implementation of Dynamic Host Configuration Protocol 
     56        for IPv6 (DHCPv6) originally developed by the KAME project. The implementation 
     57        mainly conforms to the following standards: RFC3315,3319,3633,3646,4075,4272,etc. 
     58 
     59        This package installs the relay component. 
     60endef 
     61 
     62define Package/wide-dhcpv6-control 
     63  $(call Package/wide-dhcpv6/Default) 
     64  TITLE+= client and server control utility 
     65endef 
     66 
     67define Package/wide-dhcpv6-control/description 
     68        WIDE-DHCPv6 is an open-source implementation of Dynamic Host Configuration Protocol 
     69        for IPv6 (DHCPv6) originally developed by the KAME project. The implementation 
     70        mainly conforms to the following standards: RFC3315,3319,3633,3646,4075,4272,etc. 
     71 
     72        This package installs the client and server control utility. 
     73endef 
     74 
     75define Build/Configure 
     76        $(call Build/Configure/Default,--with-localdbdir=/var) 
     77endef 
     78 
     79define Build/Compile     
     80        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     81                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     82                all  
     83endef 
     84 
     85define Package/wide-dhcpv6-client/conffiles 
     86/etc/config/dhcp6c 
    5287endef 
    5388 
    5489define Package/wide-dhcpv6-client/install 
    55         $(INSTALL_DIR) $(1)/sbin 
    56         $(INSTALL_BIN) $(PKG_BUILD_DIR)/dhcp6c $(1)/sbin 
     90        $(INSTALL_DIR) $(1)/usr/sbin 
     91        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dhcp6c $(1)/usr/sbin 
     92        $(INSTALL_DIR) $(1)/etc/config 
     93        $(INSTALL_CONF) ./files/dhcp6c.conf $(1)/etc/config/dhcp6c 
     94        $(INSTALL_DIR) $(1)/etc/init.d 
     95        $(INSTALL_BIN) ./files/dhcp6c.init $(1)/etc/init.d/dhcp6c 
     96        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
     97        $(INSTALL_DATA) ./files/dhcp6c.hotplug $(1)/etc/hotplug.d/iface/40-dhcp6c        
     98        $(INSTALL_DIR) $(1)/etc/hotplug.d/dhcp6c 
     99        $(INSTALL_DATA) ./files/dhcp6c-dnsmasq.hotplug $(1)/etc/hotplug.d/dhcp6c/10-dnsmasq 
     100        $(INSTALL_DATA) ./files/dhcp6c-radvd.hotplug $(1)/etc/hotplug.d/dhcp6c/20-radvd 
     101        $(INSTALL_DIR) $(1)/usr/bin 
     102        $(INSTALL_BIN) ./files/dhcp6c-state $(1)/usr/bin/dhcp6c-state 
     103endef 
    57104 
     105define Package/wide-dhcpv6-server/conffiles 
     106/etc/config/dhcp6s 
     107endef 
     108 
     109define Package/wide-dhcpv6-server/install 
     110        $(INSTALL_DIR) $(1)/usr/sbin 
     111        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dhcp6s $(1)/usr/sbin 
    58112        $(INSTALL_DIR) $(1)/etc 
    59         $(INSTALL_DATA) ./files/dhcp6c.config $(1)/etc/dhcp6c.conf 
     113        $(INSTALL_CONF) $(PKG_BUILD_DIR)/dhcp6s.conf.sample $(1)/etc 
     114        $(INSTALL_DIR) $(1)/etc/config 
     115        $(INSTALL_CONF) ./files/dhcp6s.conf $(1)/etc/config/dhcp6s 
     116        $(INSTALL_DIR) $(1)/etc/init.d 
     117        $(INSTALL_BIN) ./files/dhcp6s.init $(1)/etc/init.d/dhcp6s 
     118        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
     119        $(INSTALL_DATA) ./files/dhcp6s.hotplug $(1)/etc/hotplug.d/iface/50-dhcp6s        
     120endef 
     121 
     122define Package/wide-dhcpv6-relay/install 
     123        $(INSTALL_DIR) $(1)/usr/sbin 
     124        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dhcp6relay $(1)/usr/sbin 
     125endef 
     126 
     127define Package/wide-dhcpv6-control/install 
     128        $(INSTALL_DIR) $(1)/usr/sbin 
     129        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dhcp6ctl $(1)/usr/sbin 
    60130endef 
    61131 
     
    63133$(eval $(call BuildPackage,wide-dhcpv6-server)) 
    64134$(eval $(call BuildPackage,wide-dhcpv6-relay)) 
    65 $(eval $(call BuildPackage,wide-dhcpv6-ctl)) 
     135$(eval $(call BuildPackage,wide-dhcpv6-control)) 
  • packages/ipv6/wide-dhcpv6/files/dhcp6c.config

    r19862 r20212  
    1 # The followings are a sample configuration for requiring the "stateless" 
    2 # DHCPv6 service. 
    3 # interface eth0 { 
    4 #       information-only; 
    5 #}; 
    6  
    7  
    8 # The followings are a sample configuration to be delegated an IPv6 prefix 
    9 # from an upstream service provider.  With this configuration dhcp6c will 
    10 # send solicit messages containing an IA_PD option, with an IAID 0, on to 
    11 # an upstream PPP link, ppp0.  After receiving some prefixes from a server, 
    12 # dhcp6c will then configure derived IPv6 prefixes with the SLA ID 1 on a 
    13 # local ethernet interface, ne0.  Note that the IAID for the id-assoc 
    14 # statement is 0 according to the default. 
    15  
    16 interface ppp1 { 
    17         send ia-pd 0; 
    18 }; 
    19  
    20 id-assoc pd { 
    21         prefix-interface lan0 { 
    22                 sla-id 1; 
    23                                 sla-len 8; 
    24         }; 
    25 }; 
Note: See TracChangeset for help on using the changeset viewer.