Move these VPN servers in with the rest of the VPN servers in the
[packages.git] / net / l2tpd / Makefile
index 0ed5a89..e562f7a 100644 (file)
@@ -16,7 +16,6 @@ PKG_RELEASE:=4.1
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_UPSTREAM_VERSION).orig.tar.gz
 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/l2tpd
 PKG_MD5SUM:=3f2707b6e16a8cb72e7bf64f574202fa
-PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).orig
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
@@ -27,12 +26,15 @@ define Package/l2tpd
   SECTION:=net
   CATEGORY:=Network
   TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
-  DESCRIPTION:=\
-       l2tpd is the open source implementation of the L2TP tunneling \\\
-       protocol (RFC2661). It does implement both LAC and LNS role \\\
-       in a L2TP networking architecture. The main goal of this protocol is \\\
-       to tunnel PPP frame trough an ip network.
   URL:=http://l2tpd.sourceforge.net/
+  SUBMENU:=vpn
+endef
+
+define Package/l2tpd/description
+       l2tpd is the open source implementation of the L2TP tunneling 
+       protocol (RFC2661). It does implement both LAC and LNS role 
+       in a L2TP networking architecture. The main goal of this protocol is 
+       to tunnel PPP frame trough an ip network.
 endef
 
 define Package/l2tpd/conffiles
@@ -47,14 +49,14 @@ define Build/Compile
 endef
 
 define Package/l2tpd/install   
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
-       install -d -m0755 $(1)/etc/l2tpd
-       install -m0644 ./files/l2tpd.conf $(1)/etc/l2tpd/
-       install -d -m0755 $(1)/etc/ppp
-       install -m0644 ./files/options.l2tpd $(1)/etc/ppp/
-       install -d -m0755 $(1)/etc/init.d
-       install -m0755 ./files/l2tpd.init $(1)/etc/init.d/l2tpd
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/etc/l2tpd
+       $(INSTALL_DATA) ./files/l2tpd.conf $(1)/etc/l2tpd/
+       $(INSTALL_DIR) $(1)/etc/ppp
+       $(INSTALL_DATA) ./files/options.l2tpd $(1)/etc/ppp/
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/l2tpd.init $(1)/etc/init.d/l2tpd
 endef
 
 $(eval $(call BuildPackage,l2tpd))