1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/www/shellinabox/Makefile
Alex Kozlov 14828cc44c - Fix issue regarding some keys with Firefox (upstream Issue 202)
PR:	ports/186399
Submitted by:	Olivier Cochard-Labbe <olivier@cochard.me> (maintainer)
2014-02-05 12:50:20 +00:00

56 lines
1.2 KiB
Makefile

# Created by: Olivier Cochard-Labbe <olivier@cochard.me>
# $FreeBSD$
PORTNAME= shellinabox
PORTVERSION= 2.14
PORTREVISION= 4
CATEGORIES= www
MASTER_SITES= GOOGLE_CODE
MAINTAINER= olivier@cochard.me
COMMENT= Publish command line shell through AJAX interface
LICENSE= GPLv2
OPTIONS_DEFINE= CORES NOLOGIN
CORES_DESC= Patch shellinaboxd to enable core dumps
NOLOGIN_DESC= Login through ssh (not through login)
HAS_CONFIGURE= yes
CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--infodir=${PREFIX}/${INFO_PATH} \
--mandir=${MANPREFIX}/man
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
BROKEN_powerpc= Does not load on powerpc
.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
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>