16b13f3515
the port. Most importantly, it's currently installing the rc.d script from the source, rather than the fixed one in files/. 1. Remove 6.x compatibility hack 2. Use the PORTDOCS macro 3. Actually install the rc.d script in files/ 4. Simplify pkg-plist 5. For the rc.d script: a. Move it to the standard location, after LOGIN b. Add KEYWORD nojail per the script in the distfiles c. Put the standard arguments in their usual order/formats d. Simplify the assignments of pidfile and required_files e. Use command_args for required arguments, don't abuse _flags f. The test for -p in smartd_flags should be a start_precmd, we frown on running any code unconditionally. Also, improve this check if -p is first. g. Bring the reload and report options from the distfile version, and simplify them. PR: ports/165167 Submitted by: me Approved by: Alex Samorukov <samm@os2.kiev.ua> (maintainer)
10 lines
212 B
Text
10 lines
212 B
Text
@stopdaemon smartd
|
|
etc/periodic/daily/smart
|
|
etc/smartd.conf.sample
|
|
sbin/smartctl
|
|
sbin/smartd
|
|
sbin/update-smart-drivedb
|
|
%%DATADIR%%/drivedb.h
|
|
@dirrm %%DATADIR%%
|
|
@dirrmtry etc/periodic/daily
|
|
@dirrmtry etc/periodic
|