aboutsummaryrefslogtreecommitdiffstats
path: root/databases/vfront
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2016-01-17 07:32:40 +0800
committerpawel <pawel@FreeBSD.org>2016-01-17 07:32:40 +0800
commitce4e4352d8fbfe530591b12bc321de15e6fa30d6 (patch)
treef54b0cf0024c6d1875327a06e8f0c483b6dd107d /databases/vfront
parent0f15836885ad5350bf0dad454455f0c58184faa7 (diff)
downloadfreebsd-ports-gnome-ce4e4352d8fbfe530591b12bc321de15e6fa30d6.tar.gz
freebsd-ports-gnome-ce4e4352d8fbfe530591b12bc321de15e6fa30d6.tar.zst
freebsd-ports-gnome-ce4e4352d8fbfe530591b12bc321de15e6fa30d6.zip
- Remove deprecated @dirrm usage, convert to @dir
- Add LICENSE_FILE, NO_ARCH - Use options helpers Approved by: portmgr blanket
Diffstat (limited to 'databases/vfront')
-rw-r--r--databases/vfront/Makefile21
1 files changed, 7 insertions, 14 deletions
diff --git a/databases/vfront/Makefile b/databases/vfront/Makefile
index ad47235f01ef..4f22f52cbc8c 100644
--- a/databases/vfront/Makefile
+++ b/databases/vfront/Makefile
@@ -9,8 +9,10 @@ MAINTAINER= crees@FreeBSD.org
COMMENT= Simple frontend for database data entry
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/license
NO_BUILD= yes
+NO_ARCH= yes
PLIST= ${WRKDIR}/pkg-plist
USE_PHP= yes
@@ -19,17 +21,9 @@ OPTIONS_MULTI= database
OPTIONS_MULTI_database= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL PGSQL
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_PHP+= mysqli
-USE_MYSQL= yes
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PHP+= pgsql
-USES+= pgsql
-.endif
+MYSQL_USE= MYSQL=yes PHP=mysqli
+PGSQL_USES= pgsql
+PGSQL_USE= PHP=pgsql
post-patch:
${REINPLACE_CMD} -i '' -e \
@@ -40,9 +34,8 @@ post-patch:
pre-install:
(cd ${WRKSRC} && \
${FIND} * -type f | ${SED} 's,^,%%WWWDIR%%/,' > ${PLIST} && \
- ${FIND} * -type d | ${SORT} -r | \
- ${SED} 's,^,@dirrmtry %%WWWDIR%%/,' >> ${PLIST})
- @${ECHO_CMD} '@dirrmtry %%WWWDIR%%' >> ${PLIST}
+ ${FIND} * -type d -empty | ${SORT} -r | \
+ ${SED} 's,^,@dir %%WWWDIR%%/,' >> ${PLIST})
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN} %D/%%WWWDIR%%' >> ${PLIST}
@${ECHO_CMD} '@exec ${CHMOD} 700 %D/%%WWWDIR%%/conf' >> ${PLIST}