diff options
Diffstat (limited to 'www/shellinabox/Makefile')
-rw-r--r-- | www/shellinabox/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/www/shellinabox/Makefile b/www/shellinabox/Makefile new file mode 100644 index 000000000000..d075ed081076 --- /dev/null +++ b/www/shellinabox/Makefile @@ -0,0 +1,55 @@ +PORTNAME= shellinabox +PORTVERSION= 2.20 +DISTVERSIONPREFIX= v +PORTREVISION= 6 +CATEGORIES= www + +MAINTAINER= olivier@FreeBSD.org +COMMENT= Publish command line shell through AJAX interface +WWW= https://github.com/shellinabox/shellinabox + +LICENSE= GPLv2 + +DEPRECATED= Abandonware and outdated, last release in 2016. Use sysutils/ttyd instead +EXPIRATION_DATE= 2025-12-31 # Expiration date has been extended because sysutils/ttyd doesn't work on some systems. + +USES= autoreconf cpe libtool ssl +CPE_VENDOR= ${PORTNAME}_project + +OPTIONS_DEFINE= CORES NOLOGIN +CORES_DESC= Patch shellinaboxd to enable core dumps +NOLOGIN_DESC= Login through ssh (not through login) + +GNU_CONFIGURE= yes +USE_GITHUB= yes + +USE_RC_SUBR= shellinaboxd +USERS?= shellinabox +GROUPS?= shellinabox + +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall + +SUB_FILES= pkg-deinstall +SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} + +CONFIGURE_ARGS= --disable-runtime-loading --disable-pam \ + CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib + +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}${PREFIX}/share/man/man1 + @${MKDIR} ${STAGEDIR}${ETCDIR} + +.include <bsd.port.mk> |