- Add a rcNG startup script
- Use mkstemp() instead of the insecure tempnam()
Moreover:
- Also create /var/spool/anacron when installed from a package
- Try to remove /var/spool/anacron when deinstalling the package; if
it fails, hint the user about removing it manually
- Respect ${CC}
- Install/deinstall ${PREFIX}/etc/anacrontab
- Split the monolithic patch-aa into separate patches
- Refactor some patches into ${REINPLACE_CMD} invocations
- Install the program ourselves (it is more straightforward than
fixing the vendor's Makefile)
- Use SUB_FILES=pkg-message
PR: ports/82168 [1]
Submitted by: maintainer [1]
25 lines
304 B
Bash
25 lines
304 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: anacron
|
|
# REQUIRE: LOGIN
|
|
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable anacron:
|
|
#
|
|
# anacron_enable="YES"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="anacron"
|
|
rcvar=`set_rcvar`
|
|
command="%%PREFIX%%/sbin/anacron"
|
|
|
|
load_rc_config $name
|
|
: ${anacron_enable="NO"}
|
|
|
|
run_rc_command "$1"
|