GhostBSD-11 testing the "test" repository

Open development discussions

Moderator: Developer

GhostBSD-11 testing the "test" repository

Postby ASX » Thu May 18, 2017 3: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
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

GhostBSD-11 testing the "test" repository


Re: testing the "test" repository

Postby kraileth » Fri May 19, 2017 12: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: 305
Joined: Sun Sep 04, 2016 11:30 am
Has thanked: 57 times
Been thanked: 51 times

Re: testing the "test" repository

Postby kraileth » Fri May 19, 2017 2: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?
kraileth
Developer
 
Posts: 305
Joined: Sun Sep 04, 2016 11:30 am
Has thanked: 57 times
Been thanked: 51 times

Re: testing the "test" repository

Postby ASX » Fri May 19, 2017 3: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.
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: testing the "test" repository

Postby kraileth » Fri May 19, 2017 12: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?
kraileth
Developer
 
Posts: 305
Joined: Sun Sep 04, 2016 11:30 am
Has thanked: 57 times
Been thanked: 51 times

Re: testing the "test" repository

Postby ASX » Fri May 19, 2017 12: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
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: GhostBSD-11 testing the "test" repository

Postby ASX » Sat May 20, 2017 3:38 am

The i386 repository is now complete and online.
Original post updated.
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Sat May 20, 2017 5: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?
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository

Postby ASX » Sat May 20, 2017 8: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.
ASX
Developer
 
Posts: 970
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Sat May 20, 2017 9: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.
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Next

Return to Development Discussions

Who is online

Users browsing this forum: No registered users and 1 guest