diff Makefile @ 311:ce0d27e7993f

use "openssl sha1 ..." instead of "sha1sum -b ..."
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 05 Apr 2009 18:26:45 +0200
parents 5c5e254fa32b
children 06137f1f9b9e
line wrap: on
line diff
--- a/Makefile	Sun Apr 05 16:11:11 2009 +0200
+++ b/Makefile	Sun Apr 05 18:26:45 2009 +0200
@@ -52,10 +52,10 @@
     $(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE))
 
 PKG_CHECKSUM = \
-    sha1sum -b '$(PKG_DIR)/$($(1)_FILE)' | $(SED) -n 's,^\([0-9a-f]\{40\}\).*,\1,p'
+    openssl sha1 '$(PKG_DIR)/$($(1)_FILE)' | $(SED) -n 's,^.*\([0-9a-f]\{40\}\)$$,\1,p'
 
 CHECK_PKG_ARCHIVE = \
-    [ '$($(1)_CHECKSUM)' == "`$(call PKG_CHECKSUM,$(1))`" ]
+    [ '$($(1)_CHECKSUM)' == "`$$(call PKG_CHECKSUM,$(1))`" ]
 
 DOWNLOAD_PKG_ARCHIVE = \
     $(if $($(1)_URL_2), \