smartmontools: new package, smartmontools 6.4
This commit is contained in:
parent
37d895b08b
commit
f503cc93d1
66
smartmontools/build.sh
Executable file
66
smartmontools/build.sh
Executable file
@ -0,0 +1,66 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This is a buildpkg build.sh script
|
||||||
|
# build.sh helper functions
|
||||||
|
. ${BUILDPKG_SCRIPTS}/build.sh.functions
|
||||||
|
#
|
||||||
|
###########################################################
|
||||||
|
# Check the following 4 variables before running the script
|
||||||
|
topdir=smartmontools
|
||||||
|
version=6.4
|
||||||
|
pkgver=1
|
||||||
|
source[0]=http://downloads.sourceforge.net/$topdir/$topdir-$version.tar.gz
|
||||||
|
# If there are no patches, simply comment this
|
||||||
|
patch[0]=smartmontools-6.4-cxx-fix.patch
|
||||||
|
|
||||||
|
# Source function library
|
||||||
|
. ${BUILDPKG_SCRIPTS}/buildpkg.functions
|
||||||
|
|
||||||
|
# Global settings
|
||||||
|
export CPPFLAGS="-I$prefix/include"
|
||||||
|
export LDFLAGS="-L$prefix/lib -R$prefix/lib"
|
||||||
|
ac_overrides="ac_cv_func_regcomp=no"
|
||||||
|
configure_args+=(--docdir=$prefix/$_vdocdir --with-initscriptdir=$prefix/$_vdocdir --with-working-snprintf=no)
|
||||||
|
|
||||||
|
reg prep
|
||||||
|
prep()
|
||||||
|
{
|
||||||
|
generic_prep
|
||||||
|
setdir source
|
||||||
|
}
|
||||||
|
|
||||||
|
reg build
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
generic_build
|
||||||
|
}
|
||||||
|
|
||||||
|
reg check
|
||||||
|
check()
|
||||||
|
{
|
||||||
|
generic_check
|
||||||
|
}
|
||||||
|
|
||||||
|
reg install
|
||||||
|
install()
|
||||||
|
{
|
||||||
|
generic_install DESTDIR
|
||||||
|
${__mv} ${stagedir}${prefix}/${_vdocdir}/smartd ${stagedir}${prefix}/${_vdocdir}/smartd.init
|
||||||
|
${__rm} -f ${stagedir}${prefix}/${_sysconfdir}/smartd.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
reg pack
|
||||||
|
pack()
|
||||||
|
{
|
||||||
|
generic_pack
|
||||||
|
}
|
||||||
|
|
||||||
|
reg distclean
|
||||||
|
distclean()
|
||||||
|
{
|
||||||
|
clean distclean
|
||||||
|
}
|
||||||
|
|
||||||
|
###################################################
|
||||||
|
# No need to look below here
|
||||||
|
###################################################
|
||||||
|
build_sh $*
|
6
smartmontools/meta/ChangeLog
Normal file
6
smartmontools/meta/ChangeLog
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
CHANGELOG
|
||||||
|
---------
|
||||||
|
* Fri Feb 19 2016 Tom G. Christensen <swpkg@jupiterrise.com> - 6.4-1
|
||||||
|
- First package
|
||||||
|
- Initial work done by Romain Dolbeau <romain.tgcware@dolbeau.name>
|
||||||
|
-
|
20
smartmontools/meta/pkgdef
Normal file
20
smartmontools/meta/pkgdef
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[smartmontools]
|
||||||
|
pkgname="${pkgprefix}smont"
|
||||||
|
name="$topdir - tools for monitoring SMART capable hard disks"
|
||||||
|
pkgcat="application"
|
||||||
|
pkgvendor="https://www.smartmontools.org/"
|
||||||
|
pkgdesc="Control and monitor storage systems using the SMART System"
|
||||||
|
pkgver="$pkgver"
|
||||||
|
files(-,root,bin)
|
||||||
|
default_docs
|
||||||
|
$_sysconfdir/smartd_warning.sh
|
||||||
|
dir $_sysconfdir/smartd_warning.d
|
||||||
|
$_sbindir/smartctl
|
||||||
|
$_sbindir/smartd
|
||||||
|
$_sbindir/update-smart-drivedb
|
||||||
|
$_sharedir/$topdir/drivedb.h
|
||||||
|
$_mandir/man1m/smartctl.*
|
||||||
|
$_mandir/man1m/smartd.*
|
||||||
|
$_mandir/man1m/update-smart-drivedb.*
|
||||||
|
$_mandir/man4/smartd.conf.*
|
||||||
|
|
11
smartmontools/src/smartmontools-6.4-cxx-fix.patch
Normal file
11
smartmontools/src/smartmontools-6.4-cxx-fix.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- smartmontools-6.4/regex/regex.h.cplus 2012-12-13 18:23:06.000000000 +0100
|
||||||
|
+++ smartmontools-6.4/regex/regex.h 2016-02-19 22:42:53.390013000 +0100
|
||||||
|
@@ -536,7 +536,7 @@
|
||||||
|
#endif
|
||||||
|
/* gcc 3.1 and up support the [restrict] syntax. */
|
||||||
|
#ifndef __restrict_arr
|
||||||
|
-# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) && !defined(__WIN32__)
|
||||||
|
+# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) && !defined(__WIN32__) && !defined(__cplusplus)
|
||||||
|
# define __restrict_arr __restrict
|
||||||
|
# else
|
||||||
|
# define __restrict_arr
|
Loading…
x
Reference in New Issue
Block a user