diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2018-03-31 11:37:02 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2018-03-31 11:37:02 +0000 |
commit | f12b57155c72f4036c126055395b943d80369795 (patch) | |
tree | e38076d3caa188b606285ecea5b5edf3e71e128a /share | |
parent | 27def585309a3cd03dade625ca656435ab71b760 (diff) |
while updating the drupal modules, I realized I was manually looking at
a specific directory on the drupal sites, so add a bit of glue to add
that to homepage, and also add magic to figure out default distfile and
pkgname.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man5/port-modules.5 | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/share/man/man5/port-modules.5 b/share/man/man5/port-modules.5 index 4ab62be2a51..76285af3e30 100644 --- a/share/man/man5/port-modules.5 +++ b/share/man/man5/port-modules.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: port-modules.5,v 1.228 2018/02/24 21:22:44 kn Exp $ +.\" $OpenBSD: port-modules.5,v 1.229 2018/03/31 11:37:01 espie Exp $ .\" .\" Copyright (c) 2008 Marc Espie .\" @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: February 24 2018 $ +.Dd $Mdocdate: March 31 2018 $ .Dt PORT-MODULES 5 .Os .Sh NAME @@ -1445,12 +1445,14 @@ is yes, or languages packs if .Ev DRUPAL_LANG is set to the desired language. .Pp -The module will set or add to default values for +The module may set or add to default values for .Ev HOMEPAGE , .Ev MASTER_SITES , .Ev PREFIX , +.Ev DISTNAME , .Ev DIST_SUBDIR , .Ev CATEGORIES , +.Ev PKGNAME , .Ev PKG_ARCH , .Ev WRKDIST , .Ev RUN_DEPENDS . @@ -1479,6 +1481,26 @@ are set to root, daemon, since drupal doesn't need to write to any file except the files/ directory and the site settings (those belong to www instead). .Pp +Most modules are actually separate projects on the drupal site. +If +.Ev MODDRUPAL_PROJECT +is set, +.Ev HOMEPAGE +will lead to the corresponding project. +If +.Ev MODDRUPAL_VERSION +is also set, +.Ev DISTNAME +will default to +.Pa ${MODDRUPAL_PROJECT}-7.x-${MODDRUPAL_VERSION} , +MODDRUPAL_PKGNAME +will default to +.Pa ${MODDRUPAL_PROJECT} +and +.Ev PKGNAME +will default to +.Pa drupal7-${MODDRUPAL_PKGNAME}-${MODDRUPAL_VERSION} . +.Pp Translations are handled by setting .Ev DRUPAL_LANG to the language letter code, and by setting |