mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Rather than an option, automatically detect if the target system
has an amd rc script. Eventually when amd is removed from base packages will automatically include the rc script. Adjust the location of the amd binary in the supplied rc script. MFH: 2019Q4
This commit is contained in:
parent
25d6b84315
commit
875be5ca5d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518101
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= am-utils
|
||||
PORTVERSION= 6.2
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= sysutils net
|
||||
MASTER_SITES= ftp://ftp.am-utils.org/pub/am-utils/ \
|
||||
@ -16,10 +16,9 @@ COMMENT= Berkeley Automounter Suite of Utilities
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
OPTIONS_DEFINE= OPENLDAP DOCS RC
|
||||
OPTIONS_DEFINE= OPENLDAP DOCS
|
||||
OPTIONS_DEFAULT=OPENLDAP
|
||||
OPENLDAP_DESC= OpenLDAP support
|
||||
RC_DESC= Use the rc script in this port
|
||||
|
||||
USES= autoreconf:build bison libtool makeinfo perl5
|
||||
USE_LDCONFIG= yes
|
||||
@ -44,7 +43,9 @@ OPENLDAP_PORTDOCS= README.ldap ldap-id.txt ldap.schema
|
||||
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
RC_USE_RC_SUBR= amd
|
||||
.if !exists(/etc/rc.d/amd)
|
||||
USE_RC_SUBR= amd
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${RM} ${WRKSRC}/doc/am-utils.info*
|
||||
|
@ -14,7 +14,7 @@
|
||||
name="amd"
|
||||
desc="Automatically mount filesystems"
|
||||
rcvar="amd_enable"
|
||||
command="/usr/sbin/${name}"
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
start_precmd="amd_precmd"
|
||||
command_args="&"
|
||||
extra_commands="reload"
|
||||
|
Loading…
Reference in New Issue
Block a user