[73687] trunk/dports/sysutils/smartmontools

takanori at macports.org takanori at macports.org
Sun Nov 21 12:31:43 PST 2010


Revision: 73687
          http://trac.macports.org/changeset/73687
Author:   takanori at macports.org
Date:     2010-11-21 12:31:39 -0800 (Sun, 21 Nov 2010)
Log Message:
-----------
smartmontools: allow working with BSD sed. (#27330)

Modified Paths:
--------------
    trunk/dports/sysutils/smartmontools/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/smartmontools/files/patch-update-smart-drivedb.in.diff

Modified: trunk/dports/sysutils/smartmontools/Portfile
===================================================================
--- trunk/dports/sysutils/smartmontools/Portfile	2010-11-21 19:03:55 UTC (rev 73686)
+++ trunk/dports/sysutils/smartmontools/Portfile	2010-11-21 20:31:39 UTC (rev 73687)
@@ -4,6 +4,7 @@
 
 name            smartmontools
 version         5.40
+revision        1
 categories      sysutils
 maintainers     toby
 description     SMART hard drive monitoring
@@ -17,6 +18,7 @@
 platforms       darwin
 license         GPLv2
 master_sites    sourceforge
+patchfiles      patch-update-smart-drivedb.in.diff
 checksums       md5     0f0be0239914ad87830a4fff594bda5b \
                 sha1    08a86a939a2e2cd85d2c88c09188d494f06ce050 \
                 rmd160  ff2ebfd130182ba721248ebfebd9d4d5cc325ff4

Added: trunk/dports/sysutils/smartmontools/files/patch-update-smart-drivedb.in.diff
===================================================================
--- trunk/dports/sysutils/smartmontools/files/patch-update-smart-drivedb.in.diff	                        (rev 0)
+++ trunk/dports/sysutils/smartmontools/files/patch-update-smart-drivedb.in.diff	2010-11-21 20:31:39 UTC (rev 73687)
@@ -0,0 +1,12 @@
+--- update-smart-drivedb.in.orig	2010-03-05 06:56:41.000000000 +0900
++++ update-smart-drivedb.in	2010-11-22 05:18:16.000000000 +0900
+@@ -40,7 +40,8 @@
+ SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
+ 
+ # Convert version into branch name: 5.41[.X] -> "RELEASE_5_41_DRIVEDB"
+-BRANCH="`echo $VERSION | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`"
++BRANCH="`echo $VERSION | sed 's|^\([0-9]*\.[0-9]*\)\..*$|\1|' \
++         | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$|RELEASE_\1_\2_DRIVEDB|p'`"
+ 
+ if [ -z "$BRANCH" ]; then
+   echo "$0: syntax error in version number: $VERSION" >&2; exit 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101121/871be6bb/attachment.html>


More information about the macports-changes mailing list