pkgsrc/pkgtools/tinderbox-dragonfly/patches/patch-ab
marino dc0dc103e8 Import pkgtools/tinderbox-dragonfly
Tinderbox is a well-known package building system for FreeBSD.
This commit ports the original Tinderbox to DragonFly.  The scripts
are highly platform specific, so only one operating system can be
supported per package.  With interest, alternative versions such as
tinderbox-netbsd and tinderbox-sunos could be developed fairly easily
as they would share the pkgsrc-specific changes with this package.

The repository for the project is:
https://github.com/jrmarino/pkgsrc-tinderbox
2011-11-02 21:13:10 +00:00

56 lines
1.8 KiB
Text

$NetBSD: patch-ab,v 1.1 2011/11/02 21:13:20 marino Exp $
--- ../FreeBSD/lib/tinderbox.env 2011-10-16 00:52:55.000000000 +0000
+++ lib/tinderbox.env
@@ -5,36 +5,24 @@
#
# There are no longer any user-servicable parts in this file
-#6PKGSUFFIX=.tbz
-#6PKGZIPCMD=bzip2
-#6INDEXFILE=INDEX-6
-#6X_WINDOW_SYSTEM=xorg
-#7PKGSUFFIX=.tbz
-#7PKGZIPCMD=bzip2
-#7INDEXFILE=INDEX-7
-#7X_WINDOW_SYSTEM=xorg
-#8PKGSUFFIX=.tbz
-#8PKGZIPCMD=bzip2
-#8INDEXFILE=INDEX-8
-#8X_WINDOW_SYSTEM=xorg
-#9PKGSUFFIX=.tbz
-#9PKGZIPCMD=bzip2
-#9INDEXFILE=INDEX-9
-#9X_WINDOW_SYSTEM=xorg
-#10PKGSUFFIX=.tbz
-#10PKGZIPCMD=bzip2
-#10INDEXFILE=INDEX-10
-#10X_WINDOW_SYSTEM=xorg
-#
-LOCALBASE=/usr/local
-OSVERSION=`awk '/^#define __FreeBSD_version/ {print $3}' < ^^SRCBASE^^/sys/sys/param.h`
-OSREL=`awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < ^^SRCBASE^^/sys/conf/newvers.sh`
-BRANCH=`awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < ^^SRCBASE^^/sys/conf/newvers.sh`
+#2PKGSUFFIX=.tgz
+#2PKGZIPCMD=gzip
+#2INDEXFILE=INDEX-2
+#2X_WINDOW_SYSTEM=xorg
+#3PKGSUFFIX=.tgz
+#3PKGZIPCMD=gzip
+#3INDEXFILE=INDEX-3
+#3X_WINDOW_SYSTEM=xorg
+
+LOCALBASE=/usr/pkg
+OSVERSION=`awk '/^#define __DragonFly_version/ {print $3}' < ^^SRCBASE^^/sys/sys/param.h`
+OSREL=`awk 'BEGIN {FS="\""}; /^BRANCH=\"/ {split($2,array,"_"); printf ("%s.%s\n", array[2],array[3])}' < ^^SRCBASE^^/sys/conf/newvers.sh`
+BRANCH=`awk 'BEGIN {FS="\""}; /^BRANCH=\"/ {split($2,array,"_"); print array[1]}' < ^^SRCBASE^^/sys/conf/newvers.sh`
ARCH=`uname -p`
UNAME_n=tinderbox.host
UNAME_r=^^OSREL^^-^^BRANCH^^
-UNAME_s=FreeBSD
-UNAME_v="FreeBSD ^^OSREL^^-^^BRANCH^^ #0: `date` root@tinderbox.host:/usr/src/sys/magic/kernel/path"
+UNAME_s=DragonFly
+UNAME_v="DragonFly ^^OSREL^^-^^BRANCH^^ #0: `date` root@tinderbox.host:/usr/src/sys/magic/kernel/path"
#
BATCH=1
PACKAGE_BUILDING=1