diff options
| author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-03-29 20:52:11 +0000 |
|---|---|---|
| committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-03-29 20:52:11 +0000 |
| commit | ff08090776e23b445d95844e56506b7bdb4f2775 (patch) | |
| tree | ce600e852eaed8787edc0ab6bd6e6c536376014a /sysutils/smartmontools | |
| parent | 0955c59918c181d880eab27359c484626184b49d (diff) | |
Notes
Diffstat (limited to 'sysutils/smartmontools')
| -rw-r--r-- | sysutils/smartmontools/Makefile | 7 | ||||
| -rw-r--r-- | sysutils/smartmontools/files/patch-update-smart-drivedb.in | 30 |
2 files changed, 34 insertions, 3 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile index 4954842dc7e1..3b6347a22897 100644 --- a/sysutils/smartmontools/Makefile +++ b/sysutils/smartmontools/Makefile @@ -3,14 +3,15 @@ PORTNAME= smartmontools PORTVERSION= 6.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF MAINTAINER= samm@os2.kiev.ua COMMENT= S.M.A.R.T. disk monitoring tools -LICENSE= GPLv2 +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING CONFLICTS= smartmontools-devel-[0-9]* @@ -32,7 +33,7 @@ post-patch: @${REINPLACE_CMD} -e 's| install-initdDATA| |' ${WRKSRC}/Makefile.in post-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily ${INSTALL_SCRIPT} ${WRKDIR}/smart \ ${STAGEDIR}${PREFIX}/etc/periodic/daily diff --git a/sysutils/smartmontools/files/patch-update-smart-drivedb.in b/sysutils/smartmontools/files/patch-update-smart-drivedb.in new file mode 100644 index 000000000000..b3cfba9f2427 --- /dev/null +++ b/sysutils/smartmontools/files/patch-update-smart-drivedb.in @@ -0,0 +1,30 @@ +--- update-smart-drivedb.in.orig 2014-12-06 20:12:50 UTC ++++ update-smart-drivedb.in +@@ -69,26 +69,8 @@ EOF + *) DEST="$1" ;; + esac + +-# Abort if 'which' is not available +-which which >/dev/null || exit 1 +- + # Find download tool +-DOWNLOAD= +-for t in $os_dltools; do +- if which $t >/dev/null 2>/dev/null; then +- case $t in +- curl) DOWNLOAD="curl ${q:+-s }"'-f -o "$DEST.new" "$SRC"' ;; +- lynx) DOWNLOAD='lynx -source "$SRC" >"$DEST.new"' ;; +- wget) DOWNLOAD="wget $q"'-O "$DEST.new" "$SRC"' ;; +- fetch) DOWNLOAD='fetch -o "$DEST.new" "$SRC"' ;; # FreeBSD +- ftp) DOWNLOAD='ftp -o "$DEST.new" "$SRC"' ;; # OpenBSD +- esac +- break +- fi +-done +-if [ -z "$DOWNLOAD" ]; then +- echo "$0: found none of: $os_dltools" >&2; exit 1 +-fi ++DOWNLOAD='fetch -o "$DEST.new" "$SRC"' + + # Try possible branch first, then trunk + for location in "branches/$BRANCH" "trunk"; do |
