-define Package/ptunnel/install
- install -m0755 -d $(1)/usr/sbin
- $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
+define Package/ptunnel/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/ptunnel.init $(1)/etc/init.d/ptunnel
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_CONF) ./files/ptunnel.conf $(1)/etc/config/ptunnel