Ticket #29845: smartmontools-5.41.diff

File smartmontools-5.41.diff, 2.2 KB (added by takanori@…, 13 years ago)
  • 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-22 05:18:16.000000000 +0900
    3 @@ -40,7 +40,8 @@
    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 | sed 's|^\([0-9]*\.[0-9]*\)\..*$|\1|' \
    9 +         | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$|RELEASE_\1_\2_DRIVEDB|p'`"
    10  
    11  if [ -z "$BRANCH" ]; then
    12    echo "$0: syntax error in version number: $VERSION" >&2; exit 1
  • Portfile

     
    33PortSystem 1.0
    44
    55name            smartmontools
    6 version         5.40
    7 revision        3
     6version         5.41
    87categories      sysutils
    98maintainers     toby
    109description     SMART hard drive monitoring
     
    1817platforms       darwin
    1918license         GPLv2
    2019master_sites    sourceforge
    21 patchfiles      patch-update-smart-drivedb.in.diff
    22 checksums       md5     0f0be0239914ad87830a4fff594bda5b \
    23                 sha1    08a86a939a2e2cd85d2c88c09188d494f06ce050 \
    24                 rmd160  ff2ebfd130182ba721248ebfebd9d4d5cc325ff4
     20checksums       md5     4577886bea79d4ff12bd9a7d323ce692 \
     21                sha1    6cf5c660d173dbb94fae3549ac689c6427d18ea3 \
     22                rmd160  d2de512ef64dceb61a1f9c0384b0ea895fd31e36
    2523configure.args  --mandir=${prefix}/share/man \
    2624                --enable-drivedb \
    2725                --enable-savestates \
     
    3028                --with-libcap-ng=no
    3129
    3230destroot.keepdirs   ${destroot}${prefix}/var/run
    33 post-destroot {
    34     delete ${destroot}${prefix}/etc/rc.d
    35 }
    3631
    3732startupitem.create      yes
    3833startupitem.name        smartd