blob: 8e4c4ac1694cf5a870c9d20fb1b4630d8ba48d2e (
plain)
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
53
54
55
|
# Created by: Dan Langille <dvl@FreeBSD.org>
# $FreeBSD$
PORTNAME= Stikked
DISTVERSION= 0.13.0
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= dvl@FreeBSD.org
COMMENT= PHP-based Pastebin, with a simple and easy to use user interface
USES= php:web
USE_GITHUB= yes
GH_ACCOUNT= claudehohl
USE_PHP= ctype filter gd pgsql session
NO_BUILD= yes
NO_ARCH= yes
SUB_FILES= pkg-message
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= PGSQL
MYSQL_DESC= Include the PHP shared extension for MySQL
PGSQL_DESC= Include the PHP shared extension for PostgreSQL
SQLITE_DESC= Include the PHP shared extension for SQLite3
MYSQL_BROKEN= USE_PHP=mysql no longer supported, unclear if USE_PHP=mysqli works
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
#USE_PHP+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+= sqlite3
.endif
do-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}/htdocs && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${INSTALL_DATA} ${STAGEDIR}${WWWDIR}/application/config/stikked.php.dist ${STAGEDIR}${ETCDIR}/stikked.php.sample
${LN} -sf ${ETCDIR}/stikked.php ${STAGEDIR}${WWWDIR}/application/config/
.include <bsd.port.mk>
|