1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/shellinabox/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

51 lines
1.1 KiB
Makefile

# Created by: Olivier Cochard-Labbe <olivier@FreeBSD.org>
# $FreeBSD$
PORTNAME= shellinabox
PORTVERSION= 2.19
DISTVERSIONPREFIX= v
CATEGORIES= www
MAINTAINER= olivier@FreeBSD.org
COMMENT= Publish command line shell through AJAX interface
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= shellinabox
OPTIONS_DEFINE= CORES NOLOGIN
CORES_DESC= Patch shellinaboxd to enable core dumps
NOLOGIN_DESC= Login through ssh (not through login)
USES= autoreconf libtool
GNU_CONFIGURE= yes
USE_RC_SUBR= shellinaboxd
USERS?= shellinabox
GROUPS?= shellinabox
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES= pkg-deinstall
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
NOLOGIN_CONFIGURE_ON= --disable-login
.include <bsd.port.options.mk>
post-patch:
.if ${PORT_OPTIONS:MCORES}
@${REINPLACE_CMD} \
-e 's|prctl(PR_SET_DUMPABLE,|// &|' \
-e 's|setrlimit(RLIMIT_CORE,|// &|' \
${WRKSRC}/shellinabox/shellinaboxd.c
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/shellinaboxd ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/shellinaboxd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>