- remove DIST_SUBDIR
- touch -> ${TOUCH} - add post-install target to update /etc/shells (to match pkg-plist @exec) - make sure to remove /etc/shells.bak PR: 26092 Submitted by: maintainer
This commit is contained in:
parent
3b958fc914
commit
ff342e75da
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47202
@ -15,7 +15,6 @@ MAINTAINER= naddy@mips.inka.de
|
||||
RESTRICTED= "Source recipient must acknowledge license"
|
||||
DISTNAME= ${PORTNAME}-${VERSION}
|
||||
DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
MAKE_ARGS= CC='${CC}' CCFLAGS='${CFLAGS}' SHELL='${SH}'
|
||||
@ -27,7 +26,7 @@ MAN1= ksh93.1
|
||||
|
||||
.if defined(ACCEPT_AST_LICENSE)
|
||||
post-patch:
|
||||
@touch ${WRKSRC}/lib/package/gen/ast.license.accepted
|
||||
@${TOUCH} ${WRKSRC}/lib/package/gen/ast.license.accepted
|
||||
.else
|
||||
IS_INTERACTIVE= yes # must acknowledge license
|
||||
.endif
|
||||
@ -41,4 +40,11 @@ do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/arch/freebsd.${ARCH}/man/man1/sh.1 \
|
||||
${PREFIX}/man/man1/ksh93.1
|
||||
|
||||
post-install:
|
||||
@${ECHO} "updating /etc/shells"
|
||||
@${CP} /etc/shells /etc/shells.bak
|
||||
@(${GREP} -v ${PREFIX}/bin/ksh93 /etc/shells.bak; \
|
||||
${ECHO} ${PREFIX}/bin/ksh93) >/etc/shells
|
||||
@${RM} -f /etc/shells.bak
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (ksh93/INIT.2001-07-04.0000.tgz) = 5cb81cd79b6c4ffbd3249550541afa52
|
||||
MD5 (ksh93/ast-ksh.2001-07-04.0000.tgz) = 95c4d371f2c144759aad029f20717481
|
||||
MD5 (INIT.2001-07-04.0000.tgz) = 5cb81cd79b6c4ffbd3249550541afa52
|
||||
MD5 (ast-ksh.2001-07-04.0000.tgz) = 95c4d371f2c144759aad029f20717481
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $FreeBSD$
|
||||
bin/ksh93
|
||||
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
|
||||
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
|
||||
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
|
||||
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
|
||||
|
Loading…
Reference in New Issue
Block a user