sispmctl: Update to 4.0 6313/head
authorRosen Penev <rosenp@gmail.com>
Sun, 17 Jun 2018 23:02:53 +0000 (16:02 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 7 Jul 2018 17:27:24 +0000 (10:27 -0700)
Switched from git to tarball. There seems to be no activity since release
4.0.

Removed unneeded patches.

Added a library package since it seems to be required now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/sispmctl/Makefile
utils/sispmctl/patches/001-fix-includes.patch [deleted file]

index 77a73fddfcfba6278c6125cb907ad67f8909940e..76500c9f5a8b9e6ef587b94e633bda8ce9c623e5 100644 (file)
@@ -8,29 +8,34 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sispmctl
-PKG_VERSION:=3.1+20120206
+PKG_VERSION:=4.0
 PKG_RELEASE:=1
 
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=5ff4a05a5bcb6a64a9d6f77fed47014512f66b11
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MIRROR_HASH:=d09782160dbcc1ba3bd6a38941f38e130049d8383843f6f292409909678aed82
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_URL:=https://git.code.sf.net/p/sispmctl/git
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+PKG_HASH:=442d9bb9774da7214c222144035ac68ad5d25171040ce2731cfdf49b3365cfd5
 PKG_MAINTAINER:=Richard Kunze <richard.kunze@web.de>
 PKG_LICENSE:=GPL-2.0+
 
+PKG_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
-PKG_FIXUP:=autoreconf
 
 include $(INCLUDE_DIR)/package.mk
 
+define Package/libsispmctl
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Silver Shield PM Control for Linux library
+  URL:=http://sispmctl.sourceforge.net
+  DEPENDS:=+libusb-compat
+endef
+
 define Package/sispmctl
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=Silver Shield PM Control for Linux
-  URL:=http://sispmctl.sourceforge.net/
-  DEPENDS:=+libusb-compat
+  URL:=http://sispmctl.sourceforge.net
+  DEPENDS:=+libsispmctl
 endef
 
 define Package/sispmctl/description
@@ -49,9 +54,15 @@ CONFIGURE_ARGS += \
        --enable-webless \
        --disable-dependency-tracking
 
+define Package/libsispmctl/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libsispmctl* $(1)/usr/lib/
+endef
+
 define Package/sispmctl/install
        $(INSTALL_DIR) $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sispmctl $(1)/usr/bin/
 endef
 
+$(eval $(call BuildPackage,libsispmctl))
 $(eval $(call BuildPackage,sispmctl))
diff --git a/utils/sispmctl/patches/001-fix-includes.patch b/utils/sispmctl/patches/001-fix-includes.patch
deleted file mode 100644 (file)
index 218e22e..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
---- a/src/sispm_ctl.c
-+++ b/src/sispm_ctl.c
-@@ -33,6 +33,7 @@
- #include <stdlib.h>
- #include <unistd.h>
- #include <time.h>
-+#include <sys/types.h>
- #include <usb.h>
- #include <assert.h>
- #include "sispm_ctl.h"
---- a/src/main.c
-+++ b/src/main.c
-@@ -34,11 +34,11 @@
- #define __USE_XOPEN
- #include <time.h>
- #include <signal.h>
--#include <usb.h>
- #include <assert.h>
- #include <getopt.h>
- #include <sys/types.h>
- #include <sys/socket.h>
-+#include <usb.h>
- #include <fcntl.h>