How to use DragonFly BSD Ports (dports)

How to install software in DragonFly BSD? that question came into my mind after I successfully install version 3.6 on my VirtualBox. I know about pkg_add and ports on FreeBSD so I guess I need to know about how ports work on DragonFly BSD and install a software like Apache on this opportunity. In fact its not hard at all.

Create ports skeleton

This command will create dports directory

# cd /usr

# make dports-create-shallow
If problems occur you may have to rm -rf dports and try again.

git clone –depth=1 git://  /usr/dports
Cloning into ‘/usr/dports’…
remote: Counting objects: 124398, done.
remote: Compressing objects: 100% (117288/117288), done.
remote: Total 124398 (delta 5201), reused 94462 (delta 3286)
Receiving objects: 100% (124398/124398), 46.52 MiB | 98.00 KiB/s, done.
Resolving deltas: 100% (5201/5201), done.
Checking connectivity… done
Checking out files: 100% (98096/98096), done.

Install DialogPorts

# cd /usr/dports/ports-mgmt/dialog4ports && make install

Install Apache MPM Worker using Dport

# cd /usr/dports/www/apache22-worker-mpm && make install

Let the options as is and hit OK.

Other dependencies will be installed automatically.

In the middle of installation I got problem with gmake. Its refused to install due to dns problem. I used to overcome it with pkg_add -vr gmake and DragonFly BSD offer almost identical solution.

help2man-1.43.3_1 depends on executable: gmake – not found
===>    Verifying install for gmake in /usr/dports/devel/gmake
===>  Found saved configuration for gmake-3.82_1
===>   gmake-3.82_1 depends on file: /usr/local/sbin/pkg – found
=> make-3.82.tar.bz2 doesn’t seem to exist in /usr/distfiles/.
=> Attempting to fetch

The problem came from my side, internet connection is so slow that make the message appear. After connection restored and retry it everything fine now.

Checking Installed Package / Software

# pkg info
apache22-worker-mpm-2.2.26     Version 2.2.x of Apache web server with worker MPM.
apr-                Apache Portability Library
autoconf-2.69                  Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
bind98-9.8.6                   BIND DNS suite with updated DNSSEC and DNS64
ca_root_nss-3.15.2_1           The root certificate bundle from the Mozilla Project
cdrtools-3.00_2                CD/DVD/BluRay and ISO-9660 image creation and extraction tools
curl-7.33.0                    Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1                    Create patchset information from CVS
db48-                  The Berkeley DB package, revision 4.8
dialog4ports-0.1.5_2           Console Interface to configure ports
expat-2.1.0                    XML 1.0 parser written in C
gdbm-1.11                      GNU database manager
gettext-               GNU gettext package
git-                    Distributed source code management tool
gmake-3.82_1                   GNU version of ‘make’ utility
help2man-1.43.3_1              Automatically generating simple manual pages from program output
isc-dhcp42-client-4.2.5        The ISC Dynamic Host Configuration Protocol client
isc-dhcp42-server-4.2.5        The ISC Dynamic Host Configuration Protocol server
libtool-2.4.2_2                Generic shared library support script
libxml2-2.8.0_2                XML parser library for GNOME
lynx-,1                 Non-graphical, text-based World-Wide Web client
m4-1.4.17,1                    GNU m4
p5-Locale-gettext-1.05_3       Message handling functions
pcre-8.33                      Perl Compatible Regular Expressions library
perl5-5.16.3_6                 Practical Extraction and Report Language
pkg-1.1.4_8                    New generation package manager