-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Ellis
committed
Oct 26, 2014
1 parent
35fed73
commit f35dbd3
Showing
12 changed files
with
1,476 additions
and
1,476 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,169 +1,169 @@ | ||
|
||
## Packages | ||
|
||
I don't think there is an official prebuilt package repository for the development *FreeBSD 11* branch, so I'm building some ports myself. [Qt][qt-site] and whatever *FreeBSD* uses for access to webcams. I think it's [Webcamd][webcamd], but I'm not sure. The goal is to port a version of [SyntroLCam][syntrolcam] to *FreeBSD*. | ||
|
||
|
||
To get started | ||
|
||
Fetch the ports tree | ||
|
||
root@wandboard:~ # portsnap fetch | ||
|
||
First time usage | ||
|
||
root@wandboard:~ # portsnap extract | ||
|
||
The systems comes with a *C* compiler and associated development tools | ||
|
||
root@wandboard:/usr/ports/ports-mgmt/pkg # which cc | ||
/usr/bin/cc | ||
|
||
root@wandboard:/usr/ports/ports-mgmt/pkg # cc --version | ||
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 | ||
Target: armv6--freebsd11.0-gnueabi | ||
Thread model: posix | ||
|
||
Generate a ports index (optional, takes awhile) | ||
|
||
root@wandboard:/usr/ports # make index | ||
|
||
Since I never plan to connect a display, I'm setting some default flags in `/etc/make.conf` so they apply to all ports | ||
|
||
OPTIONS_UNSET= X11 GUI CUPS DOCS EXAMPLES NLS | ||
|
||
OPTIONS_SET= IPV6 THREADS | ||
|
||
|
||
Search for a port | ||
|
||
root@wandboard:/usr/ports # make search name=iperf | ||
Port: iperf-2.0.5 | ||
Path: /usr/ports/benchmarks/iperf | ||
Info: Tool to measure maximum TCP and UDP bandwidth | ||
Maint: [email protected] | ||
B-deps: | ||
R-deps: | ||
WWW: http://iperf.sourceforge.net/ | ||
|
||
Port: iperf3-3.0.8 | ||
Path: /usr/ports/benchmarks/iperf3 | ||
Info: Improved tool to measure TCP and UDP bandwidth | ||
Maint: [email protected] | ||
B-deps: | ||
R-deps: | ||
WWW: https://github.com/esnet/iperf | ||
|
||
List dependencies before building | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # make all-depends-list | ||
/usr/ports/ports-mgmt/pkg | ||
|
||
The *iperf* port has only one dependency - *pkg* | ||
|
||
Build a port, this will build and install dependencies as well | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # make install iperf | ||
... | ||
|
||
When it completes | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # which iperf | ||
/usr/local/bin/iperf | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # iperf -v | ||
iperf version 2.0.5 (08 Jul 2010) pthreads | ||
|
||
Something a little bigger | ||
|
||
root@wandboard:/usr/ports # make search name=python27 | ||
Port: python27-2.7.8_5 | ||
Path: /usr/ports/lang/python27 | ||
Info: Interpreted object-oriented programming language | ||
Maint: [email protected] | ||
B-deps: gettext-0.18.3.1_1 indexinfo-0.2 pkgconf-0.9.7 readline-6.3.8 | ||
R-deps: gettext-0.18.3.1_1 indexinfo-0.2 readline-6.3.8 | ||
WWW: http://www.python.org/ | ||
|
||
root@wandboard:/usr/ports # cd lang/python27 | ||
root@wandboard:/usr/ports/lang/python27 # make install | ||
|
||
You'll get a dialog for a few options not in `/etc/make.conf` | ||
|
||
DEBUG (=n) | ||
PYMALLOC (=y) | ||
SEM (=y) | ||
UCS2 (=n) | ||
UCS4 (=y) | ||
|
||
(I am accepting the defaults for all packages unless I specify otherwise.) | ||
|
||
The *readline* build will also prompt for some config settings. | ||
|
||
When it's done | ||
|
||
root@wandboard:/usr/ports/lang/python27 # ls /usr/local/bin | ||
2to3-2.7 idle2.7 iperf pkgconf python2.7 | ||
dialog4ports indexinfo pkg-config pydoc2.7 python2.7-config | ||
|
||
root@wandboard:/usr/ports/lang/python27 # python2.7 | ||
Python 2.7.8 (default, Oct 4 2014, 12:44:55) | ||
[GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd11 | ||
Type "help", "copyright", "credits" or "license" for more information. | ||
>>> print 5+6 | ||
11 | ||
>>> quit() | ||
|
||
Make it the default (probably a more standard way) | ||
|
||
root@wandboard:/usr/ports/lang/python27 # ln -s /usr/local/bin/python2.7 /usr/local/bin/python | ||
|
||
root@wandboard:/usr/ports/lang/python27 # python --version | ||
Python 2.7.8 | ||
|
||
Proceeding like this, I eventually ended up with this package list | ||
|
||
root@wandboard:~ # pkg info | ||
ca_root_nss-3.17.1 The root certificate bundle from the Mozilla Project | ||
dialog4ports-0.1.5_2 Console Interface to configure ports | ||
gettext-0.18.3.1_1 GNU gettext package | ||
glib-2.36.3_4 Some useful routines of C programming (current stable version) | ||
gmake-3.82_2 GNU version of 'make' utility | ||
gmake-lite-3.82 Minimalist version of gnu make | ||
help2man-1.43.3_1 Automatically generating simple manual pages from program output | ||
icu-53.1 International Components for Unicode (from IBM) | ||
indexinfo-0.2 Utility to regenerate the GNU info page index | ||
iperf-2.0.5 Tool to measure maximum TCP and UDP bandwidth | ||
jpeg-8_5 IJG's jpeg compression utilities | ||
libffi-3.0.13_2 Foreign Function Interface | ||
libiconv-1.14_4 Character set conversion library | ||
libv4l-0.8.8_2 Video4Linux library | ||
pcre-8.35_1 Perl Compatible Regular Expressions library | ||
perl5-5.16.3_11 Practical Extraction and Report Language | ||
pkg-1.3.8_2 Package manager | ||
pkgconf-0.9.7 Utility to help to configure compiler and linker flags | ||
python27-2.7.8_5 Interpreted object-oriented programming language | ||
qt5-buildtools-5.2.1_1 Qt build tools | ||
qt5-core-5.2.1_2 Qt core non-graphical module | ||
qt5-network-5.2.1_1 Qt network module | ||
qt5-qmake-5.2.1_1 Qt Makefile generator | ||
readline-6.3.8 Library for editing command lines as they are typed | ||
texinfo-5.2.20140808 Typeset documentation system with multiple format output | ||
v4l_compat-1.0.20120501_1 Video4Linux IOCTL header files | ||
webcamd-3.17.0.6 Port of Linux USB webcam and DVB drivers into userspace | ||
|
||
|
||
[freebsd]: http://www.freebsd.org | ||
[freebsd-download]: ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/ | ||
[freebsd-arm]: https://wiki.freebsd.org/FreeBSD/arm | ||
[wandboard]: http://www.wandboard.org/ | ||
[beagleboard]: http://www.beagleboard.org/ | ||
[rpi]: http://www.raspberrypi.org/ | ||
[pandaboard]: http://www.pandaboard.org/ | ||
[overo]: https://store.gumstix.com/index.php/category/33/ | ||
[duovero]: https://store.gumstix.com/index.php/category/43/ | ||
[openbsd]: http://www.openbsd.org | ||
[freebsd-boot-log]: https://gist.github.com/scottellis/1f9439f8ddd4fb87718e | ||
[qt-site]: http://qt-project.org/ | ||
[webcamd]: http://www.selasky.org/hans_petter/video4bsd/ | ||
[syntrolcam]: https://github.com/Syntro/SyntroLCam | ||
|
||
## Packages | ||
|
||
I don't think there is an official prebuilt package repository for the development *FreeBSD 11* branch, so I'm building some ports myself. [Qt][qt-site] and whatever *FreeBSD* uses for access to webcams. I think it's [Webcamd][webcamd], but I'm not sure. The goal is to port a version of [SyntroLCam][syntrolcam] to *FreeBSD*. | ||
|
||
|
||
To get started | ||
|
||
Fetch the ports tree | ||
|
||
root@wandboard:~ # portsnap fetch | ||
|
||
First time usage | ||
|
||
root@wandboard:~ # portsnap extract | ||
|
||
The systems comes with a *C* compiler and associated development tools | ||
|
||
root@wandboard:/usr/ports/ports-mgmt/pkg # which cc | ||
/usr/bin/cc | ||
|
||
root@wandboard:/usr/ports/ports-mgmt/pkg # cc --version | ||
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 | ||
Target: armv6--freebsd11.0-gnueabi | ||
Thread model: posix | ||
|
||
Generate a ports index (optional, takes awhile) | ||
|
||
root@wandboard:/usr/ports # make index | ||
|
||
Since I never plan to connect a display, I'm setting some default flags in `/etc/make.conf` so they apply to all ports | ||
|
||
OPTIONS_UNSET= X11 GUI CUPS DOCS EXAMPLES NLS | ||
|
||
OPTIONS_SET= IPV6 THREADS | ||
|
||
|
||
Search for a port | ||
|
||
root@wandboard:/usr/ports # make search name=iperf | ||
Port: iperf-2.0.5 | ||
Path: /usr/ports/benchmarks/iperf | ||
Info: Tool to measure maximum TCP and UDP bandwidth | ||
Maint: [email protected] | ||
B-deps: | ||
R-deps: | ||
WWW: http://iperf.sourceforge.net/ | ||
|
||
Port: iperf3-3.0.8 | ||
Path: /usr/ports/benchmarks/iperf3 | ||
Info: Improved tool to measure TCP and UDP bandwidth | ||
Maint: [email protected] | ||
B-deps: | ||
R-deps: | ||
WWW: https://github.com/esnet/iperf | ||
|
||
List dependencies before building | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # make all-depends-list | ||
/usr/ports/ports-mgmt/pkg | ||
|
||
The *iperf* port has only one dependency - *pkg* | ||
|
||
Build a port, this will build and install dependencies as well | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # make install iperf | ||
... | ||
|
||
When it completes | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # which iperf | ||
/usr/local/bin/iperf | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # iperf -v | ||
iperf version 2.0.5 (08 Jul 2010) pthreads | ||
|
||
Something a little bigger | ||
|
||
root@wandboard:/usr/ports # make search name=python27 | ||
Port: python27-2.7.8_5 | ||
Path: /usr/ports/lang/python27 | ||
Info: Interpreted object-oriented programming language | ||
Maint: [email protected] | ||
B-deps: gettext-0.18.3.1_1 indexinfo-0.2 pkgconf-0.9.7 readline-6.3.8 | ||
R-deps: gettext-0.18.3.1_1 indexinfo-0.2 readline-6.3.8 | ||
WWW: http://www.python.org/ | ||
|
||
root@wandboard:/usr/ports # cd lang/python27 | ||
root@wandboard:/usr/ports/lang/python27 # make install | ||
|
||
You'll get a dialog for a few options not in `/etc/make.conf` | ||
|
||
DEBUG (=n) | ||
PYMALLOC (=y) | ||
SEM (=y) | ||
UCS2 (=n) | ||
UCS4 (=y) | ||
|
||
(I am accepting the defaults for all packages unless I specify otherwise.) | ||
|
||
The *readline* build will also prompt for some config settings. | ||
|
||
When it's done | ||
|
||
root@wandboard:/usr/ports/lang/python27 # ls /usr/local/bin | ||
2to3-2.7 idle2.7 iperf pkgconf python2.7 | ||
dialog4ports indexinfo pkg-config pydoc2.7 python2.7-config | ||
|
||
root@wandboard:/usr/ports/lang/python27 # python2.7 | ||
Python 2.7.8 (default, Oct 4 2014, 12:44:55) | ||
[GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd11 | ||
Type "help", "copyright", "credits" or "license" for more information. | ||
>>> print 5+6 | ||
11 | ||
>>> quit() | ||
|
||
Make it the default (probably a more standard way) | ||
|
||
root@wandboard:/usr/ports/lang/python27 # ln -s /usr/local/bin/python2.7 /usr/local/bin/python | ||
|
||
root@wandboard:/usr/ports/lang/python27 # python --version | ||
Python 2.7.8 | ||
|
||
Proceeding like this, I eventually ended up with this package list | ||
|
||
root@wandboard:~ # pkg info | ||
ca_root_nss-3.17.1 The root certificate bundle from the Mozilla Project | ||
dialog4ports-0.1.5_2 Console Interface to configure ports | ||
gettext-0.18.3.1_1 GNU gettext package | ||
glib-2.36.3_4 Some useful routines of C programming (current stable version) | ||
gmake-3.82_2 GNU version of 'make' utility | ||
gmake-lite-3.82 Minimalist version of gnu make | ||
help2man-1.43.3_1 Automatically generating simple manual pages from program output | ||
icu-53.1 International Components for Unicode (from IBM) | ||
indexinfo-0.2 Utility to regenerate the GNU info page index | ||
iperf-2.0.5 Tool to measure maximum TCP and UDP bandwidth | ||
jpeg-8_5 IJG's jpeg compression utilities | ||
libffi-3.0.13_2 Foreign Function Interface | ||
libiconv-1.14_4 Character set conversion library | ||
libv4l-0.8.8_2 Video4Linux library | ||
pcre-8.35_1 Perl Compatible Regular Expressions library | ||
perl5-5.16.3_11 Practical Extraction and Report Language | ||
pkg-1.3.8_2 Package manager | ||
pkgconf-0.9.7 Utility to help to configure compiler and linker flags | ||
python27-2.7.8_5 Interpreted object-oriented programming language | ||
qt5-buildtools-5.2.1_1 Qt build tools | ||
qt5-core-5.2.1_2 Qt core non-graphical module | ||
qt5-network-5.2.1_1 Qt network module | ||
qt5-qmake-5.2.1_1 Qt Makefile generator | ||
readline-6.3.8 Library for editing command lines as they are typed | ||
texinfo-5.2.20140808 Typeset documentation system with multiple format output | ||
v4l_compat-1.0.20120501_1 Video4Linux IOCTL header files | ||
webcamd-3.17.0.6 Port of Linux USB webcam and DVB drivers into userspace | ||
|
||
|
||
[freebsd]: http://www.freebsd.org | ||
[freebsd-download]: ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/ | ||
[freebsd-arm]: https://wiki.freebsd.org/FreeBSD/arm | ||
[wandboard]: http://www.wandboard.org/ | ||
[beagleboard]: http://www.beagleboard.org/ | ||
[rpi]: http://www.raspberrypi.org/ | ||
[pandaboard]: http://www.pandaboard.org/ | ||
[overo]: https://store.gumstix.com/index.php/category/33/ | ||
[duovero]: https://store.gumstix.com/index.php/category/43/ | ||
[openbsd]: http://www.openbsd.org | ||
[freebsd-boot-log]: https://gist.github.com/scottellis/1f9439f8ddd4fb87718e | ||
[qt-site]: http://qt-project.org/ | ||
[webcamd]: http://www.selasky.org/hans_petter/video4bsd/ | ||
[syntrolcam]: https://github.com/Syntro/SyntroLCam |
Oops, something went wrong.