New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27330: smartmontools.diff

File smartmontools.diff, 2.1 KB (added by takanori@…, 4 years ago)

smartmontools.diff

  • files/patch-update-smart-drivedb.in.diff

     
     1--- update-smart-drivedb.in.orig        2010-03-05 06:56:41.000000000 +0900 
     2+++ update-smart-drivedb.in     2010-11-16 03:13:50.000000000 +0900 
     3@@ -40,7 +40,7 @@ 
     4 SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD' 
     5  
     6 # Convert version into branch name: 5.41[.X] -> "RELEASE_5_41_DRIVEDB" 
     7-BRANCH="`echo $VERSION | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`" 
     8+BRANCH="`echo $VERSION | gsed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`" 
     9  
     10 if [ -z "$BRANCH" ]; then 
     11   echo "$0: syntax error in version number: $VERSION" >&2; exit 1 
     12@@ -129,7 +129,7 @@ 
     13 # Keep old file if identical, ignore differences in Id string 
     14 rm -f "$DEST.lastcheck" 
     15 if [ -f "$DEST" ]; then 
     16-  if cat "$DEST" | sed 's|\$''Id''[^$]*\$|$''Id''$|' | cmp - "$DEST.new" >/dev/null; then 
     17+  if cat "$DEST" | gsed 's|\$''Id''[^$]*\$|$''Id''$|' | cmp - "$DEST.new" >/dev/null; then 
     18     rm -f "$DEST.new" 
     19     touch "$DEST.lastcheck" 
     20     echo "$DEST is already up to date" 
  • Portfile

     
    44 
    55name            smartmontools 
    66version         5.40 
     7revision        1 
    78categories      sysutils 
    89maintainers     toby 
    910description     SMART hard drive monitoring 
     
    1718platforms       darwin 
    1819license         GPLv2 
    1920master_sites    sourceforge 
     21patchfiles      patch-update-smart-drivedb.in.diff 
    2022checksums       md5     0f0be0239914ad87830a4fff594bda5b \ 
    2123                sha1    08a86a939a2e2cd85d2c88c09188d494f06ce050 \ 
    2224                rmd160  ff2ebfd130182ba721248ebfebd9d4d5cc325ff4 
     25 
     26depends_run     port:gsed 
     27 
    2328configure.args  --mandir=${prefix}/share/man \ 
    2429                --enable-drivedb \ 
    2530                --enable-savestates \