aboutsummaryrefslogtreecommitdiff
path: root/repos/xorg/smartmontools
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-29 23:15:54 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-29 23:15:54 +0800
commitae4593e20cef97c7323d522b40994a59425cd6d5 (patch)
tree7b3e8750bbbfa32e917869e325027108ee59ee85 /repos/xorg/smartmontools
parentb5aa76f45da627817380276080b2b8bba6e74f68 (diff)
downloadalicelinux-ae4593e20cef97c7323d522b40994a59425cd6d5.tar.gz
alicelinux-ae4593e20cef97c7323d522b40994a59425cd6d5.zip
added xorg repo
Diffstat (limited to 'repos/xorg/smartmontools')
-rw-r--r--repos/xorg/smartmontools/.files24
-rw-r--r--repos/xorg/smartmontools/abuild8
-rw-r--r--repos/xorg/smartmontools/smartd.finish3
-rw-r--r--repos/xorg/smartmontools/smartd.run3
4 files changed, 38 insertions, 0 deletions
diff --git a/repos/xorg/smartmontools/.files b/repos/xorg/smartmontools/.files
new file mode 100644
index 00000000..8bc14d70
--- /dev/null
+++ b/repos/xorg/smartmontools/.files
@@ -0,0 +1,24 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/smartd.conf.new
+drwxr-xr-x root/root etc/smartd_warning.d/
+-rwxr-xr-x root/root etc/smartd_warning.sh.new
+drwxr-xr-x root/root etc/sv/
+drwxr-xr-x root/root etc/sv/smartd/
+-rwxr-xr-x root/root etc/sv/smartd/finish.new
+-rwxr-xr-x root/root etc/sv/smartd/run.new
+lrwxrwxrwx root/root etc/sv/smartd/supervise -> ../../../run/runit/supervise.smartd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/smartctl
+-rwxr-xr-x root/root usr/sbin/smartd
+-rwxr-xr-x root/root usr/sbin/update-smart-drivedb
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/smartd.conf.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/smartctl.8.gz
+-rw-r--r-- root/root usr/share/man/man8/smartd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/update-smart-drivedb.8.gz
+drwxr-xr-x root/root usr/share/smartmontools/
+-rw-r--r-- root/root usr/share/smartmontools/drivedb.h
diff --git a/repos/xorg/smartmontools/abuild b/repos/xorg/smartmontools/abuild
new file mode 100644
index 00000000..ed226a1e
--- /dev/null
+++ b/repos/xorg/smartmontools/abuild
@@ -0,0 +1,8 @@
+name=smartmontools
+version=7.4
+release=1
+source="https://downloads.sourceforge.net/$name/$name-$version.tar.gz
+ smartd.run
+ smartd.finish"
+sv="smartd.run smartd.finish"
+build_opt="--with-initscriptdir=no --with-libsystemd=no"
diff --git a/repos/xorg/smartmontools/smartd.finish b/repos/xorg/smartmontools/smartd.finish
new file mode 100644
index 00000000..85e568f0
--- /dev/null
+++ b/repos/xorg/smartmontools/smartd.finish
@@ -0,0 +1,3 @@
+#!/bin/sh
+# no devices found, disable smartd
+[ $1 = 17 ] && sv d $(dirname $0)
diff --git a/repos/xorg/smartmontools/smartd.run b/repos/xorg/smartmontools/smartd.run
new file mode 100644
index 00000000..e4f00acc
--- /dev/null
+++ b/repos/xorg/smartmontools/smartd.run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec smartd -n