blob: 14e861d8b30d8b5ff16a91a0f62934dd011eb71c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# 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
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>
|