diff options
author | joerg <joerg@pkgsrc.org> | 2006-04-09 13:39:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-04-09 13:39:52 +0000 |
commit | bfa6f4aed82f5c687f6c41089b14a7ddbd29d041 (patch) | |
tree | 5375174cabc0ba8db3321bd7c342b52a99de42f0 /bootstrap/mkbinarykit | |
parent | c3d9f6bba2e3b7d769f87014843a04b3293338c3 (diff) | |
download | pkgsrc-bfa6f4aed82f5c687f6c41089b14a7ddbd29d041.tar.gz |
For DragonFly before the 1.4.0 release, default to $prefix/pkgdb to
avoid conflicts with FreeBSD ports. Later versions use pkgsrc by default,
so use the more natural /var/db/pkg location and match the install CD
thereby.
Diffstat (limited to 'bootstrap/mkbinarykit')
-rwxr-xr-x | bootstrap/mkbinarykit | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bootstrap/mkbinarykit b/bootstrap/mkbinarykit index a6495974607..208706a36ac 100755 --- a/bootstrap/mkbinarykit +++ b/bootstrap/mkbinarykit @@ -1,6 +1,6 @@ #!/bin/sh -# $NetBSD: mkbinarykit,v 1.12 2005/02/18 00:26:07 xtraeme Exp $ +# $NetBSD: mkbinarykit,v 1.13 2006/04/09 13:39:52 joerg Exp $ # # Make a binary bootstrap kit and place it in targetdir (or current # working directory if not specified). The mk.conf.example file is @@ -38,8 +38,12 @@ AIX) pkgdbdir=$prefix/pkgdb ;; DragonFly) - # Don't use the ports /var/db/pkg - pkgdbdir=$prefix/pkgdb + case "$osrev" in + 1.0* | 1.1 | 1.1[^0-9]* | 1.2.* | 1.3.*) + # Don't use the ports /var/db/pkg + pkgdbdir=$prefix/pkgdb + ;; + esac ;; FreeBSD) # Don't use the ports /var/db/pkg |