blob: ba9f0a6c072848227a293a0b319952aa81cb553a (
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
|
PORTNAME= privatebin
PORTVERSION= 1.4.0
PORTREVISION= 1
CATEGORIES= www security
MAINTAINER= dvl@FreeBSD.org
COMMENT= Simple end-to-end encrypting zero-knowledge paste-bin server
WWW= https://privatebin.info/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= cpe php
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
NO_BUILD= yes
NO_ARCH= yes
USE_PHP= gd hash json zlib
USE_GITHUB= yes
GH_PROJECT= PrivateBin
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's:%%DATADBDIR%%:/var/db/${PORTNAME}:' \
${WRKSRC}/index.php
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MV} ${STAGEDIR}/${WWWDIR}/*.md ${STAGEDIR}/${DOCSDIR}
@${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
.include <bsd.port.mk>
|