-define Package/kmod-openswan
-SECTION:=drivers
-CATEGORY:=Drivers
-DEPENDS:=
-TITLE:=Openswan kernel module
-DESCRIPTION:=Openswan kernel module \\\
-Openswan is an implementation of IPsec for Linux.
-URL:=http://www.openswan.org/
-VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+define Package/openswan/Default
+ TITLE:=Openswan
+ URL:=http://www.openswan.org/
+ DEPENDS:=@BROKEN
+endef
+
+define Package/openswan/Default/description
+ Openswan is an IPsec implementation for Linux.
+endef
+
+define Package/openswan
+$(call Package/openswan/Default)
+ SECTION:=net
+ CATEGORY:=Network
+ DEPENDS+= +kmod-openswan +libgmp +ip
+ TITLE+= (daemon)
+ URL:=http://www.openswan.org/
+endef
+
+define Package/openswan/description
+$(call Package/openswan/Default/description)
+ This package contains the Openswan user-land daemon.
+endef
+
+define KernelPackage/openswan
+$(call Package/openswan/Default)
+ SUBMENU:=Network Support
+ TITLE+= (kernel module)
+ FILES:=$(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX)
+endef
+
+define KernelPackage/openswan/description
+$(call Package/openswan/Default/description)
+ This package contains the Openswan kernel module.