DE EN RU

RSS Feed Developer Blog

mports

Introduction

mports is the MidnightBSD ports collection. It contains hundreds of ported software applications ready to use on MidnightBSD. mports simplifies installing software packages on your desktop system.

In the future, mports will also include precompiled packages to speed up the installation process. An automated software update system is planned. There are a few precompiled software packages on the MidnightBSD FTP server.

Using mports

You can install mports during the installation of MidnightBSD. If you forgot to do so, you may download the latest mports by using csup or cvs. Execute the command
csup /usr/share/examples/cvsup/mports-supfile
to download the mports. Alternatively, you can use
mkdir /usr/mports
cd /usr
cvs -d anoncvs@stargazer.midnightbsd.org:/home/cvs co mports

Updating mports periodically is recommended. New versions of software and additional software are added all the time. Keeping up to date will help you maintain best security practices and possibly give you new features and functionality or bug fixes.

To install an mport, simply do the following:
cd /usr/mports
Pick a category from the file system list or use make search key=term where term is what you want to search for. Once you have the mport, you can type make install clean to install it and clean up the compiling mess.

It is recommended that you install mports/sysutils/portupgrade at your convenience. It will allow you to upgrade mports and install mports much easier. You can simply type portinstall portname to install a port called portname. It can speed up the process considerably.

To uninstall a port, simply goto the directory of the mport and type make deinstall

There are also utilities like pkg_add, pkg_delete and so forth included in the base system. pkg_add -r portname can fetch a precompiled package from the MidnightBSD server and install it for you. You can also install your own packages. There are many possibilities.

History

MidnightBSD uses the FreeBSD ports collection. Over time it has begun to diverge. Several projects have been influential in the design of the mports system, notably OpenBSD.

The initial import of mports was done by our security officer, archite. mports maintainership was transfered to wintellect after some initial work by laffer1. Currently, all commiters have access to add and modify mports. You may contact any commiter about mports problems or additions. For infrastructure questions or concerns, direct them to wintellect. (use the alias at midnightbsd.org)

Differences Between FreeBSD's ports and mports

FreeBSD's ports install directly into the system at install time, mports however uses a process called "fake" to make a package and then installs that package. This simplifies the logic of the ports system. Code does not need to be duplicated for installation from the port and installation from the package. The change is very recent, and at this time we are still testing the port tree to insure that all ports function properly under the "fake" system.

For information on common reasons for "fake" errors, see the fake transition page.

Mport is endeavoring to be more standardized than the FreeBSD ports tree. See the policy page for information on current port standards.

Future Directions

This document is incomplete. It will be more complete in the future.