Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
The smartmontools package contains two utility programs (smartctl
and smartd) to control and monitor storage systems using the
Self-Monitoring, Analysis and Reporting Technology System (SMART)
built into most modern ATA and SCSI hard disks. In many cases,
these utilities will provide advanced warning of disk degradation
and failure.
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.21 2012/10/23 19:51:24 asau Exp $
DISTNAME= smartmontools-5.40
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=smartmontools/}
MAINTAINER= shattered@NetBSD.org
HOMEPAGE= http://smartmontools.sourceforge.net/
COMMENT= Control and monitor storage systems using SMART
LICENSE= gnu-gpl-v2
ONLY_FOR_PLATFORM= Darwin-*-* DragonFly-*-* FreeBSD-*-* Linux-*-*
ONLY_FOR_PLATFORM+= NetBSD-*-* OpenBSD-*-* SunOS-*-*
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
EGDIR= ${PREFIX}/share/examples/smartmontools
CONF_FILES= ${EGDIR}/smartd.conf ${PKG_SYSCONFDIR}/smartd.conf
RCD_SCRIPTS= smartd
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/smartmontools
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
INSTALLATION_DIRS= ${EGDIR}
.include "../../mk/bsd.pkg.mk"
+23
View File
@@ -0,0 +1,23 @@
@comment $NetBSD: PLIST,v 1.5 2010/11/13 10:10:45 tnn Exp $
man/man5/smartd.conf.5
man/man8/smartctl.8
man/man8/smartd.8
sbin/smartctl
sbin/smartd
sbin/update-smart-drivedb
share/doc/smartmontools/AUTHORS
share/doc/smartmontools/CHANGELOG
share/doc/smartmontools/COPYING
share/doc/smartmontools/INSTALL
share/doc/smartmontools/NEWS
share/doc/smartmontools/README
share/doc/smartmontools/TODO
share/doc/smartmontools/WARNINGS
share/doc/smartmontools/examplescripts/Example1
share/doc/smartmontools/examplescripts/Example2
share/doc/smartmontools/examplescripts/Example3
share/doc/smartmontools/examplescripts/Example4
share/doc/smartmontools/examplescripts/README
share/examples/rc.d/smartd
share/examples/smartmontools/smartd.conf
share/smartmontools/drivedb.h
+9
View File
@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.21 2012/07/20 12:35:00 taca Exp $
SHA1 (smartmontools-5.40.tar.gz) = 08a86a939a2e2cd85d2c88c09188d494f06ce050
RMD160 (smartmontools-5.40.tar.gz) = ff2ebfd130182ba721248ebfebd9d4d5cc325ff4
Size (smartmontools-5.40.tar.gz) = 705592 bytes
SHA1 (patch-aa) = b6f8b3bf263a46e4c88bcafa51582bb4c802165a
SHA1 (patch-ag) = a4efc16ceb1f213979e63d7f8f50cce942c20ccf
SHA1 (patch-ah) = c16d8cc2bea86fa0210a62fb13ba6b980ab8bf73
SHA1 (patch-os__netbsd.cpp) = 289a560f480f877799c9f56c00b6a4c380e42bba
+21
View File
@@ -0,0 +1,21 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smartd.sh,v 1.4 2006/07/17 17:01:32 wiz Exp $
#
# PROVIDE: smartd
# REQUIRE: DAEMON
. /etc/rc.subr
name="smartd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/${name}.pid"
required_files="@PKG_SYSCONFDIR@/${name}.conf"
command_args="-p $pidfile"
extra_commands="reload check"
check_precmd='[ "$rc_pid" ]'
check_cmd='kill -USR1 $rc_pid'
load_rc_config $name
run_rc_command "$1"
+32
View File
@@ -0,0 +1,32 @@
$NetBSD: patch-aa,v 1.6 2010/11/13 10:10:46 tnn Exp $
--- Makefile.in.orig 2010-10-16 16:36:17.000000000 +0000
+++ Makefile.in
@@ -115,7 +115,7 @@ CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(sbindir)" \
"$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" \
"$(DESTDIR)$(attributelogdir)" "$(DESTDIR)$(docsdir)" \
- "$(DESTDIR)$(drivedbdir)" "$(DESTDIR)$(initddir)" \
+ "$(DESTDIR)$(drivedbdir)" \
"$(DESTDIR)$(savestatesdir)" "$(DESTDIR)$(sysconfdir)"
PROGRAMS = $(sbin_PROGRAMS)
am__smartctl_SOURCES_DIST = smartctl.cpp smartctl.h atacmdnames.cpp \
@@ -449,8 +449,7 @@ docs_DATA = AUTHORS \
NEWS \
README \
TODO \
- WARNINGS \
- smartd.conf
+ WARNINGS
sysconf_DATA = smartd.conf$(smartd_suffix)
EXTRA_DIST = smartd.initd.in \
@@ -1475,7 +1474,7 @@ info: info-recursive
info-am:
install-data-am: install-attributelogDATA install-docsDATA \
- install-drivedbDATA install-initdDATA install-man \
+ install-drivedbDATA install-man \
install-savestatesDATA
install-dvi: install-dvi-recursive
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-ag,v 1.2 2010/10/25 22:58:56 shattered Exp $
Match pkgsrc's --host=i386-sun-solaris2, too.
Avoid special man page section handling for Solaris (PR 38199).
--- configure.orig 2008-03-10 10:44:14.000000000 +0000
+++ configure
@@ -8067,7 +8067,7 @@ _ACEOF
os_libs=''
;;
- *-pc-solaris*)
+ *-*-solaris*)
cat >>confdefs.h <<_ACEOF
#define DEFAULT_MAILER "mailx"
@@ -8141,13 +8141,8 @@ else
OS_DARWIN_FALSE=
fi
- if echo $host_os | grep '^solaris' > /dev/null; then
- OS_SOLARIS_TRUE=
- OS_SOLARIS_FALSE='#'
-else
OS_SOLARIS_TRUE='#'
OS_SOLARIS_FALSE=
-fi
if echo $host_os | grep '^mingw' > /dev/null; then
OS_WIN32_MINGW_TRUE=
+54
View File
@@ -0,0 +1,54 @@
$NetBSD: patch-ah,v 1.5 2011/11/01 12:59:17 marino Exp $
* correct location for usb headers on DragonFly BSD
https://sourceforge.net/apps/trac/smartmontools/ticket/141
* pkg/40628: Override functionality conditions based on FreeBSD
--- os_freebsd.cpp.orig 2010-10-14 18:46:33.000000000 +0000
+++ os_freebsd.cpp
@@ -59,6 +59,9 @@
#if (FREEBSDVER >= 800000)
#include <libusb20_desc.h>
#include <libusb20.h>
+#elif defined(__DragonFly__)
+#include <bus/usb/usb.h>
+#include <bus/usb/usbhid.h>
#else
#include <dev/usb/usb.h>
#include <dev/usb/usbhid.h>
@@ -316,7 +319,7 @@ bool freebsd_ata_device::ata_pass_throug
unsigned const char normal_lo=0x4f, normal_hi=0xc2;
unsigned const char failed_lo=0xf4, failed_hi=0x2c;
-#if (FREEBSDVER < 502000)
+#if (FREEBSDVER < 502000) && !defined(__DragonFly__)
printwarning(NO_RETURN,NULL);
#endif
@@ -1018,7 +1021,7 @@ bool freebsd_scsi_device::scsi_pass_thro
if (cam_send_ccb(m_camdev,ccb) < 0) {
warn("error sending SCSI ccb");
-#if (FREEBSDVER > 500000)
+#if (FREEBSDVER > 500000) || defined(__DragonFly__)
cam_error_print(m_camdev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr);
#endif
cam_freeccb(ccb);
@@ -1026,7 +1029,7 @@ bool freebsd_scsi_device::scsi_pass_thro
}
if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) {
-#if (FREEBSDVER > 500000)
+#if (FREEBSDVER > 500000) || defined(__DragonFly__)
cam_error_print(m_camdev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr);
#endif
cam_freeccb(ccb);
@@ -1501,7 +1504,7 @@ bool freebsd_smart_interface::scan_smart
}
-#if (FREEBSDVER < 800000) // without this build fail on FreeBSD 8
+#if (FREEBSDVER < 800000) || defined(__DragonFly__) // without this build fail on FreeBSD 8
static char done[USB_MAX_DEVICES];
static int usbdevinfo(int f, int a, int rec, int busno, unsigned short & vendor_id,
@@ -0,0 +1,15 @@
$NetBSD: patch-os__netbsd.cpp,v 1.1 2012/07/20 12:35:00 taca Exp $
Use a raw disk device file on NetBSD.
--- os_netbsd.cpp.orig 2009-07-15 19:59:19.000000000 +0000
+++ os_netbsd.cpp
@@ -55,7 +55,7 @@ printwarning(int msgNo, const char *extr
return;
}
-static const char *net_dev_prefix = "/dev/";
+static const char *net_dev_prefix = "/dev/r";
static const char *net_dev_ata_disk = "wd";
static const char *net_dev_scsi_disk = "sd";
static const char *net_dev_scsi_tape = "enrst";