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 +09002 +++ update-smart-drivedb.in 2010-11-22 05:18:16.000000000 +09003 @@ -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" ]; then12 echo "$0: syntax error in version number: $VERSION" >&2; exit 1 -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name smartmontools 6 version 5.40 7 revision 3 6 version 5.41 8 7 categories sysutils 9 8 maintainers toby 10 9 description SMART hard drive monitoring … … 18 17 platforms darwin 19 18 license GPLv2 20 19 master_sites sourceforge 21 patchfiles patch-update-smart-drivedb.in.diff 22 checksums md5 0f0be0239914ad87830a4fff594bda5b \ 23 sha1 08a86a939a2e2cd85d2c88c09188d494f06ce050 \ 24 rmd160 ff2ebfd130182ba721248ebfebd9d4d5cc325ff4 20 checksums md5 4577886bea79d4ff12bd9a7d323ce692 \ 21 sha1 6cf5c660d173dbb94fae3549ac689c6427d18ea3 \ 22 rmd160 d2de512ef64dceb61a1f9c0384b0ea895fd31e36 25 23 configure.args --mandir=${prefix}/share/man \ 26 24 --enable-drivedb \ 27 25 --enable-savestates \ … … 30 28 --with-libcap-ng=no 31 29 32 30 destroot.keepdirs ${destroot}${prefix}/var/run 33 post-destroot {34 delete ${destroot}${prefix}/etc/rc.d35 }36 31 37 32 startupitem.create yes 38 33 startupitem.name smartd