-$(PKG_BUILD_DIR)/.built:
-# $(MAKE) -C $(PKG_BUILD_DIR) \
-# $(TARGET_CONFIGURE_OPTS) \
-# KERNELSRC="$(LINUX_DIR)" \
-# ARCH="mips" \
-# USERCOMPILE="$(FLAGS)" \
-# module
- $(MAKE) -C $(PKG_BUILD_DIR) \
- $(TARGET_CONFIGURE_OPTS) \
+define Package/openswan
+$(call Package/openswan/Default)
+ SECTION:=net
+ CATEGORY:=Network
+ DEPENDS:=@LINUX_2_4 +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
+ DEPENDS:=@LINUX_2_4
+ 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.
+endef
+
+
+PKG_MAKE_OPTS:= \
+ LINUX_RELEASE="$(LINUX_RELEASE)" \