diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-06-09 01:25:56 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-06-09 01:25:56 +0800 |
commit | 2c462b28696cb4d9a2f454db3e5d97dacdfc0dd2 (patch) | |
tree | d69674253b3821278c3a5b958bb6dcf75dbd7b21 /www | |
parent | 7093f61cab0f5457c22260914885a92511b6d77b (diff) | |
download | freebsd-ports-gnome-2c462b28696cb4d9a2f454db3e5d97dacdfc0dd2.tar.gz freebsd-ports-gnome-2c462b28696cb4d9a2f454db3e5d97dacdfc0dd2.tar.zst freebsd-ports-gnome-2c462b28696cb4d9a2f454db3e5d97dacdfc0dd2.zip |
- Fix license
- Pet portlint
- Switch to options helpers
- Switch to USES=mysql
Diffstat (limited to 'www')
-rw-r--r-- | www/drupal7/Makefile | 40 | ||||
-rw-r--r-- | www/drupal7/pkg-plist | 4 |
2 files changed, 18 insertions, 26 deletions
diff --git a/www/drupal7/Makefile b/www/drupal7/Makefile index 789c135e22d3..c392b2440fe2 100644 --- a/www/drupal7/Makefile +++ b/www/drupal7/Makefile @@ -11,8 +11,7 @@ DIST_SUBDIR= drupal MAINTAINER= ports@FreeBSD.org COMMENT= Database driven web content management system (CMS) -LICENSE= GPLv2 GPLv3 -LICENSE_COMB= dual +LICENSE= GPLv2+ USES= drupal:7 shebangfix SHEBANG_FILES= scripts/password-hash.sh @@ -20,33 +19,26 @@ SHEBANG_FILES= scripts/password-hash.sh USE_PHP= dom filter gd hash json mbstring pcre pdo session simplexml xml WANT_PHP_WEB= yes -OPTIONS_DEFINE= MYSQL SQLITE3 PGSQL DOCS -OPTIONS_DEFAULT= MYSQL - NO_ARCH= yes NO_BUILD= yes DOCS= CHANGELOG.txt INSTALL.mysql.txt INSTALL.sqlite.txt \ LICENSE.txt README.txt COPYRIGHT.txt INSTALL.pgsql.txt \ INSTALL.txt MAINTAINERS.txt UPGRADE.txt +OPTIONS_DEFINE= MYSQL SQLITE3 PGSQL DOCS +OPTIONS_DEFAULT= MYSQL + SUB_FILES+= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message PGSQL_USES= pgsql PGSQL_USE= PHP=pdo_pgsql - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MSQLITE3} -USE_PHP+= pdo_sqlite -.endif -.if ${PORT_OPTIONS:MMYSQL} -USE_MYSQL= yes -USE_PHP+= pdo_mysql -.endif +SQLITE3_USE= PHP=pdo_sqlite +MYSQL_USES= mysql +MYSQL_USE= PHP=pdo_mysql do-install: - ${MKDIR} ${STAGEDIR}${DRUPAL_DIR} + @${MKDIR} ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/.htaccess ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/cron.php ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/authorize.php ${STAGEDIR}${DRUPAL_DIR} @@ -58,20 +50,20 @@ do-install: ${CP} -R ${WRKSRC}/profiles ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/robots.txt ${STAGEDIR}${DRUPAL_DIR} ${CP} -R ${WRKSRC}/scripts ${STAGEDIR}${DRUPAL_DIR} - ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all - ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all/libraries + @${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all + @${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/all/libraries ${CP} ${WRKSRC}/sites/example.sites.php ${STAGEDIR}${DRUPAL_DIR}/sites/ ${CP} -R ${WRKSRC}/sites/all ${STAGEDIR}${DRUPAL_DIR}/sites/ - ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default - ${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default/files + @${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default + @${MKDIR} ${STAGEDIR}${DRUPAL_DIR}/sites/default/files ${CP} ${WRKSRC}/sites/default/default.settings.php ${STAGEDIR}${DRUPAL_DIR}/sites/default/default.settings.php.sample ${CP} -R ${WRKSRC}/themes ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/update.php ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/web.config ${STAGEDIR}${DRUPAL_DIR} ${CP} ${WRKSRC}/xmlrpc.php ${STAGEDIR}${DRUPAL_DIR} -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${CP} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.endif + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/www/drupal7/pkg-plist b/www/drupal7/pkg-plist index d915d2b2eafe..0c344d0889c2 100644 --- a/www/drupal7/pkg-plist +++ b/www/drupal7/pkg-plist @@ -1101,5 +1101,5 @@ @dir %%DRUPAL_BASE%%/sites/all/libraries @dir %%DRUPAL_BASE%%/sites/default/files @unexec rm -f %%DRUPAL_BASE%%/files/.htaccess 2> /dev/null || true -@owner root -@group wheel +@owner +@group |