Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Wed Feb 08, 2012 8:12 am


FreeBSD tutorials and how-tos

Bookmark this article:

Author Message
LaR3
  Post  Post subject: FreeBSD portupgrade packages with manual dependencies  |  Posted: Wed Aug 05, 2009 6:07 pm

Joined: Mon Aug 03, 2009 11:55 pm
Posts: 19

Offline
Save on Delicious
FreeBSD portupgrade (aka pkgtools) is a tool set for working with ports and packages. It enhances abilities of system tools and adds many new ones. It is highly tunable via its configuration file and allows you to create individual svariable environment for every port you like, to define commands that will be executed before/after port upgrade stages.

pkgtools uses hash databases to keep information about available ports (in the ports tree), installed ports, dependencies, etc. So access to the information is fast. E.g. portversion(1) is much faster than pkg_version(1). (But note: you have to have a fresh INDEX file for relevant results).

If one of your ports uses manual dependencies and you usually rely on portupgrade to maintain your installed ports up to date, then it's a good practice to let it know of these manual dependencies.

Fill ALT_PKGDEP section in pkgtools.conf file for portupgrade to be aware of alternative dependencies you use. Eg:
Code:
ALT_PKGDEP = {
        'www/apache13' => 'www/apache13-modssl',
        'print/ghostscript-gnu' => 'print/ghostscript-gpl',
      }

Note also, portupgrade knows nothing how to handle ports with different suffixes (E.g. -nox11). So you should explicitly define variables (E.g. WITHOUT_X11=yes) for the ports in /etc/make.conf or pkgtools.conf (MAKE_ARGS section) files.

pkgtools.conf file is usually found in /usr/local/etc/pkgtools.conf.


Top
Display posts from previous:  Sort by  
Print view

Topics related to - "FreeBSD portupgrade packages with manual dependencies"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD portupgrade without port vulnerability check

mandrei99

0

551

Thu Mar 18, 2010 1:12 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - Collecting hardware information

LaR3

0

3394

Wed Aug 05, 2009 9:40 pm

LaR3 View the latest post

There are no new unread posts for this topic. FreeBSD - Can't locate Mail/Header.pm in @INC (@INC contains:

mandrei99

0

838

Thu Jul 29, 2010 10:00 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: Apache 2.2.15 (custom location) + mod_fcgid

debuser

0

496

Thu Jul 22, 2010 8:07 pm

debuser View the latest post

There are no new unread posts for this topic. FreeBSD ifconfig display capability and supported media types for an interface

debuser

0

1153

Thu Jul 08, 2010 1:26 pm

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO