GhostBSD-11 testing the "test" repository

Open development discussions

Moderator: Developer

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

GhostBSD-11 testing the "test" repository

Post by ASX » Thu May 18, 2017 4:04 pm

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

kraileth
Developer
Posts: 312
Joined: Sun Sep 04, 2016 12:30 pm
Has thanked: 0
Been thanked: 0

Re: testing the "test" repository

Post by kraileth » Fri May 19, 2017 1:55 am

ASX wrote:The "test" repository was create to allow early testing from devs, here you go: (amd64 only for now)
Excellent!! :D

kraileth
Developer
Posts: 312
Joined: Sun Sep 04, 2016 12:30 pm
Has thanked: 0
Been thanked: 0

Re: testing the "test" repository

Post by kraileth » Fri May 19, 2017 3:56 am

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?

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: testing the "test" repository

Post by ASX » Fri May 19, 2017 4:38 am

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.

kraileth
Developer
Posts: 312
Joined: Sun Sep 04, 2016 12:30 pm
Has thanked: 0
Been thanked: 0

Re: testing the "test" repository

Post by kraileth » Fri May 19, 2017 1:05 pm

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?

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: testing the "test" repository

Post by ASX » Fri May 19, 2017 1:17 pm

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. ;)

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: GhostBSD-11 testing the "test" repository

Post by ASX » Sat May 20, 2017 4:38 am

The i386 repository is now complete and online.
Original post updated.

NevilleGoddard
Developer
Posts: 397
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan
Has thanked: 4 times
Been thanked: 1 time

Re: GhostBSD-11 testing the "test" repository

Post by NevilleGoddard » Sat May 20, 2017 6:28 am

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?

ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm
Has thanked: 0
Been thanked: 0

Re: GhostBSD-11 testing the "test" repository

Post by ASX » Sat May 20, 2017 9:17 am

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.

NevilleGoddard
Developer
Posts: 397
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan
Has thanked: 4 times
Been thanked: 1 time

Re: GhostBSD-11 testing the "test" repository

Post by NevilleGoddard » Sat May 20, 2017 10:26 am

ASX you are a genius!
The script worked perfectly.

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

Thanks again.

Post Reply