Page 1 of 10

GhostBSD-11 testing the "test" repository

Posted: Thu May 18, 2017 4:04 pm
by ASX
The "test" repository was create to allow early testing from devs, here you go:

# create a /usr/local/etc/pkg/repos/GhostBSD.conf file:

# amd64

Code: Select all

GhostBSD: {
  url: "http://pkg.GhostBSD.org/GhostBSD-11/amd64/test",
  enabled: yes
}
# i386

Code: Select all

GhostBSD: {
  url: "http://pkg.GhostBSD.org/GhostBSD-11/i386/test",
  enabled: yes
}
to verify which repositories are configured use:

Code: Select all

pkg -vv
The first time, you should reinstall all packages, using:

Code: Select all

pkg upgrade -f -r GhostBSD
to disable the FreeBSD repository permanently, create a /usr/local/etc/pkg/repos/FreeBSD.conf file:

Code: Select all

FreeBSD: {
  enabled: no
}
Happy testing! :D

Re: testing the "test" repository

Posted: Fri May 19, 2017 1:55 am
by kraileth
ASX wrote:The "test" repository was create to allow early testing from devs, here you go: (amd64 only for now)
Excellent!! :D

Re: testing the "test" repository

Posted: Fri May 19, 2017 3:56 am
by kraileth
ASX wrote:GhostBSD: {
url: "http://pkg.GhostBSD.org/amd64/latest",
enabled: yes
}
Since there is no such repo, I would assume that you actually meant test?

Re: testing the "test" repository

Posted: Fri May 19, 2017 4:38 am
by ASX
kraileth wrote:
ASX wrote:GhostBSD: {
url: "http://pkg.GhostBSD.org/amd64/latest",
enabled: yes
}
Since there is no such repo, I would assume that you actually meant test?
Yes, thanks!
Corrected the original post.

Re: testing the "test" repository

Posted: Fri May 19, 2017 1:05 pm
by kraileth
Updated a fresh Alpha-1 installation using the new repo and everything seems to work well. This will be the foundation for Alpha-2, I guess? When that's out, I'll put it on a few different machines and try various programs.

ASX: This is now just our own "copy" of the FreeBSD packages, right? Or are we doing custom options and stuff like that, yet?

Re: testing the "test" repository

Posted: Fri May 19, 2017 1:17 pm
by ASX
kraileth wrote:ASX: This is now just our own "copy" of the FreeBSD packages, right? Or are we doing custom options and stuff like that, yet?
This is the FreeBSD ports tree + GhostBSD ports tree, so far with default options.
There is already provision for custom options: options in github repo below will be considered when building.
https://github.com/GhostBSD/ports-options

This is something we will do a few at a time. ;)

Re: GhostBSD-11 testing the "test" repository

Posted: Sat May 20, 2017 4:38 am
by ASX
The i386 repository is now complete and online.
Original post updated.

Re: GhostBSD-11 testing the "test" repository

Posted: Sat May 20, 2017 6:28 am
by NevilleGoddard
I just enabled the 64 bit repository and updated as you instructed. Everything seems to be fine.

Thanks ericbsd, ASX and kraileth.

I'll try it out on my laptop soon.

Can we use the ports tree from GitHub?

Re: GhostBSD-11 testing the "test" repository

Posted: Sat May 20, 2017 9:17 am
by ASX
NevilleGoddard wrote:Can we use the ports tree from GitHub?
Not ready for general use, but:

assuming a filesystem structure like below:

Code: Select all

/builder/ports/
/builder/gbsd-ports/
/builder/options/
run the script below, name it ports-init and eventually place it in /root/bin:

Code: Select all

#!/bin/sh
# helper frontend to setup a package building environment
# (C) 2017 GhostBSD project - asxbsd


get_fbsd_ports()
{
	if [ -d  /builder/ports/.git ]
	then
		cd /builder/ports
		git pull
	else
		git clone https://github.com/GhostBSD/freebsd-ports /builder/ports
	fi
}

get_gbsd_ports()
{
	if [ -d  /builder/gbsd-ports/.git ]
	then
		cd /builder/gbsd-ports
		git pull
	else
		git clone https://github.com/GhostBSD/ports /builder/gbsd-ports
	fi
}

merge_ports()
{
	cd /builder/gbsd-ports
	for dir in *
	do
		if [ ${dir} = "README.md" ]; then continue; fi
		cp -a ${dir} /builder/ports/

		cd /builder/ports/${dir}
		> Makefile.tmp
		for category in *
		do
			if [ "$category" = "Makefile" ]; then continue ; fi
			if [ ! -f "$category/Makefile" ]; then continue ; fi
			echo "    SUBDIR += $category" >> Makefile.tmp
		done
		echo "" >> Makefile.tmp
		echo ".include <bsd.port.subdir.mk>" >> Makefile.tmp
		mv Makefile.tmp Makefile

		cd /builder/gbsd-ports
	done
}

get_options()
{
	if [ -d  /builder/options/.git ]
	then
		cd /builder/options
		git pull
	else
		git clone https://github.com/GhostBSD/ports-options  /builder/options
	fi
}

#### MAIN ####
get_fbsd_ports
get_gbsd_ports
merge_ports
get_options
after running the script you will have the merged tree in /builder/ports and the options (if any) in /builder/options.

Re: GhostBSD-11 testing the "test" repository

Posted: Sat May 20, 2017 10:26 am
by NevilleGoddard
ASX you are a genius!
The script worked perfectly.

Installed a couple of ports with it and everything went perfectly. 8-)

Thanks again.