DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
Old 6th October 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Well now it's in the ports tree at ports-mgmt/pkg_add_it.

If there are any feature requests, do you want them posted on this thread, or a PM, or email to you?

If you don't mind them posted here, I think two great features would be:
  1. pkg_add_it has a "dry run" or "list" option where it shows you which packages match a pattern but doesn't actually do anything (i.e. nothing is installed).
  2. pkg_add_it installs /usr/local/etc/pkg_add_it, which contains OSRELEASE=?? and it will not even run until the user/sysadmin updates OSRELEASE to a different value in that file.

My 2 cents. Good work - this is the beginning of a much better package management program.
__________________
Kill your t.v.
Reply With Quote
Old 6th October 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by anomie
If there are any feature requests, do you want them posted on this thread, or a PM, or email to you?
E-mail, PM or posting to this thread would do the job
Quote:
Originally Posted by anomie
1. pkg_add_it has a "dry run" or "list" option where it shows you which packages match a pattern but doesn't actually do anything (i.e. nothing is installed).
Actually it installs the chosen package - screenshot of installed package here

Quote:
Originally Posted by anomie
2. pkg_add_it installs /usr/local/etc/pkg_add_it, which contains OSRELEASE=?? and it will not even run until the user/sysadmin updates OSRELEASE to a different value in that file.
During install only two files are being installed - the pkg_add_it executable in /usr/local/sbin/pkg_add_it and the manual page in /usr/local/man/man1/. There is nothing installed under /usr/local/etc/pkg_add_it

OSRELEASE is an environment variable which value should be set to 6.2-release, 7.0-release, 8-current, etc. depending on what release you are running. This variable also tells pkg_add_it from which directory on the FreeBSD FTP server to fetch the packages - 6.2-release, 7.0-release, etc..

pkg_add_it will run even if this variable is not set by default - then it uses a default value which is 8-current

I've added this variable so if someone running for example FreeBSD-6.2-RELEASE want's to install new version of a given package which is under the 7.0-release would set OSRELEASE=7.0-release and install the package successfuly. That is why this variable is not set by default to the output of uname -r for example.

Cheers,
DNAeon

Last edited by DNAeon; 6th October 2008 at 10:33 PM.
Reply With Quote
Old 6th October 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

@DNAeon: those were my feature requests. (I've tested out your app, and #s 1 and 2 were changes I think would be useful.) If I have others I'll send a PM or email.

Thanks for considering them.
__________________
Kill your t.v.
Reply With Quote
Old 6th October 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by anomie View Post
@DNAeon: those were my feature requests. (I've tested out your app, and #s 1 and 2 were changes I think would be useful.) If I have others I'll send a PM or email.

Thanks for considering them.
Sorry, I have misunderstood you the first time

Yeap, I'll have in mind your feature requests

Best regards,
DNAeon
Reply With Quote
Old 13th October 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by anomie View Post
  1. pkg_add_it has a "dry run" or "list" option where it shows you which packages match a pattern but doesn't actually do anything (i.e. nothing is installed).
A --list option has been implemented!
Update your ports tree

--
DNAeon

Last edited by DNAeon; 14th October 2008 at 08:45 AM.
Reply With Quote
Old 14th October 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

If you haven't already seen it, Dru put up a short review of your new pkg_add_it on one of her blogs: http://it.toolbox.com/blogs/bsd-guru/pkg_add_it-27582

(originally spotted on freebsdnews.net)
__________________
Kill your t.v.
Reply With Quote
Old 15th October 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Thanks for the links!

I didn't know that
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg_add problems with connecting Mr-Biscuit NetBSD Package System (pkgsrc) 2 26th May 2009 11:44 AM
pkg_add - can't resolve <packagename> nihonto OpenBSD Packages and Ports 11 28th January 2009 10:03 PM
pkg_add g95;g95 x.f95: cannot find g95 enpey OpenBSD Packages and Ports 8 27th August 2008 12:48 AM
pkg_add -r does not use exported packagesite kasse FreeBSD Ports and Packages 16 26th August 2008 08:42 PM
pkg_add error buba OpenBSD Packages and Ports 4 13th June 2008 03:29 PM


All times are GMT. The time now is 05:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick