[73688] trunk/dports/sysutils/smartmontools
takanori at macports.org
takanori at macports.org
Sun Nov 21 12:38:14 PST 2010
Revision: 73688
http://trac.macports.org/changeset/73688
Author: takanori at macports.org
Date: 2010-11-21 12:38:10 -0800 (Sun, 21 Nov 2010)
Log Message:
-----------
smartmontools: use startupitem options
Modified Paths:
--------------
trunk/dports/sysutils/smartmontools/Portfile
Removed Paths:
-------------
trunk/dports/sysutils/smartmontools/files/net.sourceforge.smartmontools.smartd.plist
Modified: trunk/dports/sysutils/smartmontools/Portfile
===================================================================
--- trunk/dports/sysutils/smartmontools/Portfile 2010-11-21 20:31:39 UTC (rev 73687)
+++ trunk/dports/sysutils/smartmontools/Portfile 2010-11-21 20:38:10 UTC (rev 73688)
@@ -4,7 +4,7 @@
name smartmontools
version 5.40
-revision 1
+revision 2
categories sysutils
maintainers toby
description SMART hard drive monitoring
@@ -29,21 +29,11 @@
--enable-sample \
--with-libcap-ng=no
-platform darwin {
- destroot.violate_mtree yes
- post-destroot {
- file delete -force ${destroot}${prefix}/etc/rc.d
-
- set launchd_path ${destroot}/Library/LaunchDaemons
- set launchd_plist net.sourceforge.smartmontools.smartd.plist
-
- xinstall -d ${launchd_path}
- xinstall -m 0644 ${filespath}/${launchd_plist} ${launchd_path}
- reinplace s|__PREFIX__|${prefix}| ${launchd_path}/${launchd_plist}
-
- if {${os.major} < 9} {
- reinplace s|KeepAlive|OnDemand| ${launchd_path}/${launchd_plist}
- reinplace s|true|false| ${launchd_path}/${launchd_plist}
- }
- }
+post-destroot {
+ delete ${destroot}${prefix}/etc/rc.d
}
+
+startupitem.create yes
+startupitem.name smartd
+startupitem.executable ${prefix}/sbin/smartd -p ${prefix}/var/run/smartd.pid
+startupitem.pidfile auto ${prefix}/var/run/smartd.pid
Deleted: trunk/dports/sysutils/smartmontools/files/net.sourceforge.smartmontools.smartd.plist
===================================================================
--- trunk/dports/sysutils/smartmontools/files/net.sourceforge.smartmontools.smartd.plist 2010-11-21 20:31:39 UTC (rev 73687)
+++ trunk/dports/sysutils/smartmontools/files/net.sourceforge.smartmontools.smartd.plist 2010-11-21 20:38:10 UTC (rev 73688)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>Label</key>
- <string>net.sourceforge.smartmontools.smartd</string>
- <key>ProgramArguments</key>
- <array>
- <string>__PREFIX__/sbin/smartd</string>
- <string>-n</string>
- </array>
- <key>KeepAlive</key>
- <true/>
-</dict>
-</plist>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101121/3d09439f/attachment.html>
More information about the macports-changes
mailing list