aboutsummaryrefslogblamecommitdiff
path: root/www/privatebin/Makefile
blob: 1ea7d04ef9f3ec890467280a01ffcc2d74f3b2ca (plain) (tree)
1
2
3
4
5
6
7
                                           

                          
                     

                            
                               




                                                                            
                       
 


                   
                                 


                          

                    











                                                                     
# Created by: Stefan Esser <se@FreeBSD.org>

PORTNAME=	privatebin
PORTVERSION=	1.3.5
CATEGORIES=	www security

MAINTAINER=	dvl@FreeBSD.org
COMMENT=	Simple end-to-end encrypting zero-knowledge paste-bin server

LICENSE=	ZLIB
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		cpe php

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>