Fix a bad subst in the simplified sample of extensions.conf.

Fix #! line for bash in astversion. Not forced in RUN_DEPENDS because in all
the time this has been present only one person noticed, so the script doesn't
seem too popular. (Script also makes some assumptions about library versions
which don't apply here but I don't think it's worth poking at this too far).

Reported by landry@
This commit is contained in:
sthen 2018-01-21 20:59:18 +00:00
parent d9f160349c
commit b2881b08d2
2 changed files with 8 additions and 5 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.272 2018/01/15 11:48:48 sthen Exp $
# $OpenBSD: Makefile,v 1.273 2018/01/21 20:59:18 sthen Exp $
BROKEN-aarch64= linker problems with BlocksRuntime that only show up at runtime
COMMENT-main= open source multi-protocol PBX and telephony toolkit
VER= 13.19.0
REVISION-main= 0
PJ_V= 2.7.1
PORTROACH= limitw:0,odd
DISTNAME= asterisk-${VER:S/beta/-beta/:S/rc/-rc/}
@ -288,8 +289,10 @@ post-install:
${EXAMPLEDIR}/openbsd/$i.sample
.endfor
${INSTALL_DATA} ${WRKSRC}/contrib/scripts/asterisk.ldif \
${WRKSRC}/contrib/scripts/asterisk.ldap-schema \
${PREFIX}/share/examples/asterisk/
${WRKSRC}/contrib/scripts/asterisk.ldap-schema \
${PREFIX}/share/examples/asterisk/
@sed -i 's,^#!/bin/bash,#!${LOCALBASE}/bin/bash,' \
${PREFIX}/sbin/astversion
@mv ${WRKINST}/${SYSCONFDIR}/asterisk ${EXAMPLEDIR}/default
@chown -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLEDIR}
@rm -rf ${WRKINST}/{etc,var/{log,run,spool}}/asterisk

View File

@ -1,5 +1,5 @@
; $OpenBSD: extensions.conf.sample,v 1.4 2010/04/10 12:45:35 sthen Exp $
; Longer example available in %%LOCALBASE%%/share/examples/asterisk/default
; $OpenBSD: extensions.conf.sample,v 1.5 2018/01/21 20:59:18 sthen Exp $
; Longer example available in ${TRUEPREFIX}/share/examples/asterisk/default
; For new installations, you may prefer to use extensions.ael rather than
; this file.