Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= phpMyAdmin |
8 |
PORTNAME= phpMyAdmin |
9 |
PORTVERSION= 2.6.1.2 |
9 |
PORTVERSION= 2.6.1.3 |
10 |
#DISTVERSION= 2.6.1-pl2 |
10 |
#DISTVERSION= 2.6.1-pl3 |
11 |
CATEGORIES= databases www |
11 |
CATEGORIES= databases www |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= phpmyadmin |
13 |
MASTER_SITE_SUBDIR= phpmyadmin |
Lines 20-25
Link Here
|
20 |
NO_BUILD= yes |
20 |
NO_BUILD= yes |
21 |
USE_PHP= mysql pcre |
21 |
USE_PHP= mysql pcre |
22 |
|
22 |
|
|
|
23 |
SUB_LIST+= "MYADMDIR=${MYADMDIR}" \ |
24 |
"PKGNAME=${PKGNAME}" |
25 |
SUB_FILES= pkg-message |
26 |
|
23 |
# Unfortunately can't make WITH_SUPHP part of the OPTIONS selection, |
27 |
# Unfortunately can't make WITH_SUPHP part of the OPTIONS selection, |
24 |
# since it has to be processed before just about anything else. |
28 |
# since it has to be processed before just about anything else. |
25 |
|
29 |
|
Lines 35-44
Link Here
|
35 |
|
39 |
|
36 |
MYADMUSR?= phpmyadm |
40 |
MYADMUSR?= phpmyadm |
37 |
|
41 |
|
38 |
SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ |
42 |
SUB_LIST+= "MYADMUSR=${MYADMUSR}" \ |
39 |
-e 's,%%MYADMDIR%%,${MYADMDIR},g' \ |
43 |
"MYADMGRP=${MYADMGRP}" |
40 |
-e 's,%%MYADMUSR%%,${MYADMUSR},g' \ |
44 |
SUB_FILES+= pkg-install pkg-deinstall |
41 |
-e 's,%%MYADMGRP%%,${MYADMGRP},g' |
|
|
42 |
|
45 |
|
43 |
.else |
46 |
.else |
44 |
|
47 |
|
Lines 49-60
Link Here
|
49 |
# Copy the way lang/php{4,5}-extensions deals with its OPTIONS -- avoids |
52 |
# Copy the way lang/php{4,5}-extensions deals with its OPTIONS -- avoids |
50 |
# problems with include of bsd.port.pre.mk |
53 |
# problems with include of bsd.port.pre.mk |
51 |
|
54 |
|
52 |
OPTIONS= BZ2 "bzip2 library support" on \ |
55 |
OPTIONS= BZ2 "bzip2 library support" on \ |
53 |
GD "GD library support" on \ |
56 |
GD "GD library support" on \ |
54 |
MYSQLI "Improved MySQL support (PHP5, MySQL 4.1 only)" off \ |
57 |
MYSQLI "Improved MySQL support (PHP5, MySQL 4.1 only)" off \ |
55 |
OPENSSL "OpenSSL support" on \ |
58 |
OPENSSL "OpenSSL support" on \ |
56 |
PDF "PDFlib support (implies GD)" on \ |
59 |
PDF "PDFlib support (implies GD)" on \ |
57 |
ZLIB "ZLIB support" on |
60 |
ZLIB "ZLIB support" on \ |
|
|
61 |
MCRYPT "MCrypt library support" on \ |
62 |
MBSTRING "Multi-byte character-set string support" on |
58 |
|
63 |
|
59 |
PORT_DBDIR?= /var/db/ports |
64 |
PORT_DBDIR?= /var/db/ports |
60 |
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} |
65 |
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} |
Lines 65-71
Link Here
|
65 |
.endif |
70 |
.endif |
66 |
|
71 |
|
67 |
# Options that default to on: |
72 |
# Options that default to on: |
68 |
.for opt in BZ2 GD OPENSSL PDF ZLIB |
73 |
.for opt in BZ2 GD OPENSSL PDF ZLIB MCRYPT MBSTRING |
69 |
. if !defined(WITHOUT_${opt}) || defined(WITH_${opt}) |
74 |
. if !defined(WITHOUT_${opt}) || defined(WITH_${opt}) |
70 |
USE_PHP+= ${opt:L} |
75 |
USE_PHP+= ${opt:L} |
71 |
. endif |
76 |
. endif |
Lines 78-86
Link Here
|
78 |
. endif |
83 |
. endif |
79 |
.endfor |
84 |
.endfor |
80 |
|
85 |
|
81 |
MSG_SKEL= ${PKGDIR}/pkg-message |
|
|
82 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
83 |
|
84 |
# MYADMUSR is only used WITH_SUPHP |
86 |
# MYADMUSR is only used WITH_SUPHP |
85 |
MYADMDIR?= www/phpMyAdmin |
87 |
MYADMDIR?= www/phpMyAdmin |
86 |
MYADMGRP?= ${WWWGRP} |
88 |
MYADMGRP?= ${WWWGRP} |
Lines 111-123
Link Here
|
111 |
${FIND} . -type d | ${SORT} -r | ${SED} \ |
113 |
${FIND} . -type d | ${SORT} -r | ${SED} \ |
112 |
-e "s,^\.$$,@unexec rmdir %D/%%MYADMDIR%% 2>/dev/null || true," \ |
114 |
-e "s,^\.$$,@unexec rmdir %D/%%MYADMDIR%% 2>/dev/null || true," \ |
113 |
-e "s,^\.,@dirrm %%MYADMDIR%%," >>${PLIST} |
115 |
-e "s,^\.,@dirrm %%MYADMDIR%%," >>${PLIST} |
114 |
${SED} -e 's,%%MYADMDIR%%,${MYADMDIR},g' \ |
|
|
115 |
-e 's,%%PREFIX%%,${PREFIX},g' \ |
116 |
-e 's,%%PKGNAME%%,${PKGNAME},g' ${MSG_SKEL} > ${PKGMESSAGE} |
117 |
.if defined(WITH_SUPHP) |
118 |
${SED} ${SED_SCRIPT} ${PKGINST_SKEL} > ${PKGINSTALL} |
119 |
${SED} ${SED_SCRIPT} ${PKGDEINST_SKEL} > ${PKGDEINSTALL} |
120 |
.endif |
121 |
|
116 |
|
122 |
pre-install: |
117 |
pre-install: |
123 |
.if defined(WITH_SUPHP) |
118 |
.if defined(WITH_SUPHP) |