1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

post-install is not needed anymore when staged [1]

While here: use optionsng

Reported by:	miwi [1]
This commit is contained in:
Baptiste Daroussin 2014-02-26 07:09:50 +00:00
parent b5f6f00d70
commit de90ca6b10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346118

View File

@ -19,23 +19,14 @@ COMMENT= The Public Domain Korn Shell
LICENSE= BSD3CLAUSE
OPTIONS_DEFINE= STATIC
GNU_CONFIGURE= yes
.include <bsd.port.options.mk>
.if defined(WITH_STATIC)
CONFIGURE_ENV+= LDSTATIC=-static
.endif
STATIC_CONFIGURE_ENV+= LDSTATIC=-static
post-patch:
@(${ECHO_CMD} ",s/v${PORTVERSION:C/p.*//}/v${PORTVERSION:S/p/./}/"; \
${ECHO_CMD} "wq") | ed -s ${WRKSRC}/version.c
post-install:
@${ECHO} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v "${PREFIX}/bin/ksh$$" /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/ksh) > /etc/shells
@${RM} /etc/shells.bak
.include <bsd.port.mk>