ntripserver: change source to github
authorNuno Goncalves <nunojpg@gmail.com>
Mon, 13 Jul 2015 00:34:35 +0000 (01:34 +0100)
committerNuno Goncalves <nunojpg@gmail.com>
Mon, 13 Jul 2015 01:28:20 +0000 (02:28 +0100)
ntripserver developer agency http://igs.bkg.bund.de/ does not reliably provide a source mirror with version naming.

Created a github repository to provide sources and allow contributions.

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
net/ntripserver/Makefile

index 1bb0e873df974211d1ba7f3b96144db782ff5a5c..a3e3cf978c3f66fc51848d8fd13d7b428f6c91fb 100644 (file)
@@ -10,12 +10,16 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ntripserver
 PKG_VERSION:=1.5.1
-PKG_RELEASE:=2
-PKG_LICENSE:=GPL-2.0+
 
-PKG_SOURCE:=$(PKG_NAME).zip
-PKG_SOURCE_URL:=http://igs.bkg.bund.de/root_ftp/NTRIP/software/
-PKG_MD5SUM:=cecff5da0173896df041bd889935fc12
+PKG_RELEASE=$(PKG_SOURCE_VERSION)
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/nunojpg/ntripserver.git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=c3034ab575e8442222eb8c2ee9e224cac99cfa6d
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+
+PKG_LICENSE:=GPL-2.0+
 
 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
 
@@ -30,17 +34,13 @@ define Package/ntripserver
 endef
 
 define Package/ntripserver/description
-  Ntrip Version 2.0 Command Line Server, reading from SISNeT Server, TCP/UDP IP Port, Serial port, or NtripCaster to support an Ntrip Version 1.0 or 2.0 Caster
+  Ntrip Version 2.0 Command Line Server, reading from SISNeT Server, TCP/UDP IP
+  Port, Serial port, or NtripCaster to support an Ntrip Version 1.0 or 2.0 Caster
 endef
 
 MAKE_FLAGS += \
        OPTS="$(TARGET_CFLAGS)"
 
-define Build/Prepare
-       mkdir -p $(PKG_BUILD_DIR)
-       unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR)
-endef
-
 define Package/ntripserver/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ntripserver $(1)/usr/bin/